represent the position of a point in 3D space
More...
#include <vtkPointHandleRepresentation3D.h>
|
| vtkPointHandleRepresentation3D () |
|
| ~vtkPointHandleRepresentation3D () |
|
virtual void | RegisterPickers () |
|
void | Translate (double *p1, double *p2) |
|
void | Scale (double *p1, double *p2, double eventPos[2]) |
|
void | MoveFocus (double *p1, double *p2) |
|
void | SizeBounds () |
|
void | MoveFocusRequest (double *p1, double *p2, double eventPos[2], double requestedDisplayPos[3]) |
|
void | CreateDefaultProperties () |
|
int | DetermineConstraintAxis (int constraint, double *x, double *startPoint) |
|
Protected Member Functions inherited from vtkHandleRepresentation |
| vtkHandleRepresentation () |
|
| ~vtkHandleRepresentation () |
|
| vtkWidgetRepresentation () |
|
| ~vtkWidgetRepresentation () |
|
void | AdjustBounds (double bounds[6], double newBounds[6], double center[3]) |
|
virtual void | UnRegisterPickers () |
|
virtual void | PickersModified () |
|
vtkPickingManager * | GetPickingManager () |
|
double | SizeHandlesRelativeToViewport (double factor, double pos[3]) |
|
double | SizeHandlesInPixels (double factor, double pos[3]) |
|
vtkAssemblyPath * | GetAssemblyPath (double X, double Y, double Z, vtkAbstractPropPicker *picker) |
|
represent the position of a point in 3D space
This class is used to represent a vtkHandleWidget. It represents a position in 3D world coordinates using a x-y-z cursor. The cursor can be configured to show a bounding box and/or shadows.
- See Also
- vtkHandleRepresentation vtkHandleWidget vtkCursor3D
- Tests:
- vtkPointHandleRepresentation3D (Tests)
Definition at line 42 of file vtkPointHandleRepresentation3D.h.
vtkPointHandleRepresentation3D::vtkPointHandleRepresentation3D |
( |
| ) |
|
|
protected |
vtkPointHandleRepresentation3D::~vtkPointHandleRepresentation3D |
( |
| ) |
|
|
protected |
static int vtkPointHandleRepresentation3D::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
Standard methods for instances of this class.
virtual int vtkPointHandleRepresentation3D::IsA |
( |
const char * |
type | ) |
|
|
virtual |
Standard methods for instances of this class.
virtual vtkObjectBase* vtkPointHandleRepresentation3D::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
Standard methods for instances of this class.
void vtkPointHandleRepresentation3D::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
Standard methods for instances of this class.
virtual void vtkPointHandleRepresentation3D::SetWorldPosition |
( |
double |
p[3] | ) |
|
|
virtual |
Set the position of the point in world and display coordinates. Note that if the position is set outside of the bounding box, it will be clamped to the boundary of the bounding box. This method overloads the superclasses' SetWorldPosition() and SetDisplayPosition() in order to set the focal point of the cursor properly.
Reimplemented from vtkHandleRepresentation.
virtual void vtkPointHandleRepresentation3D::SetDisplayPosition |
( |
double |
p[3] | ) |
|
|
virtual |
Set the position of the point in world and display coordinates. Note that if the position is set outside of the bounding box, it will be clamped to the boundary of the bounding box. This method overloads the superclasses' SetWorldPosition() and SetDisplayPosition() in order to set the focal point of the cursor properly.
Reimplemented from vtkHandleRepresentation.
void vtkPointHandleRepresentation3D::SetOutline |
( |
int |
o | ) |
|
|
inline |
int vtkPointHandleRepresentation3D::GetOutline |
( |
| ) |
|
|
inline |
void vtkPointHandleRepresentation3D::OutlineOn |
( |
| ) |
|
|
inline |
void vtkPointHandleRepresentation3D::OutlineOff |
( |
| ) |
|
|
inline |
void vtkPointHandleRepresentation3D::SetXShadows |
( |
int |
o | ) |
|
|
inline |
int vtkPointHandleRepresentation3D::GetXShadows |
( |
| ) |
|
|
inline |
void vtkPointHandleRepresentation3D::XShadowsOn |
( |
| ) |
|
|
inline |
void vtkPointHandleRepresentation3D::XShadowsOff |
( |
| ) |
|
|
inline |
void vtkPointHandleRepresentation3D::SetYShadows |
( |
int |
o | ) |
|
|
inline |
int vtkPointHandleRepresentation3D::GetYShadows |
( |
| ) |
|
|
inline |
void vtkPointHandleRepresentation3D::YShadowsOn |
( |
| ) |
|
|
inline |
void vtkPointHandleRepresentation3D::YShadowsOff |
( |
| ) |
|
|
inline |
void vtkPointHandleRepresentation3D::SetZShadows |
( |
int |
o | ) |
|
|
inline |
int vtkPointHandleRepresentation3D::GetZShadows |
( |
| ) |
|
|
inline |
void vtkPointHandleRepresentation3D::ZShadowsOn |
( |
| ) |
|
|
inline |
void vtkPointHandleRepresentation3D::ZShadowsOff |
( |
| ) |
|
|
inline |
void vtkPointHandleRepresentation3D::SetTranslationMode |
( |
int |
mode | ) |
|
If translation mode is on, as the widget is moved the bounding box, shadows, and cursor are all translated and sized simultaneously as the point moves (i.e., the left and middle mouse buttons act the same). If translation mode is off, the cursor does not scale itself (based on the specified handle size), and the bounding box and shadows do not move or size themselves as the cursor focal point moves, which is constrained by the bounds of the point representation. (Note that the bounds can be scaled up using the right mouse button, and the bounds can be manually set with the SetBounds() method.)
virtual int vtkPointHandleRepresentation3D::GetTranslationMode |
( |
| ) |
|
|
virtual |
If translation mode is on, as the widget is moved the bounding box, shadows, and cursor are all translated and sized simultaneously as the point moves (i.e., the left and middle mouse buttons act the same). If translation mode is off, the cursor does not scale itself (based on the specified handle size), and the bounding box and shadows do not move or size themselves as the cursor focal point moves, which is constrained by the bounds of the point representation. (Note that the bounds can be scaled up using the right mouse button, and the bounds can be manually set with the SetBounds() method.)
virtual void vtkPointHandleRepresentation3D::TranslationModeOn |
( |
| ) |
|
|
virtual |
If translation mode is on, as the widget is moved the bounding box, shadows, and cursor are all translated and sized simultaneously as the point moves (i.e., the left and middle mouse buttons act the same). If translation mode is off, the cursor does not scale itself (based on the specified handle size), and the bounding box and shadows do not move or size themselves as the cursor focal point moves, which is constrained by the bounds of the point representation. (Note that the bounds can be scaled up using the right mouse button, and the bounds can be manually set with the SetBounds() method.)
virtual void vtkPointHandleRepresentation3D::TranslationModeOff |
( |
| ) |
|
|
virtual |
If translation mode is on, as the widget is moved the bounding box, shadows, and cursor are all translated and sized simultaneously as the point moves (i.e., the left and middle mouse buttons act the same). If translation mode is off, the cursor does not scale itself (based on the specified handle size), and the bounding box and shadows do not move or size themselves as the cursor focal point moves, which is constrained by the bounds of the point representation. (Note that the bounds can be scaled up using the right mouse button, and the bounds can be manually set with the SetBounds() method.)
void vtkPointHandleRepresentation3D::AllOn |
( |
| ) |
|
|
inline |
void vtkPointHandleRepresentation3D::AllOff |
( |
| ) |
|
|
inline |
void vtkPointHandleRepresentation3D::SetProperty |
( |
vtkProperty * |
| ) |
|
Set/Get the handle properties when unselected and selected.
void vtkPointHandleRepresentation3D::SetSelectedProperty |
( |
vtkProperty * |
| ) |
|
Set/Get the handle properties when unselected and selected.
virtual vtkProperty* vtkPointHandleRepresentation3D::GetProperty |
( |
| ) |
|
|
virtual |
Set/Get the handle properties when unselected and selected.
virtual vtkProperty* vtkPointHandleRepresentation3D::GetSelectedProperty |
( |
| ) |
|
|
virtual |
Set/Get the handle properties when unselected and selected.
virtual void vtkPointHandleRepresentation3D::SetHotSpotSize |
( |
double |
| ) |
|
|
virtual |
Set the "hot spot" size; i.e., the region around the focus, in which the motion vector is used to control the constrained sliding action. Note the size is specified as a fraction of the length of the diagonal of the point widget's bounding box.
virtual double vtkPointHandleRepresentation3D::GetHotSpotSize |
( |
| ) |
|
|
virtual |
Set the "hot spot" size; i.e., the region around the focus, in which the motion vector is used to control the constrained sliding action. Note the size is specified as a fraction of the length of the diagonal of the point widget's bounding box.
virtual void vtkPointHandleRepresentation3D::SetHandleSize |
( |
double |
size | ) |
|
|
virtual |
virtual double* vtkPointHandleRepresentation3D::GetBounds |
( |
| ) |
|
|
virtual |
virtual void vtkPointHandleRepresentation3D::BuildRepresentation |
( |
| ) |
|
|
virtual |
virtual void vtkPointHandleRepresentation3D::StartWidgetInteraction |
( |
double |
eventPos[2] | ) |
|
|
virtual |
virtual void vtkPointHandleRepresentation3D::WidgetInteraction |
( |
double |
eventPos[2] | ) |
|
|
virtual |
virtual int vtkPointHandleRepresentation3D::ComputeInteractionState |
( |
int |
X, |
|
|
int |
Y, |
|
|
int |
modify = 0 |
|
) |
| |
|
virtual |
virtual void vtkPointHandleRepresentation3D::PlaceWidget |
( |
double |
bounds[6] | ) |
|
|
virtual |
virtual void vtkPointHandleRepresentation3D::ShallowCopy |
( |
vtkProp * |
prop | ) |
|
|
virtual |
virtual void vtkPointHandleRepresentation3D::DeepCopy |
( |
vtkProp * |
prop | ) |
|
|
virtual |
virtual void vtkPointHandleRepresentation3D::GetActors |
( |
vtkPropCollection * |
| ) |
|
|
virtual |
virtual void vtkPointHandleRepresentation3D::ReleaseGraphicsResources |
( |
vtkWindow * |
| ) |
|
|
virtual |
virtual int vtkPointHandleRepresentation3D::RenderOpaqueGeometry |
( |
vtkViewport * |
viewport | ) |
|
|
virtual |
Methods to make this class behave as a vtkProp.
virtual int vtkPointHandleRepresentation3D::RenderTranslucentPolygonalGeometry |
( |
vtkViewport * |
viewport | ) |
|
|
virtual |
Methods to make this class behave as a vtkProp.
virtual int vtkPointHandleRepresentation3D::HasTranslucentPolygonalGeometry |
( |
| ) |
|
|
virtual |
void vtkPointHandleRepresentation3D::Highlight |
( |
int |
highlight | ) |
|
virtual void vtkPointHandleRepresentation3D::SetSmoothMotion |
( |
int |
| ) |
|
|
virtual |
Turn on/off smooth motion of the handle. See the documentation of MoveFocusRequest for details. By default, SmoothMotion is ON. However, in certain applications the user may want to turn it off. For instance when using certain specific PointPlacer's with the representation such as the vtkCellCentersPointPlacer, which causes the representation to snap to the center of cells, or using a vtkPolygonalSurfacePointPlacer which constrains the widget to the surface of a mesh. In such cases, inherent restrictions on handle placement might conflict with a request for smooth motion of the handles.
virtual int vtkPointHandleRepresentation3D::GetSmoothMotion |
( |
| ) |
|
|
virtual |
Turn on/off smooth motion of the handle. See the documentation of MoveFocusRequest for details. By default, SmoothMotion is ON. However, in certain applications the user may want to turn it off. For instance when using certain specific PointPlacer's with the representation such as the vtkCellCentersPointPlacer, which causes the representation to snap to the center of cells, or using a vtkPolygonalSurfacePointPlacer which constrains the widget to the surface of a mesh. In such cases, inherent restrictions on handle placement might conflict with a request for smooth motion of the handles.
virtual void vtkPointHandleRepresentation3D::SmoothMotionOn |
( |
| ) |
|
|
virtual |
Turn on/off smooth motion of the handle. See the documentation of MoveFocusRequest for details. By default, SmoothMotion is ON. However, in certain applications the user may want to turn it off. For instance when using certain specific PointPlacer's with the representation such as the vtkCellCentersPointPlacer, which causes the representation to snap to the center of cells, or using a vtkPolygonalSurfacePointPlacer which constrains the widget to the surface of a mesh. In such cases, inherent restrictions on handle placement might conflict with a request for smooth motion of the handles.
virtual void vtkPointHandleRepresentation3D::SmoothMotionOff |
( |
| ) |
|
|
virtual |
Turn on/off smooth motion of the handle. See the documentation of MoveFocusRequest for details. By default, SmoothMotion is ON. However, in certain applications the user may want to turn it off. For instance when using certain specific PointPlacer's with the representation such as the vtkCellCentersPointPlacer, which causes the representation to snap to the center of cells, or using a vtkPolygonalSurfacePointPlacer which constrains the widget to the surface of a mesh. In such cases, inherent restrictions on handle placement might conflict with a request for smooth motion of the handles.
virtual void vtkPointHandleRepresentation3D::RegisterPickers |
( |
| ) |
|
|
protectedvirtual |
Register internal Pickers in the Picking Manager. Must be reimplemented by concrete widget representations to register their pickers.
Reimplemented from vtkWidgetRepresentation.
void vtkPointHandleRepresentation3D::Translate |
( |
double * |
p1, |
|
|
double * |
p2 |
|
) |
| |
|
protected |
void vtkPointHandleRepresentation3D::Scale |
( |
double * |
p1, |
|
|
double * |
p2, |
|
|
double |
eventPos[2] |
|
) |
| |
|
protected |
void vtkPointHandleRepresentation3D::MoveFocus |
( |
double * |
p1, |
|
|
double * |
p2 |
|
) |
| |
|
protected |
void vtkPointHandleRepresentation3D::SizeBounds |
( |
| ) |
|
|
protected |
void vtkPointHandleRepresentation3D::MoveFocusRequest |
( |
double * |
p1, |
|
|
double * |
p2, |
|
|
double |
eventPos[2], |
|
|
double |
requestedDisplayPos[3] |
|
) |
| |
|
protected |
void vtkPointHandleRepresentation3D::CreateDefaultProperties |
( |
| ) |
|
|
protected |
int vtkPointHandleRepresentation3D::DetermineConstraintAxis |
( |
int |
constraint, |
|
|
double * |
x, |
|
|
double * |
startPoint |
|
) |
| |
|
protected |
vtkActor* vtkPointHandleRepresentation3D::Actor |
|
protected |
vtkPolyDataMapper* vtkPointHandleRepresentation3D::Mapper |
|
protected |
vtkCellPicker* vtkPointHandleRepresentation3D::CursorPicker |
|
protected |
double vtkPointHandleRepresentation3D::LastPickPosition[3] |
|
protected |
double vtkPointHandleRepresentation3D::LastEventPosition[2] |
|
protected |
int vtkPointHandleRepresentation3D::ConstraintAxis |
|
protected |
vtkProperty* vtkPointHandleRepresentation3D::Property |
|
protected |
vtkProperty* vtkPointHandleRepresentation3D::SelectedProperty |
|
protected |
double vtkPointHandleRepresentation3D::HotSpotSize |
|
protected |
int vtkPointHandleRepresentation3D::WaitingForMotion |
|
protected |
int vtkPointHandleRepresentation3D::WaitCount |
|
protected |
double vtkPointHandleRepresentation3D::CurrentHandleSize |
|
protected |
int vtkPointHandleRepresentation3D::TranslationMode |
|
protected |
int vtkPointHandleRepresentation3D::SmoothMotion |
|
protected |
The documentation for this class was generated from the following file: