A spherical rendition of point in 3D space.
More...
#include <vtkSphereHandleRepresentation.h>
|
| vtkSphereHandleRepresentation () |
|
| ~vtkSphereHandleRepresentation () |
|
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 | CreateDefaultProperties () |
|
int | DetermineConstraintAxis (int constraint, double *x) |
|
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) |
|
A spherical rendition of point in 3D space.
This class is a concrete implementation of vtkHandleRepresentation. It renders handles as spherical blobs in 3D space.
- See Also
- vtkHandleRepresentation vtkHandleWidget vtkSphereSource
- Tests:
- vtkSphereHandleRepresentation (Tests)
Definition at line 42 of file vtkSphereHandleRepresentation.h.
vtkSphereHandleRepresentation::vtkSphereHandleRepresentation |
( |
| ) |
|
|
protected |
vtkSphereHandleRepresentation::~vtkSphereHandleRepresentation |
( |
| ) |
|
|
protected |
static int vtkSphereHandleRepresentation::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
Standard methods for instances of this class.
virtual int vtkSphereHandleRepresentation::IsA |
( |
const char * |
type | ) |
|
|
virtual |
Standard methods for instances of this class.
virtual vtkObjectBase* vtkSphereHandleRepresentation::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
Standard methods for instances of this class.
void vtkSphereHandleRepresentation::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
Standard methods for instances of this class.
virtual void vtkSphereHandleRepresentation::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 vtkSphereHandleRepresentation::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.
virtual void vtkSphereHandleRepresentation::SetTranslationMode |
( |
int |
| ) |
|
|
virtual |
If translation mode is on, as the widget is moved the bounding box, shadows, and cursor are all translated simultaneously as the point moves (i.e., the left and middle mouse buttons act the same). Otherwise, only 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.)
virtual int vtkSphereHandleRepresentation::GetTranslationMode |
( |
| ) |
|
|
virtual |
If translation mode is on, as the widget is moved the bounding box, shadows, and cursor are all translated simultaneously as the point moves (i.e., the left and middle mouse buttons act the same). Otherwise, only 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.)
virtual void vtkSphereHandleRepresentation::TranslationModeOn |
( |
| ) |
|
|
virtual |
If translation mode is on, as the widget is moved the bounding box, shadows, and cursor are all translated simultaneously as the point moves (i.e., the left and middle mouse buttons act the same). Otherwise, only 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.)
virtual void vtkSphereHandleRepresentation::TranslationModeOff |
( |
| ) |
|
|
virtual |
If translation mode is on, as the widget is moved the bounding box, shadows, and cursor are all translated simultaneously as the point moves (i.e., the left and middle mouse buttons act the same). Otherwise, only 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.)
void vtkSphereHandleRepresentation::SetSphereRadius |
( |
double |
| ) |
|
double vtkSphereHandleRepresentation::GetSphereRadius |
( |
| ) |
|
void vtkSphereHandleRepresentation::SetProperty |
( |
vtkProperty * |
| ) |
|
Set/Get the handle properties when unselected and selected.
void vtkSphereHandleRepresentation::SetSelectedProperty |
( |
vtkProperty * |
| ) |
|
Set/Get the handle properties when unselected and selected.
virtual vtkProperty* vtkSphereHandleRepresentation::GetProperty |
( |
| ) |
|
|
virtual |
Set/Get the handle properties when unselected and selected.
virtual vtkProperty* vtkSphereHandleRepresentation::GetSelectedProperty |
( |
| ) |
|
|
virtual |
Set/Get the handle properties when unselected and selected.
virtual void vtkSphereHandleRepresentation::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 vtkSphereHandleRepresentation::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 vtkSphereHandleRepresentation::SetHandleSize |
( |
double |
size | ) |
|
|
virtual |
virtual double* vtkSphereHandleRepresentation::GetBounds |
( |
| ) |
|
|
virtual |
virtual void vtkSphereHandleRepresentation::BuildRepresentation |
( |
| ) |
|
|
virtual |
virtual void vtkSphereHandleRepresentation::StartWidgetInteraction |
( |
double |
eventPos[2] | ) |
|
|
virtual |
virtual void vtkSphereHandleRepresentation::WidgetInteraction |
( |
double |
eventPos[2] | ) |
|
|
virtual |
virtual int vtkSphereHandleRepresentation::ComputeInteractionState |
( |
int |
X, |
|
|
int |
Y, |
|
|
int |
modify = 0 |
|
) |
| |
|
virtual |
virtual void vtkSphereHandleRepresentation::PlaceWidget |
( |
double |
bounds[6] | ) |
|
|
virtual |
virtual void vtkSphereHandleRepresentation::ShallowCopy |
( |
vtkProp * |
prop | ) |
|
|
virtual |
virtual void vtkSphereHandleRepresentation::DeepCopy |
( |
vtkProp * |
prop | ) |
|
|
virtual |
virtual void vtkSphereHandleRepresentation::GetActors |
( |
vtkPropCollection * |
| ) |
|
|
virtual |
virtual void vtkSphereHandleRepresentation::ReleaseGraphicsResources |
( |
vtkWindow * |
| ) |
|
|
virtual |
virtual int vtkSphereHandleRepresentation::RenderOpaqueGeometry |
( |
vtkViewport * |
viewport | ) |
|
|
virtual |
Methods to make this class behave as a vtkProp.
virtual int vtkSphereHandleRepresentation::RenderTranslucentPolygonalGeometry |
( |
vtkViewport * |
viewport | ) |
|
|
virtual |
Methods to make this class behave as a vtkProp.
virtual int vtkSphereHandleRepresentation::HasTranslucentPolygonalGeometry |
( |
| ) |
|
|
virtual |
void vtkSphereHandleRepresentation::Highlight |
( |
int |
highlight | ) |
|
virtual void vtkSphereHandleRepresentation::RegisterPickers |
( |
| ) |
|
|
protectedvirtual |
Register internal Pickers in the Picking Manager. Must be reimplemented by concrete widget representations to register their pickers.
Reimplemented from vtkWidgetRepresentation.
void vtkSphereHandleRepresentation::Translate |
( |
double * |
p1, |
|
|
double * |
p2 |
|
) |
| |
|
protected |
void vtkSphereHandleRepresentation::Scale |
( |
double * |
p1, |
|
|
double * |
p2, |
|
|
double |
eventPos[2] |
|
) |
| |
|
protected |
void vtkSphereHandleRepresentation::MoveFocus |
( |
double * |
p1, |
|
|
double * |
p2 |
|
) |
| |
|
protected |
void vtkSphereHandleRepresentation::SizeBounds |
( |
| ) |
|
|
protected |
void vtkSphereHandleRepresentation::CreateDefaultProperties |
( |
| ) |
|
|
protected |
int vtkSphereHandleRepresentation::DetermineConstraintAxis |
( |
int |
constraint, |
|
|
double * |
x |
|
) |
| |
|
protected |
vtkActor* vtkSphereHandleRepresentation::Actor |
|
protected |
vtkPolyDataMapper* vtkSphereHandleRepresentation::Mapper |
|
protected |
vtkCellPicker* vtkSphereHandleRepresentation::CursorPicker |
|
protected |
double vtkSphereHandleRepresentation::LastPickPosition[3] |
|
protected |
double vtkSphereHandleRepresentation::LastEventPosition[2] |
|
protected |
int vtkSphereHandleRepresentation::ConstraintAxis |
|
protected |
vtkProperty* vtkSphereHandleRepresentation::Property |
|
protected |
vtkProperty* vtkSphereHandleRepresentation::SelectedProperty |
|
protected |
double vtkSphereHandleRepresentation::HotSpotSize |
|
protected |
int vtkSphereHandleRepresentation::WaitingForMotion |
|
protected |
int vtkSphereHandleRepresentation::WaitCount |
|
protected |
double vtkSphereHandleRepresentation::CurrentHandleSize |
|
protected |
int vtkSphereHandleRepresentation::TranslationMode |
|
protected |
The documentation for this class was generated from the following file: