ParaView
vtkPVRenderViewSettings.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVRenderViewSettings.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 vtkPVRenderViewSettings_h
27 #define vtkPVRenderViewSettings_h
28 
29 #include "vtkObject.h"
30 #include "vtkPVClientServerCoreRenderingModule.h" //needed for exports
31 #include "vtkSmartPointer.h" // needed for vtkSmartPointer
32 
33 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkPVRenderViewSettings : public vtkObject
34 {
35 public:
36  static vtkPVRenderViewSettings* New();
37  vtkTypeMacro(vtkPVRenderViewSettings, vtkObject);
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
43  static vtkPVRenderViewSettings* GetInstance();
44 
48  void SetUseDisplayLists(bool val);
49 
50  enum
51  {
52  DO_NOTHING = 0,
53  OFFSET_FACES = 1,
54  OFFSET_LINES_AND_VERTS = 2,
55  ZSHIFT = 3
56  };
57 
59 
62  void SetResolveCoincidentTopology(int mode);
63  void SetPolygonOffsetParameters(double factor, double units);
64  void SetZShift(double a);
66 
68 
72  vtkSetMacro(OutlineThreshold, vtkIdType);
73  vtkGetMacro(OutlineThreshold, vtkIdType);
75 
77 
82  vtkSetMacro(PointPickingRadius, int);
83  vtkGetMacro(PointPickingRadius, int);
85 
87 
90  vtkSetMacro(DisableIceT, bool);
91  vtkGetMacro(DisableIceT, bool);
93 
94 protected:
97 
98  vtkIdType OutlineThreshold;
101 
102 private:
103  vtkPVRenderViewSettings(const vtkPVRenderViewSettings&) VTK_DELETE_FUNCTION;
104  void operator=(const vtkPVRenderViewSettings&) VTK_DELETE_FUNCTION;
105 
106  static vtkSmartPointer<vtkPVRenderViewSettings> Instance;
107 };
108 
109 #endif
singleton used to keep track of options for vtkPVRenderView.