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 
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 
285  vtkSetMacro(LockPanels, bool);
286  vtkGetMacro(LockPanels, bool);
288 
290 
293  vtkSetMacro(LoadAllVariables, bool);
294  vtkGetMacro(LoadAllVariables, bool);
295  vtkBooleanMacro(LoadAllVariables, bool);
297 
299 
302  vtkSetMacro(LoadNoChartVariables, bool);
303  vtkGetMacro(LoadNoChartVariables, bool);
304  vtkBooleanMacro(LoadNoChartVariables, bool);
306 
308 
311  vtkSetClampMacro(GUIFontSize, int, 8, VTK_INT_MAX);
312  vtkGetMacro(GUIFontSize, int);
314 
316 
319  vtkSetMacro(GUIOverrideFont, bool);
320  vtkGetMacro(GUIOverrideFont, bool);
322 
324 
327  vtkSetMacro(ColorByBlockColorsOnApply, bool);
328  vtkGetMacro(ColorByBlockColorsOnApply, bool);
330 
332 
335  vtkSetMacro(EnableStreaming, bool);
336  vtkGetMacro(EnableStreaming, bool);
337  vtkBooleanMacro(EnableStreaming, bool);
339 
341 
344  void SetUseAcceleratedFilters(bool);
345  bool GetUseAcceleratedFilters();
346  vtkBooleanMacro(UseAcceleratedFilters, bool);
348 
350 
354  vtkGetMacro(SelectOnClickMultiBlockInspector, bool);
355  vtkSetMacro(SelectOnClickMultiBlockInspector, bool);
357 
359 
362  static int GetNumberOfCallbackThreads();
363  static void SetNumberOfCallbackThreads(int);
365 
367 
370  static int GetNumberOfSMPThreads();
371  static void SetNumberOfSMPThreads(int);
373 
374 protected:
375  vtkPVGeneralSettings() = default;
376  ~vtkPVGeneralSettings() override = default;
377 
378 private:
380  void operator=(const vtkPVGeneralSettings&) = delete;
381 
383 
384  int BlockColorsDistinctValues = 7;
385  bool AutoApply = false;
386  int AutoApplyDelay = 0;
387  bool AutoApplyActiveOnly = false;
388  bool PreservePropertyValues = false;
389  std::string DefaultViewType = "RenderView";
390  std::string InterfaceLanguage = "en";
391  int ScalarBarMode = AUTOMATICALLY_HIDE_SCALAR_BARS;
392  bool CacheGeometryForAnimation = false;
393  unsigned long AnimationGeometryCacheLimit = 0;
394  int AnimationTimeNotation = MIXED;
395  bool AnimationTimeShortestAccuratePrecision = false;
396  int AnimationTimePrecision = 6;
397  bool ShowAnimationShortcuts = false;
398  int RealNumberDisplayedNotation = MIXED;
399  bool RealNumberDisplayedShortestAccuratePrecision = false;
400  int RealNumberDisplayedPrecision = 6;
401  int FullNotationLowExponent = -6;
402  int FullNotationHighExponent = 20;
403  bool ResetDisplayEmptyViews = false;
404  int PropertiesPanelMode = ALL_IN_ONE;
405  bool LockPanels = false;
406  int GUIFontSize = 0;
407  bool GUIOverrideFont = false;
408  bool ColorByBlockColorsOnApply = true;
409  bool EnableStreaming = false;
410  bool SelectOnClickMultiBlockInspector = true;
411  bool AutoConvertProperties = false;
412  bool LoadAllVariables = false;
413  bool IgnoreNegativeLogAxisWarning = false;
414  bool InheritRepresentationProperties = false;
415  bool LoadNoChartVariables = false;
416 };
417 
418 #endif
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTKREMOTINGSETTINGS_EXPORT
static vtkObject * New()
void operator=(const vtkObjectBase &)
object for general options.