VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkParallelopipedRepresentation Class Reference

Default representation for vtkParallelopipedWidget. More...

#include <vtkParallelopipedRepresentation.h>

Inheritance diagram for vtkParallelopipedRepresentation:
[legend]
Collaboration diagram for vtkParallelopipedRepresentation:
[legend]

Public Types

enum  _InteractionState {
  Outside = 0, Inside, RequestResizeParallelopiped, RequestResizeParallelopipedAlongAnAxis,
  RequestChairMode, RequestTranslateParallelopiped, RequestScaleParallelopiped, RequestRotateParallelopiped,
  ResizingParallelopiped, ResizingParallelopipedAlongAnAxis, ChairMode, TranslatingParallelopiped,
  ScalingParallelopiped, RotatingParallelopiped
}
 
- Public Types inherited from vtkWidgetRepresentation
typedef vtkProp Superclass
 

Public Member Functions

virtual void GetActors (vtkPropCollection *pc)
 
void GetBoundingPlanes (vtkPlaneCollection *pc)
 
void GetPolyData (vtkPolyData *pd)
 
virtual double * GetBounds ()
 
void SetHandleRepresentation (vtkHandleRepresentation *handle)
 
vtkHandleRepresentationGetHandleRepresentation (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 ()
 
- Public Member Functions inherited from vtkWidgetRepresentation
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 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 ()
 
vtkWidgetRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 

Static Public Member Functions

static
vtkParallelopipedRepresentation
New ()
 
- Static Public Member Functions inherited from vtkWidgetRepresentation
static int IsTypeOf (const char *type)
 
static vtkWidgetRepresentationSafeDownCast (vtkObjectBase *o)
 

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 ()
 
- Protected Member Functions inherited from vtkWidgetRepresentation
 vtkWidgetRepresentation ()
 
 ~vtkWidgetRepresentation ()
 
void AdjustBounds (double bounds[6], double newBounds[6], double center[3])
 
virtual void RegisterPickers ()
 
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

vtkActor * HexActor
 
vtkPolyDataMapper * HexMapper
 
vtkPolyDataHexPolyData
 
vtkPoints * Points
 
vtkActor * HexFaceActor
 
vtkPolyDataMapper * HexFaceMapper
 
vtkPolyDataHexFacePolyData
 
double LastEventPosition [2]
 
int LastResizeAxisIdx
 
vtkHandleRepresentationHandleRepresentation
 
vtkHandleRepresentation ** HandleRepresentations
 
int CurrentHandleIdx
 
int ChairHandleIdx
 
double InitialChairDepth
 
vtkProperty * HandleProperty
 
vtkProperty * HoveredHandleProperty
 
vtkProperty * FaceProperty
 
vtkProperty * OutlineProperty
 
vtkProperty * SelectedHandleProperty
 
vtkProperty * SelectedFaceProperty
 
vtkProperty * SelectedOutlineProperty
 
vtkClosedSurfacePointPlacerChairPointPlacer
 
vtkParallelopipedTopology * Topology
 
double MinimumThickness
 
double AbsoluteMinimumThickness
 
- Protected Attributes inherited from vtkWidgetRepresentation
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 vtkWidgetRepresentation Superclass
 
static int IsTypeOf (const char *type)
 
static
vtkParallelopipedRepresentation
SafeDownCast (vtkObjectBase *o)
 
virtual int IsA (const char *type)
 
vtkParallelopipedRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual vtkObjectBase * NewInstanceInternal () const
 

Detailed Description

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).

See Also
vtkParallelopipedWidget
Tests:
vtkParallelopipedRepresentation (Tests)

Definition at line 52 of file vtkParallelopipedRepresentation.h.

Member Typedef Documentation

Standard methods for instances of this class.

Definition at line 61 of file vtkParallelopipedRepresentation.h.

Member Enumeration Documentation

Enumerator
Outside 
Inside 
RequestResizeParallelopiped 
RequestResizeParallelopipedAlongAnAxis 
RequestChairMode 
RequestTranslateParallelopiped 
RequestScaleParallelopiped 
RequestRotateParallelopiped 
ResizingParallelopiped 
ResizingParallelopipedAlongAnAxis 
ChairMode 
TranslatingParallelopiped 
ScalingParallelopiped 
RotatingParallelopiped 

Definition at line 151 of file vtkParallelopipedRepresentation.h.

Constructor & Destructor Documentation

vtkParallelopipedRepresentation::vtkParallelopipedRepresentation ( )
protected
vtkParallelopipedRepresentation::~vtkParallelopipedRepresentation ( )
protected

Member Function Documentation

static vtkParallelopipedRepresentation* vtkParallelopipedRepresentation::New ( )
static

Instantiate the class.

static int vtkParallelopipedRepresentation::IsTypeOf ( const char *  type)
static

Standard methods for instances of this class.

virtual int vtkParallelopipedRepresentation::IsA ( const char *  type)
virtual

Standard methods for instances of this class.

Reimplemented from vtkWidgetRepresentation.

