#include <vtkMarchingSquares.h>
Inheritance diagram for vtkMarchingSquares:
vtkMarchingSquares is a filter that takes as input a structured points set and generates on output one or more isolines. One or more contour values must be specified to generate the isolines. Alternatively, you can specify a min/max scalar range and the number of contours to generate a series of evenly spaced contour values.
To generate contour lines the input data must be of topological dimension 2 (i.e., an image). If not, you can use the ImageRange ivar to select an image plane from an input volume. This avoids having to extract a plane first (using vtkExtractSubVolume). The filter deals with this by first trying to use the input data directly, and if not a 2D image, then uses the ImageRange ivar to reduce it to an image.
Definition at line 83 of file vtkMarchingSquares.h.
Public Types | |
typedef vtkPolyDataSource | Superclass |
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetValue (int i, float value) |
void | GetValues (float *contourValues) |
void | SetNumberOfContours (int number) |
unsigned long int | GetMTime () |
void | SetLocator (vtkPointLocator *locator) |
virtual vtkPointLocator * | GetLocator () |
void | CreateDefaultLocator () |
void | SetInput (vtkImageData *input) |
vtkImageData * | GetInput () |
virtual void | SetImageRange (int data[]) |
virtual int * | GetImageRange () |
virtual void | GetImageRange (int data[6]) |
void | SetImageRange (int imin, int imax, int jmin, int jmax, int kmin, int kmax) |
float | GetValue (int i) |
float * | GetValues () |
int | GetNumberOfContours () |
void | GenerateValues (int numContours, float range[2]) |
void | GenerateValues (int numContours, float rangeStart, float rangeEnd) |
Static Public Methods | |
vtkMarchingSquares * | New () |
int | IsTypeOf (const char *type) |
vtkMarchingSquares * | SafeDownCast (vtkObject *o) |
Protected Methods | |
vtkMarchingSquares () | |
~vtkMarchingSquares () | |
void | Execute () |
Protected Attributes | |
vtkContourValues * | ContourValues |
int | ImageRange [6] |
vtkPointLocator * | Locator |
|
Reimplemented from vtkPolyDataSource. Definition at line 87 of file vtkMarchingSquares.h. |
|
|
|
|
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkObject. |
|
Reimplemented from vtkPolyDataSource. |
|
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 vtkPolyDataSource. |
|
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 vtkPolyDataSource. |
|
Reimplemented from vtkPolyDataSource. |
|
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 vtkPolyDataSource. |
|
Set / get the input data or filter. |
|
Set / get the input data or filter. |
|
Set/Get the i-j-k index range which define a plane on which to generate contour lines. Using this ivar it is possible to input a 3D volume directly and then generate contour lines on one of the i-j-k planes, or a portion of a plane. |
|
Set/Get the i-j-k index range which define a plane on which to generate contour lines. Using this ivar it is possible to input a 3D volume directly and then generate contour lines on one of the i-j-k planes, or a portion of a plane. |
|
Set/Get the i-j-k index range which define a plane on which to generate contour lines. Using this ivar it is possible to input a 3D volume directly and then generate contour lines on one of the i-j-k planes, or a portion of a plane. |
|
Set/Get the i-j-k index range which define a plane on which to generate contour lines. Using this ivar it is possible to input a 3D volume directly and then generate contour lines on one of the i-j-k planes, or a portion of a plane. |
|
Set a particular contour value at contour number i. The index i ranges between 0<=i<NumberOfContours. Definition at line 143 of file vtkMarchingSquares.h. References ContourValues, and vtkContourValues::SetValue(). |
|
Get the ith contour value. Definition at line 148 of file vtkMarchingSquares.h. References ContourValues, and vtkContourValues::GetValue(). |
|
Get a pointer to an array of contour values. There will be GetNumberOfContours() values in the list. Definition at line 155 of file vtkMarchingSquares.h. References ContourValues, and vtkContourValues::GetValues(). |
|
Fill a supplied list with contour values. There will be GetNumberOfContours() values in the list. Make sure you allocate enough memory to hold the list. Definition at line 162 of file vtkMarchingSquares.h. References ContourValues, and vtkContourValues::GetValues(). |
|
Set the number of contours to place into the list. You only really need to use this method to reduce list size. The method SetValue() will automatically increase list size as needed. Definition at line 168 of file vtkMarchingSquares.h. References ContourValues, and vtkContourValues::SetNumberOfContours(). |
|
Get the number of contours in the list of contour values. Definition at line 173 of file vtkMarchingSquares.h. References ContourValues, and vtkContourValues::GetNumberOfContours(). |
|
Generate numContours equally spaced contour values between specified range. Contour values will include min/max range values. Definition at line 180 of file vtkMarchingSquares.h. References ContourValues, and vtkContourValues::GenerateValues(). |
|
Generate numContours equally spaced contour values between specified range. Contour values will include min/max range values. Definition at line 187 of file vtkMarchingSquares.h. References ContourValues, and vtkContourValues::GenerateValues(). |
|
Return this object's modified time. Reimplemented from vtkObject. |
|
|
|
|
|
Create default locator. Used to create one when none is specified. The locator is used to merge coincident points. |
|
This method is the old style execute method Reimplemented from vtkSource. |
|
Definition at line 133 of file vtkMarchingSquares.h. Referenced by GenerateValues(), GetNumberOfContours(), GetValue(), GetValues(), SetNumberOfContours(), and SetValue(). |
|
Definition at line 134 of file vtkMarchingSquares.h. |
|
Definition at line 135 of file vtkMarchingSquares.h. |