VTK
|
Default representation for vtkParallelopipedWidget. More...
#include <vtkParallelopipedRepresentation.h>
Public Types | |
enum | _InteractionState { Outside = 0, Inside, RequestResizeParallelopiped, RequestResizeParallelopipedAlongAnAxis, RequestChairMode, RequestTranslateParallelopiped, RequestScaleParallelopiped, RequestRotateParallelopiped, ResizingParallelopiped, ResizingParallelopipedAlongAnAxis, ChairMode, TranslatingParallelopiped, ScalingParallelopiped, RotatingParallelopiped } |
![]() | |
typedef vtkProp | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual void | GetActors (vtkPropCollection *pc) |
void | GetBoundingPlanes (vtkPlaneCollection *pc) |
void | GetPolyData (vtkPolyData *pd) |
virtual double * | GetBounds () |
void | SetHandleRepresentation (vtkHandleRepresentation *handle) |
vtkHandleRepresentation * | GetHandleRepresentation (int index) |
virtual void | BuildRepresentation () |
virtual int | ComputeInteractionState (int X, int Y, int modify=0) |
virtual void | Translate (double translation[3]) |
virtual void | Translate (int X, int Y) |
virtual void | Scale (int X, int Y) |
virtual void | PositionHandles () |
virtual void | PlaceWidget (double corners[8][3]) |
virtual void | PlaceWidget (double bounds[6]) |
virtual void | SetInteractionState (int) |
virtual void | SetHandleProperty (vtkProperty *) |
virtual void | SetHoveredHandleProperty (vtkProperty *) |
virtual void | SetSelectedHandleProperty (vtkProperty *) |
virtual vtkProperty * | GetHandleProperty () |
virtual vtkProperty * | GetHoveredHandleProperty () |
virtual vtkProperty * | GetSelectedHandleProperty () |
void | HandlesOn () |
void | HandlesOff () |
virtual vtkProperty * | GetFaceProperty () |
virtual vtkProperty * | GetSelectedFaceProperty () |
virtual vtkProperty * | GetOutlineProperty () |
virtual vtkProperty * | GetSelectedOutlineProperty () |
virtual void | ReleaseGraphicsResources (vtkWindow *w) |
virtual int | RenderOverlay (vtkViewport *viewport) |
virtual int | RenderOpaqueGeometry (vtkViewport *viewport) |
virtual void | SetMinimumThickness (double) |
virtual double | GetMinimumThickness () |
![]() | |
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 | ShallowCopy (vtkProp *prop) |
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)) |
virtual int | HasTranslucentPolygonalGeometry () |
void | PrintSelf (ostream &os, vtkIndent indent) |
![]() | |
virtual void | Pick () |
virtual unsigned long | GetRedrawMTime () |
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 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 | 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) |
![]() | |
virtual void | DebugOn () |
virtual void | DebugOff () |
unsigned char | GetDebug () |
void | SetDebug (unsigned char 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) |
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 &os) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkParallelopipedRepresentation * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkWidgetRepresentation * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkProp * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObject *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
vtkParallelopipedRepresentation () | |
~vtkParallelopipedRepresentation () | |
void | TranslatePoint (int n, const double motionVector[3]) |
void | SetHandleHighlight (int handleIdx, vtkProperty *property) |
void | UpdateChairAtNode (int node) |
void | RemoveExistingChairs () |
void | GetParallelopipedBoundingPlanes (vtkPlaneCollection *pc) |
void | DefinePlane (vtkPlane *, double p[3][3]) |
void | DefinePlane (vtkPlane *, vtkIdType, vtkIdType, vtkIdType) |
void | SetFaceHighlight (vtkCellArray *face, vtkProperty *) |
void | HighlightAllFaces () |
void | UnHighlightAllFaces () |
![]() | |
vtkWidgetRepresentation () | |
~vtkWidgetRepresentation () | |
void | AdjustBounds (double bounds[6], double newBounds[6], double center[3]) |
double | SizeHandlesRelativeToViewport (double factor, double pos[3]) |
double | SizeHandlesInPixels (double factor, double pos[3]) |
![]() | |
vtkProp () | |
~vtkProp () | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &os) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Default representation for vtkParallelopipedWidget.
This class provides the default geometrical representation for vtkParallelopipedWidget. As a result of interactions of the widget, this representation can take on of the following shapes:
1) A parallelopiped. (8 handles, 6 faces)
2) Paralleopiped with a chair depression on any one handle. (A chair is a depression on one of the handles that carves inwards so as to allow the user to visualize cuts in the volume). (14 handles, 9 faces).
Definition at line 51 of file vtkParallelopipedRepresentation.h.
Standard methods for instances of this class.
Definition at line 60 of file vtkParallelopipedRepresentation.h.
Definition at line 150 of file vtkParallelopipedRepresentation.h.
|
protected |
|
protected |
|
static |
Instantiate the class.
|
virtual |
Standard methods for instances of this class.
Reimplemented from vtkWidgetRepresentation.
|
static |
Standard methods for instances of this class.
|
virtual |
Standard methods for instances of this class.
Reimplemented from vtkWidgetRepresentation.
|
static |
Standard methods for instances of this class.
|
virtual |
Standard methods for instances of this class.
Reimplemented from vtkProp.
|
virtual |
Methods to satisfy the superclass.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
Place the widget in the scene. You can use either of the two APIs : 1) PlaceWidget( double bounds[6] ) Creates a cuboid conforming to the said bounds. 2) PlaceWidget( double corners[8][3] ) Creates a parallelopiped with corners specified. The order in which corners are specified must obey the following rule: Corner 0 - 1 - 2 - 3 - 0 forms a face Corner 4 - 5 - 6 - 7 - 4 forms a face Corner 0 - 4 - 5
|
virtual |
Place the widget in the scene. You can use either of the two APIs : 1) PlaceWidget( double bounds[6] ) Creates a cuboid conforming to the said bounds. 2) PlaceWidget( double corners[8][3] ) Creates a parallelopiped with corners specified. The order in which corners are specified must obey the following rule: Corner 0 - 1 - 2 - 3 - 0 forms a face Corner 4 - 5 - 6 - 7 - 4 forms a face Corner 0 - 4 - 5
|
virtual |
The interaction state may be set from a widget (e.g., PointWidget) or other object. This controls how the interaction with the widget proceeds.
void vtkParallelopipedRepresentation::GetBoundingPlanes | ( | vtkPlaneCollection * | pc | ) |
Get the bounding planes of the object. The first 6 planes will be bounding planes of the parallelopiped. If in chair mode, three additional planes will be present. The last three planes will be those of the chair. The normals of all the planes will point into the object.
void vtkParallelopipedRepresentation::GetPolyData | ( | vtkPolyData * | pd | ) |
The parallelopiped polydata.
|
virtual |
The parallelopiped polydata.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
Set/Get the handle properties.
|
virtual |
Set/Get the handle properties.
|
virtual |
Set/Get the handle properties.
|
virtual |
Set/Get the handle properties.
|
virtual |
Set/Get the handle properties.
|
virtual |
Set/Get the handle properties.
void vtkParallelopipedRepresentation::SetHandleRepresentation | ( | vtkHandleRepresentation * | handle | ) |
vtkHandleRepresentation* vtkParallelopipedRepresentation::GetHandleRepresentation | ( | int | index | ) |
void vtkParallelopipedRepresentation::HandlesOn | ( | ) |
Turns the visibility of the handles on/off. Sometimes they may get in the way of visualization.
void vtkParallelopipedRepresentation::HandlesOff | ( | ) |
Turns the visibility of the handles on/off. Sometimes they may get in the way of visualization.
|
virtual |
Get the face properties. When a face is being translated, the face gets highlighted with the SelectedFaceProperty.
|
virtual |
Get the face properties. When a face is being translated, the face gets highlighted with the SelectedFaceProperty.
|
virtual |
Get the outline properties. These are the properties with which the parallelopiped wireframe is rendered.
|
virtual |
Get the outline properties. These are the properties with which the parallelopiped wireframe is rendered.
|
virtual |
This actually constructs the geometry of the widget from the various data parameters.
Implements vtkWidgetRepresentation.
|
virtual |
Methods required by vtkProp superclass.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
|
virtual |
|
virtual |
Given and x-y display coordinate, compute the interaction state of the widget.
Reimplemented from vtkWidgetRepresentation.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Synchronize the parallelopiped handle positions with the Polygonal datastructure.
|
virtual |
Minimum thickness for the parallelopiped. User interactions cannot make any individual axis of the parallopiped thinner than this value. Default is 0.05 expressed as a fraction of the diagonal of the bounding box used in the PlaceWidget() invocation.
|
virtual |
Minimum thickness for the parallelopiped. User interactions cannot make any individual axis of the parallopiped thinner than this value. Default is 0.05 expressed as a fraction of the diagonal of the bounding box used in the PlaceWidget() invocation.
|
protected |
Translate the nth PtId (0 <= n <= 15) by the specified amount.
|
protected |
Set the highlight state of a handle. If handleIdx is -1, the property is applied to all handles.
|
protected |
Highlight face defined by the supplied ptids with the specified property.
|
protected |
Highlight face defined by the supplied ptids with the specified property.
|
protected |
Highlight face defined by the supplied ptids with the specified property.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 230 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 231 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 232 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 233 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 234 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 235 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 236 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 238 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 241 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 243 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 244 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 245 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 246 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 251 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 253 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 254 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 255 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 256 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 257 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 258 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 259 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 260 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 261 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 262 of file vtkParallelopipedRepresentation.h.
|
protected |
Definition at line 263 of file vtkParallelopipedRepresentation.h.