VTK
|
generate a 2D cursor representation More...
#include <vtkCursor2D.h>
Inherits vtkPolyDataAlgorithm.
Public Types | |
typedef vtkPolyDataAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkCursor2D * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetModelBounds (double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) |
void | SetModelBounds (double bounds[6]) |
virtual double * | GetModelBounds () |
virtual void | GetModelBounds (double data[6]) |
void | SetFocalPoint (double x[3]) |
void | SetFocalPoint (double x, double y, double z) |
virtual double * | GetFocalPoint () |
virtual void | GetFocalPoint (double data[3]) |
virtual void | SetOutline (int) |
virtual int | GetOutline () |
virtual void | OutlineOn () |
virtual void | OutlineOff () |
virtual void | SetAxes (int) |
virtual int | GetAxes () |
virtual void | AxesOn () |
virtual void | AxesOff () |
virtual void | SetRadius (double) |
virtual double | GetRadius () |
virtual void | SetPoint (int) |
virtual int | GetPoint () |
virtual void | PointOn () |
virtual void | PointOff () |
virtual void | SetTranslationMode (int) |
virtual int | GetTranslationMode () |
virtual void | TranslationModeOn () |
virtual void | TranslationModeOff () |
virtual void | SetWrap (int) |
virtual int | GetWrap () |
virtual void | WrapOn () |
virtual void | WrapOff () |
void | AllOn () |
void | AllOff () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkCursor2D * | SafeDownCast (vtkObjectBase *o) |
static vtkCursor2D * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkCursor2D () | |
~vtkCursor2D () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
double | ModelBounds [6] |
double | FocalPoint [3] |
int | Outline |
int | Axes |
int | Point |
double | Radius |
int | TranslationMode |
int | Wrap |
generate a 2D cursor representation
vtkCursor2D is a class that generates a 2D cursor representation. The cursor consists of two intersection axes lines that meet at the cursor focus. Several optional features are available as well. An optional 2D bounding box may be enabled. An inner radius, centered at the focal point, can be set that erases the intersecting lines (e.g., it leaves a clear area under the focal point so you can see what you are selecting). And finally, an optional point can be enabled located at the focal point. All of these features can be turned on and off independently.
Definition at line 39 of file vtkCursor2D.h.
typedef vtkPolyDataAlgorithm vtkCursor2D::Superclass |
Definition at line 42 of file vtkCursor2D.h.
|
protected |
|
inlineprotected |
Definition at line 129 of file vtkCursor2D.h.
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkCursor2D* vtkCursor2D::NewInstance | ( | ) | const |
void vtkCursor2D::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
static |
Construct with model bounds = (-10,10,-10,10), focal point = (0,0), radius=2, all parts of cursor visible, and wrapping off.
void vtkCursor2D::SetModelBounds | ( | double | xmin, |
double | xmax, | ||
double | ymin, | ||
double | ymax, | ||
double | zmin, | ||
double | zmax | ||
) |
Set / get the bounding box of the 2D cursor. This defines the outline of the cursor, and where the focal point should lie.
void vtkCursor2D::SetModelBounds | ( | double | bounds[6] | ) |
Set / get the bounding box of the 2D cursor. This defines the outline of the cursor, and where the focal point should lie.
|
virtual |
Set / get the bounding box of the 2D cursor. This defines the outline of the cursor, and where the focal point should lie.
|
virtual |
Set / get the bounding box of the 2D cursor. This defines the outline of the cursor, and where the focal point should lie.
void vtkCursor2D::SetFocalPoint | ( | double | x[3] | ) |
Set/Get the position of cursor focus. If translation mode is on, then the entire cursor (including bounding box, cursor, and shadows) is translated. Otherwise, the focal point will either be clamped to the bounding box, or wrapped, if Wrap is on. (Note: this behavior requires that the bounding box is set prior to the focal point.) Note that the method takes a 3D point but ignores the z-coordinate value.
|
inline |
Set/Get the position of cursor focus. If translation mode is on, then the entire cursor (including bounding box, cursor, and shadows) is translated. Otherwise, the focal point will either be clamped to the bounding box, or wrapped, if Wrap is on. (Note: this behavior requires that the bounding box is set prior to the focal point.) Note that the method takes a 3D point but ignores the z-coordinate value.
Definition at line 66 of file vtkCursor2D.h.
|
virtual |
Set/Get the position of cursor focus. If translation mode is on, then the entire cursor (including bounding box, cursor, and shadows) is translated. Otherwise, the focal point will either be clamped to the bounding box, or wrapped, if Wrap is on. (Note: this behavior requires that the bounding box is set prior to the focal point.) Note that the method takes a 3D point but ignores the z-coordinate value.
|
virtual |
Set/Get the position of cursor focus. If translation mode is on, then the entire cursor (including bounding box, cursor, and shadows) is translated. Otherwise, the focal point will either be clamped to the bounding box, or wrapped, if Wrap is on. (Note: this behavior requires that the bounding box is set prior to the focal point.) Note that the method takes a 3D point but ignores the z-coordinate value.
|
virtual |
Turn on/off the wireframe bounding box.
|
virtual |
Turn on/off the wireframe bounding box.
|
virtual |
Turn on/off the wireframe bounding box.
|
virtual |
Turn on/off the wireframe bounding box.
|
virtual |
Turn on/off the wireframe axes.
|
virtual |
Turn on/off the wireframe axes.
|
virtual |
Turn on/off the wireframe axes.
|
virtual |
Turn on/off the wireframe axes.
|
virtual |
Specify a radius for a circle. This erases the cursor lines around the focal point.
|
virtual |
Specify a radius for a circle. This erases the cursor lines around the focal point.
|
virtual |
Turn on/off the point located at the cursor focus.
|
virtual |
Turn on/off the point located at the cursor focus.
|
virtual |
Turn on/off the point located at the cursor focus.
|
virtual |
Turn on/off the point located at the cursor focus.
|
virtual |
Enable/disable the translation mode. If on, changes in cursor position cause the entire widget to translate along with the cursor. By default, translation mode is off.
|
virtual |
Enable/disable the translation mode. If on, changes in cursor position cause the entire widget to translate along with the cursor. By default, translation mode is off.
|
virtual |
Enable/disable the translation mode. If on, changes in cursor position cause the entire widget to translate along with the cursor. By default, translation mode is off.
|
virtual |
Enable/disable the translation mode. If on, changes in cursor position cause the entire widget to translate along with the cursor. By default, translation mode is off.
|
virtual |
Turn on/off cursor wrapping. If the cursor focus moves outside the specified bounds, the cursor will either be restrained against the nearest "wall" (Wrap=off), or it will wrap around (Wrap=on).
|
virtual |
Turn on/off cursor wrapping. If the cursor focus moves outside the specified bounds, the cursor will either be restrained against the nearest "wall" (Wrap=off), or it will wrap around (Wrap=on).
|
virtual |
Turn on/off cursor wrapping. If the cursor focus moves outside the specified bounds, the cursor will either be restrained against the nearest "wall" (Wrap=off), or it will wrap around (Wrap=on).
|
virtual |
Turn on/off cursor wrapping. If the cursor focus moves outside the specified bounds, the cursor will either be restrained against the nearest "wall" (Wrap=off), or it will wrap around (Wrap=on).
void vtkCursor2D::AllOn | ( | ) |
Turn every part of the cursor on or off.
void vtkCursor2D::AllOff | ( | ) |
Turn every part of the cursor on or off.
|
protected |
|
protected |
Definition at line 133 of file vtkCursor2D.h.
|
protected |
Definition at line 134 of file vtkCursor2D.h.
|
protected |
Definition at line 135 of file vtkCursor2D.h.
|
protected |
Definition at line 136 of file vtkCursor2D.h.
|
protected |
Definition at line 137 of file vtkCursor2D.h.
|
protected |
Definition at line 138 of file vtkCursor2D.h.
|
protected |
Definition at line 139 of file vtkCursor2D.h.
|
protected |
Definition at line 140 of file vtkCursor2D.h.