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
vtkLassoStencilSource Class Reference

Create a stencil from a contour. More...

#include <vtkLassoStencilSource.h>

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

Public Types

enum  { POLYGON = 0, SPLINE = 1 }
 
typedef vtkImageStencilSource Superclass
 
- Public Types inherited from vtkImageStencilSource
typedef vtkImageStencilAlgorithm Superclass
 
- Public Types inherited from vtkImageStencilAlgorithm
typedef vtkAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkLassoStencilSourceNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void RemoveAllSlicePoints ()
 
unsigned long GetMTime ()
 
virtual int GetShape ()
 
virtual void SetShape (int)
 
void SetShapeToPolygon ()
 
void SetShapeToSpline ()
 
virtual const char * GetShapeAsString ()
 
virtual void SetPoints (vtkPoints *points)
 
virtual vtkPoints * GetPoints ()
 
virtual int GetSliceOrientation ()
 
virtual void SetSliceOrientation (int)
 
virtual void SetSlicePoints (int i, vtkPoints *points)
 
virtual vtkPoints * GetSlicePoints (int i)
 
- Public Member Functions inherited from vtkImageStencilSource
vtkImageStencilSourceNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void SetInformationInput (vtkImageData *)
 
virtual vtkImageData * GetInformationInput ()
 
virtual void SetOutputOrigin (double, double, double)
 
virtual void SetOutputOrigin (double[3])
 
virtual double * GetOutputOrigin ()
 
virtual void GetOutputOrigin (double &, double &, double &)
 
virtual void GetOutputOrigin (double[3])
 
virtual void SetOutputSpacing (double, double, double)
 
virtual void SetOutputSpacing (double[3])
 
virtual double * GetOutputSpacing ()
 
virtual void GetOutputSpacing (double &, double &, double &)
 
virtual void GetOutputSpacing (double[3])
 
virtual void SetOutputWholeExtent (int, int, int, int, int, int)
 
virtual void SetOutputWholeExtent (int[6])
 
virtual int * GetOutputWholeExtent ()
 
virtual void GetOutputWholeExtent (int &, int &, int &, int &, int &, int &)
 
virtual void GetOutputWholeExtent (int[6])
 
- Public Member Functions inherited from vtkImageStencilAlgorithm
vtkImageStencilAlgorithmNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void SetOutput (vtkImageStencilData *output)
 
vtkImageStencilDataGetOutput ()
 
virtual int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 

Static Public Member Functions

static vtkLassoStencilSourceNew ()
 
static int IsTypeOf (const char *type)
 
static vtkLassoStencilSourceSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkImageStencilSource
static vtkImageStencilSourceNew ()
 
static int IsTypeOf (const char *type)
 
static vtkImageStencilSourceSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkImageStencilAlgorithm
static vtkImageStencilAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkImageStencilAlgorithmSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkLassoStencilSource ()
 
 ~vtkLassoStencilSource ()
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
- Protected Member Functions inherited from vtkImageStencilSource
 vtkImageStencilSource ()
 
 ~vtkImageStencilSource ()
 
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
- Protected Member Functions inherited from vtkImageStencilAlgorithm
 vtkImageStencilAlgorithm ()
 
 ~vtkImageStencilAlgorithm ()
 
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
vtkImageStencilDataAllocateOutputData (vtkDataObject *out, int *updateExt)
 
virtual int FillOutputPortInformation (int, vtkInformation *)
 

Protected Attributes

int Shape
 
int SliceOrientation
 
vtkPoints * Points
 
vtkSpline * SplineX
 
vtkSpline * SplineY
 
vtkLSSPointMap * PointMap
 
- Protected Attributes inherited from vtkImageStencilSource
vtkImageData * InformationInput
 
int OutputWholeExtent [6]
 
double OutputOrigin [3]
 
double OutputSpacing [3]
 

Detailed Description

Create a stencil from a contour.

vtkLassoStencilSource will create an image stencil from a set of points that define a contour. Its output can be used with vtkImageStecil or other vtk classes that apply a stencil to an image.

See Also
vtkROIStencilSource vtkPolyDataToImageStencil
Thanks:
Thanks to David Gobbi for contributing this class to VTK.
Tests:
vtkLassoStencilSource (Tests)

