17 #ifndef vtkGridAxesActor3D_h
18 #define vtkGridAxesActor3D_h
21 #include "vtkRenderingGridAxesModule.h"
29 VTK_ABI_NAMESPACE_BEGIN
53 vtkSetVector6Macro(GridBounds,
double);
54 vtkGetVector6Macro(GridBounds,
double);
65 virtual void SetFaceMask(
unsigned int mask);
66 vtkGetMacro(FaceMask,
unsigned int);
75 virtual void SetLabelMask(
unsigned int mask);
76 unsigned int GetLabelMask();
102 vtkSetMacro(LabelUniqueEdgesOnly,
bool);
103 vtkGetMacro(LabelUniqueEdgesOnly,
bool);
112 void SetGenerateGrid(
bool val);
113 bool GetGenerateGrid();
114 vtkBooleanMacro(GenerateGrid,
bool);
124 void SetGenerateEdges(
bool val);
125 bool GetGenerateEdges();
126 vtkBooleanMacro(GenerateEdges,
bool);
136 void SetGenerateTicks(
bool val);
137 bool GetGenerateTicks();
138 vtkBooleanMacro(GenerateTicks,
bool);
191 void SetUseCustomLabels(
int axis,
bool val);
195 bool GetUseCustomLabels(
int axis);
200 void SetNumberOfLabels(
int axis,
vtkIdType val);
244 void SetNotation(
int axis,
int notation);
248 int GetNotation(
int axis);
258 void SetPrecision(
int axis,
int val);
262 int GetPrecision(
int axis);
275 void SetTickLabelFunction(
int axis,
std::function<
double(
double)> func);
276 std::function<double(double)> GetTickLabelFunction(
int axis);
295 virtual void GetRenderedBounds(
double bounds[6]);
303 vtkSetMacro(ForceOpaque,
bool);
304 vtkGetMacro(ForceOpaque,
bool);
305 vtkBooleanMacro(ForceOpaque,
bool);
333 virtual void SetLabelDisplayOffset(
int xoffset,
int yoffset);
334 virtual void SetLabelDisplayOffset(
const int offset[2]);
336 VTK_WRAPEXCLUDE virtual
void GetLabelDisplayOffset(
int& xoffset,
int& yoffset);
342 ~vtkGridAxesActor3D() override;
347 vtkGridAxesActor3D(const vtkGridAxesActor3D&) = delete;
348 void operator=(const vtkGridAxesActor3D&) = delete;
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;
363 VTK_ABI_NAMESPACE_END
void SetYPrecision(int val)
Get/set the numerical precision to use, default is 2.
vtkIdType GetNumberOfXLabels()
Set whether the specified axis should use custom labels instead of automatically determined ones...
void SetXLabelTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
abstract superclass for all actors, volumes and annotations
vtkIdType GetNumberOfZLabels()
Set whether the specified axis should use custom labels instead of automatically determined ones...
vtkIdType GetNumberOfYLabels()
Set whether the specified axis should use custom labels instead of automatically determined ones...
vtkTextProperty * GetYTitleTextProperty()
Get/Set the vtkTextProperty for the title for each the axes.
const std::string & GetXTitle()
Get/Set the text to use for titles for the axis.
vtkTextProperty * GetZTitleTextProperty()
Get/Set the vtkTextProperty for the title for each the axes.
int GetXPrecision()
Get/set the numerical precision to use, default is 2.
void SetXNotation(int notation)
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
double * GetBounds() override=0
Return a reference to the Prop3D's composite transform.
vtkTypeUInt32 vtkMTimeType
abstract specification for Viewports
represent surface properties of a geometric object
void SetZTitle(const std::string &title)
Get/Set the text to use for titles for the axis.
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
virtual vtkTypeBool HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
virtual int RenderOverlay(vtkViewport *)
int GetZNotation()
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.
represents an 3D object for placement in a rendered scene
bool GetXUseCustomLabels()
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).
bool GetYUseCustomLabels()
Set whether the specified axis should use custom labels instead of automatically determined ones...
void SetNumberOfYLabels(vtkIdType val)
Set whether the specified axis should use custom labels instead of automatically determined ones...
dynamic, self-adjusting array of double
void SetXLabel(vtkIdType index, double value)
Set whether the specified axis should use custom labels instead of automatically determined ones...
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
virtual double * GetBounds()
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
window superclass for vtkRenderWindow
double GetYLabel(vtkIdType index)
Set whether the specified axis should use custom labels instead of automatically determined ones...
int GetYPrecision()
Get/set the numerical precision to use, default is 2.
actor for a cube-axes like prop in the 3D view.
void SetZNotation(int notation)
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
vtkTextProperty * GetYLabelTextProperty()
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
a simple class to control print indentation
int GetYNotation()
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
vtkTextProperty * GetXLabelTextProperty()
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
void SetNumberOfXLabels(vtkIdType val)
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...
void ShallowCopy(vtkProp *prop) override
Shallow copy of this vtkProp3D.
void SetZPrecision(int val)
Get/set the numerical precision to use, default is 2.
void SetXTitle(const std::string &title)
Get/Set the text to use for titles for the axis.
vtkTextProperty * GetXTitleTextProperty()
Get/Set the vtkTextProperty for the title for each the axes.
double GetXLabel(vtkIdType index)
Set whether the specified axis should use custom labels instead of automatically determined ones...
const std::string & GetYTitle()
Get/Set the text to use for titles for the axis.
const std::string & GetZTitle()
Get/Set the text to use for titles for the axis.
void SetZLabelTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
#define VTK_SIZEHINT(...)
represent text properties.
void SetYTitle(const std::string &title)
Get/Set the text to use for titles for the axis.
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...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
void SetXTitleTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty for the title for each the axes.
vtkTextProperty * GetZLabelTextProperty()
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
void SetYNotation(int notation)
Get/set the numerical notation, standard, scientific or mixed (0, 1, 2).
void SetZUseCustomLabels(bool val)
Set whether the specified axis should use custom labels instead of automatically determined ones...
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
int GetZPrecision()
Get/set the numerical precision to use, default is 2.
void SetXUseCustomLabels(bool val)
Set whether the specified axis should use custom labels instead of automatically determined ones...
void SetYLabelTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty that governs how the axis labels are displayed.
void SetYTitleTextProperty(vtkTextProperty *prop)
Get/Set the vtkTextProperty for the title for each the axes.
virtual void GetActors(vtkPropCollection *)
For some exporters and other other operations we must be able to collect all the actors or volumes...
void SetXPrecision(int val)
Get/set the numerical precision to use, default is 2.
bool GetZUseCustomLabels()
Set whether the specified axis should use custom labels instead of automatically determined ones...
void SetZLabel(vtkIdType index, double value)
Set whether the specified axis should use custom labels instead of automatically determined ones...
double GetZLabel(vtkIdType index)
Set whether the specified axis should use custom labels instead of automatically determined ones...
actor for an axes plane in a 3D view.