VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkImplicitCylinderRepresentation Class Reference

defining the representation for a vtkImplicitCylinderWidget More...

#include <vtkImplicitCylinderRepresentation.h>

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

Public Types

enum  _InteractionState {
  Outside =0, Moving, MovingOutline, MovingCenter,
  RotatingAxis, AdjustingRadius, Scaling
}
 
- Public Types inherited from vtkWidgetRepresentation
typedef vtkProp Superclass
 
- Public Types inherited from vtkProp
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

void GetCylinder (vtkCylinder *cyl)
 
void GetPolyData (vtkPolyData *pd)
 
void UpdatePlacement (void)
 
void BumpCylinder (int dir, double factor)
 
void PushCylinder (double distance)
 
void SetCenter (double x, double y, double z)
 
void SetCenter (double x[3])
 
doubleGetCenter ()
 
void GetCenter (double xyz[3])
 
void SetAxis (double x, double y, double z)
 
void SetAxis (double a[3])
 
doubleGetAxis ()
 
void GetAxis (double a[3])
 
void SetRadius (double r)
 
double GetRadius ()
 
virtual void SetMinRadius (double)
 
virtual double GetMinRadius ()
 
virtual void SetMaxRadius (double)
 
virtual double GetMaxRadius ()
 
void SetAlongXAxis (int)
 
virtual int GetAlongXAxis ()
 
virtual void AlongXAxisOn ()
 
virtual void AlongXAxisOff ()
 
void SetAlongYAxis (int)
 
virtual int GetAlongYAxis ()
 
virtual void AlongYAxisOn ()
 
virtual void AlongYAxisOff ()
 
void SetAlongZAxis (int)
 
virtual int GetAlongZAxis ()
 
virtual void AlongZAxisOn ()
 
virtual void AlongZAxisOff ()
 
void SetDrawCylinder (int plane)
 
virtual int GetDrawCylinder ()
 
virtual void DrawCylinderOn ()
 
virtual void DrawCylinderOff ()
 
virtual void SetResolution (int)
 
virtual int GetResolution ()
 
virtual void SetTubing (int)
 
virtual int GetTubing ()
 
virtual void TubingOn ()
 
virtual void TubingOff ()
 
virtual void SetOutlineTranslation (int)
 
virtual int GetOutlineTranslation ()
 
virtual void OutlineTranslationOn ()
 
virtual void OutlineTranslationOff ()
 
virtual void SetOutsideBounds (int)
 
virtual int GetOutsideBounds ()
 
virtual void OutsideBoundsOn ()
 
virtual void OutsideBoundsOff ()
 
virtual void SetScaleEnabled (int)
 
virtual int GetScaleEnabled ()
 
virtual void ScaleEnabledOn ()
 
virtual void ScaleEnabledOff ()
 
virtual vtkPropertyGetAxisProperty ()
 
virtual vtkPropertyGetSelectedAxisProperty ()
 
virtual vtkPropertyGetCylinderProperty ()
 
virtual vtkPropertyGetSelectedCylinderProperty ()
 
virtual vtkPropertyGetOutlineProperty ()
 
virtual vtkPropertyGetSelectedOutlineProperty ()
 
virtual vtkPropertyGetEdgesProperty ()
 
void SetEdgeColor (vtkLookupTable *)
 
void SetEdgeColor (double, double, double)
 
void SetEdgeColor (double x[3])
 
virtual int ComputeInteractionState (int X, int Y, int modify=0)
 
virtual void PlaceWidget (double bounds[6])
 
virtual void BuildRepresentation ()
 
virtual void StartWidgetInteraction (double eventPos[2])
 
virtual void WidgetInteraction (double newEventPos[2])
 
virtual void EndWidgetInteraction (double newEventPos[2])
 
virtual doubleGetBounds ()
 
virtual void GetActors (vtkPropCollection *pc)
 
virtual void ReleaseGraphicsResources (vtkWindow *)
 
virtual int RenderOpaqueGeometry (vtkViewport *)
 
virtual int RenderTranslucentPolygonalGeometry (vtkViewport *)
 
virtual int HasTranslucentPolygonalGeometry ()
 
virtual void SetBumpDistance (double)
 
virtual double GetBumpDistance ()
 
virtual void SetInteractionState (int)
 
virtual void SetRepresentationState (int)
 
virtual int GetRepresentationState ()
 
- 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 vtkRendererGetRenderer ()
 
virtual void PlaceWidget (double *vtkNotUsed(bounds[6]))
 
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))
 
vtkWidgetRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
- Public Member Functions inherited from vtkProp
vtkPropNewInstance () 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 vtkAssemblyPathGetNextPath ()
 
virtual int GetNumberOfPaths ()
 
virtual void PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix))
 
virtual vtkMatrix4x4GetMatrix ()
 
virtual vtkInformationGetPropertyKeys ()
 
virtual void SetPropertyKeys (vtkInformation *keys)
 
virtual int RenderVolumetricGeometry (vtkViewport *)
 
virtual int RenderOverlay (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)
 
