vtkVoxelContoursToSurfaceFilter Class Reference
#include <vtkVoxelContoursToSurfaceFilter.h>
Inheritance diagram for vtkVoxelContoursToSurfaceFilter:
[legend]Collaboration diagram for vtkVoxelContoursToSurfaceFilter:
[legend]List of all members.
Detailed Description
create surface from contours
vtkVoxelContoursToSurfaceFilter is a filter that takes contours and produces surfaces. There are some restrictions for the contours:
- The contours are input as vtkPolyData, with the contours being polys in the vtkPolyData.
- The contours lie on XY planes - each contour has a constant Z
- The contours are ordered in the polys of the vtkPolyData such that all contours on the first (lowest) XY plane are first, then continuing in order of increasing Z value.
- The X, Y and Z coordinates are all integer values.
- The desired sampling of the contour data is 1x1x1 - Aspect can be used to control the aspect ratio in the output polygonal dataset.
This filter takes the contours and produces a structured points dataset of signed floating point number indicating distance from a contour. A contouring filter is then applied to generate 3D surfaces from a stack of 2D contour distance slices. This is done in a streaming fashion so as not to use to much memory.
- See also:
- vtkPolyDataToPolyDataFilter
- Created by:
-
- CVS contributions (if > 5%):
- Avila, Lisa (87%)
- Martin, Ken (7%)
- CVS logs (CVSweb):
.h (/Graphics/vtkVoxelContoursToSurfaceFilter
.h)
.cxx (/Graphics/vtkVoxelContoursToSurfaceFilter
.cxx)
- Tests:
- vtkVoxelContoursToSurfaceFilter (Tests)
Definition at line 61 of file vtkVoxelContoursToSurfaceFilter.h.
|
Public Types |
typedef vtkPolyDataToPolyDataFilter | Superclass |
Public Member Functions |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetSpacing (double, double, double) |
virtual void | SetSpacing (double[3]) |
virtual double * | GetSpacing () |
virtual void | GetSpacing (double data[3]) |
|
virtual void | SetMemoryLimitInBytes (int) |
virtual int | GetMemoryLimitInBytes () |
Static Public Member Functions |
vtkVoxelContoursToSurfaceFilter * | New () |
int | IsTypeOf (const char *type) |
vtkVoxelContoursToSurfaceFilter * | SafeDownCast (vtkObject *o) |
Protected Member Functions |
| vtkVoxelContoursToSurfaceFilter () |
| ~vtkVoxelContoursToSurfaceFilter () |
void | Execute () |
void | AddLineToLineList (double x1, double y1, double x2, double y2) |
void | SortLineList () |
void | CastLines (float *slice, double gridOrigin[3], int gridSize[3], int type) |
void | PushDistances (float *ptr, int gridSize[3], int chunkSize) |
Protected Attributes |
int | MemoryLimitInBytes |
double | Spacing [3] |
double * | LineList |
int | LineListLength |
int | LineListSize |
double * | SortedXList |
double * | SortedYList |
int | SortedListSize |
int * | WorkingList |
int | WorkingListLength |
double * | IntersectionList |
int | IntersectionListLength |
Member Typedef Documentation
Constructor & Destructor Documentation
vtkVoxelContoursToSurfaceFilter::vtkVoxelContoursToSurfaceFilter |
( |
|
) |
[protected] |
|
Member Function Documentation
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm. |
virtual const char* vtkVoxelContoursToSurfaceFilter::GetClassName |
( |
|
) |
[virtual] |
|
int vtkVoxelContoursToSurfaceFilter::IsTypeOf |
( |
const char * |
type |
) |
[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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataToPolyDataFilter. |
virtual int vtkVoxelContoursToSurfaceFilter::IsA |
( |
const char * |
type |
) |
[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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataToPolyDataFilter. |
void vtkVoxelContoursToSurfaceFilter::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 vtkPolyDataToPolyDataFilter. |
virtual void vtkVoxelContoursToSurfaceFilter::SetMemoryLimitInBytes |
( |
int |
|
) |
[virtual] |
|
|
Set / Get the memory limit in bytes for this filter. This is the limit of the size of the structured points data set that is created for intermediate processing. The data will be streamed through this volume in as many pieces as necessary. |
virtual int vtkVoxelContoursToSurfaceFilter::GetMemoryLimitInBytes |
( |
|
) |
[virtual] |
|
|
Set / Get the memory limit in bytes for this filter. This is the limit of the size of the structured points data set that is created for intermediate processing. The data will be streamed through this volume in as many pieces as necessary. |
virtual void vtkVoxelContoursToSurfaceFilter::SetSpacing |
( |
double |
, |
|
|
double |
, |
|
|
double |
|
|
) |
[virtual] |
|
virtual void vtkVoxelContoursToSurfaceFilter::SetSpacing |
( |
double |
[3] |
) |
[virtual] |
|
virtual double* vtkVoxelContoursToSurfaceFilter::GetSpacing |
( |
|
) |
[virtual] |
|
virtual void vtkVoxelContoursToSurfaceFilter::GetSpacing |
( |
double |
data[3] |
) |
[virtual] |
|
void vtkVoxelContoursToSurfaceFilter::Execute |
( |
|
) |
[protected, virtual] |
|
|
This method is the old style execute method
Reimplemented from vtkSource. |
void vtkVoxelContoursToSurfaceFilter::AddLineToLineList |
( |
double |
x1, |
|
|
double |
y1, |
|
|
double |
x2, |
|
|
double |
y2 |
|
) |
[protected] |
|
void vtkVoxelContoursToSurfaceFilter::SortLineList |
( |
|
) |
[protected] |
|
void vtkVoxelContoursToSurfaceFilter::CastLines |
( |
float * |
slice, |
|
|
double |
gridOrigin[3], |
|
|
int |
gridSize[3], |
|
|
int |
type |
|
) |
[protected] |
|
void vtkVoxelContoursToSurfaceFilter::PushDistances |
( |
float * |
ptr, |
|
|
int |
gridSize[3], |
|
|
int |
chunkSize |
|
) |
[protected] |
|
Member Data Documentation
The documentation for this class was generated from the following file: