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 | List of all members
vtkPolyDataSourceWidget Class Referenceabstract

abstract PolyDataSource-based 3D widget More...

#include <vtkPolyDataSourceWidget.h>

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

Public Types

typedef vtk3DWidget Superclass
 
- Public Types inherited from vtk3DWidget
typedef vtkInteractorObserver Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkPolyDataSourceWidgetNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void PlaceWidget ()
 
virtual void PlaceWidget (double bounds[6])=0
 
virtual vtkPolyDataAlgorithmGetPolyDataAlgorithm ()=0
 
virtual void UpdatePlacement ()=0
 
void PlaceWidget (double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
 
- Public Member Functions inherited from vtk3DWidget
vtk3DWidgetNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetProp3D (vtkProp3D *)
 
virtual vtkProp3D * GetProp3D ()
 
virtual void SetInputData (vtkDataSet *)
 
virtual void SetInputConnection (vtkAlgorithmOutput *)
 
virtual vtkDataSet * GetInput ()
 
virtual void SetPlaceFactor (double)
 
virtual double GetPlaceFactor ()
 
virtual void SetHandleSize (double)
 
virtual double GetHandleSize ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkPolyDataSourceWidgetSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtk3DWidget
static int IsTypeOf (const char *type)
 
static vtk3DWidgetSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkPolyDataSourceWidget ()
 
- Protected Member Functions inherited from vtk3DWidget
 vtk3DWidget ()
 
 ~vtk3DWidget ()
 
void AdjustBounds (double bounds[6], double newBounds[6], double center[3])
 
double SizeHandles (double factor)
 
virtual void SizeHandles ()
 
void UpdateInput ()
 

Additional Inherited Members

- Protected Attributes inherited from vtk3DWidget
vtkProp3D * Prop3D
 
vtk3DWidgetConnection * ConnectionHolder
 
double PlaceFactor
 
int Placed
 
double InitialBounds [6]
 
double InitialLength
 
double HandleSize
 
int ValidPick
 
double LastPickPosition [3]
 

Detailed Description

abstract PolyDataSource-based 3D widget

This abstract class serves as parent to 3D widgets that have simple vtkPolyDataSource instances defining their geometry.

In addition to what is offered by the vtk3DWidget parent, this class makes it possible to manipulate the underlying polydatasource and to PlaceWidget() according to that, instead of having to make use of SetInput() or SetProp3D().

Implementors of child classes HAVE to implement their PlaceWidget(bounds) to check for the existence of Input and Prop3D FIRST. If these don't exist, place according to the underlying PolyDataSource. Child classes also have to imprement UpdatePlacement(), which updates the widget according to the geometry of the underlying PolyDataSource.

See Also
vtk3DWidget vtkLineWidget vtkPlaneWidget vtkSphereWidget

Definition at line 44 of file vtkPolyDataSourceWidget.h.

Member Typedef Documentation

Definition at line 47 of file vtkPolyDataSourceWidget.h.

Constructor & Destructor Documentation

vtkPolyDataSourceWidget::vtkPolyDataSourceWidget ( )
protected

Empty constructor that calls the parent constructor. Child classes should call this constructor as part of their initialisation.

Member Function Documentation

static int vtkPolyDataSourceWidget::IsTypeOf ( const char *  type)
static
virtual int vtkPolyDataSourceWidget::IsA ( const char *  type)
virtual

Reimplemented from vtk3DWidget.

Reimplemented in vtkImagePlaneWidget, vtkPlaneWidget, and vtkImplicitPlaneWidget.

static vtkPolyDataSourceWidget* vtkPolyDataSourceWidget::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkPolyDataSourceWidget::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtk3DWidget.

Reimplemented in vtkImagePlaneWidget, vtkPlaneWidget, and vtkImplicitPlaneWidget.

vtkPolyDataSourceWidget* vtkPolyDataSourceWidget::NewInstance ( ) const
void vtkPolyDataSourceWidget::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual void vtkPolyDataSourceWidget::PlaceWidget ( )
virtual

Overrides vtk3DWidget PlaceWidget() so that it doesn't complain if there's no Input and no Prop3D.

Reimplemented from vtk3DWidget.

Reimplemented in vtkImagePlaneWidget, vtkPlaneWidget, and vtkImplicitPlaneWidget.

virtual void vtkPolyDataSourceWidget::PlaceWidget ( double  bounds[6])
pure virtual

We have to redeclare this abstract, PlaceWidget() requires it. You HAVE to override this in your concrete child classes. If there's no Prop3D and no Input, your PlaceWidget must make use of the underlying PolyDataSource to do its work.

Implements vtk3DWidget.

Implemented in vtkImagePlaneWidget, vtkPlaneWidget, and vtkImplicitPlaneWidget.

void vtkPolyDataSourceWidget::PlaceWidget ( double  xmin,
double  xmax,
double  ymin,
double  ymax,
double  zmin,
double  zmax 
)
inlinevirtual

Convenience method brought over from vtkPlaneWidget.

Reimplemented from vtk3DWidget.

Definition at line 62 of file vtkPolyDataSourceWidget.h.

virtual vtkPolyDataAlgorithm* vtkPolyDataSourceWidget::GetPolyDataAlgorithm ( )
pure virtual

Returns underlying vtkPolyDataAlgorithm that determines geometry. This can be modified after which PlaceWidget() or UpdatePlacement() can be called. UpdatePlacement() will always update the planewidget according to the geometry of the underlying PolyDataAlgorithm. PlaceWidget() will only make use of this geometry if there is no Input and no Prop3D set.

Implemented in vtkImagePlaneWidget, vtkPlaneWidget, and vtkImplicitPlaneWidget.

virtual void vtkPolyDataSourceWidget::UpdatePlacement ( )
pure virtual

If you've made changes to the underlying vtkPolyDataSource AFTER your initial call to PlaceWidget(), use this method to realise the changes in the widget.

Implemented in vtkImagePlaneWidget, vtkPlaneWidget, and vtkImplicitPlaneWidget.


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