VTK
|
generate isocontours from input dataset More...
#include <vtkGenericContourFilter.h>
Inherits vtkPolyDataAlgorithm.
Public Types | |
typedef vtkPolyDataAlgorithm | Superclass |
typedef double | PointType [3] |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkGenericContourFilter * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
unsigned long | GetMTime () |
void | CreateDefaultLocator () |
void | SetValue (int i, float value) |
double | GetValue (int i) |
double * | GetValues () |
void | GetValues (double *contourValues) |
void | SetNumberOfContours (int number) |
int | GetNumberOfContours () |
void | GenerateValues (int numContours, double range[2]) |
void | GenerateValues (int numContours, double rangeStart, double rangeEnd) |
virtual void | SetComputeNormals (int) |
virtual int | GetComputeNormals () |
virtual void | ComputeNormalsOn () |
virtual void | ComputeNormalsOff () |
virtual void | SetComputeGradients (int) |
virtual int | GetComputeGradients () |
virtual void | ComputeGradientsOn () |
virtual void | ComputeGradientsOff () |
virtual void | SetComputeScalars (int) |
virtual int | GetComputeScalars () |
virtual void | ComputeScalarsOn () |
virtual void | ComputeScalarsOff () |
void | SetLocator (vtkIncrementalPointLocator *locator) |
virtual vtkIncrementalPointLocator * | GetLocator () |
virtual char * | GetInputScalarsSelection () |
virtual void | SelectInputScalars (const char *fieldName) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkGenericContourFilter * | SafeDownCast (vtkObjectBase *o) |
static vtkGenericContourFilter * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkGenericContourFilter () | |
~vtkGenericContourFilter () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
int | FillInputPortInformation (int, vtkInformation *) |
virtual void | SetInputScalarsSelection (const char *) |
Protected Attributes | |
vtkContourValues * | ContourValues |
int | ComputeNormals |
int | ComputeGradients |
int | ComputeScalars |
vtkIncrementalPointLocator * | Locator |
char * | InputScalarsSelection |
vtkPointData * | InternalPD |
vtkPointData * | SecondaryPD |
vtkCellData * | SecondaryCD |
generate isocontours from input dataset
vtkGenericContourFilter is a filter that takes as input any (generic) dataset and generates on output isosurfaces and/or isolines. The exact form of the output depends upon the dimensionality of the input data. Data consisting of 3D cells will generate isosurfaces, data consisting of 2D cells will generate isolines, and data with 1D or 0D cells will generate isopoints. Combinations of output type are possible if the input dimension is mixed.
To use this filter you must specify one or more contour values. You can either use the method SetValue() to specify each contour value, or use GenerateValues() to generate a series of evenly spaced contours. You can use ComputeNormalsOn to compute the normals without the need of a vtkPolyDataNormals
This filter has been implemented to operate on generic datasets, rather than the typical vtkDataSet (and subclasses). vtkGenericDataSet is a more complex cousin of vtkDataSet, typically consisting of nonlinear, higher-order cells. To process this type of data, generic cells are automatically tessellated into linear cells prior to isocontouring.
Definition at line 56 of file vtkGenericContourFilter.h.
typedef vtkPolyDataAlgorithm vtkGenericContourFilter::Superclass |
Definition at line 60 of file vtkGenericContourFilter.h.
typedef double vtkGenericContourFilter::PointType[3] |
Definition at line 69 of file vtkGenericContourFilter.h.
|
protected |
|
protected |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkGenericContourFilter* vtkGenericContourFilter::NewInstance | ( | ) | const |
void vtkGenericContourFilter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
static |
Construct object with initial range (0,1) and single contour value of 0.0.
void vtkGenericContourFilter::SetValue | ( | int | i, |
float | value | ||
) |
Methods to set / get contour values.
double vtkGenericContourFilter::GetValue | ( | int | i | ) |
Methods to set / get contour values.
double* vtkGenericContourFilter::GetValues | ( | ) |
Methods to set / get contour values.
void vtkGenericContourFilter::GetValues | ( | double * | contourValues | ) |
Methods to set / get contour values.
void vtkGenericContourFilter::SetNumberOfContours | ( | int | number | ) |
Methods to set / get contour values.
int vtkGenericContourFilter::GetNumberOfContours | ( | ) |
Methods to set / get contour values.
void vtkGenericContourFilter::GenerateValues | ( | int | numContours, |
double | range[2] | ||
) |
Methods to set / get contour values.
void vtkGenericContourFilter::GenerateValues | ( | int | numContours, |
double | rangeStart, | ||
double | rangeEnd | ||
) |
Methods to set / get contour values.
unsigned long vtkGenericContourFilter::GetMTime | ( | ) |
Modified GetMTime Because we delegate to vtkContourValues
|
virtual |
Set/Get the computation of normals. Normal computation is fairly expensive in both time and storage. If the output data will be processed by filters that modify topology or geometry, it may be wise to turn Normals and Gradients off.
|
virtual |
Set/Get the computation of normals. Normal computation is fairly expensive in both time and storage. If the output data will be processed by filters that modify topology or geometry, it may be wise to turn Normals and Gradients off.
|
virtual |
Set/Get the computation of normals. Normal computation is fairly expensive in both time and storage. If the output data will be processed by filters that modify topology or geometry, it may be wise to turn Normals and Gradients off.
|
virtual |
Set/Get the computation of normals. Normal computation is fairly expensive in both time and storage. If the output data will be processed by filters that modify topology or geometry, it may be wise to turn Normals and Gradients off.
|
virtual |
Set/Get the computation of gradients. Gradient computation is fairly expensive in both time and storage. Note that if ComputeNormals is on, gradients will have to be calculated, but will not be stored in the output dataset. If the output data will be processed by filters that modify topology or geometry, it may be wise to turn Normals and Gradients off.
|
virtual |
Set/Get the computation of gradients. Gradient computation is fairly expensive in both time and storage. Note that if ComputeNormals is on, gradients will have to be calculated, but will not be stored in the output dataset. If the output data will be processed by filters that modify topology or geometry, it may be wise to turn Normals and Gradients off.
|
virtual |
Set/Get the computation of gradients. Gradient computation is fairly expensive in both time and storage. Note that if ComputeNormals is on, gradients will have to be calculated, but will not be stored in the output dataset. If the output data will be processed by filters that modify topology or geometry, it may be wise to turn Normals and Gradients off.
|
virtual |
Set/Get the computation of gradients. Gradient computation is fairly expensive in both time and storage. Note that if ComputeNormals is on, gradients will have to be calculated, but will not be stored in the output dataset. If the output data will be processed by filters that modify topology or geometry, it may be wise to turn Normals and Gradients off.
|
virtual |
Set/Get the computation of scalars.
|
virtual |
Set/Get the computation of scalars.
|
virtual |
Set/Get the computation of scalars.
|
virtual |
Set/Get the computation of scalars.
void vtkGenericContourFilter::SetLocator | ( | vtkIncrementalPointLocator * | locator | ) |
Set / get a spatial locator for merging points. By default, an instance of vtkMergePoints is used.
|
virtual |
Set / get a spatial locator for merging points. By default, an instance of vtkMergePoints is used.
void vtkGenericContourFilter::CreateDefaultLocator | ( | ) |
Create default locator. Used to create one when none is specified. The locator is used to merge coincident points.
|
virtual |
If you want to contour by an arbitrary scalar attribute, then set its name here. By default this in NULL and the filter will use the active scalar array.
|
virtual |
If you want to contour by an arbitrary scalar attribute, then set its name here. By default this in NULL and the filter will use the active scalar array.
|
protected |
|
protected |
|
protectedvirtual |
|
protected |
Definition at line 143 of file vtkGenericContourFilter.h.
|
protected |
Definition at line 144 of file vtkGenericContourFilter.h.
|
protected |
Definition at line 145 of file vtkGenericContourFilter.h.
|
protected |
Definition at line 146 of file vtkGenericContourFilter.h.
|
protected |
Definition at line 147 of file vtkGenericContourFilter.h.
|
protected |
Definition at line 149 of file vtkGenericContourFilter.h.
|
protected |
Definition at line 150 of file vtkGenericContourFilter.h.
|
protected |
Definition at line 154 of file vtkGenericContourFilter.h.
|
protected |
Definition at line 155 of file vtkGenericContourFilter.h.