ParaView
|
renders a 2D grid for vtkGridAxes2DActor. More...
#include <vtkGridAxesPlane2DActor.h>
Inherits vtkProp3D.
Public Types | |
enum | Faces { MIN_YZ = vtkGridAxesHelper::MIN_YZ, MIN_ZX = vtkGridAxesHelper::MIN_ZX, MIN_XY = vtkGridAxesHelper::MIN_XY, MAX_YZ = vtkGridAxesHelper::MAX_YZ, MAX_ZX = vtkGridAxesHelper::MAX_ZX, MAX_XY = vtkGridAxesHelper::MAX_XY } |
enum | { TICK_DIRECTION_INWARDS = 0x1, TICK_DIRECTION_OUTWARDS = 0x2, TICK_DIRECTION_BOTH = TICK_DIRECTION_INWARDS | TICK_DIRECTION_OUTWARDS } |
typedef vtkProp3D | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetTickPositions (int axis, vtkDoubleArray *data) |
Set the tick positions for each of the coordinate axis. More... | |
const std::deque< double > & | GetTickPositions (int axis) |
virtual int | RenderOpaqueGeometry (vtkViewport *) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *viewport) |
virtual int | RenderOverlay (vtkViewport *viewport) |
virtual int | HasTranslucentPolygonalGeometry () |
virtual void | ReleaseGraphicsResources (vtkWindow *) |
virtual void | SetGridBounds (double, double, double, double, double, double) |
Set the bounding box defining the grid space. More... | |
virtual void | SetGridBounds (double [6]) |
Set the bounding box defining the grid space. More... | |
virtual double * | GetGridBounds () |
Set the bounding box defining the grid space. More... | |
virtual void | GetGridBounds (double &, double &, double &, double &, double &, double &) |
Set the bounding box defining the grid space. More... | |
virtual void | GetGridBounds (double [6]) |
Set the bounding box defining the grid space. More... | |
virtual void | SetFace (int) |
Indicate which face of the specified bounds is this class operating with. More... | |
virtual int | GetFace () |
Indicate which face of the specified bounds is this class operating with. More... | |
virtual void | SetGenerateGrid (bool) |
Get/Set whether to generate lines for the plane's grid. More... | |
virtual bool | GetGenerateGrid () |
Get/Set whether to generate lines for the plane's grid. More... | |
virtual void | GenerateGridOn () |
Get/Set whether to generate lines for the plane's grid. More... | |
virtual void | GenerateGridOff () |
Get/Set whether to generate lines for the plane's grid. More... | |
virtual void | SetGenerateEdges (bool) |
Get/Set whether to generate the polydata for the plane's edges. More... | |
virtual bool | GetGenerateEdges () |
Get/Set whether to generate the polydata for the plane's edges. More... | |
virtual void | GenerateEdgesOn () |
Get/Set whether to generate the polydata for the plane's edges. More... | |
virtual void | GenerateEdgesOff () |
Get/Set whether to generate the polydata for the plane's edges. More... | |
virtual void | SetGenerateTicks (bool) |
Get/Set whether to generate tick markers for the tick positions. More... | |
virtual bool | GetGenerateTicks () |
Get/Set whether to generate tick markers for the tick positions. More... | |
virtual void | GenerateTicksOn () |
Get/Set whether to generate tick markers for the tick positions. More... | |
virtual void | GenerateTicksOff () |
Get/Set whether to generate tick markers for the tick positions. More... | |
virtual void | SetTickDirection (unsigned int) |
Get/Set the tick direction. More... | |
virtual unsigned int | GetTickDirection () |
Get/Set the tick direction. More... | |
virtual void | SetEnableLayerSupport (bool) |
Enable/Disable layer support. More... | |
virtual bool | GetEnableLayerSupport () |
Enable/Disable layer support. More... | |
virtual void | EnableLayerSupportOn () |
Enable/Disable layer support. More... | |
virtual void | EnableLayerSupportOff () |
Enable/Disable layer support. More... | |
virtual void | SetLayer (int) |
Set the layer to render this prop under when EnableLayerSupport is true. More... | |
virtual int | GetLayer () |
Set the layer to render this prop under when EnableLayerSupport is true. More... | |
void | SetProperty (vtkProperty *) |
Get/Set the property used to control the appearance of the rendered grid. More... | |
vtkProperty * | GetProperty () |
Get/Set the property used to control the appearance of the rendered grid. More... | |
virtual double * | GetBounds () |
Returns the prop bounds. More... | |
Static Public Member Functions | |
static vtkGridAxesPlane2DActor * | New () |
static int | IsTypeOf (const char *type) |
static vtkGridAxesPlane2DActor * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkGridAxesPlane2DActor (vtkGridAxesHelper *helper=NULL) | |
~vtkGridAxesPlane2DActor () | |
bool | IsLayerActive (vtkViewport *viewport) |
Returns true if the actor must render in the viewport. More... | |
void | Update (vtkViewport *viewport) |
Update's the polydata. More... | |
bool | UpdateEdges (vtkViewport *viewport) |
Update's the polydata. More... | |
bool | UpdateGrid (vtkViewport *viewport) |
Update's the polydata. More... | |
bool | UpdateTicks (vtkViewport *viewport) |
Update's the polydata. More... | |
Protected Attributes | |
double | GridBounds [6] |
int | Face |
bool | GenerateGrid |
bool | GenerateEdges |
bool | GenerateTicks |
unsigned int | TickDirection |
std::deque< double > | TickPositions [3] |
bool | EnableLayerSupport |
int | Layer |
vtkNew< vtkPolyData > | PolyData |
vtkNew< vtkPoints > | PolyDataPoints |
vtkNew< vtkCellArray > | PolyDataLines |
vtkNew< vtkPolyDataMapper > | Mapper |
vtkNew< vtkActor > | Actor |
vtkSmartPointer< vtkGridAxesHelper > | Helper |
bool | HelperManagedExternally |
class | vtkGridAxes2DActor |
vtkGridAxes2DActor uses this method to create vtkGridAxesPlane2DActor instance. More... | |
static vtkGridAxesPlane2DActor * | New (vtkGridAxesHelper *helper) |
vtkGridAxes2DActor uses this method to create vtkGridAxesPlane2DActor instance. More... | |
renders a 2D grid for vtkGridAxes2DActor.
vtkGridAxesPlane2DActor is designed for use by vtkGridAxes2DActor to render the wireframe for the grid plane. It can also be used directly to render such a wireframe in a renderer.
Definition at line 43 of file vtkGridAxesPlane2DActor.h.
typedef vtkProp3D vtkGridAxesPlane2DActor::Superclass |
Definition at line 47 of file vtkGridAxesPlane2DActor.h.
Enumerator | |
---|---|
MIN_YZ | |
MIN_ZX | |
MIN_XY | |
MAX_YZ | |
MAX_ZX | |
MAX_XY |
Definition at line 64 of file vtkGridAxesPlane2DActor.h.
anonymous enum |
Enumerator | |
---|---|
TICK_DIRECTION_INWARDS | |
TICK_DIRECTION_OUTWARDS | |
TICK_DIRECTION_BOTH |
Definition at line 114 of file vtkGridAxesPlane2DActor.h.
|
protected |
|
protected |
|
static |
|
virtual |
|
static |
|
virtual |
|
static |
void vtkGridAxesPlane2DActor::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Set the bounding box defining the grid space.
This, together with the Face
identify which planar surface this class is interested in. This class is designed to work with a single planar surface. Note: this is only needed/used when the vtkGridAxesHelper is not provided when calling New(), otherwise the vtkGridAxesHelper is assumed to be initialized externally.
|
virtual |
Set the bounding box defining the grid space.
This, together with the Face
identify which planar surface this class is interested in. This class is designed to work with a single planar surface. Note: this is only needed/used when the vtkGridAxesHelper is not provided when calling New(), otherwise the vtkGridAxesHelper is assumed to be initialized externally.
|
virtual |
Set the bounding box defining the grid space.
This, together with the Face
identify which planar surface this class is interested in. This class is designed to work with a single planar surface. Note: this is only needed/used when the vtkGridAxesHelper is not provided when calling New(), otherwise the vtkGridAxesHelper is assumed to be initialized externally.
|
virtual |
Set the bounding box defining the grid space.
This, together with the Face
identify which planar surface this class is interested in. This class is designed to work with a single planar surface. Note: this is only needed/used when the vtkGridAxesHelper is not provided when calling New(), otherwise the vtkGridAxesHelper is assumed to be initialized externally.
|
virtual |
Set the bounding box defining the grid space.
This, together with the Face
identify which planar surface this class is interested in. This class is designed to work with a single planar surface. Note: this is only needed/used when the vtkGridAxesHelper is not provided when calling New(), otherwise the vtkGridAxesHelper is assumed to be initialized externally.
|
virtual |
Indicate which face of the specified bounds is this class operating with.
Note: this is only needed/used when the vtkGridAxesHelper is not provided when calling New(), otherwise the vtkGridAxesHelper is assumed to be initialized externally.
|
virtual |
Indicate which face of the specified bounds is this class operating with.
Note: this is only needed/used when the vtkGridAxesHelper is not provided when calling New(), otherwise the vtkGridAxesHelper is assumed to be initialized externally.
|
virtual |
Get/Set whether to generate lines for the plane's grid.
Default is true.
|
virtual |
Get/Set whether to generate lines for the plane's grid.
Default is true.
|
virtual |
Get/Set whether to generate lines for the plane's grid.
Default is true.
|
virtual |
Get/Set whether to generate lines for the plane's grid.
Default is true.
|
virtual |
Get/Set whether to generate the polydata for the plane's edges.
Default is true.
|
virtual |
Get/Set whether to generate the polydata for the plane's edges.
Default is true.
|
virtual |
Get/Set whether to generate the polydata for the plane's edges.
Default is true.
|
virtual |
Get/Set whether to generate the polydata for the plane's edges.
Default is true.
|
virtual |
Get/Set whether to generate tick markers for the tick positions.
Default is true.
|
virtual |
Get/Set whether to generate tick markers for the tick positions.
Default is true.
|
virtual |
Get/Set whether to generate tick markers for the tick positions.
Default is true.
|
virtual |
Get/Set whether to generate tick markers for the tick positions.
Default is true.
|
virtual |
Get/Set the tick direction.
|
virtual |
Get/Set the tick direction.
void vtkGridAxesPlane2DActor::SetTickPositions | ( | int | axis, |
vtkDoubleArray * | data | ||
) |
Set the tick positions for each of the coordinate axis.
Which tick positions get used depended on the face being rendered e.g. if Face is MIN_XY, then the tick positions for Z-axis i.e. axis=2 will not be used and hence need not be specified. Pass NULL for data will clear the ticks positions for that axis. Note: This creates a deep-copy of the values in data
and stores that.
|
inline |
Definition at line 139 of file vtkGridAxesPlane2DActor.h.
|
virtual |
Enable/Disable layer support.
Default is off. When enabled, the prop will only render when the viewport's layer matches the Layer set on this prop.
|
virtual |
Enable/Disable layer support.
Default is off. When enabled, the prop will only render when the viewport's layer matches the Layer set on this prop.
|
virtual |
Enable/Disable layer support.
Default is off. When enabled, the prop will only render when the viewport's layer matches the Layer set on this prop.
|
virtual |
Enable/Disable layer support.
Default is off. When enabled, the prop will only render when the viewport's layer matches the Layer set on this prop.
|
virtual |
Set the layer to render this prop under when EnableLayerSupport is true.
Default is 0.
|
virtual |
Set the layer to render this prop under when EnableLayerSupport is true.
Default is 0.
void vtkGridAxesPlane2DActor::SetProperty | ( | vtkProperty * | ) |
Get/Set the property used to control the appearance of the rendered grid.
vtkProperty* vtkGridAxesPlane2DActor::GetProperty | ( | ) |
Get/Set the property used to control the appearance of the rendered grid.
|
inlinevirtual |
Returns the prop bounds.
Definition at line 179 of file vtkGridAxesPlane2DActor.h.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
staticprotected |
vtkGridAxes2DActor uses this method to create vtkGridAxesPlane2DActor instance.
In that case, vtkGridAxesPlane2DActor assumes that the vtkGridAxesHelper will be updated and initialized externally. That avoids unnecessary duplicate computations per render.
|
protected |
Returns true if the actor must render in the viewport.
|
protected |
Update's the polydata.
|
protected |
Update's the polydata.
|
protected |
Update's the polydata.
|
protected |
Update's the polydata.
|
friend |
vtkGridAxes2DActor uses this method to create vtkGridAxesPlane2DActor instance.
In that case, vtkGridAxesPlane2DActor assumes that the vtkGridAxesHelper will be updated and initialized externally. That avoids unnecessary duplicate computations per render.
Definition at line 204 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 222 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 223 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 225 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 226 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 227 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 228 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 229 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 231 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 232 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 234 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 235 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 236 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 237 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 238 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 240 of file vtkGridAxesPlane2DActor.h.
|
protected |
Definition at line 241 of file vtkGridAxesPlane2DActor.h.