static vtkParallelopipedRepresentation* vtkParallelopipedRepresentation::SafeDownCast ( vtkObjectBase *  o)
static

Standard methods for instances of this class.

virtual vtkObjectBase* vtkParallelopipedRepresentation::NewInstanceInternal ( ) const
protectedvirtual

Standard methods for instances of this class.

Reimplemented from vtkWidgetRepresentation.

vtkParallelopipedRepresentation* vtkParallelopipedRepresentation::NewInstance ( ) const

Standard methods for instances of this class.

void vtkParallelopipedRepresentation::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

Standard methods for instances of this class.

virtual void vtkParallelopipedRepresentation::GetActors ( vtkPropCollection *  pc)
virtual

Methods to satisfy the superclass.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkParallelopipedRepresentation::PlaceWidget ( double  corners[8][3])
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

  • 1 - 0 forms a face Corner 1 - 5 - 6 - 2 - 1 forms a face Corner 2
  • 6 - 7 - 3 - 2 forms a face Corner 3 - 7 - 4 - 0 - 3 forms a face
virtual void vtkParallelopipedRepresentation::PlaceWidget ( double  bounds[6])
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

  • 1 - 0 forms a face Corner 1 - 5 - 6 - 2 - 1 forms a face Corner 2
  • 6 - 7 - 3 - 2 forms a face Corner 3 - 7 - 4 - 0 - 3 forms a face
virtual void vtkParallelopipedRepresentation::SetInteractionState ( int  )
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 double* vtkParallelopipedRepresentation::GetBounds ( )
virtual

The parallelopiped polydata.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkParallelopipedRepresentation::SetHandleProperty ( vtkProperty *  )
virtual

Set/Get the handle properties.

virtual void vtkParallelopipedRepresentation::SetHoveredHandleProperty ( vtkProperty *  )
virtual

Set/Get the handle properties.

virtual void vtkParallelopipedRepresentation::SetSelectedHandleProperty ( vtkProperty *  )
virtual

Set/Get the handle properties.

virtual vtkProperty* vtkParallelopipedRepresentation::GetHandleProperty ( )
virtual

Set/Get the handle properties.

virtual vtkProperty* vtkParallelopipedRepresentation::GetHoveredHandleProperty ( )
virtual

Set/Get the handle properties.

virtual vtkProperty* vtkParallelopipedRepresentation::GetSelectedHandleProperty ( )
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 vtkProperty* vtkParallelopipedRepresentation::GetFaceProperty ( )
virtual

Get the face properties. When a face is being translated, the face gets highlighted with the SelectedFaceProperty.

virtual vtkProperty* vtkParallelopipedRepresentation::GetSelectedFaceProperty ( )
virtual

Get the face properties. When a face is being translated, the face gets highlighted with the SelectedFaceProperty.

virtual vtkProperty* vtkParallelopipedRepresentation::GetOutlineProperty ( )
virtual

Get the outline properties. These are the properties with which the parallelopiped wireframe is rendered.

virtual vtkProperty* vtkParallelopipedRepresentation::GetSelectedOutlineProperty ( )
virtual

Get the outline properties. These are the properties with which the parallelopiped wireframe is rendered.

virtual void vtkParallelopipedRepresentation::BuildRepresentation ( )
virtual

This actually constructs the geometry of the widget from the various data parameters.

Implements vtkWidgetRepresentation.

virtual void vtkParallelopipedRepresentation::ReleaseGraphicsResources ( vtkWindow *  w)
virtual

Methods required by vtkProp superclass.

Reimplemented from vtkWidgetRepresentation.

virtual int vtkParallelopipedRepresentation::RenderOverlay ( vtkViewport *  viewport)
virtual

Methods required by vtkProp superclass.

virtual int vtkParallelopipedRepresentation::RenderOpaqueGeometry ( vtkViewport *  viewport)
virtual

Methods required by vtkProp superclass.

virtual int vtkParallelopipedRepresentation::ComputeInteractionState ( int  X,
int  Y,
int  modify = 0 
)
virtual

Given and x-y display coordinate, compute the interaction state of the widget.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkParallelopipedRepresentation::Translate ( double  translation[3])
virtual
virtual void vtkParallelopipedRepresentation::Translate ( int  X,
int  Y 
)
virtual
virtual void vtkParallelopipedRepresentation::Scale ( int  X,
int  Y 
)
virtual
virtual void vtkParallelopipedRepresentation::PositionHandles ( )
virtual

Synchronize the parallelopiped handle positions with the Polygonal datastructure.

virtual void vtkParallelopipedRepresentation::SetMinimumThickness ( double  )
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 double vtkParallelopipedRepresentation::GetMinimumThickness ( )
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.

void vtkParallelopipedRepresentation::TranslatePoint ( int  n,
const double  motionVector[3] 
)
protected

Translate the nth PtId (0 <= n <= 15) by the specified amount.

void vtkParallelopipedRepresentation::SetHandleHighlight ( int  handleIdx,
vtkProperty *  property 
)
protected

Set the highlight state of a handle. If handleIdx is -1, the property is applied to all handles.

