vtkPVGeneralSettings.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkPVGeneralSettings_h
15 #define vtkPVGeneralSettings_h
16 
17 #include "vtkObject.h"
18 #include "vtkRemotingSettingsModule.h" //needed for exports
19 #include "vtkSmartPointer.h" // needed for vtkSmartPointer.
20 
21 #include <string>
22 
23 class VTKREMOTINGSETTINGS_EXPORT vtkPVGeneralSettings : public vtkObject
24 {
25 public:
26  static vtkPVGeneralSettings* New();
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
33  static vtkPVGeneralSettings* GetInstance();
34 
36 
41  vtkSetMacro(AutoConvertProperties, bool);
42  vtkGetMacro(AutoConvertProperties, bool);
43  vtkBooleanMacro(AutoConvertProperties, bool);
45 
47 
53  vtkGetMacro(BlockColorsDistinctValues, int);
54  vtkSetMacro(BlockColorsDistinctValues, int);
56 
58 
62  vtkGetMacro(AutoApply, bool);
63  vtkSetMacro(AutoApply, bool);
65 
67 
72  vtkGetMacro(AutoApplyDelay, int);
73  vtkSetMacro(AutoApplyDelay, int);
75 
77 
81  vtkGetMacro(AutoApplyActiveOnly, bool);
82  vtkSetMacro(AutoApplyActiveOnly, bool);
84 
86 
92  vtkGetMacro(PreservePropertyValues, bool);
93  vtkSetMacro(PreservePropertyValues, bool);
95 
97 
100  vtkGetMacro(DefaultViewType, std::string);
101  vtkSetMacro(DefaultViewType, std::string);
103 
105 
109  vtkGetMacro(InterfaceLanguage, std::string);
110  vtkSetMacro(InterfaceLanguage, std::string);
112 
116  enum
117  {
120  DEFAULT_TIME_STEP_LAST
121  };
122 
124 
127  enum
128  {
129  AUTOMATICALLY_SHOW_AND_HIDE_SCALAR_BARS = 0,
130  AUTOMATICALLY_HIDE_SCALAR_BARS = 1,
131  MANUAL_SCALAR_BARS = 2
132  };
133  vtkSetMacro(ScalarBarMode, int);
134  vtkGetMacro(ScalarBarMode, int);
136 
138 
141  vtkSetMacro(CacheGeometryForAnimation, bool);
142  vtkGetMacro(CacheGeometryForAnimation, bool);
143  vtkBooleanMacro(CacheGeometryForAnimation, bool);
145 
147 
150  vtkSetMacro(AnimationGeometryCacheLimit, unsigned long);
151  vtkGetMacro(AnimationGeometryCacheLimit, unsigned long);
153 
155  {
156  MIXED = 0,
159  FULL
160  };
161 
163 
167  vtkSetMacro(AnimationTimeNotation, int);
168  vtkGetMacro(AnimationTimeNotation, int);
170 
172 
175  vtkSetMacro(AnimationTimeShortestAccuratePrecision, bool);
176  vtkGetMacro(AnimationTimeShortestAccuratePrecision, bool);
178 
180 
183  vtkSetMacro(AnimationTimePrecision, int);
184  vtkGetMacro(AnimationTimePrecision, int);
186 
188 
191  vtkSetMacro(ShowAnimationShortcuts, bool);
192  vtkGetMacro(ShowAnimationShortcuts, bool);
193  vtkBooleanMacro(ShowAnimationShortcuts, bool);
195 
197 
201  vtkSetMacro(ResetDisplayEmptyViews, bool);
202  vtkGetMacro(ResetDisplayEmptyViews, bool);
203  vtkBooleanMacro(ResetDisplayEmptyViews, bool);
205 
207 
210  vtkSetMacro(RealNumberDisplayedNotation, int);
211  vtkGetMacro(RealNumberDisplayedNotation, int);
213 
215 
218  vtkSetMacro(RealNumberDisplayedShortestAccuratePrecision, bool);
219  vtkGetMacro(RealNumberDisplayedShortestAccuratePrecision, bool);
221 
223 
226  vtkSetMacro(RealNumberDisplayedPrecision, int);
227  vtkGetMacro(RealNumberDisplayedPrecision, int);
229 
231 
234  vtkSetMacro(FullNotationLowExponent, int);
235  vtkGetMacro(FullNotationLowExponent, int);
237 
239 
242  vtkSetMacro(FullNotationHighExponent, int);
243  vtkGetMacro(FullNotationHighExponent, int);
245 
247 
250  vtkSetMacro(InheritRepresentationProperties, bool);
251  vtkGetMacro(InheritRepresentationProperties, bool);
252  vtkBooleanMacro(InheritRepresentationProperties, bool);
254 
256 
261  vtkSetMacro(IgnoreNegativeLogAxisWarning, bool);
262  vtkGetMacro(IgnoreNegativeLogAxisWarning, bool);
263  vtkBooleanMacro(IgnoreNegativeLogAxisWarning, bool);
265 
266  enum
267  {
268  ALL_IN_ONE = 0,
269  SEPARATE_DISPLAY_PROPERTIES = 1,
270  SEPARATE_VIEW_PROPERTIES = 2,
271  ALL_SEPARATE = 3
272  };
274 
277  vtkSetMacro(PropertiesPanelMode, int);
278  vtkGetMacro(PropertiesPanelMode, int);
280 
282  {
283  DEFAULT = 0,
284  EXPAND_ALL = 1,
285  COLLAPSE_ALL = 2
286  };
288 
292  vtkSetMacro(CollapsePropertyGroups, int);
293  vtkGetMacro(CollapsePropertyGroups, int);
295 
297 
300  vtkSetMacro(LockPanels, bool);
301  vtkGetMacro(LockPanels, bool);
303 
305 
308  vtkSetMacro(LoadAllVariables, bool);
309  vtkGetMacro(LoadAllVariables, bool);
310  vtkBooleanMacro(LoadAllVariables, bool);
312 
314 
317  vtkSetMacro(LoadNoChartVariables, bool);
318  vtkGetMacro(LoadNoChartVariables, bool);
319  vtkBooleanMacro(LoadNoChartVariables, bool);
321 
323 
326  vtkSetClampMacro(GUIFontSize, int, 8, VTK_INT_MAX);
327  vtkGetMacro(GUIFontSize, int);
329 
331 
334  vtkSetMacro(GUIOverrideFont, bool);
335  vtkGetMacro(GUIOverrideFont, bool);
337 
339 
342  vtkSetMacro(ColorByBlockColorsOnApply, bool);
343  vtkGetMacro(ColorByBlockColorsOnApply, bool);
345 
347 
350  vtkSetMacro(EnableStreaming, bool);
351  vtkGetMacro(EnableStreaming, bool);
352  vtkBooleanMacro(EnableStreaming, bool);
354 
356 
359  void SetUseAcceleratedFilters(bool);
360  bool GetUseAcceleratedFilters();
361  vtkBooleanMacro(UseAcceleratedFilters, bool);
363 
365 
369  vtkSetMacro(EnableThreadedUpdate, bool);
370  vtkGetMacro(EnableThreadedUpdate, bool);
371  vtkBooleanMacro(EnableThreadedUpdate, bool);
373 
375 
379  vtkGetMacro(SelectOnClickMultiBlockInspector, bool);
380  vtkSetMacro(SelectOnClickMultiBlockInspector, bool);
382 
384 
387  static int GetNumberOfCallbackThreads();
388  static void SetNumberOfCallbackThreads(int);
390 
392 
395  static int GetNumberOfSMPThreads();
396  static void SetNumberOfSMPThreads(int);
398 
399 protected:
400  vtkPVGeneralSettings() = default;
401  ~vtkPVGeneralSettings() override = default;
402 
403 private:
405  void operator=(const vtkPVGeneralSettings&) = delete;
406 
408 
409  int BlockColorsDistinctValues = 7;
410  bool AutoApply = false;
411  int AutoApplyDelay = 0;
412  bool AutoApplyActiveOnly = false;
413  bool PreservePropertyValues = false;
414  std::string DefaultViewType = "RenderView";
415  std::string InterfaceLanguage = "en";
416  int ScalarBarMode = AUTOMATICALLY_HIDE_SCALAR_BARS;
417  bool CacheGeometryForAnimation = false;
418  unsigned long AnimationGeometryCacheLimit = 0;
419  int AnimationTimeNotation = MIXED;
420  bool AnimationTimeShortestAccuratePrecision = false;
421  int AnimationTimePrecision = 6;
422  bool ShowAnimationShortcuts = false;
423  int RealNumberDisplayedNotation = MIXED;
424  bool RealNumberDisplayedShortestAccuratePrecision = false;
425  int RealNumberDisplayedPrecision = 6;
426  int FullNotationLowExponent = -6;
427  int FullNotationHighExponent = 20;
428  bool ResetDisplayEmptyViews = false;
429  int PropertiesPanelMode = ALL_IN_ONE;
430  bool LockPanels = false;
431  int CollapsePropertyGroups = CollapseState::DEFAULT;
432  int GUIFontSize = 0;
433  bool GUIOverrideFont = false;
434  bool ColorByBlockColorsOnApply = true;
435  bool EnableStreaming = false;
436  bool EnableThreadedUpdate = false;
437  bool SelectOnClickMultiBlockInspector = true;
438  bool AutoConvertProperties = false;
439  bool LoadAllVariables = false;
440  bool IgnoreNegativeLogAxisWarning = false;
441  bool InheritRepresentationProperties = false;
442  bool LoadNoChartVariables = false;
443 };
444 
445 #endif
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static vtkObject * New()
void operator=(const vtkObjectBase &)
object for general options.