13#ifndef vtkGridAxesPlaneActor2D_h
14#define vtkGridAxesPlaneActor2D_h
17#include "vtkRenderingGridAxesModule.h"
24VTK_ABI_NAMESPACE_BEGIN
49 vtkSetVector6Macro(GridBounds,
double);
50 vtkGetVector6Macro(GridBounds,
double);
63 vtkGetMacro(Face,
int);
86 vtkSetMacro(GenerateGrid,
bool);
87 vtkGetMacro(GenerateGrid,
bool);
88 vtkBooleanMacro(GenerateGrid,
bool);
96 vtkSetMacro(GenerateEdges,
bool);
97 vtkGetMacro(GenerateEdges,
bool);
98 vtkBooleanMacro(GenerateEdges,
bool);
106 vtkSetMacro(GenerateTicks,
bool);
107 vtkGetMacro(GenerateTicks,
bool);
108 vtkBooleanMacro(GenerateTicks,
bool);
113 TICK_DIRECTION_INWARDS = 0x1,
114 TICK_DIRECTION_OUTWARDS = 0x2,
115 TICK_DIRECTION_BOTH = TICK_DIRECTION_INWARDS | TICK_DIRECTION_OUTWARDS,
124 vtkSetClampMacro(TickDirection,
unsigned int,
static_cast<unsigned int>(TICK_DIRECTION_INWARDS),
125 static_cast<unsigned int>(TICK_DIRECTION_BOTH));
126 vtkGetMacro(TickDirection,
unsigned int);
143 return (axis >= 0 && axis < 3) ? this->TickPositions[axis] : this->EmptyVector;
167 this->GetGridBounds(this->Bounds);
217 std::deque<double> EmptyVector;
219 typedef std::pair<vtkVector3d, vtkVector3d> LineSegmentType;
220 std::deque<LineSegmentType> LineSegments;
222 double GridBounds[6];
225 bool GenerateGrid =
true;
226 bool GenerateEdges =
true;
227 bool GenerateTicks =
true;
228 unsigned int TickDirection = TICK_DIRECTION_BOTH;
229 std::deque<double> TickPositions[3];
238 bool HelperManagedExternally;
represents an object (geometry & properties) in a rendered scene
object to represent cell connectivity
dynamic, self-adjusting array of double
actor for an axes plane in a 3D view.
is a helper object used by vtkGridAxesActor2D, vtkGridAxesActor3D, and vtkGridAxesPlane2DActor.
renders a 2D grid for vtkGridAxesActor2D.
int RenderOverlay(vtkViewport *viewport) override
Standard render methods for different types of geometry.
static vtkGridAxesPlaneActor2D * New(vtkGridAxesHelper *helper)
vtkGridAxesActor2D uses this method to create vtkGridAxesPlaneActor2D instance.
const std::deque< double > & GetTickPositions(int axis)
Set the tick positions for each of the coordinate axis.
bool UpdateGrid(vtkViewport *viewport)
Update's the polydata.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this prop.
static vtkGridAxesPlaneActor2D * New()
vtkGridAxesPlaneActor2D(vtkGridAxesHelper *helper=nullptr)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetActors(vtkPropCollection *) override
For some exporters and other other operations we must be able to collect all the actors or volumes.
int RenderOpaqueGeometry(vtkViewport *) override
Standard render methods for different types of geometry.
bool UpdateEdges(vtkViewport *viewport)
Update's the polydata.
bool UpdateTicks(vtkViewport *viewport)
Update's the polydata.
double * GetBounds() override
Returns the prop bounds.
void SetProperty(vtkProperty *)
Get/Set the property used to control the appearance of the rendered grid.
void UpdateGeometry(vtkViewport *vp)
Updates the billboard geometry without performing any rendering, to assist GetActors().
void SetTickPositions(int axis, vtkDoubleArray *data)
Set the tick positions for each of the coordinate axis.
void Update(vtkViewport *viewport)
Update's the polydata.
~vtkGridAxesPlaneActor2D() override
vtkProperty * GetProperty()
Get/Set the property used to control the appearance of the rendered grid.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Standard render methods for different types of geometry.
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
Standard render methods for different types of geometry.
a simple class to control print indentation
represent and manipulate 3D points
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
represents an 3D object for placement in a rendered scene
represent surface properties of a geometric object
abstract specification for Viewports
window superclass for vtkRenderWindow