20 #ifndef vtkGridAxes2DActor_h 21 #define vtkGridAxes2DActor_h 23 #include "vtkPVVTKExtensionsDefaultModule.h" 24 #include "vtkProp3D.h" 29 #include "vtkSmartPointer.h" 30 #include "vtkStdString.h" 33 class vtkContextScene;
36 class vtkTextProperty;
43 void PrintSelf(ostream& os, vtkIndent indent);
51 vtkSetVector6Macro(GridBounds,
double);
52 vtkGetVector6Macro(GridBounds,
double);
70 vtkSetClampMacro(Face,
int, MIN_YZ, MAX_XY);
71 vtkGetMacro(Face,
int);
91 vtkSetMacro(LabelMask,
unsigned int);
92 vtkGetMacro(LabelMask,
unsigned int);
103 vtkSetMacro(EnableLayerSupport,
bool);
104 vtkGetMacro(EnableLayerSupport,
bool);
105 vtkBooleanMacro(EnableLayerSupport,
bool);
113 vtkSetMacro(BackgroundLayer,
int);
114 vtkGetMacro(BackgroundLayer,
int);
122 vtkSetMacro(GeometryLayer,
int);
123 vtkGetMacro(GeometryLayer,
int);
131 vtkSetMacro(ForegroundLayer,
int);
132 vtkGetMacro(ForegroundLayer,
int);
139 void SetProperty(vtkProperty*);
140 vtkProperty* GetProperty();
148 void SetTitleTextProperty(
int axis, vtkTextProperty*);
149 vtkTextProperty* GetTitleTextProperty(
int axis);
157 void SetLabelTextProperty(
int axis, vtkTextProperty*);
158 vtkTextProperty* GetLabelTextProperty(
int axis);
165 void SetTitle(
int axis,
const vtkStdString& title);
166 const vtkStdString& GetTitle(
int axis);
174 void SetNotation(
int axis,
int notation);
175 int GetNotation(
int axis);
182 void SetPrecision(
int axis,
int val);
183 int GetPrecision(
int axis);
191 void SetCustomTickPositions(
int axis, vtkDoubleArray* positions);
202 vtkBooleanMacro(GenerateGrid,
bool);
210 vtkBooleanMacro(GenerateEdges,
bool);
216 vtkBooleanMacro(GenerateTicks,
bool);
228 this->GetGridBounds(this->Bounds);
233 virtual int RenderOpaqueGeometry(vtkViewport*);
234 virtual int RenderTranslucentPolygonalGeometry(vtkViewport* viewport);
235 virtual int RenderOverlay(vtkViewport* viewport);
236 virtual int HasTranslucentPolygonalGeometry();
237 virtual void ReleaseGraphicsResources(vtkWindow*);
242 vtkMTimeType GetMTime();
248 bool Update(vtkViewport* viewport);
249 void UpdateTextProperties(vtkViewport* viewport);
250 void UpdateLabelPositions(vtkViewport* viewport);
251 void UpdateTextActors(vtkViewport* viewport);
269 vtkNew<vtkAxis> AxisHelpers[3];
279 friend class vtkLabels;
vtkTimeStamp UpdateLabelTextPropertiesMTime
vtkTuple< vtkStdString, 3 > Titles
vtkNew< vtkGridAxesHelper > Helper
vtkTuple< vtkSmartPointer< vtkTextProperty >, 3 > TitleTextProperty
vtkSmartPointer< vtkGridAxesPlane2DActor > PlaneActor
vtkTuple< vtkSmartPointer< vtkTextProperty >, 3 > LabelTextProperty
void SetGenerateGrid(bool val)
Turn off to not generate polydata for the plane's grid.
void SetGenerateTicks(bool val)
LabelMasks
Valid values for LabelMask.
void SetGenerateEdges(bool val)
Turn off to not generate the polydata for the plane's edges.
virtual double * GetBounds()
Returns the prop bounds.
vtkNew< vtkContextScene > AxisHelperScene