Definition at line 42 of file vtkLassoStencilSource.h.

Member Typedef Documentation

Definition at line 46 of file vtkLassoStencilSource.h.

Member Enumeration Documentation

anonymous enum
Enumerator
POLYGON 
SPLINE 

Definition at line 50 of file vtkLassoStencilSource.h.

Constructor & Destructor Documentation

vtkLassoStencilSource::vtkLassoStencilSource ( )
protected
vtkLassoStencilSource::~vtkLassoStencilSource ( )
protected

Member Function Documentation

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

Reimplemented from vtkImageStencilSource.

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

Reimplemented from vtkImageStencilSource.

vtkLassoStencilSource* vtkLassoStencilSource::NewInstance ( ) const
void vtkLassoStencilSource::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual int vtkLassoStencilSource::GetShape ( )
virtual

The shape to use, default is "Polygon". The spline is a cardinal spline. Bezier splines are not yet supported.

virtual void vtkLassoStencilSource::SetShape ( int  )
virtual

The shape to use, default is "Polygon". The spline is a cardinal spline. Bezier splines are not yet supported.

void vtkLassoStencilSource::SetShapeToPolygon ( )
inline

The shape to use, default is "Polygon". The spline is a cardinal spline. Bezier splines are not yet supported.

Definition at line 61 of file vtkLassoStencilSource.h.

void vtkLassoStencilSource::SetShapeToSpline ( )
inline

The shape to use, default is "Polygon". The spline is a cardinal spline. Bezier splines are not yet supported.

Definition at line 62 of file vtkLassoStencilSource.h.

virtual const char* vtkLassoStencilSource::GetShapeAsString ( )
virtual

The shape to use, default is "Polygon". The spline is a cardinal spline. Bezier splines are not yet supported.

virtual void vtkLassoStencilSource::SetPoints ( vtkPoints *  points)
virtual

The points that make up the lassoo. The loop does not have to be closed, the last point will automatically be connected to the first point by a straight line segment.

virtual vtkPoints* vtkLassoStencilSource::GetPoints ( )
virtual

The points that make up the lassoo. The loop does not have to be closed, the last point will automatically be connected to the first point by a straight line segment.

virtual int vtkLassoStencilSource::GetSliceOrientation ( )
virtual

The slice orientation. The default is 2, which is XY. Other values are 0, which is YZ, and 1, which is XZ.

virtual void vtkLassoStencilSource::SetSliceOrientation ( int  )
virtual

The slice orientation. The default is 2, which is XY. Other values are 0, which is YZ, and 1, which is XZ.

virtual void vtkLassoStencilSource::SetSlicePoints ( int  i,
vtkPoints *  points 
)
virtual

The points for a particular slice. This will override the points that were set by calling SetPoints() for the slice. To clear the setting, call SetSlicePoints(slice, NULL).

virtual vtkPoints* vtkLassoStencilSource::GetSlicePoints ( int  i)
virtual

The points for a particular slice. This will override the points that were set by calling SetPoints() for the slice. To clear the setting, call SetSlicePoints(slice, NULL).

virtual void vtkLassoStencilSource::RemoveAllSlicePoints ( )
virtual

Remove points from all slices.

unsigned long vtkLassoStencilSource::GetMTime ( )

Overload GetMTime() to include the timestamp on the points.

virtual int vtkLassoStencilSource::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual

Reimplemented from vtkImageStencilAlgorithm.

Member Data Documentation

int vtkLassoStencilSource::Shape
protected

Definition at line 102 of file vtkLassoStencilSource.h.

int vtkLassoStencilSource::SliceOrientation
protected

Definition at line 103 of file vtkLassoStencilSource.h.

vtkPoints* vtkLassoStencilSource::Points
protected

Definition at line 104 of file vtkLassoStencilSource.h.

vtkSpline* vtkLassoStencilSource::SplineX
protected

Definition at line 105 of file vtkLassoStencilSource.h.

vtkSpline* vtkLassoStencilSource::SplineY
protected

Definition at line 106 of file vtkLassoStencilSource.h.

vtkLSSPointMap* vtkLassoStencilSource::PointMap
protected

Definition at line 107 of file vtkLassoStencilSource.h.


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