VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkROIStencilSource Class Reference

create simple mask shapes More...

#include <vtkROIStencilSource.h>

Inheritance diagram for vtkROIStencilSource:
Inheritance graph
[legend]
Collaboration diagram for vtkROIStencilSource:
Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  BOX = 0, ELLIPSOID = 1, CYLINDERX = 2, CYLINDERY = 3,
  CYLINDERZ = 4
}
typedef vtkImageStencilSource Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkROIStencilSourceNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual int GetShape ()
virtual void SetShape (int)
void SetShapeToBox ()
void SetShapeToEllipsoid ()
void SetShapeToCylinderX ()
void SetShapeToCylinderY ()
void SetShapeToCylinderZ ()
virtual const char * GetShapeAsString ()
virtual doubleGetBounds ()
virtual void GetBounds (double &, double &, double &, double &, double &, double &)
virtual void GetBounds (double[6])
virtual void SetBounds (double, double, double, double, double, double)
virtual void SetBounds (double[6])

Static Public Member Functions

static vtkROIStencilSourceNew ()
static int IsTypeOf (const char *type)
static vtkROIStencilSourceSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkROIStencilSource ()
 ~vtkROIStencilSource ()
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

int Shape
double Bounds [6]

Detailed Description

create simple mask shapes

vtkROIStencilSource will create an image stencil with a simple shape like a box, a sphere, or a cylinder. Its output can be used with vtkImageStecil or other vtk classes that apply a stencil to an image.

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

Definition at line 38 of file vtkROIStencilSource.h.


Member Typedef Documentation

Reimplemented from vtkImageStencilSource.

Definition at line 42 of file vtkROIStencilSource.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
BOX 
ELLIPSOID 
CYLINDERX 
CYLINDERY 
CYLINDERZ 

Definition at line 46 of file vtkROIStencilSource.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkImageStencilSource.

static int vtkROIStencilSource::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageStencilSource.

virtual int vtkROIStencilSource::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImageStencilSource.

Reimplemented from vtkImageStencilSource.

virtual vtkObjectBase* vtkROIStencilSource::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkImageStencilSource.

Reimplemented from vtkImageStencilSource.

void vtkROIStencilSource::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkImageStencilSource.

virtual int vtkROIStencilSource::GetShape ( ) [virtual]

The shape of the region of interest. Cylinders can be oriented along the X, Y, or Z axes. The default shape is "Box".

virtual void vtkROIStencilSource::SetShape ( int  ) [virtual]

The shape of the region of interest. Cylinders can be oriented along the X, Y, or Z axes. The default shape is "Box".

The shape of the region of interest. Cylinders can be oriented along the X, Y, or Z axes. The default shape is "Box".

Definition at line 60 of file vtkROIStencilSource.h.

The shape of the region of interest. Cylinders can be oriented along the X, Y, or Z axes. The default shape is "Box".

Definition at line 61 of file vtkROIStencilSource.h.

The shape of the region of interest. Cylinders can be oriented along the X, Y, or Z axes. The default shape is "Box".

Definition at line 62 of file vtkROIStencilSource.h.

The shape of the region of interest. Cylinders can be oriented along the X, Y, or Z axes. The default shape is "Box".

Definition at line 63 of file vtkROIStencilSource.h.

The shape of the region of interest. Cylinders can be oriented along the X, Y, or Z axes. The default shape is "Box".

Definition at line 64 of file vtkROIStencilSource.h.

virtual const char* vtkROIStencilSource::GetShapeAsString ( ) [virtual]

The shape of the region of interest. Cylinders can be oriented along the X, Y, or Z axes. The default shape is "Box".

virtual double* vtkROIStencilSource::GetBounds ( ) [virtual]

Set the bounds of the region of interest. The bounds take the spacing and origin into account.

virtual void vtkROIStencilSource::GetBounds ( double ,
double ,
double ,
double ,
double ,
double  
) [virtual]

Set the bounds of the region of interest. The bounds take the spacing and origin into account.

virtual void vtkROIStencilSource::GetBounds ( double  [6]) [virtual]

Set the bounds of the region of interest. The bounds take the spacing and origin into account.

virtual void vtkROIStencilSource::SetBounds ( double  ,
double  ,
double  ,
double  ,
double  ,
double   
) [virtual]

Set the bounds of the region of interest. The bounds take the spacing and origin into account.

virtual void vtkROIStencilSource::SetBounds ( double  [6]) [virtual]

Set the bounds of the region of interest. The bounds take the spacing and origin into account.

Reimplemented from vtkImageStencilAlgorithm.


Member Data Documentation

Definition at line 82 of file vtkROIStencilSource.h.

Definition at line 83 of file vtkROIStencilSource.h.


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