17#ifndef vtkGridAxesActor3D_h
18#define vtkGridAxesActor3D_h
21#include "vtkRenderingGridAxesModule.h"
29VTK_ABI_NAMESPACE_BEGIN
53 vtkSetVector6Macro(GridBounds,
double);
54 vtkGetVector6Macro(GridBounds,
double);
66 vtkGetMacro(FaceMask,
unsigned int);
102 vtkSetMacro(LabelUniqueEdgesOnly,
bool);
103 vtkGetMacro(LabelUniqueEdgesOnly,
bool);
114 vtkBooleanMacro(GenerateGrid,
bool);
126 vtkBooleanMacro(GenerateEdges,
bool);
138 vtkBooleanMacro(GenerateTicks,
bool);
172 void SetXTitle(
const std::string& title) { this->SetTitle(0, title); }
173 void SetYTitle(
const std::string& title) { this->SetTitle(1, title); }
174 void SetZTitle(
const std::string& title) { this->SetTitle(2, title); }
261 using Superclass::GetBounds;
276 vtkSetMacro(ForceOpaque,
bool);
277 vtkGetMacro(ForceOpaque,
bool);
278 vtkBooleanMacro(ForceOpaque,
bool);
324 double GridBounds[6] = { -1.0, 1.0, -1.0, 1.0, -1.0, 1.0 };
325 unsigned int FaceMask = 0;
326 bool LabelUniqueEdgesOnly =
true;
333 bool ForceOpaque =
false;
dynamic, self-adjusting array of double
actor for an axes plane in a 3D view.
actor for a cube-axes like prop in the 3D view.
void SetLabel(int axis, vtkIdType index, double value)
Set whether the specified axis should use custom labels instead of automatically determined ones.
void SetPrecision(int axis, int val)
Get/set the numerical precision to use, default is 2.
virtual void SetLabelDisplayOffset(int xoffset, int yoffset)
Set/Get the label display offset.
virtual void SetFaceMask(unsigned int mask)
Set the mask to select faces.
int RenderOpaqueGeometry(vtkViewport *) override
Standard render methods for different types of geometry.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetLabelTextProperty(int axis, vtkTextProperty *)
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
int GetPrecision(int axis)
Get/set the numerical precision to use, default is 2.
void SetYTitle(const std::string &title)
Get/Set the text to use for titles for the axis.
void SetZNotation(int notation)
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
void SetZTitleTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty for the title for each the axes.
vtkProperty * GetProperty()
Get/Set the property used to control the appearance of the rendered grid.
void SetZLabel(vtkIdType index, double value)
Set whether the specified axis should use custom labels instead of automatically determined ones.
void SetYUseCustomLabels(bool val)
Set whether the specified axis should use custom labels instead of automatically determined ones.
void SetNumberOfZLabels(vtkIdType val)
Set whether the specified axis should use custom labels instead of automatically determined ones.
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Standard render methods for different types of geometry.
void SetGenerateGrid(bool val)
Turn off to not generate polydata for the plane's grid.
void SetZUseCustomLabels(bool val)
Set whether the specified axis should use custom labels instead of automatically determined ones.
void SetZLabelTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
int GetNotation(int axis)
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
vtkTextProperty * GetTitleTextProperty(int axis)
Get/Set the vtkTextProperty for the title for each the axes.
void SetTitleTextProperty(int axis, vtkTextProperty *)
Get/Set the vtkTextProperty for the title for each the axes.
void SetNumberOfLabels(int axis, vtkIdType val)
Set whether the specified axis should use custom labels instead of automatically determined ones.
void SetUseCustomLabels(int axis, bool val)
Set whether the specified axis should use custom labels instead of automatically determined ones.
void GetActors(vtkPropCollection *) override
For some exporters and other other operations we must be able to collect all the actors or volumes.
const std::string & GetTitle(int axis)
Get/Set the text to use for titles for the axis.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this prop.
unsigned int GetLabelMask()
Set the axis to label.
virtual void SetLabelMask(unsigned int mask)
Set the axis to label.
void SetXTitleTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty for the title for each the axes.
bool GetGenerateEdges()
Turn off to not generate the polydata for the plane's edges.
void SetNumberOfXLabels(vtkIdType val)
Set whether the specified axis should use custom labels instead of automatically determined ones.
bool GetGenerateGrid()
Turn off to not generate polydata for the plane's grid.
void SetNotation(int axis, int notation)
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
double * GetBounds() override
Returns the prop bounds.
virtual int * GetLabelDisplayOffset()
Set/Get the label display offset.
virtual void GetRenderedBounds(double bounds[6])
Get an bounding box that is expected to contain all rendered elements, since GetBounds() returns the ...
void SetNumberOfYLabels(vtkIdType val)
Set whether the specified axis should use custom labels instead of automatically determined ones.
void SetProperty(vtkProperty *)
Get/Set the property used to control the appearance of the rendered grid.
void SetZTitle(const std::string &title)
Get/Set the text to use for titles for the axis.
virtual void SetLabelDisplayOffset(const int offset[2])
Set/Get the label display offset.
void SetTitle(int axis, const std::string &title)
Get/Set the text to use for titles for the axis.
void SetGenerateEdges(bool val)
Turn off to not generate the polydata for the plane's edges.
std::function< double(double)> GetTickLabelFunction(int axis)
Get/Set the function that will be applied to the tick label of each axis.
void SetXNotation(int notation)
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
static vtkGridAxesActor3D * New()
void ShallowCopy(vtkProp *prop) override
Shallow copy from another vtkGridAxesActor3D.
void SetXLabelTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
void UpdateGeometry(vtkViewport *vp)
Updates the billboard geometry without performing any rendering, to assist GetActors().
void SetYNotation(int notation)
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
int RenderOverlay(vtkViewport *viewport) override
Standard render methods for different types of geometry.
void SetXPrecision(int val)
Get/set the numerical precision to use, default is 2.
void SetXLabel(vtkIdType index, double value)
Set whether the specified axis should use custom labels instead of automatically determined ones.
vtkTextProperty * GetLabelTextProperty(int axis)
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
bool GetGenerateTicks()
Turn off to not generate the markers for the tick positions.
void SetXUseCustomLabels(bool val)
Set whether the specified axis should use custom labels instead of automatically determined ones.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Standard render methods for different types of geometry.
void SetYPrecision(int val)
Get/set the numerical precision to use, default is 2.
void SetGenerateTicks(bool val)
Turn off to not generate the markers for the tick positions.
void SetZPrecision(int val)
Get/set the numerical precision to use, default is 2.
void SetYLabel(vtkIdType index, double value)
Set whether the specified axis should use custom labels instead of automatically determined ones.
void SetTickLabelFunction(int axis, std::function< double(double)> func)
Get/Set the function that will be applied to the tick label of each axis.
void SetYTitleTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty for the title for each the axes.
void SetYLabelTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
void SetXTitle(const std::string &title)
Get/Set the text to use for titles for the axis.
a simple class to control print indentation
represents an 3D object for placement in a rendered scene
abstract superclass for all actors, volumes and annotations
represent surface properties of a geometric object
represent text properties.
templated base type for containers of constant size.
abstract specification for Viewports
window superclass for vtkRenderWindow
vtkTypeUInt32 vtkMTimeType
#define VTK_SIZEHINT(...)