VTK
|
defines a representation for a vtkButtonWidget More...
#include <vtkProp3DButtonRepresentation.h>
Public Member Functions | |
virtual void | SetState (int state) |
virtual void | PlaceWidget (double bounds[6]) |
void | SetButtonProp (int i, vtkProp3D *prop) |
vtkProp3D * | GetButtonProp (int i) |
virtual void | SetFollowCamera (int) |
virtual int | GetFollowCamera () |
virtual void | FollowCameraOn () |
virtual void | FollowCameraOff () |
virtual int | ComputeInteractionState (int X, int Y, int modify=0) |
virtual void | BuildRepresentation () |
virtual void | ShallowCopy (vtkProp *prop) |
virtual double * | GetBounds () |
virtual void | GetActors (vtkPropCollection *pc) |
virtual void | ReleaseGraphicsResources (vtkWindow *) |
virtual int | RenderOpaqueGeometry (vtkViewport *) |
virtual int | RenderVolumetricGeometry (vtkViewport *) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *) |
virtual int | HasTranslucentPolygonalGeometry () |
![]() | |
virtual void | SetNumberOfStates (int) |
virtual int | GetState () |
virtual void | NextState () |
virtual void | PreviousState () |
vtkButtonRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Highlight (int) |
virtual int | GetHighlightState () |
![]() | |
virtual void | PickingManagedOn () |
virtual void | PickingManagedOff () |
virtual void | SetPickingManaged (bool) |
virtual bool | GetPickingManaged () |
virtual void | SetRenderer (vtkRenderer *ren) |
virtual vtkRenderer * | GetRenderer () |
virtual void | PlaceWidget (double *vtkNotUsed(bounds[6])) |
virtual void | StartWidgetInteraction (double eventPos[2]) |
virtual void | WidgetInteraction (double newEventPos[2]) |
virtual void | EndWidgetInteraction (double newEventPos[2]) |
virtual int | GetInteractionState () |
virtual void | Highlight (int vtkNotUsed(highlightOn)) |
virtual void | SetPlaceFactor (double) |
virtual double | GetPlaceFactor () |
virtual void | SetHandleSize (double) |
virtual double | GetHandleSize () |
virtual int | GetNeedToRender () |
virtual void | SetNeedToRender (int) |
virtual void | NeedToRenderOn () |
virtual void | NeedToRenderOff () |
virtual void | GetActors2D (vtkPropCollection *) |
virtual void | GetVolumes (vtkPropCollection *) |
virtual int | RenderOverlay (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderOpaqueGeometry (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *vtkNotUsed(viewport)) |
virtual int | RenderVolumetricGeometry (vtkViewport *vtkNotUsed(viewport)) |
vtkWidgetRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static vtkProp3DButtonRepresentation * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkButtonRepresentation * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkWidgetRepresentation * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
vtkProp3DButtonRepresentation () | |
~vtkProp3DButtonRepresentation () | |
virtual void | RegisterPickers () |
![]() | |
vtkButtonRepresentation () | |
~vtkButtonRepresentation () | |
![]() | |
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) |
Protected Attributes | |
vtkProp3D * | CurrentProp |
vtkProp3DFollower * | Follower |
int | FollowCamera |
vtkPropArray * | PropArray |
vtkPropPicker * | Picker |
![]() | |
int | NumberOfStates |
int | State |
int | HighlightState |
![]() | |
vtkWeakPointer< vtkRenderer > | Renderer |
int | InteractionState |
double | StartEventPosition [3] |
double | PlaceFactor |
int | Placed |
double | InitialBounds [6] |
double | InitialLength |
int | ValidPick |
bool | PickingManaged |
double | HandleSize |
int | NeedToRender |
vtkTimeStamp | BuildTime |
typedef vtkButtonRepresentation | Superclass |
static int | IsTypeOf (const char *type) |
static vtkProp3DButtonRepresentation * | SafeDownCast (vtkObjectBase *o) |
virtual int | IsA (const char *type) |
vtkProp3DButtonRepresentation * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkObjectBase * | NewInstanceInternal () const |
Additional Inherited Members | |
![]() | |
enum | _InteractionState { Outside =0, Inside } |
typedef vtkWidgetRepresentation | Superclass |
enum | _HighlightState { HighlightNormal, HighlightHovering, HighlightSelecting } |
![]() | |
typedef vtkProp | Superclass |
defines a representation for a vtkButtonWidget
This class implements one type of vtkButtonRepresentation. Each button state can be represented with a separate instance of vtkProp3D. Thus buttons can be represented with vtkActor, vtkImageActor, volumes (e.g., vtkVolume) and/or any other vtkProp3D. Also, the class invokes events when highlighting occurs (i.e., hovering, selecting) so that appropriate action can be taken to highlight the button (if desired).
To use this representation, always begin by specifying the number of button states. Then provide, for each state, an instance of vtkProp3D.
This widget representation uses the conventional placement method. The button is placed inside the bounding box defined by PlaceWidget by translating and scaling the vtkProp3D to fit (each vtkProp3D is transformed). Therefore, you must define the number of button states and each state (i.e., vtkProp3D) prior to calling vtkPlaceWidget.
Definition at line 53 of file vtkProp3DButtonRepresentation.h.
Standard methods for instances of the class.
Definition at line 61 of file vtkProp3DButtonRepresentation.h.
|
protected |
|
protected |
|
static |
Instantiate the class.
|
static |
Standard methods for instances of the class.
|
virtual |
Standard methods for instances of the class.
Reimplemented from vtkButtonRepresentation.
|
static |
Standard methods for instances of the class.
|
protectedvirtual |
Standard methods for instances of the class.
Reimplemented from vtkButtonRepresentation.
vtkProp3DButtonRepresentation* vtkProp3DButtonRepresentation::NewInstance | ( | ) | const |
Standard methods for instances of the class.
void vtkProp3DButtonRepresentation::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
Standard methods for instances of the class.
void vtkProp3DButtonRepresentation::SetButtonProp | ( | int | i, |
vtkProp3D * | prop | ||
) |
Add the ith texture corresponding to the ith button state. The parameter i should be (0 <= i < NumberOfStates).
vtkProp3D* vtkProp3DButtonRepresentation::GetButtonProp | ( | int | i | ) |
Add the ith texture corresponding to the ith button state. The parameter i should be (0 <= i < NumberOfStates).
|
virtual |
Specify whether the button should always face the camera. If enabled, the button reorients itself towards the camera as the camera moves.
|
virtual |
Specify whether the button should always face the camera. If enabled, the button reorients itself towards the camera as the camera moves.
|
virtual |
Specify whether the button should always face the camera. If enabled, the button reorients itself towards the camera as the camera moves.
|
virtual |
Specify whether the button should always face the camera. If enabled, the button reorients itself towards the camera as the camera moves.
|
virtual |
Extend the vtkButtonRepresentation::SetState() method.
Reimplemented from vtkButtonRepresentation.
|
virtual |
Provide the necessary methods to satisfy the vtkWidgetRepresentation API.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
Provide the necessary methods to satisfy the vtkWidgetRepresentation API.
Implements vtkWidgetRepresentation.
|
virtual |
This method positions (translates and scales the props) into the bounding box specified. Note all the button props are scaled.
|
virtual |
Provide the necessary methods to satisfy the rendering API.
Reimplemented from vtkButtonRepresentation.
|
virtual |
Provide the necessary methods to satisfy the rendering API.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
Provide the necessary methods to satisfy the rendering API.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
Provide the necessary methods to satisfy the rendering API.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
Provide the necessary methods to satisfy the rendering API.
|
virtual |
Provide the necessary methods to satisfy the rendering API.
|
virtual |
Provide the necessary methods to satisfy the rendering API.
|
virtual |
Provide the necessary methods to satisfy the rendering API.
Reimplemented from vtkWidgetRepresentation.
|
protectedvirtual |
Register internal Pickers in the Picking Manager. Must be reimplemented by concrete widget representations to register their pickers.
Reimplemented from vtkWidgetRepresentation.
|
protected |
Definition at line 111 of file vtkProp3DButtonRepresentation.h.
|
protected |
Definition at line 114 of file vtkProp3DButtonRepresentation.h.
|
protected |
Definition at line 115 of file vtkProp3DButtonRepresentation.h.
|
protected |
Definition at line 119 of file vtkProp3DButtonRepresentation.h.
|
protected |
Definition at line 122 of file vtkProp3DButtonRepresentation.h.