|
vtkBalloonRepresentation * | GetBalloon () |
|
virtual void | PlaceWidget (double bounds[6]) |
|
virtual void | PlaceWidget (double anchor[3], int size[2]) |
|
|
virtual void | SetProperty (vtkProperty2D *p) |
|
virtual vtkProperty2D * | GetProperty () |
|
|
virtual void | SetHoveringProperty (vtkProperty2D *p) |
|
virtual vtkProperty2D * | GetHoveringProperty () |
|
|
virtual void | SetSelectingProperty (vtkProperty2D *p) |
|
virtual vtkProperty2D * | GetSelectingProperty () |
|
|
void | SetButtonTexture (int i, vtkImageData *image) |
|
vtkImageData * | GetButtonTexture (int i) |
|
|
virtual int | ComputeInteractionState (int X, int Y, int modify=0) |
|
virtual void | BuildRepresentation () |
|
virtual void | Highlight (int state) |
|
|
virtual void | ShallowCopy (vtkProp *prop) |
|
virtual double * | GetBounds () |
|
virtual void | GetActors (vtkPropCollection *pc) |
|
virtual void | ReleaseGraphicsResources (vtkWindow *) |
|
virtual int | RenderOverlay (vtkViewport *) |
|
virtual int | HasTranslucentPolygonalGeometry () |
|
virtual void | SetNumberOfStates (int) |
|
virtual int | GetState () |
|
virtual void | SetState (int state) |
|
virtual void | NextState () |
|
virtual void | PreviousState () |
|
vtkButtonRepresentation * | NewInstance () const |
|
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) |
|
vtkProp * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) |
|
virtual void | Pick () |
|
virtual bool | HasKeys (vtkInformation *requiredKeys) |
|
virtual void | BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path) |
|
virtual void | SetVisibility (int) |
|
virtual int | GetVisibility () |
|
virtual void | VisibilityOn () |
|
virtual void | VisibilityOff () |
|
virtual void | SetPickable (int) |
|
virtual int | GetPickable () |
|
virtual void | PickableOn () |
|
virtual void | PickableOff () |
|
virtual void | SetDragable (int) |
|
virtual int | GetDragable () |
|
virtual void | DragableOn () |
|
virtual void | DragableOff () |
|
virtual unsigned long | GetRedrawMTime () |
|
virtual void | SetUseBounds (bool) |
|
virtual bool | GetUseBounds () |
|
virtual void | UseBoundsOn () |
|
virtual void | UseBoundsOff () |
|
virtual void | InitPathTraversal () |
|
virtual vtkAssemblyPath * | GetNextPath () |
|
virtual int | GetNumberOfPaths () |
|
virtual void | PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix)) |
|
virtual vtkMatrix4x4 * | GetMatrix () |
|
virtual vtkInformation * | GetPropertyKeys () |
|
virtual void | SetPropertyKeys (vtkInformation *keys) |
|
virtual int | RenderOpaqueGeometry (vtkViewport *) |
|
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *) |
|
virtual int | RenderVolumetricGeometry (vtkViewport *) |
|
virtual bool | RenderFilteredOpaqueGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
|
virtual bool | RenderFilteredTranslucentPolygonalGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
|
virtual bool | RenderFilteredVolumetricGeometry (vtkViewport *v, vtkInformation *requiredKeys) |
|
virtual bool | RenderFilteredOverlay (vtkViewport *v, vtkInformation *requiredKeys) |
|
virtual double | GetEstimatedRenderTime (vtkViewport *) |
|
virtual double | GetEstimatedRenderTime () |
|
virtual void | SetEstimatedRenderTime (double t) |
|
virtual void | RestoreEstimatedRenderTime () |
|
virtual void | AddEstimatedRenderTime (double t, vtkViewport *vtkNotUsed(vp)) |
|
virtual void | SetAllocatedRenderTime (double t, vtkViewport *vtkNotUsed(v)) |
|
virtual double | GetAllocatedRenderTime () |
|
void | SetRenderTimeMultiplier (double t) |
|
virtual double | GetRenderTimeMultiplier () |
|
virtual bool | GetSupportsSelection () |
|
virtual int | GetNumberOfConsumers () |
|
void | AddConsumer (vtkObject *c) |
|
void | RemoveConsumer (vtkObject *c) |
|
vtkObject * | GetConsumer (int i) |
|
int | IsConsumer (vtkObject *c) |
|
vtkObject * | NewInstance () const |
|
virtual void | DebugOn () |
|
virtual void | DebugOff () |
|
bool | GetDebug () |
|
void | SetDebug (bool debugFlag) |
|
virtual void | Modified () |
|
virtual unsigned long | GetMTime () |
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
|
vtkCommand * | GetCommand (unsigned long tag) |
|
void | RemoveObserver (vtkCommand *) |
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
|
void | RemoveObservers (const char *event, vtkCommand *) |
|
int | HasObserver (unsigned long event, vtkCommand *) |
|
int | HasObserver (const char *event, vtkCommand *) |
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
int | HasObserver (unsigned long event) |
|
int | HasObserver (const char *event) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
int | InvokeEvent (unsigned long event, void *callData) |
|
int | InvokeEvent (const char *event, void *callData) |
|
int | InvokeEvent (unsigned long event) |
|
int | InvokeEvent (const char *event) |
|
const char * | GetClassName () const |
|
virtual void | Delete () |
|
virtual void | FastDelete () |
|
void | Print (ostream &os) |
|
virtual void | Register (vtkObjectBase *o) |
|
virtual void | UnRegister (vtkObjectBase *o) |
|
void | SetReferenceCount (int) |
|
void | PrintRevisions (ostream &) |
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
int | GetReferenceCount () |
|
defines a representation for a vtkButtonWidget
This class implements one type of vtkButtonRepresentation. It changes the appearance of a user-provided polydata by assigning textures according to the current button state. It also provides highlighting (when hovering and selecting the button) by fiddling with the actor's property. Since this is a 2D version, the button is rendered in the overlay plane. Typically it is positioned in display coordinates, but it can be anchored to a world position so it will appear to move as the camera moves.
To use this representation, always begin by specifying the number of button states. Then provide a polydata (the polydata should have associated texture coordinates), and a list of textures cooresponding to the button states. Optionally, the HoveringProperty and SelectionProperty can be adjusted to obtain the appropriate appearance.
,SECTION Caveats There are two variants of the PlaceWidget() method. The first PlaceWidget(bds[6]) allows the widget to be placed in the display coordinates fixed to the overlay plane. The second PlaceWidget(anchor[3],size[2]) places the widget in world space; hence it will appear to move as the camera moves around the scene.
- See also
- vtkButtonWidget vtkButtonRepresentation vtkTexturedButtonRepresentation vtkProp3DButtonRepresentation
- Tests:
- vtkTexturedButtonRepresentation2D (Tests)
Definition at line 61 of file vtkTexturedButtonRepresentation2D.h.