20 #ifndef vtkGridAxes3DActor_h 21 #define vtkGridAxes3DActor_h 23 #include "vtkPVVTKExtensionsDefaultModule.h" 24 #include "vtkProp3D.h" 28 #include "vtkStdString.h" 33 class vtkTextProperty;
40 void PrintSelf(ostream& os, vtkIndent indent);
45 virtual void ShallowCopy(vtkProp* prop);
53 vtkSetVector6Macro(GridBounds,
double);
54 vtkGetVector6Macro(GridBounds,
double);
78 virtual void SetFaceMask(
unsigned int mask);
79 vtkGetMacro(FaceMask,
unsigned int);
96 virtual void SetLabelMask(
unsigned int mask);
97 unsigned int GetLabelMask();
105 vtkSetMacro(LabelUniqueEdgesOnly,
bool);
106 vtkGetMacro(LabelUniqueEdgesOnly,
bool);
113 void SetGenerateGrid(
bool val);
114 bool GetGenerateGrid();
115 vtkBooleanMacro(GenerateGrid,
bool);
123 void SetGenerateEdges(
bool val);
124 bool GetGenerateEdges();
125 vtkBooleanMacro(GenerateEdges,
bool);
133 void SetGenerateTicks(
bool val);
134 bool GetGenerateTicks();
135 vtkBooleanMacro(GenerateTicks,
bool);
142 void SetProperty(vtkProperty*);
143 vtkProperty* GetProperty();
154 void SetTitleTextProperty(
int axis, vtkTextProperty*);
158 vtkTextProperty* GetTitleTextProperty(
int axis);
166 void SetTitle(
int axis,
const vtkStdString& title);
167 void SetXTitle(
const vtkStdString& title) { this->SetTitle(0, title); }
168 void SetYTitle(
const vtkStdString& title) { this->SetTitle(1, title); }
169 void SetZTitle(
const vtkStdString& title) { this->SetTitle(2, title); }
170 const vtkStdString& GetTitle(
int axis);
177 void SetUseCustomLabels(
int axis,
bool val);
182 void SetNumberOfLabels(
int axis, vtkIdType val);
187 void SetLabel(
int axis, vtkIdType index,
double value);
188 void SetXLabel(vtkIdType index,
double value) { this->SetLabel(0, index, value); }
189 void SetYLabel(vtkIdType index,
double value) { this->SetLabel(1, index, value); }
190 void SetZLabel(vtkIdType index,
double value) { this->SetLabel(2, index, value); }
200 void SetLabelTextProperty(
int axis, vtkTextProperty*);
204 vtkTextProperty* GetLabelTextProperty(
int axis);
212 void SetNotation(
int axis,
int notation);
216 int GetNotation(
int axis);
223 void SetPrecision(
int axis,
int val);
227 int GetPrecision(
int axis);
238 void SetEnableLayerSupport(
bool val);
239 bool GetEnableLayerSupport();
240 vtkBooleanMacro(EnableLayerSupport,
bool);
248 void SetBackgroundLayer(
int val);
249 int GetBackgroundLayer();
257 void SetGeometryLayer(
int val);
258 int GetGeometryLayer();
266 void SetForegroundLayer(
int val);
267 int GetForegroundLayer();
277 virtual double* GetBounds();
279 virtual int RenderOpaqueGeometry(vtkViewport*);
280 virtual int RenderTranslucentPolygonalGeometry(vtkViewport* viewport);
281 virtual int RenderOverlay(vtkViewport* viewport);
282 virtual int HasTranslucentPolygonalGeometry();
283 virtual void ReleaseGraphicsResources(vtkWindow*);
289 virtual void Update(vtkViewport* viewport);
291 double GridBounds[6];
305 vtkMTimeType GetBoundsMTime;
void SetNumberOfXLabels(vtkIdType val)
void SetYLabelTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
void SetYUseCustomLabels(bool val)
void SetZNotation(int notation)
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
void SetNumberOfZLabels(vtkIdType val)
FaceMasks
Values for FaceMask.
vtkTuple< vtkNew< vtkDoubleArray >, 3 > CustomLabels
void SetXTitle(const vtkStdString &title)
Get/Set the text to use for titles for the axis.
void SetXUseCustomLabels(bool val)
void SetYLabel(vtkIdType index, double value)
void SetYNotation(int notation)
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
void SetZLabel(vtkIdType index, double value)
void SetXLabel(vtkIdType index, double value)
void SetYTitleTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty for the title for each the axes.
void SetZPrecision(int val)
Get/set the numerical precision to use, default is 2.
void SetZUseCustomLabels(bool val)
vtkMTimeType CustomLabelsMTime
void SetXLabelTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
void SetXNotation(int notation)
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
vtkTuple< bool, 3 > UseCustomLabels
vtkTuple< vtkNew< vtkGridAxes2DActor >, 6 > GridAxes2DActors
bool LabelUniqueEdgesOnly
void SetZTitleTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty for the title for each the axes.
void SetZTitle(const vtkStdString &title)
Get/Set the text to use for titles for the axis.
void SetXPrecision(int val)
Get/set the numerical precision to use, default is 2.
void SetZLabelTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
void SetXTitleTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty for the title for each the axes.
void SetYPrecision(int val)
Get/set the numerical precision to use, default is 2.
void SetNumberOfYLabels(vtkIdType val)
void SetYTitle(const vtkStdString &title)
Get/Set the text to use for titles for the axis.