vtkObjectGetConsumer (int i)
 
int IsConsumer (vtkObject *c)
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () 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)
 
vtkCommandGetCommand (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)
 
- Public Member Functions inherited from vtkObjectBase
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 ()
 

Static Public Member Functions

static vtkImplicitCylinderRepresentationNew ()
 
- Static Public Member Functions inherited from vtkWidgetRepresentation
static int IsTypeOf (const char *type)
 
static vtkWidgetRepresentationSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkProp
static int IsTypeOf (const char *type)
 
static vtkPropSafeDownCast (vtkObjectBase *o)
 
static vtkInformationIntegerKeyGeneralTextureUnit ()
 
static vtkInformationDoubleVectorKeyGeneralTextureTransform ()
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkImplicitCylinderRepresentation ()
 
 ~vtkImplicitCylinderRepresentation ()
 
void HighlightOutline (int highlight)
 
void HighlightCylinder (int highlight)
 
void HighlightNormal (int highlight)
 
virtual void RegisterPickers ()
 
void ConstrainCenter (double x[3])
 
void Rotate (double X, double Y, double *p1, double *p2, double *vpn)
 
void TranslateCylinder (double *p1, double *p2)
 
void TranslateOutline (double *p1, double *p2)
 
void TranslateCenter (double *p1, double *p2)
 
void ScaleRadius (double *p1, double *p2)
 
void AdjustRadius (double X, double Y, double *p1, double *p2)
 
void Scale (double *p1, double *p2, double X, double Y)
 
void SizeHandles ()
 
void CreateDefaultProperties ()
 
void BuildCylinder ()
 
- Protected Member Functions inherited from vtkWidgetRepresentation
 vtkWidgetRepresentation ()
 
 ~vtkWidgetRepresentation ()
 
void AdjustBounds (double bounds[6], double newBounds[6], double center[3])
 
virtual void UnRegisterPickers ()
 
virtual void PickersModified ()
 
vtkPickingManagerGetPickingManager ()
 
double SizeHandlesRelativeToViewport (double factor, double pos[3])
 
double SizeHandlesInPixels (double factor, double pos[3])
 
vtkAssemblyPathGetAssemblyPath (double X, double Y, double Z, vtkAbstractPropPicker *picker)
 
- Protected Member Functions inherited from vtkProp
 vtkProp ()
 
 ~vtkProp ()
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

int RepresentationState
 
double LastEventPosition [3]
 
double MinRadius
 
double MaxRadius
 
double BumpDistance
 
int AlongXAxis
 
int AlongYAxis
 
int AlongZAxis
 
vtkCylinderCylinder
 
int Resolution
 
vtkImageDataBox
 
vtkOutlineFilterOutline
 
vtkPolyDataMapperOutlineMapper
 
vtkActorOutlineActor
 
int OutlineTranslation
 
int ScaleEnabled
 
int OutsideBounds
 
vtkPolyDataCyl
 
vtkPolyDataMapperCylMapper
 
vtkActorCylActor
 
int DrawCylinder
 
vtkFeatureEdgesEdges
 
vtkTubeFilterEdgesTuber
 
vtkPolyDataMapperEdgesMapper
 
vtkActorEdgesActor
 
int Tubing
 
vtkConeSourceConeSource
 
vtkPolyDataMapperConeMapper
 
vtkActorConeActor
 
vtkLineSourceLineSource
 
vtkPolyDataMapperLineMapper
 
vtkActorLineActor
 
vtkConeSourceConeSource2
 
vtkPolyDataMapperConeMapper2
 
vtkActorConeActor2
 
vtkLineSourceLineSource2
 
vtkPolyDataMapperLineMapper2
 
vtkActorLineActor2
 
vtkSphereSourceSphere
 
vtkPolyDataMapperSphereMapper
 
vtkActorSphereActor
 
vtkCellPickerPicker
 
vtkCellPickerCylPicker
 
vtkTransformTransform
 
vtkPropertyAxisProperty
 
vtkPropertySelectedAxisProperty
 
vtkPropertyCylinderProperty
 
vtkPropertySelectedCylinderProperty
 
vtkPropertyOutlineProperty
 
vtkPropertySelectedOutlineProperty
 
vtkPropertyEdgesProperty
 
vtkBoxBoundingBox
 
- Protected Attributes inherited from vtkWidgetRepresentation
vtkWeakPointer< vtkRendererRenderer
 
int InteractionState
 
double StartEventPosition [3]
 
double PlaceFactor
 
int Placed
 
double InitialBounds [6]
 
double InitialLength
 
int ValidPick
 
bool PickingManaged
 
double HandleSize
 
int NeedToRender
 
vtkTimeStamp BuildTime
 
- Protected Attributes inherited from vtkProp
int Visibility
 
int Pickable
 
int Dragable
 
bool UseBounds
 
double AllocatedRenderTime
 
double EstimatedRenderTime
 
double SavedEstimatedRenderTime
 
double RenderTimeMultiplier
 
int NumberOfConsumers
 
vtkObject ** Consumers
 
vtkAssemblyPathsPaths
 
