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);
303 vtkSetMacro(ForceOpaque,
bool);
304 vtkGetMacro(ForceOpaque,
bool);
305 vtkBooleanMacro(ForceOpaque,
bool);
351 double GridBounds[6] = { -1.0, 1.0, -1.0, 1.0, -1.0, 1.0 };
352 unsigned int FaceMask = 0;
353 bool LabelUniqueEdgesOnly =
true;
360 bool ForceOpaque =
false;
dynamic, self-adjusting array of double
actor for an axes plane in a 3D view.
vtkTextProperty * GetZLabelTextProperty()
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
void SetLabel(int axis, vtkIdType index, double value)
Set whether the specified axis should use custom labels instead of automatically determined ones.
virtual void Update(vtkViewport *viewport)
void SetPrecision(int axis, int val)
Get/set the numerical precision to use, default is 2.
vtkTextProperty * GetZTitleTextProperty()
Get/Set the vtkTextProperty for the title for each the axes.
vtkTextProperty * GetYTitleTextProperty()
Get/Set the vtkTextProperty for the title for each the axes.
virtual void SetLabelDisplayOffset(int xoffset, int yoffset)
Set/Get the label display offset.
int GetZNotation()
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
vtkIdType GetNumberOfYLabels()
Set whether the specified axis should use custom labels instead of automatically determined ones.
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.
double GetYLabel(vtkIdType index)
Set whether the specified axis should use custom labels instead of automatically determined ones.
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.
int GetXNotation()
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
int GetYNotation()
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
const std::string & GetXTitle()
Get/Set the text to use for titles for the axis.
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).
double GetLabel(int axis, vtkIdType index)
Set whether the specified axis should use custom labels instead of automatically determined ones.
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.
bool GetYUseCustomLabels()
Set whether the specified axis should use custom labels instead of automatically determined ones.
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.
double GetXLabel(vtkIdType index)
Set whether the specified axis should use custom labels instead of automatically determined ones.
void SetXTitleTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty for the title for each the axes.
bool GetUseCustomLabels(int axis)
Set whether the specified axis should use custom labels instead of automatically determined ones.
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 ...
vtkTextProperty * GetXTitleTextProperty()
Get/Set the vtkTextProperty for the title for each the axes.
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.
vtkIdType GetNumberOfZLabels()
Set whether the specified axis should use custom labels instead of automatically determined ones.
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.
int GetYPrecision()
Get/set the numerical precision to use, default is 2.
vtkIdType GetNumberOfLabels(int axis)
Set whether the specified axis should use custom labels instead of automatically determined ones.
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.
const std::string & GetZTitle()
Get/Set the text to use for titles for the axis.
const std::string & GetYTitle()
Get/Set the text to use for titles for the axis.
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 GetXPrecision()
Get/set the numerical precision to use, default is 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.
bool GetXUseCustomLabels()
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.
vtkTextProperty * GetXLabelTextProperty()
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.
vtkTextProperty * GetYLabelTextProperty()
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
double GetZLabel(vtkIdType index)
Set whether the specified axis should use custom labels instead of automatically determined ones.
vtkIdType GetNumberOfXLabels()
Set whether the specified axis should use custom labels instead of automatically determined ones.
void SetYLabel(vtkIdType index, double value)
Set whether the specified axis should use custom labels instead of automatically determined ones.
bool GetZUseCustomLabels()
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.
int GetZPrecision()
Get/set the numerical precision to use, default is 2.
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
void GetBounds(double bounds[6])
Return a reference to the Prop3D's composite transform.
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(...)