VTK
|
generate an image stencil More...
#include <vtkImageStencilSource.h>
Public Types | |
typedef vtkImageStencilAlgorithm | Superclass |
![]() | |
typedef vtkAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkImageStencilSource * | NewInstance () 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]) |
![]() | |
vtkImageStencilAlgorithm * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetOutput (vtkImageStencilData *output) |
vtkImageStencilData * | GetOutput () |
virtual int | ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Static Public Member Functions | |
static vtkImageStencilSource * | New () |
static int | IsTypeOf (const char *type) |
static vtkImageStencilSource * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static vtkImageStencilAlgorithm * | New () |
static int | IsTypeOf (const char *type) |
static vtkImageStencilAlgorithm * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkImageStencilSource () | |
~vtkImageStencilSource () | |
virtual int | RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
![]() | |
vtkImageStencilAlgorithm () | |
~vtkImageStencilAlgorithm () | |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
vtkImageStencilData * | AllocateOutputData (vtkDataObject *out, int *updateExt) |
virtual int | FillOutputPortInformation (int, vtkInformation *) |
Protected Attributes | |
vtkImageData * | InformationInput |
int | OutputWholeExtent [6] |
double | OutputOrigin [3] |
double | OutputSpacing [3] |
generate an image stencil
vtkImageStencilSource is a superclass for filters that generate image stencils. Given a clipping object such as a vtkImplicitFunction, it will set up a list of clipping extents for each x-row through the image data. The extents for each x-row can be retrieved via the GetNextExtent() method after the extent lists have been built with the BuildExtents() method. For large images, using clipping extents is much more memory efficient (and slightly more time-efficient) than building a mask. This class can be subclassed to allow clipping with objects other than vtkImplicitFunction.
Definition at line 41 of file vtkImageStencilSource.h.
Definition at line 46 of file vtkImageStencilSource.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
Reimplemented from vtkImageStencilAlgorithm.
Reimplemented in vtkPolyDataToImageStencil, vtkLassoStencilSource, vtkROIStencilSource, and vtkImplicitFunctionToImageStencil.
|
static |
|
protectedvirtual |
Reimplemented from vtkImageStencilAlgorithm.
Reimplemented in vtkPolyDataToImageStencil, vtkLassoStencilSource, vtkROIStencilSource, and vtkImplicitFunctionToImageStencil.
vtkImageStencilSource* vtkImageStencilSource::NewInstance | ( | ) | const |
void vtkImageStencilSource::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Set a vtkImageData that has the Spacing, Origin, and WholeExtent that will be used for the stencil. This input should be set to the image that you wish to apply the stencil to. If you use this method, then any values set with the SetOutputSpacing, SetOutputOrigin, and SetOutputWholeExtent methods will be ignored.
|
virtual |
Set a vtkImageData that has the Spacing, Origin, and WholeExtent that will be used for the stencil. This input should be set to the image that you wish to apply the stencil to. If you use this method, then any values set with the SetOutputSpacing, SetOutputOrigin, and SetOutputWholeExtent methods will be ignored.
|
virtual |
Set the Origin to be used for the stencil. It should be set to the Origin of the image you intend to apply the stencil to. The default value is (0,0,0).
|
virtual |
Set the Origin to be used for the stencil. It should be set to the Origin of the image you intend to apply the stencil to. The default value is (0,0,0).
|
virtual |
Set the Origin to be used for the stencil. It should be set to the Origin of the image you intend to apply the stencil to. The default value is (0,0,0).
|
virtual |
Set the Origin to be used for the stencil. It should be set to the Origin of the image you intend to apply the stencil to. The default value is (0,0,0).
|
virtual |
Set the Origin to be used for the stencil. It should be set to the Origin of the image you intend to apply the stencil to. The default value is (0,0,0).
|
virtual |
Set the Spacing to be used for the stencil. It should be set to the Spacing of the image you intend to apply the stencil to. The default value is (1,1,1)
|
virtual |
Set the Spacing to be used for the stencil. It should be set to the Spacing of the image you intend to apply the stencil to. The default value is (1,1,1)
|
virtual |
Set the Spacing to be used for the stencil. It should be set to the Spacing of the image you intend to apply the stencil to. The default value is (1,1,1)
|
virtual |
Set the Spacing to be used for the stencil. It should be set to the Spacing of the image you intend to apply the stencil to. The default value is (1,1,1)
|
virtual |
Set the Spacing to be used for the stencil. It should be set to the Spacing of the image you intend to apply the stencil to. The default value is (1,1,1)
|
virtual |
Set the whole extent for the stencil (anything outside this extent will be considered to be "outside" the stencil).
|
virtual |
Set the whole extent for the stencil (anything outside this extent will be considered to be "outside" the stencil).
|
virtual |
Set the whole extent for the stencil (anything outside this extent will be considered to be "outside" the stencil).
|
virtual |
Set the whole extent for the stencil (anything outside this extent will be considered to be "outside" the stencil).
|
virtual |
Set the whole extent for the stencil (anything outside this extent will be considered to be "outside" the stencil).
|
virtual |
Report object referenced by instances of this class.
|
protectedvirtual |
Reimplemented from vtkImageStencilAlgorithm.
|
protected |
Definition at line 93 of file vtkImageStencilSource.h.
|
protected |
Definition at line 95 of file vtkImageStencilSource.h.
|
protected |
Definition at line 96 of file vtkImageStencilSource.h.
|
protected |
Definition at line 97 of file vtkImageStencilSource.h.