vtkInformationPropertyKeys
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 
typedef vtkWidgetRepresentation Superclass
 
static int IsTypeOf (const char *type)
 
static vtkImplicitCylinderRepresentationSafeDownCast (vtkObjectBase *o)
 
virtual int IsA (const char *type)
 
vtkImplicitCylinderRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual vtkObjectBaseNewInstanceInternal () const
 

Detailed Description

defining the representation for a vtkImplicitCylinderWidget

This class is a concrete representation for the vtkImplicitCylinderWidget. It represents an infinite cylinder defined by a radius, a center, and an axis. The cylinder is placed within its associated bounding box and the intersection of the cylinder with the bounding box is shown to visually indicate the orientation and position of the representation. This cylinder representation can be manipulated by using the vtkImplicitCylinderWidget to adjust the cylinder radius, axis, and/or center point. (Note that the bounding box is defined during invocation of the superclass' PlaceWidget() method.)

To use this representation, you normally specify a radius, center, and axis. Optionally you can specify a minimum and maximum radius, and a resolution for the cylinder. Finally, place the widget and its representation in the scene using PlaceWidget().

See also
vtkImplicitCylinderWidget vtkImplicitPlaneWidget vtkImplicitPlaneWidget
Tests:
vtkImplicitCylinderRepresentation (Tests)

Definition at line 67 of file vtkImplicitCylinderRepresentation.h.

Member Typedef Documentation

Standard methods for the class.

Definition at line 75 of file vtkImplicitCylinderRepresentation.h.

Member Enumeration Documentation

Enumerator
Outside 
Moving 
MovingOutline 
MovingCenter 
RotatingAxis 
AdjustingRadius 
Scaling 

Definition at line 271 of file vtkImplicitCylinderRepresentation.h.

Constructor & Destructor Documentation

vtkImplicitCylinderRepresentation::vtkImplicitCylinderRepresentation ( )
protected
vtkImplicitCylinderRepresentation::~vtkImplicitCylinderRepresentation ( )
protected

Member Function Documentation

static vtkImplicitCylinderRepresentation* vtkImplicitCylinderRepresentation::New ( )
static

Instantiate the class.

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

Standard methods for the class.

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

Standard methods for the class.

Reimplemented from vtkWidgetRepresentation.

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

Standard methods for the class.

virtual vtkObjectBase* vtkImplicitCylinderRepresentation::NewInstanceInternal ( ) const
protectedvirtual

Standard methods for the class.

Reimplemented from vtkWidgetRepresentation.

vtkImplicitCylinderRepresentation* vtkImplicitCylinderRepresentation::NewInstance ( ) const

Standard methods for the class.

void vtkImplicitCylinderRepresentation::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Standard methods for the class.

Reimplemented from vtkObject.

void vtkImplicitCylinderRepresentation::SetCenter ( double  x,
double  y,
double  z 
)

Get the center of the cylinder. The center is located along the cylinder axis.

void vtkImplicitCylinderRepresentation::SetCenter ( double  x[3])

Get the center of the cylinder. The center is located along the cylinder axis.

double* vtkImplicitCylinderRepresentation::GetCenter ( )

Get the center of the cylinder. The center is located along the cylinder axis.

void vtkImplicitCylinderRepresentation::GetCenter ( double  xyz[3])

Get the center of the cylinder. The center is located along the cylinder axis.

void vtkImplicitCylinderRepresentation::SetAxis ( double  x,
double  y,
double  z 
)

Set/Get the axis of rotation for the cylinder. If the axis is not specified as a unit vector, it will be normalized.

void vtkImplicitCylinderRepresentation::SetAxis ( double  a[3])

Set/Get the axis of rotation for the cylinder. If the axis is not specified as a unit vector, it will be normalized.

double* vtkImplicitCylinderRepresentation::GetAxis ( )

Set/Get the axis of rotation for the cylinder. If the axis is not specified as a unit vector, it will be normalized.

void vtkImplicitCylinderRepresentation::GetAxis ( double  a[3])

Set/Get the axis of rotation for the cylinder. If the axis is not specified as a unit vector, it will be normalized.

void vtkImplicitCylinderRepresentation::SetRadius ( double  r)

Set/Get the radius of the cylinder. Note that if the radius is too big the cylinder will be outside of the bounding box.

double vtkImplicitCylinderRepresentation::GetRadius ( )

Set/Get the radius of the cylinder. Note that if the radius is too big the cylinder will be outside of the bounding box.

virtual void vtkImplicitCylinderRepresentation::SetMinRadius ( double  )
virtual

Set/Get the minimum and maximum radius of the cylinder. This helps prevent the cylinder from "disappearing" during interaction. Note that the minimum and maximum radius is specified as a fraction of the diagonal length of the widget bounding box.

virtual double vtkImplicitCylinderRepresentation::GetMinRadius ( )
virtual

Set/Get the minimum and maximum radius of the cylinder. This helps prevent the cylinder from "disappearing" during interaction. Note that the minimum and maximum radius is specified as a fraction of the diagonal length of the widget bounding box.

virtual void vtkImplicitCylinderRepresentation::SetMaxRadius ( double  )
virtual

Set/Get the minimum and maximum radius of the cylinder. This helps prevent the cylinder from "disappearing" during interaction. Note that the minimum and maximum radius is specified as a fraction of the diagonal length of the widget bounding box.

virtual double vtkImplicitCylinderRepresentation::GetMaxRadius ( )
virtual

Set/Get the minimum and maximum radius of the cylinder. This helps prevent the cylinder from "disappearing" during interaction. Note that the minimum and maximum radius is specified as a fraction of the diagonal length of the widget bounding box.

void vtkImplicitCylinderRepresentation::SetAlongXAxis ( int  )

Force the cylinder widget to be aligned with one of the x-y-z axes. If one axis is set on, the other two will be set off. Remember that when the state changes, a ModifiedEvent is invoked. This can be used to snap the plane to the axes if it is originally not aligned.

virtual int vtkImplicitCylinderRepresentation::GetAlongXAxis ( )
virtual

Force the cylinder widget to be aligned with one of the x-y-z axes. If one axis is set on, the other two will be set off. Remember that when the state changes, a ModifiedEvent is invoked. This can be used to snap the plane to the axes if it is originally not aligned.

virtual void vtkImplicitCylinderRepresentation::AlongXAxisOn ( )
virtual

Force the cylinder widget to be aligned with one of the x-y-z axes. If one axis is set on, the other two will be set off. Remember that when the state changes, a ModifiedEvent is invoked. This can be used to snap the plane to the axes if it is originally not aligned.

virtual void vtkImplicitCylinderRepresentation::AlongXAxisOff ( )
virtual

Force the cylinder widget to be aligned with one of the x-y-z axes. If one axis is set on, the other two will be set off. Remember that when the state changes, a ModifiedEvent is invoked. This can be used to snap the plane to the axes if it is originally not aligned.

void vtkImplicitCylinderRepresentation::SetAlongYAxis ( int  )

Force the cylinder widget to be aligned with one of the x-y-z axes. If one axis is set on, the other two will be set off. Remember that when the state changes, a ModifiedEvent is invoked. This can be used to snap the plane to the axes if it is originally not aligned.

virtual int vtkImplicitCylinderRepresentation::GetAlongYAxis ( )
virtual

Force the cylinder widget to be aligned with one of the x-y-z axes. If one axis is set on, the other two will be set off. Remember that when the state changes, a ModifiedEvent is invoked. This can be used to snap the plane to the axes if it is originally not aligned.

virtual void vtkImplicitCylinderRepresentation::AlongYAxisOn ( )
virtual

Force the cylinder widget to be aligned with one of the x-y-z axes. If one axis is set on, the other two will be set off. Remember that when the state changes, a ModifiedEvent is invoked. This can be used to snap the plane to the axes if it is originally not aligned.

virtual void vtkImplicitCylinderRepresentation::AlongYAxisOff ( )
virtual

Force the cylinder widget to be aligned with one of the x-y-z axes. If one axis is set on, the other two will be set off. Remember that when the state changes, a ModifiedEvent is invoked. This can be used to snap the plane to the axes if it is originally not aligned.

void vtkImplicitCylinderRepresentation::SetAlongZAxis ( int  )

Force the cylinder widget to be aligned with one of the x-y-z axes. If one axis is set on, the other two will be set off. Remember that when the state changes, a ModifiedEvent is invoked. This can be used to snap the plane to the axes if it is originally not aligned.

virtual int vtkImplicitCylinderRepresentation::GetAlongZAxis ( )
virtual

Force the cylinder widget to be aligned with one of the x-y-z axes. If one axis is set on, the other two will be set off. Remember that when the state changes, a ModifiedEvent is invoked. This can be used to snap the plane to the axes if it is originally not aligned.

virtual void vtkImplicitCylinderRepresentation::AlongZAxisOn ( )
virtual

Force the cylinder widget to be aligned with one of the x-y-z axes. If one axis is set on, the other two will be set off. Remember that when the state changes, a ModifiedEvent is invoked. This can be used to snap the plane to the axes if it is originally not aligned.

virtual void vtkImplicitCylinderRepresentation::AlongZAxisOff ( )
virtual

Force the cylinder widget to be aligned with one of the x-y-z axes. If one axis is set on, the other two will be set off. Remember that when the state changes, a ModifiedEvent is invoked. This can be used to snap the plane to the axes if it is originally not aligned.

void vtkImplicitCylinderRepresentation::SetDrawCylinder ( int  plane)

Enable/disable the drawing of the cylinder. In some cases the cylinder interferes with the object that it is operating on (e.g., the cylinder interferes with the cut surface it produces resulting in z-buffer artifacts.) By default it is off.

virtual int vtkImplicitCylinderRepresentation::GetDrawCylinder ( )
virtual

Enable/disable the drawing of the cylinder. In some cases the cylinder interferes with the object that it is operating on (e.g., the cylinder interferes with the cut surface it produces resulting in z-buffer artifacts.) By default it is off.

virtual void vtkImplicitCylinderRepresentation::DrawCylinderOn ( )
virtual

Enable/disable the drawing of the cylinder. In some cases the cylinder interferes with the object that it is operating on (e.g., the cylinder interferes with the cut surface it produces resulting in z-buffer artifacts.) By default it is off.

virtual void vtkImplicitCylinderRepresentation::DrawCylinderOff ( )
virtual

Enable/disable the drawing of the cylinder. In some cases the cylinder interferes with the object that it is operating on (e.g., the cylinder interferes with the cut surface it produces resulting in z-buffer artifacts.) By default it is off.

virtual void vtkImplicitCylinderRepresentation::SetResolution ( int  )
virtual

Set/Get the resolution of the cylinder. This is the number of polygonal facets used to approximate the curved cylindrical surface (for rendering purposes). An vtkCylinder is used under the hood to provide an exact surface representation.

virtual int vtkImplicitCylinderRepresentation::GetResolution ( )
virtual

Set/Get the resolution of the cylinder. This is the number of polygonal facets used to approximate the curved cylindrical surface (for rendering purposes). An vtkCylinder is used under the hood to provide an exact surface representation.

virtual void vtkImplicitCylinderRepresentation::SetTubing ( int  )
virtual

Turn on/off tubing of the wire outline of the cylinder intersecton (against the bounding box). The tube thickens the line by wrapping with a vtkTubeFilter.

virtual int vtkImplicitCylinderRepresentation::GetTubing ( )
virtual

Turn on/off tubing of the wire outline of the cylinder intersecton (against the bounding box). The tube thickens the line by wrapping with a vtkTubeFilter.

virtual void vtkImplicitCylinderRepresentation::TubingOn ( )
virtual

Turn on/off tubing of the wire outline of the cylinder intersecton (against the bounding box). The tube thickens the line by wrapping with a vtkTubeFilter.

virtual void vtkImplicitCylinderRepresentation::TubingOff ( )
virtual

Turn on/off tubing of the wire outline of the cylinder intersecton (against the bounding box). The tube thickens the line by wrapping with a vtkTubeFilter.

virtual void vtkImplicitCylinderRepresentation::SetOutlineTranslation ( int  )
virtual

Turn on/off the ability to translate the bounding box by moving it with the mouse.

virtual int vtkImplicitCylinderRepresentation::GetOutlineTranslation ( )
virtual

Turn on/off the ability to translate the bounding box by moving it with the mouse.

virtual void vtkImplicitCylinderRepresentation::OutlineTranslationOn ( )
virtual

Turn on/off the ability to translate the bounding box by moving it with the mouse.

virtual void vtkImplicitCylinderRepresentation::OutlineTranslationOff ( )
virtual

Turn on/off the ability to translate the bounding box by moving it with the mouse.

virtual void vtkImplicitCylinderRepresentation::SetOutsideBounds ( int  )
virtual

Turn on/off the ability to move the widget outside of the bounds specified in the initial PlaceWidget() invocation.

virtual int vtkImplicitCylinderRepresentation::GetOutsideBounds ( )
virtual

Turn on/off the ability to move the widget outside of the bounds specified in the initial PlaceWidget() invocation.

virtual void vtkImplicitCylinderRepresentation::OutsideBoundsOn ( )
virtual

Turn on/off the ability to move the widget outside of the bounds specified in the initial PlaceWidget() invocation.

virtual void vtkImplicitCylinderRepresentation::OutsideBoundsOff ( )
virtual

Turn on/off the ability to move the widget outside of the bounds specified in the initial PlaceWidget() invocation.

virtual void vtkImplicitCylinderRepresentation::SetScaleEnabled ( int  )
virtual

Turn on/off the ability to scale the widget with the mouse.

virtual int vtkImplicitCylinderRepresentation::GetScaleEnabled ( )
virtual

Turn on/off the ability to scale the widget with the mouse.

virtual void vtkImplicitCylinderRepresentation::ScaleEnabledOn ( )
virtual

Turn on/off the ability to scale the widget with the mouse.

virtual void vtkImplicitCylinderRepresentation::ScaleEnabledOff ( )
virtual

Turn on/off the ability to scale the widget with the mouse.

void vtkImplicitCylinderRepresentation::GetCylinder ( vtkCylinder cyl)

Get the implicit function for the cylinder. The user must provide the instance of the class vtkCylinder. Note that vtkCylinder is a subclass of vtkImplicitFunction, meaning that it can be used by a variety of filters to perform clipping, cutting, and selection of data.

void vtkImplicitCylinderRepresentation::GetPolyData ( vtkPolyData pd)

Grab the polydata that defines the cylinder. The polydata contains polygons that are clipped by the bounding box.

void vtkImplicitCylinderRepresentation::UpdatePlacement ( void  )

Satisfies the superclass API. This will change the state of the widget to match changes that have been made to the underlying PolyDataSource.

virtual vtkProperty* vtkImplicitCylinderRepresentation::GetAxisProperty ( )
virtual

Get the properties on the axis (line and cone).

virtual vtkProperty* vtkImplicitCylinderRepresentation::GetSelectedAxisProperty ( )
virtual

Get the properties on the axis (line and cone).

virtual vtkProperty* vtkImplicitCylinderRepresentation::GetCylinderProperty ( )
virtual

Get the cylinder properties. The properties of the cylinder when selected and unselected can be manipulated.

virtual vtkProperty* vtkImplicitCylinderRepresentation::GetSelectedCylinderProperty ( )
virtual

Get the cylinder properties. The properties of the cylinder when selected and unselected can be manipulated.

virtual vtkProperty* vtkImplicitCylinderRepresentation::GetOutlineProperty ( )
virtual

Get the property of the outline.

virtual vtkProperty* vtkImplicitCylinderRepresentation::GetSelectedOutlineProperty ( )
virtual

Get the property of the outline.

virtual vtkProperty* vtkImplicitCylinderRepresentation::GetEdgesProperty ( )
virtual

Get the property of the intersection edges. (This property also applies to the edges when tubed.)

void vtkImplicitCylinderRepresentation::SetEdgeColor ( vtkLookupTable )

Set color to the edge

void vtkImplicitCylinderRepresentation::SetEdgeColor ( double  ,
double  ,
double   
)

Set color to the edge

void vtkImplicitCylinderRepresentation::SetEdgeColor ( double  x[3])

Set color to the edge

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

Methods to interface with the vtkImplicitCylinderWidget.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkImplicitCylinderRepresentation::PlaceWidget ( double  bounds[6])
virtual

Methods to interface with the vtkImplicitCylinderWidget.

virtual void vtkImplicitCylinderRepresentation::BuildRepresentation ( )
virtual

Methods to interface with the vtkImplicitCylinderWidget.

Implements vtkWidgetRepresentation.

virtual void vtkImplicitCylinderRepresentation::StartWidgetInteraction ( double  eventPos[2])
virtual

Methods to interface with the vtkImplicitCylinderWidget.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkImplicitCylinderRepresentation::WidgetInteraction ( double  newEventPos[2])
virtual

Methods to interface with the vtkImplicitCylinderWidget.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkImplicitCylinderRepresentation::EndWidgetInteraction ( double  newEventPos[2])
virtual

Methods to interface with the vtkImplicitCylinderWidget.

Reimplemented from vtkWidgetRepresentation.

virtual double* vtkImplicitCylinderRepresentation::GetBounds ( )
virtual

Methods supporting the rendering process.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkImplicitCylinderRepresentation::GetActors ( vtkPropCollection pc)
virtual

Methods supporting the rendering process.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkImplicitCylinderRepresentation::ReleaseGraphicsResources ( vtkWindow )
virtual

Methods supporting the rendering process.

Reimplemented from vtkWidgetRepresentation.

virtual int vtkImplicitCylinderRepresentation::RenderOpaqueGeometry ( vtkViewport )
virtual

Methods supporting the rendering process.

Reimplemented from vtkProp.

virtual int vtkImplicitCylinderRepresentation::RenderTranslucentPolygonalGeometry ( vtkViewport )
virtual

Methods supporting the rendering process.

Reimplemented from vtkProp.

virtual int vtkImplicitCylinderRepresentation::HasTranslucentPolygonalGeometry ( )
virtual

Methods supporting the rendering process.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkImplicitCylinderRepresentation::SetBumpDistance ( double  )
virtual

Specify a translation distance used by the BumpCylinder() method. Note that the distance is normalized; it is the fraction of the length of the bounding box of the wire outline.

virtual double vtkImplicitCylinderRepresentation::GetBumpDistance ( )
virtual

Specify a translation distance used by the BumpCylinder() method. Note that the distance is normalized; it is the fraction of the length of the bounding box of the wire outline.

void vtkImplicitCylinderRepresentation::BumpCylinder ( int  dir,
double  factor 
)

Translate the cylinder in the direction of the view vector by the specified BumpDistance. The dir parameter controls which direction the pushing occurs, either in the same direction as the view vector, or when negative, in the opposite direction. The factor controls what percentage of the bump is used.

void vtkImplicitCylinderRepresentation::PushCylinder ( double  distance)

Push the cylinder the distance specified along the view vector. Positive values are in the direction of the view vector; negative values are in the opposite direction. The distance value is expressed in world coordinates.

virtual void vtkImplicitCylinderRepresentation::SetInteractionState ( int  )
virtual

The interaction state may be set from a widget (e.g., vtkImplicitCylinderWidget) or other object. This controls how the interaction with the widget proceeds. Normally this method is used as part of a handshaking process with the widget: First ComputeInteractionState() is invoked that returns a state based on geometric considerations (i.e., cursor near a widget feature), then based on events, the widget may modify this further.

virtual void vtkImplicitCylinderRepresentation::SetRepresentationState ( int  )
virtual

Sets the visual appearance of the representation based on the state it is in. This state is usually the same as InteractionState.

virtual int vtkImplicitCylinderRepresentation::GetRepresentationState ( )
virtual

Sets the visual appearance of the representation based on the state it is in. This state is usually the same as InteractionState.

void vtkImplicitCylinderRepresentation::HighlightOutline ( int  highlight)
protected
void vtkImplicitCylinderRepresentation::HighlightCylinder ( int  highlight)
protected
void vtkImplicitCylinderRepresentation::HighlightNormal ( int  highlight)
protected
virtual void vtkImplicitCylinderRepresentation::RegisterPickers ( )
protectedvirtual

Register internal Pickers in the Picking Manager. Must be reimplemented by concrete widget representations to register their pickers.

Reimplemented from vtkWidgetRepresentation.

void vtkImplicitCylinderRepresentation::ConstrainCenter ( double  x[3])
protected
void vtkImplicitCylinderRepresentation::Rotate ( double  X,
double  Y,
double p1,
double p2,
double vpn 
)
protected
void vtkImplicitCylinderRepresentation::TranslateCylinder ( double p1,
double p2 
)
protected
void vtkImplicitCylinderRepresentation::TranslateOutline ( double p1,
double p2 
)
protected
void vtkImplicitCylinderRepresentation::TranslateCenter ( double p1,
double p2 
)
protected
void vtkImplicitCylinderRepresentation::ScaleRadius ( double p1,
double p2 
)
protected
void vtkImplicitCylinderRepresentation::AdjustRadius ( double  X,
double  Y,
double p1,
double p2 
)
protected
void vtkImplicitCylinderRepresentation::Scale ( double p1,
double p2,
double  X,
double  Y 
)
protected
void vtkImplicitCylinderRepresentation::SizeHandles ( )
protected
void vtkImplicitCylinderRepresentation::CreateDefaultProperties ( )
protected
void vtkImplicitCylinderRepresentation::BuildCylinder ( )
protected

Member Data Documentation

int vtkImplicitCylinderRepresentation::RepresentationState
protected

Definition at line 304 of file vtkImplicitCylinderRepresentation.h.

double vtkImplicitCylinderRepresentation::LastEventPosition[3]
protected

Definition at line 307 of file vtkImplicitCylinderRepresentation.h.

double vtkImplicitCylinderRepresentation::MinRadius
protected

Definition at line 310 of file vtkImplicitCylinderRepresentation.h.

double vtkImplicitCylinderRepresentation::MaxRadius
protected

Definition at line 311 of file vtkImplicitCylinderRepresentation.h.

double vtkImplicitCylinderRepresentation::BumpDistance
protected

Definition at line 314 of file vtkImplicitCylinderRepresentation.h.

int vtkImplicitCylinderRepresentation::AlongXAxis
protected

Definition at line 317 of file vtkImplicitCylinderRepresentation.h.

int vtkImplicitCylinderRepresentation::AlongYAxis
protected

Definition at line 318 of file vtkImplicitCylinderRepresentation.h.

int vtkImplicitCylinderRepresentation::AlongZAxis
protected

Definition at line 319 of file vtkImplicitCylinderRepresentation.h.

vtkCylinder* vtkImplicitCylinderRepresentation::Cylinder
protected

Definition at line 322 of file vtkImplicitCylinderRepresentation.h.

int vtkImplicitCylinderRepresentation::Resolution
protected

Definition at line 325 of file vtkImplicitCylinderRepresentation.h.

vtkImageData* vtkImplicitCylinderRepresentation::Box
protected

Definition at line 328 of file vtkImplicitCylinderRepresentation.h.

vtkOutlineFilter* vtkImplicitCylinderRepresentation::Outline
protected

Definition at line 329 of file vtkImplicitCylinderRepresentation.h.

vtkPolyDataMapper* vtkImplicitCylinderRepresentation::OutlineMapper
protected

Definition at line 330 of file vtkImplicitCylinderRepresentation.h.

vtkActor* vtkImplicitCylinderRepresentation::OutlineActor
protected

Definition at line 331 of file vtkImplicitCylinderRepresentation.h.

int vtkImplicitCylinderRepresentation::OutlineTranslation
protected

Definition at line 333 of file vtkImplicitCylinderRepresentation.h.

int vtkImplicitCylinderRepresentation::ScaleEnabled
protected

Definition at line 334 of file vtkImplicitCylinderRepresentation.h.

int vtkImplicitCylinderRepresentation::OutsideBounds
protected

Definition at line 335 of file vtkImplicitCylinderRepresentation.h.

vtkPolyData* vtkImplicitCylinderRepresentation::Cyl
protected

Definition at line 338 of file vtkImplicitCylinderRepresentation.h.

vtkPolyDataMapper* vtkImplicitCylinderRepresentation::CylMapper
protected

Definition at line 339 of file vtkImplicitCylinderRepresentation.h.

vtkActor* vtkImplicitCylinderRepresentation::CylActor
protected

Definition at line 340 of file vtkImplicitCylinderRepresentation.h.

int vtkImplicitCylinderRepresentation::DrawCylinder
protected

Definition at line 341 of file vtkImplicitCylinderRepresentation.h.

vtkFeatureEdges* vtkImplicitCylinderRepresentation::Edges
protected

Definition at line 345 of file vtkImplicitCylinderRepresentation.h.

vtkTubeFilter* vtkImplicitCylinderRepresentation::EdgesTuber
protected

Definition at line 346 of file vtkImplicitCylinderRepresentation.h.

vtkPolyDataMapper* vtkImplicitCylinderRepresentation::EdgesMapper
protected

Definition at line 347 of file vtkImplicitCylinderRepresentation.h.

vtkActor* vtkImplicitCylinderRepresentation::EdgesActor
protected

Definition at line 348 of file vtkImplicitCylinderRepresentation.h.

int vtkImplicitCylinderRepresentation::Tubing
protected

Definition at line 349 of file vtkImplicitCylinderRepresentation.h.

vtkConeSource* vtkImplicitCylinderRepresentation::ConeSource
protected

Definition at line 352 of file vtkImplicitCylinderRepresentation.h.

vtkPolyDataMapper* vtkImplicitCylinderRepresentation::ConeMapper
protected

Definition at line 353 of file vtkImplicitCylinderRepresentation.h.

vtkActor* vtkImplicitCylinderRepresentation::ConeActor
protected

Definition at line 354 of file vtkImplicitCylinderRepresentation.h.

vtkLineSource* vtkImplicitCylinderRepresentation::LineSource
protected

Definition at line 358 of file vtkImplicitCylinderRepresentation.h.

vtkPolyDataMapper* vtkImplicitCylinderRepresentation::LineMapper
protected

Definition at line 359 of file vtkImplicitCylinderRepresentation.h.

vtkActor* vtkImplicitCylinderRepresentation::LineActor
protected

Definition at line 360 of file vtkImplicitCylinderRepresentation.h.

vtkConeSource* vtkImplicitCylinderRepresentation::ConeSource2
protected

Definition at line 363 of file vtkImplicitCylinderRepresentation.h.

vtkPolyDataMapper* vtkImplicitCylinderRepresentation::ConeMapper2
protected

Definition at line 364 of file vtkImplicitCylinderRepresentation.h.

vtkActor* vtkImplicitCylinderRepresentation::ConeActor2
protected

Definition at line 365 of file vtkImplicitCylinderRepresentation.h.

vtkLineSource* vtkImplicitCylinderRepresentation::LineSource2
protected

Definition at line 368 of file vtkImplicitCylinderRepresentation.h.

vtkPolyDataMapper* vtkImplicitCylinderRepresentation::LineMapper2
protected

Definition at line 369 of file vtkImplicitCylinderRepresentation.h.

vtkActor* vtkImplicitCylinderRepresentation::LineActor2
protected

Definition at line 370 of file vtkImplicitCylinderRepresentation.h.

vtkSphereSource* vtkImplicitCylinderRepresentation::Sphere
protected

Definition at line 373 of file vtkImplicitCylinderRepresentation.h.

vtkPolyDataMapper* vtkImplicitCylinderRepresentation::SphereMapper
protected

Definition at line 374 of file vtkImplicitCylinderRepresentation.h.

vtkActor* vtkImplicitCylinderRepresentation::SphereActor
protected

Definition at line 375 of file vtkImplicitCylinderRepresentation.h.

vtkCellPicker* vtkImplicitCylinderRepresentation::Picker
protected

Definition at line 378 of file vtkImplicitCylinderRepresentation.h.

vtkCellPicker* vtkImplicitCylinderRepresentation::CylPicker
protected

Definition at line 379 of file vtkImplicitCylinderRepresentation.h.

vtkTransform* vtkImplicitCylinderRepresentation::Transform
protected

Definition at line 385 of file vtkImplicitCylinderRepresentation.h.

vtkProperty* vtkImplicitCylinderRepresentation::AxisProperty
protected

Definition at line 400 of file vtkImplicitCylinderRepresentation.h.

vtkProperty* vtkImplicitCylinderRepresentation::SelectedAxisProperty
protected

Definition at line 401 of file vtkImplicitCylinderRepresentation.h.

vtkProperty* vtkImplicitCylinderRepresentation::CylinderProperty
protected

Definition at line 402 of file vtkImplicitCylinderRepresentation.h.

vtkProperty* vtkImplicitCylinderRepresentation::SelectedCylinderProperty
protected

Definition at line 403 of file vtkImplicitCylinderRepresentation.h.

vtkProperty* vtkImplicitCylinderRepresentation::OutlineProperty
protected

Definition at line 404 of file vtkImplicitCylinderRepresentation.h.

vtkProperty* vtkImplicitCylinderRepresentation::SelectedOutlineProperty
protected

Definition at line 405 of file vtkImplicitCylinderRepresentation.h.

vtkProperty* vtkImplicitCylinderRepresentation::EdgesProperty
protected

Definition at line 406 of file vtkImplicitCylinderRepresentation.h.

vtkBox* vtkImplicitCylinderRepresentation::BoundingBox
protected

Definition at line 413 of file vtkImplicitCylinderRepresentation.h.


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