ParaView
vtkPVGeneralSettings.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVGeneralSettings.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef vtkPVGeneralSettings_h
27 #define vtkPVGeneralSettings_h
28 
29 #include "vtkObject.h"
30 #include "vtkPVServerManagerDefaultModule.h" //needed for exports
31 #include "vtkSmartPointer.h" // needed for vtkSmartPointer.
32 
33 class VTKPVSERVERMANAGERDEFAULT_EXPORT vtkPVGeneralSettings : public vtkObject
34 {
35 public:
36  static vtkPVGeneralSettings* New();
37  vtkTypeMacro(vtkPVGeneralSettings, vtkObject);
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
43  static vtkPVGeneralSettings* GetInstance();
44 
46 
52  void SetAutoConvertProperties(bool val);
53  bool GetAutoConvertProperties();
55 
57 
63  vtkGetMacro(BlockColorsDistinctValues, int);
64  vtkSetMacro(BlockColorsDistinctValues, int);
66 
68 
71  vtkGetMacro(AutoApply, bool);
72  vtkSetMacro(AutoApply, bool);
74 
76 
79  vtkGetMacro(AutoApplyActiveOnly, bool);
80  vtkSetMacro(AutoApplyActiveOnly, bool);
82 
84 
87  void SetEnableAutoMPI(bool);
88  bool GetEnableAutoMPI();
90 
92 
95  void SetAutoMPILimit(int val);
96  int GetAutoMPILimit();
98 
100 
103  vtkGetStringMacro(DefaultViewType);
104  vtkSetStringMacro(DefaultViewType);
106 
110  enum
111  {
114  DEFAULT_TIME_STEP_LAST
115  };
116 
120  enum
121  {
122  GROW_ON_APPLY = 0,
123  GROW_ON_APPLY_AND_TIMESTEP = 1,
124  RESET_ON_APPLY = 2,
125  RESET_ON_APPLY_AND_TIMESTEP = 3
126  };
127 
129 
132  vtkGetMacro(TransferFunctionResetMode, int);
133  vtkSetMacro(TransferFunctionResetMode, int);
135 
137 
140  enum
141  {
142  AUTOMATICALLY_SHOW_AND_HIDE_SCALAR_BARS = 0,
143  AUTOMATICALLY_HIDE_SCALAR_BARS = 1,
144  MANUAL_SCALAR_BARS = 2
145  };
146  vtkGetMacro(ScalarBarMode, int);
147  void SetScalarBarMode(int);
149 
151 
154  void SetCacheGeometryForAnimation(bool val);
155  vtkGetMacro(CacheGeometryForAnimation, bool);
157 
159 
162  void SetAnimationGeometryCacheLimit(unsigned long val);
163  vtkGetMacro(AnimationGeometryCacheLimit, unsigned long);
165 
167 
170  vtkSetMacro(AnimationTimePrecision, int);
171  vtkGetMacro(AnimationTimePrecision, int);
173 
177  void SetInheritRepresentationProperties(bool val);
178 
179  enum
180  {
181  ALL_IN_ONE = 0,
182  SEPARATE_DISPLAY_PROPERTIES = 1,
183  SEPARATE_VIEW_PROPERTIES = 2,
184  ALL_SEPARATE = 3
185  };
187 
190  vtkSetMacro(PropertiesPanelMode, int);
191  vtkGetMacro(PropertiesPanelMode, int);
193 
195 
198  vtkSetMacro(LockPanels, bool);
199  vtkGetMacro(LockPanels, bool);
201 
203 
206  void SetMultiViewImageBorderColor(double r, double g, double b);
207  void SetMultiViewImageBorderWidth(int width);
209 
213  void SetTransparentBackground(bool val);
214 
216 
219  void SetLoadAllVariables(bool val);
220  bool GetLoadAllVariables();
222 
224 
227  void SetLoadNoChartVariables(bool val);
228  bool GetLoadNoChartVariables();
230 
231 protected:
234 
236  bool AutoApply;
246 
247 private:
248  vtkPVGeneralSettings(const vtkPVGeneralSettings&) VTK_DELETE_FUNCTION;
249  void operator=(const vtkPVGeneralSettings&) VTK_DELETE_FUNCTION;
250 
251  static vtkSmartPointer<vtkPVGeneralSettings> Instance;
252 };
253 
254 #endif
unsigned long AnimationGeometryCacheLimit
object for general options.