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 
42  void SetAutoConvertProperties(bool val);
43  bool GetAutoConvertProperties();
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 
89  vtkGetMacro(DefaultViewType, std::string);
90  vtkSetMacro(DefaultViewType, std::string);
92 
94 
98  vtkGetMacro(InterfaceLanguage, std::string);
99  vtkSetMacro(InterfaceLanguage, std::string);
101 
105  enum
106  {
109  DEFAULT_TIME_STEP_LAST
110  };
111 
113 
116  enum
117  {
118  AUTOMATICALLY_SHOW_AND_HIDE_SCALAR_BARS = 0,
119  AUTOMATICALLY_HIDE_SCALAR_BARS = 1,
120  MANUAL_SCALAR_BARS = 2
121  };
122  vtkGetMacro(ScalarBarMode, int);
123  void SetScalarBarMode(int);
125 
127 
130  void SetCacheGeometryForAnimation(bool val);
131  bool GetCacheGeometryForAnimation();
133 
135 
138  void SetAnimationGeometryCacheLimit(unsigned long val);
139  vtkGetMacro(AnimationGeometryCacheLimit, unsigned long);
141 
143  {
144  MIXED = 0,
147  FULL
148  };
149 
151 
155  vtkSetMacro(AnimationTimeNotation, int);
156  vtkGetMacro(AnimationTimeNotation, int);
158 
160 
163  vtkSetMacro(AnimationTimeShortestAccuratePrecision, bool);
164  vtkGetMacro(AnimationTimeShortestAccuratePrecision, bool);
166 
168 
171  vtkSetMacro(AnimationTimePrecision, int);
172  vtkGetMacro(AnimationTimePrecision, int);
174 
176 
179  vtkSetMacro(ShowAnimationShortcuts, bool);
180  vtkGetMacro(ShowAnimationShortcuts, bool);
181  vtkBooleanMacro(ShowAnimationShortcuts, bool);
183 
185 
189  vtkSetMacro(ResetDisplayEmptyViews, bool);
190  vtkGetMacro(ResetDisplayEmptyViews, bool);
191  vtkBooleanMacro(ResetDisplayEmptyViews, bool);
193 
195 
198  vtkSetMacro(RealNumberDisplayedNotation, int);
199  vtkGetMacro(RealNumberDisplayedNotation, int);
201 
203 
206  vtkSetMacro(RealNumberDisplayedShortestAccuratePrecision, bool);
207  vtkGetMacro(RealNumberDisplayedShortestAccuratePrecision, bool);
209 
211 
214  vtkSetMacro(RealNumberDisplayedPrecision, int);
215  vtkGetMacro(RealNumberDisplayedPrecision, int);
217 
219 
222  vtkSetMacro(FullNotationLowExponent, int);
223  vtkGetMacro(FullNotationLowExponent, int);
225 
227 
230  vtkSetMacro(FullNotationHighExponent, int);
231  vtkGetMacro(FullNotationHighExponent, int);
233 
237  void SetInheritRepresentationProperties(bool val);
238 
239  // Description:
240  // When plotting data with nonpositive values, ignore the standard warning
241  // and draw only the data with positive values.
242  void SetIgnoreNegativeLogAxisWarning(bool val);
243  bool GetIgnoreNegativeLogAxisWarning();
244 
245  enum
246  {
247  ALL_IN_ONE = 0,
248  SEPARATE_DISPLAY_PROPERTIES = 1,
249  SEPARATE_VIEW_PROPERTIES = 2,
250  ALL_SEPARATE = 3
251  };
253 
256  vtkSetMacro(PropertiesPanelMode, int);
257  vtkGetMacro(PropertiesPanelMode, int);
259 
261 
264  vtkSetMacro(LockPanels, bool);
265  vtkGetMacro(LockPanels, bool);
267 
269 
272  void SetLoadAllVariables(bool val);
273  bool GetLoadAllVariables();
275 
277 
280  void SetLoadNoChartVariables(bool val);
281  bool GetLoadNoChartVariables();
283 
285 
288  vtkSetClampMacro(GUIFontSize, int, 8, VTK_INT_MAX);
289  vtkGetMacro(GUIFontSize, int);
291 
293 
296  vtkSetMacro(GUIOverrideFont, bool);
297  vtkGetMacro(GUIOverrideFont, bool);
299 
301 
304  vtkSetMacro(ColorByBlockColorsOnApply, bool);
305  vtkGetMacro(ColorByBlockColorsOnApply, bool);
307 
309 
312  void SetEnableStreaming(bool);
313  vtkGetMacro(EnableStreaming, bool);
314  vtkBooleanMacro(EnableStreaming, bool);
316 
318 
321  void SetUseAcceleratedFilters(bool);
322  bool GetUseAcceleratedFilters();
323  vtkBooleanMacro(UseAcceleratedFilters, bool);
325 
327 
331  vtkGetMacro(SelectOnClickMultiBlockInspector, bool);
332  vtkSetMacro(SelectOnClickMultiBlockInspector, bool);
334 
336 
339  static int GetNumberOfCallbackThreads();
340  static void SetNumberOfCallbackThreads(int);
342 
344 
347  static int GetNumberOfSMPThreads();
348  static void SetNumberOfSMPThreads(int);
350 
351 protected:
352  vtkPVGeneralSettings() = default;
353  ~vtkPVGeneralSettings() override = default;
354 
355  int BlockColorsDistinctValues = 7;
356  bool AutoApply = false;
357  int AutoApplyDelay = 0;
358  bool AutoApplyActiveOnly = false;
359  std::string DefaultViewType = "RenderView";
360  std::string InterfaceLanguage = "en";
361  int ScalarBarMode = AUTOMATICALLY_HIDE_SCALAR_BARS;
362  bool CacheGeometryForAnimation = false;
363  unsigned long AnimationGeometryCacheLimit = 0;
364  int AnimationTimeNotation = MIXED;
365  bool AnimationTimeShortestAccuratePrecision = false;
366  int AnimationTimePrecision = 6;
367  bool ShowAnimationShortcuts = false;
368  int RealNumberDisplayedNotation = MIXED;
369  bool RealNumberDisplayedShortestAccuratePrecision = false;
370  int RealNumberDisplayedPrecision = 6;
371  int FullNotationLowExponent = -6;
372  int FullNotationHighExponent = 20;
373  bool ResetDisplayEmptyViews = false;
374  int PropertiesPanelMode = ALL_IN_ONE;
375  bool LockPanels = false;
376  int GUIFontSize = 0;
377  bool GUIOverrideFont = false;
378  bool ColorByBlockColorsOnApply = true;
379  bool EnableStreaming = false;
380  bool SelectOnClickMultiBlockInspector = true;
381 
382 private:
384  void operator=(const vtkPVGeneralSettings&) = delete;
385 
387 };
388 
389 #endif
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTKREMOTINGSETTINGS_EXPORT
static vtkObject * New()
void operator=(const vtkObjectBase &)
object for general options.