void vtkParallelopipedRepresentation::SetFaceHighlight ( vtkCellArray face,
vtkProperty *   
)
protected

Highlight face defined by the supplied ptids with the specified property.

void vtkParallelopipedRepresentation::HighlightAllFaces ( )
protected

Highlight face defined by the supplied ptids with the specified property.

void vtkParallelopipedRepresentation::UnHighlightAllFaces ( )
protected

Highlight face defined by the supplied ptids with the specified property.

void vtkParallelopipedRepresentation::UpdateChairAtNode ( int  node)
protected
void vtkParallelopipedRepresentation::RemoveExistingChairs ( )
protected
void vtkParallelopipedRepresentation::GetParallelopipedBoundingPlanes ( vtkPlaneCollection pc)
protected
void vtkParallelopipedRepresentation::DefinePlane ( vtkPlane *  ,
double  p[3][3] 
)
protected
void vtkParallelopipedRepresentation::DefinePlane ( vtkPlane *  ,
vtkIdType  ,
vtkIdType  ,
vtkIdType   
)
protected

Member Data Documentation

vtkActor* vtkParallelopipedRepresentation::HexActor
protected

Definition at line 231 of file vtkParallelopipedRepresentation.h.

vtkPolyDataMapper* vtkParallelopipedRepresentation::HexMapper
protected

Definition at line 232 of file vtkParallelopipedRepresentation.h.

vtkPolyData* vtkParallelopipedRepresentation::HexPolyData
protected

Definition at line 233 of file vtkParallelopipedRepresentation.h.

vtkPoints* vtkParallelopipedRepresentation::Points
protected

Definition at line 234 of file vtkParallelopipedRepresentation.h.

vtkActor* vtkParallelopipedRepresentation::HexFaceActor
protected

Definition at line 235 of file vtkParallelopipedRepresentation.h.

vtkPolyDataMapper* vtkParallelopipedRepresentation::HexFaceMapper
protected

Definition at line 236 of file vtkParallelopipedRepresentation.h.

vtkPolyData* vtkParallelopipedRepresentation::HexFacePolyData
protected

Definition at line 237 of file vtkParallelopipedRepresentation.h.

double vtkParallelopipedRepresentation::LastEventPosition[2]
protected

Definition at line 239 of file vtkParallelopipedRepresentation.h.

int vtkParallelopipedRepresentation::LastResizeAxisIdx
protected

Definition at line 242 of file vtkParallelopipedRepresentation.h.

vtkHandleRepresentation* vtkParallelopipedRepresentation::HandleRepresentation
protected

Definition at line 244 of file vtkParallelopipedRepresentation.h.

vtkHandleRepresentation** vtkParallelopipedRepresentation::HandleRepresentations
protected

Definition at line 245 of file vtkParallelopipedRepresentation.h.

int vtkParallelopipedRepresentation::CurrentHandleIdx
protected

Definition at line 246 of file vtkParallelopipedRepresentation.h.

int vtkParallelopipedRepresentation::ChairHandleIdx
protected

Definition at line 247 of file vtkParallelopipedRepresentation.h.

double vtkParallelopipedRepresentation::InitialChairDepth
protected

Definition at line 252 of file vtkParallelopipedRepresentation.h.

vtkProperty* vtkParallelopipedRepresentation::HandleProperty
protected

Definition at line 254 of file vtkParallelopipedRepresentation.h.

vtkProperty* vtkParallelopipedRepresentation::HoveredHandleProperty
protected

Definition at line 255 of file vtkParallelopipedRepresentation.h.

vtkProperty* vtkParallelopipedRepresentation::FaceProperty
protected

Definition at line 256 of file vtkParallelopipedRepresentation.h.

vtkProperty* vtkParallelopipedRepresentation::OutlineProperty
protected

Definition at line 257 of file vtkParallelopipedRepresentation.h.

vtkProperty* vtkParallelopipedRepresentation::SelectedHandleProperty
protected

Definition at line 258 of file vtkParallelopipedRepresentation.h.

vtkProperty* vtkParallelopipedRepresentation::SelectedFaceProperty
protected

Definition at line 259 of file vtkParallelopipedRepresentation.h.

vtkProperty* vtkParallelopipedRepresentation::SelectedOutlineProperty
protected

Definition at line 260 of file vtkParallelopipedRepresentation.h.

vtkClosedSurfacePointPlacer* vtkParallelopipedRepresentation::ChairPointPlacer
protected

Definition at line 261 of file vtkParallelopipedRepresentation.h.

vtkParallelopipedTopology* vtkParallelopipedRepresentation::Topology
protected

Definition at line 262 of file vtkParallelopipedRepresentation.h.

double vtkParallelopipedRepresentation::MinimumThickness
protected

Definition at line 263 of file vtkParallelopipedRepresentation.h.

double vtkParallelopipedRepresentation::AbsoluteMinimumThickness
protected

Definition at line 264 of file vtkParallelopipedRepresentation.h.


The documentation for this class was generated from the following file: