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

provide the representation for a vtkSliderWidget with a 3D skin More...

#include <vtkSliderRepresentation3D.h>

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

Public Member Functions

virtual unsigned long GetMTime ()
 
vtkCoordinate * GetPoint1Coordinate ()
 
void SetPoint1InWorldCoordinates (double x, double y, double z)
 
vtkCoordinate * GetPoint2Coordinate ()
 
void SetPoint2InWorldCoordinates (double x, double y, double z)
 
virtual void SetTitleText (const char *)
 
virtual const char * GetTitleText ()
 
virtual void SetSliderShape (int)
 
virtual int GetSliderShape ()
 
void SetSliderShapeToSphere ()
 
void SetSliderShapeToCylinder ()
 
virtual void SetRotation (double)
 
virtual double GetRotation ()
 
virtual vtkProperty * GetSliderProperty ()
 
virtual vtkProperty * GetTubeProperty ()
 
virtual vtkProperty * GetCapProperty ()
 
virtual vtkProperty * GetSelectedProperty ()
 
virtual void PlaceWidget (double bounds[6])
 
virtual void BuildRepresentation ()
 
virtual void StartWidgetInteraction (double eventPos[2])
 
virtual void WidgetInteraction (double newEventPos[2])
 
virtual void Highlight (int)
 
virtual double * GetBounds ()
 
virtual void GetActors (vtkPropCollection *)
 
virtual void ReleaseGraphicsResources (vtkWindow *)
 
virtual int RenderOpaqueGeometry (vtkViewport *)
 
virtual int RenderTranslucentPolygonalGeometry (vtkViewport *)
 
virtual int HasTranslucentPolygonalGeometry ()
 
- Public Member Functions inherited from vtkSliderRepresentation
void SetValue (double value)
 
virtual double GetValue ()
 
void SetMinimumValue (double value)
 
virtual double GetMinimumValue ()
 
void SetMaximumValue (double value)
 
virtual double GetMaximumValue ()
 
virtual void SetSliderLength (double)
 
virtual double GetSliderLength ()
 
virtual void SetSliderWidth (double)
 
virtual double GetSliderWidth ()
 
virtual void SetTubeWidth (double)
 
virtual double GetTubeWidth ()
 
virtual void SetEndCapLength (double)
 
virtual double GetEndCapLength ()
 
virtual void SetEndCapWidth (double)
 
virtual double GetEndCapWidth ()
 
virtual void SetLabelFormat (const char *)
 
virtual char * GetLabelFormat ()
 
virtual void SetLabelHeight (double)
 
virtual double GetLabelHeight ()
 
virtual void SetTitleHeight (double)
 
virtual double GetTitleHeight ()
 
virtual void SetShowSliderLabel (int)
 
virtual int GetShowSliderLabel ()
 
virtual void ShowSliderLabelOn ()
 
virtual void ShowSliderLabelOff ()
 
virtual double GetCurrentT ()
 
virtual double GetPickedT ()
 
vtkSliderRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
- 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 EndWidgetInteraction (double newEventPos[2])
 
virtual int ComputeInteractionState (int X, int Y, int modify=0)
 
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)
 

Static Public Member Functions

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

Protected Types

enum  _SliderShape { SphereShape, CylinderShape }
 

Protected Member Functions

 vtkSliderRepresentation3D ()
 
 ~vtkSliderRepresentation3D ()
 
virtual void RegisterPickers ()
 
virtual double ComputePickPosition (double eventPos[2])
 
- Protected Member Functions inherited from vtkSliderRepresentation
 vtkSliderRepresentation ()
 
 ~vtkSliderRepresentation ()
 
- 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 ()
 
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

vtkCoordinate * Point1Coordinate
 
vtkCoordinate * Point2Coordinate
 
double Length
 
double SP1 [3]
 
double SP2 [3]
 
double Rotation
 
int SliderShape
 
vtkCellPicker * Picker
 
vtkAssembly * WidgetAssembly
 
vtkCylinderSourceCylinderSource
 
vtkTransformPolyDataFilterCylinder
 
vtkPolyDataMapper * TubeMapper
 
vtkActor * TubeActor
 
vtkProperty * TubeProperty
 
vtkSphereSourceSliderSource
 
vtkPolyDataMapper * SliderMapper
 
vtkActor * SliderActor
 
vtkProperty * SliderProperty
 
vtkProperty * SelectedProperty
 
vtkPolyDataMapper * LeftCapMapper
 
vtkActor * LeftCapActor
 
vtkProperty * CapProperty
 
vtkPolyDataMapper * RightCapMapper
 
vtkActor * RightCapActor
 
vtkVectorText * LabelText
 
vtkPolyDataMapper * LabelMapper
 
vtkActor * LabelActor
 
vtkVectorText * TitleText
 
vtkPolyDataMapper * TitleMapper
 
vtkActor * TitleActor
 
vtkMatrix4x4Matrix
 
vtkTransformTransform
 
- Protected Attributes inherited from vtkSliderRepresentation
double Value
 
double MinimumValue
 
double MaximumValue
 
double SliderLength
 
double SliderWidth
 
double EndCapLength
 
double EndCapWidth
 
double TubeWidth
 
double CurrentT
 
double PickedT
 
int ShowSliderLabel
 
char * LabelFormat
 
double LabelHeight
 
double TitleHeight
 
- 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 vtkSliderRepresentation Superclass
 
static int IsTypeOf (const char *type)
 
static vtkSliderRepresentation3DSafeDownCast (vtkObjectBase *o)
 
virtual int IsA (const char *type)
 
vtkSliderRepresentation3DNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual vtkObjectBase * NewInstanceInternal () const
 

Additional Inherited Members

- Public Types inherited from vtkSliderRepresentation
enum  _InteractionState {
  Outside =0, Tube, LeftCap, RightCap,
  Slider
}
 
typedef vtkWidgetRepresentation Superclass
 
- Public Types inherited from vtkWidgetRepresentation
typedef vtkProp Superclass
 

Detailed Description

provide the representation for a vtkSliderWidget with a 3D skin

This class is used to represent and render a vtkSliderWidget. To use this class, you must at a minimum specify the end points of the slider. Optional instance variable can be used to modify the appearance of the widget.

See Also
vtkSliderWidget
Examples:
vtkSliderRepresentation3D (Examples)
Tests:
vtkSliderRepresentation3D (Tests)

Definition at line 54 of file vtkSliderRepresentation3D.h.

Member Typedef Documentation

Standard methods for the class.

Definition at line 62 of file vtkSliderRepresentation3D.h.

Member Enumeration Documentation

Enumerator
SphereShape 
CylinderShape 

Definition at line 224 of file vtkSliderRepresentation3D.h.

Constructor & Destructor Documentation

vtkSliderRepresentation3D::vtkSliderRepresentation3D ( )
protected
vtkSliderRepresentation3D::~vtkSliderRepresentation3D ( )
protected

Member Function Documentation

static vtkSliderRepresentation3D* vtkSliderRepresentation3D::New ( )
static

Instantiate the class.

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

Standard methods for the class.

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

Standard methods for the class.

Reimplemented from vtkSliderRepresentation.

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

Standard methods for the class.

virtual vtkObjectBase* vtkSliderRepresentation3D::NewInstanceInternal ( ) const
protectedvirtual

Standard methods for the class.

Reimplemented from vtkSliderRepresentation.

vtkSliderRepresentation3D* vtkSliderRepresentation3D::NewInstance ( ) const

Standard methods for the class.

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

Standard methods for the class.

vtkCoordinate* vtkSliderRepresentation3D::GetPoint1Coordinate ( )

Position the first end point of the slider. Note that this point is an instance of vtkCoordinate, meaning that Point 1 can be specified in a variety of coordinate systems, and can even be relative to another point. To set the point, you'll want to get the Point1Coordinate and then invoke the necessary methods to put it into the correct coordinate system and set the correct initial value.

void vtkSliderRepresentation3D::SetPoint1InWorldCoordinates ( double  x,
double  y,
double  z 
)

Position the first end point of the slider. Note that this point is an instance of vtkCoordinate, meaning that Point 1 can be specified in a variety of coordinate systems, and can even be relative to another point. To set the point, you'll want to get the Point1Coordinate and then invoke the necessary methods to put it into the correct coordinate system and set the correct initial value.

vtkCoordinate* vtkSliderRepresentation3D::GetPoint2Coordinate ( )

Position the second end point of the slider. Note that this point is an instance of vtkCoordinate, meaning that Point 1 can be specified in a variety of coordinate systems, and can even be relative to another point. To set the point, you'll want to get the Point2Coordinate and then invoke the necessary methods to put it into the correct coordinate system and set the correct initial value.

void vtkSliderRepresentation3D::SetPoint2InWorldCoordinates ( double  x,
double  y,
double  z 
)

Position the second end point of the slider. Note that this point is an instance of vtkCoordinate, meaning that Point 1 can be specified in a variety of coordinate systems, and can even be relative to another point. To set the point, you'll want to get the Point2Coordinate and then invoke the necessary methods to put it into the correct coordinate system and set the correct initial value.

virtual void vtkSliderRepresentation3D::SetTitleText ( const char *  )
virtual

Specify the title text for this widget. If the value is not set, or set to the empty string "", then the title text is not displayed.

Reimplemented from vtkSliderRepresentation.

virtual const char* vtkSliderRepresentation3D::GetTitleText ( )
virtual

Specify the title text for this widget. If the value is not set, or set to the empty string "", then the title text is not displayed.

Reimplemented from vtkSliderRepresentation.

virtual void vtkSliderRepresentation3D::SetSliderShape ( int  )
virtual

Specify whether to use a sphere or cylinder slider shape. By default, a sphere shape is used.

virtual int vtkSliderRepresentation3D::GetSliderShape ( )
virtual

Specify whether to use a sphere or cylinder slider shape. By default, a sphere shape is used.

void vtkSliderRepresentation3D::SetSliderShapeToSphere ( )
inline

Specify whether to use a sphere or cylinder slider shape. By default, a sphere shape is used.

Definition at line 100 of file vtkSliderRepresentation3D.h.

void vtkSliderRepresentation3D::SetSliderShapeToCylinder ( )
inline

Specify whether to use a sphere or cylinder slider shape. By default, a sphere shape is used.

Definition at line 101 of file vtkSliderRepresentation3D.h.

virtual void vtkSliderRepresentation3D::SetRotation ( double  )
virtual

Set the rotation of the slider widget around the axis of the widget. This is used to control which way the widget is initially oriented. (This is especially important for the label and title.)

virtual double vtkSliderRepresentation3D::GetRotation ( )
virtual

Set the rotation of the slider widget around the axis of the widget. This is used to control which way the widget is initially oriented. (This is especially important for the label and title.)

virtual vtkProperty* vtkSliderRepresentation3D::GetSliderProperty ( )
virtual

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

virtual vtkProperty* vtkSliderRepresentation3D::GetTubeProperty ( )
virtual

Get the properties for the tube and end caps.

virtual vtkProperty* vtkSliderRepresentation3D::GetCapProperty ( )
virtual

Get the properties for the tube and end caps.

virtual vtkProperty* vtkSliderRepresentation3D::GetSelectedProperty ( )
virtual

Get the selection property. This property is used to modify the appearance of selected objects (e.g., the slider).

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

Methods to interface with the vtkSliderWidget.

virtual void vtkSliderRepresentation3D::BuildRepresentation ( )
virtual

Methods to interface with the vtkSliderWidget.

Implements vtkWidgetRepresentation.

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

Methods to interface with the vtkSliderWidget.

Reimplemented from vtkWidgetRepresentation.

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

Methods to interface with the vtkSliderWidget.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkSliderRepresentation3D::Highlight ( int  )
virtual

Methods to interface with the vtkSliderWidget.

virtual double* vtkSliderRepresentation3D::GetBounds ( )
virtual

Methods supporting the rendering process.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkSliderRepresentation3D::GetActors ( vtkPropCollection *  )
virtual

Methods supporting the rendering process.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkSliderRepresentation3D::ReleaseGraphicsResources ( vtkWindow *  )
virtual

Methods supporting the rendering process.

Reimplemented from vtkWidgetRepresentation.

virtual int vtkSliderRepresentation3D::RenderOpaqueGeometry ( vtkViewport *  )
virtual

Methods supporting the rendering process.

virtual int vtkSliderRepresentation3D::RenderTranslucentPolygonalGeometry ( vtkViewport *  )
virtual

Methods supporting the rendering process.

virtual int vtkSliderRepresentation3D::HasTranslucentPolygonalGeometry ( )
virtual

Methods supporting the rendering process.

Reimplemented from vtkWidgetRepresentation.

virtual unsigned long vtkSliderRepresentation3D::GetMTime ( )
virtual

Override GetMTime to include point coordinates

virtual void vtkSliderRepresentation3D::RegisterPickers ( )
protectedvirtual

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

Reimplemented from vtkWidgetRepresentation.

virtual double vtkSliderRepresentation3D::ComputePickPosition ( double  eventPos[2])
protectedvirtual

Member Data Documentation

vtkCoordinate* vtkSliderRepresentation3D::Point1Coordinate
protected

Definition at line 157 of file vtkSliderRepresentation3D.h.

vtkCoordinate* vtkSliderRepresentation3D::Point2Coordinate
protected

Definition at line 158 of file vtkSliderRepresentation3D.h.

double vtkSliderRepresentation3D::Length
protected

Definition at line 159 of file vtkSliderRepresentation3D.h.

double vtkSliderRepresentation3D::SP1[3]
protected

Definition at line 163 of file vtkSliderRepresentation3D.h.

double vtkSliderRepresentation3D::SP2[3]
protected

Definition at line 164 of file vtkSliderRepresentation3D.h.

double vtkSliderRepresentation3D::Rotation
protected

Definition at line 167 of file vtkSliderRepresentation3D.h.

int vtkSliderRepresentation3D::SliderShape
protected

Definition at line 168 of file vtkSliderRepresentation3D.h.

vtkCellPicker* vtkSliderRepresentation3D::Picker
protected

Definition at line 171 of file vtkSliderRepresentation3D.h.

vtkAssembly* vtkSliderRepresentation3D::WidgetAssembly
protected

Definition at line 182 of file vtkSliderRepresentation3D.h.

vtkCylinderSource* vtkSliderRepresentation3D::CylinderSource
protected

Definition at line 185 of file vtkSliderRepresentation3D.h.

vtkTransformPolyDataFilter* vtkSliderRepresentation3D::Cylinder
protected

Definition at line 186 of file vtkSliderRepresentation3D.h.

vtkPolyDataMapper* vtkSliderRepresentation3D::TubeMapper
protected

Definition at line 189 of file vtkSliderRepresentation3D.h.

vtkActor* vtkSliderRepresentation3D::TubeActor
protected

Definition at line 190 of file vtkSliderRepresentation3D.h.

vtkProperty* vtkSliderRepresentation3D::TubeProperty
protected

Definition at line 191 of file vtkSliderRepresentation3D.h.

vtkSphereSource* vtkSliderRepresentation3D::SliderSource
protected

Definition at line 194 of file vtkSliderRepresentation3D.h.

vtkPolyDataMapper* vtkSliderRepresentation3D::SliderMapper
protected

Definition at line 195 of file vtkSliderRepresentation3D.h.

vtkActor* vtkSliderRepresentation3D::SliderActor
protected

Definition at line 196 of file vtkSliderRepresentation3D.h.

vtkProperty* vtkSliderRepresentation3D::SliderProperty
protected

Definition at line 197 of file vtkSliderRepresentation3D.h.

vtkProperty* vtkSliderRepresentation3D::SelectedProperty
protected

Definition at line 198 of file vtkSliderRepresentation3D.h.

vtkPolyDataMapper* vtkSliderRepresentation3D::LeftCapMapper
protected

Definition at line 201 of file vtkSliderRepresentation3D.h.

vtkActor* vtkSliderRepresentation3D::LeftCapActor
protected

Definition at line 202 of file vtkSliderRepresentation3D.h.

vtkProperty* vtkSliderRepresentation3D::CapProperty
protected

Definition at line 203 of file vtkSliderRepresentation3D.h.

vtkPolyDataMapper* vtkSliderRepresentation3D::RightCapMapper
protected

Definition at line 206 of file vtkSliderRepresentation3D.h.

vtkActor* vtkSliderRepresentation3D::RightCapActor
protected

Definition at line 207 of file vtkSliderRepresentation3D.h.

vtkVectorText* vtkSliderRepresentation3D::LabelText
protected

Definition at line 211 of file vtkSliderRepresentation3D.h.

vtkPolyDataMapper* vtkSliderRepresentation3D::LabelMapper
protected

Definition at line 212 of file vtkSliderRepresentation3D.h.

vtkActor* vtkSliderRepresentation3D::LabelActor
protected

Definition at line 213 of file vtkSliderRepresentation3D.h.

vtkVectorText* vtkSliderRepresentation3D::TitleText
protected

Definition at line 215 of file vtkSliderRepresentation3D.h.

vtkPolyDataMapper* vtkSliderRepresentation3D::TitleMapper
protected

Definition at line 216 of file vtkSliderRepresentation3D.h.

vtkActor* vtkSliderRepresentation3D::TitleActor
protected

Definition at line 217 of file vtkSliderRepresentation3D.h.

vtkMatrix4x4* vtkSliderRepresentation3D::Matrix
protected

Definition at line 220 of file vtkSliderRepresentation3D.h.

vtkTransform* vtkSliderRepresentation3D::Transform
protected

Definition at line 221 of file vtkSliderRepresentation3D.h.


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