vtkPVRenderViewSettings.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkPVRenderViewSettings_h
15 #define vtkPVRenderViewSettings_h
16 
17 #include "vtkObject.h"
18 #include "vtkRemotingViewsModule.h" //needed for exports
19 #include "vtkSmartPointer.h" // needed for vtkSmartPointer
20 
22 {
23 public:
24  static vtkPVRenderViewSettings* New();
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
31  static vtkPVRenderViewSettings* GetInstance();
32 
33  enum
34  {
35  DO_NOTHING = 0,
36  OFFSET_FACES = 1,
37  OFFSET_LINES_AND_VERTS = 2,
38  ZSHIFT = 3
39  };
40 
42 
45  void SetResolveCoincidentTopology(int mode);
46  void SetPolygonOffsetParameters(double factor, double units);
47  void SetLineOffsetParameters(double factor, double units);
48  void SetPointOffsetParameter(double units);
49  void SetZShift(double a);
51 
53 
57  vtkSetMacro(OutlineThreshold, vtkIdType);
58  vtkGetMacro(OutlineThreshold, vtkIdType);
60 
62 
66  vtkSetMacro(TwoSidedLighting, bool);
67  vtkGetMacro(TwoSidedLighting, bool);
69 
70  enum
71  {
72  AUTOMATIC = 0,
73  ALWAYS_2D = 1,
74  ALWAYS_3D = 2
75  };
77 
80  vtkSetMacro(DefaultInteractionMode, int);
81  vtkGetMacro(DefaultInteractionMode, int);
83 
85 
90  vtkSetMacro(PointPickingRadius, int);
91  vtkGetMacro(PointPickingRadius, int);
93 
95 
98  vtkSetMacro(DisableIceT, bool);
99  vtkGetMacro(DisableIceT, bool);
101 
103 
109  vtkSetMacro(EnableFastPreselection, bool);
110  vtkGetMacro(EnableFastPreselection, bool);
112 
114 
118  vtkSetMacro(GrowSelectionRemoveSeed, bool);
119  vtkGetMacro(GrowSelectionRemoveSeed, bool);
121 
123 
127  vtkSetMacro(GrowSelectionRemoveIntermediateLayers, bool);
128  vtkGetMacro(GrowSelectionRemoveIntermediateLayers, bool);
130 
132 
135  vtkSetVector3Macro(BackgroundColor, double);
136  vtkGetVector3Macro(BackgroundColor, double);
137  vtkSetVector3Macro(Background2Color, double);
138  vtkGetVector3Macro(Background2Color, double);
139  vtkSetMacro(BackgroundColorMode, int);
140  vtkGetMacro(BackgroundColorMode, int);
142 
144 
150  vtkSetMacro(ZoomClosestOffsetRatio, double);
151  vtkGetMacro(ZoomClosestOffsetRatio, double);
153 
154 protected:
156  ~vtkPVRenderViewSettings() override;
157 
160  bool TwoSidedLighting = true;
164  bool GrowSelectionRemoveSeed = false;
165  bool GrowSelectionRemoveIntermediateLayers = false;
166 
167  double BackgroundColor[3];
168  double Background2Color[3];
171 
172 private:
174  void operator=(const vtkPVRenderViewSettings&) = delete;
175 
177 };
178 
179 #endif
#define VTKREMOTINGVIEWS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
int vtkIdType
singleton used to keep track of options for vtkPVRenderView.
static vtkObject * New()
void operator=(const vtkObjectBase &)