Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkKitwareContourFilter Class Reference

#include <vtkKitwareContourFilter.h>

Inheritance diagram for vtkKitwareContourFilter:

Inheritance graph
[legend]
Collaboration diagram for vtkKitwareContourFilter:

Collaboration graph
[legend]
List of all members.

Detailed Description

generate isosurfaces/isolines from scalar values

vtkKitwareContourFilter is a filter that takes as input any 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.

This filter will identify special dataset types (e.g., structured points) and use the appropriate specialized filter to process the data. For examples, if the input dataset type is a volume, this filter will create an internal vtkSyncronizedTemplates3D instance and use it. This gives much better performance on StructuredPoints and StructuredGrids.

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. It is also possible to accelerate the operation of this filter (at the cost of extra memory) by using a vtkScalarTree. A scalar tree is used to quickly locate cells that contain a contour surface. This is especially effective if multiple contours are being extracted. If you want to use a scalar tree, invoke the method UseScalarTreeOn().

Warning:
For StructuredPoints, StructuredGrids, and RectilinearGrids, normals are computed by default, but it is an expensive computation. Processing for other data set types has not been extended to include normal computation. In the mean time, use vtkPolyDataNormals to compute the surface normals.
See also:
vtkSynchronizedTemplates3D vtkSynchronizedTemplates2D vtkGridSynchronizedTemplates3D vtkRectilinearSynchronizedTemplates
Created by:
  • Law, Charles
CVS contributions (if > 5%):
  • Law, Charles (55%)
  • Martin, Ken (18%)
  • Henderson, Amy (12%)
  • Geveci, Berk (9%)
CVS logs (CVSweb):
  • .h (/Patented/vtkKitwareContourFilter.h)
  • .cxx (/Patented/vtkKitwareContourFilter.cxx)
Tests:
vtkKitwareContourFilter (Tests)

Definition at line 76 of file vtkKitwareContourFilter.h.

Public Types

typedef vtkContourFilter Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetArrayComponent (int)
virtual int GetArrayComponent ()

Static Public Member Functions

int IsTypeOf (const char *type)
vtkKitwareContourFilterSafeDownCast (vtkObject *o)
vtkKitwareContourFilterNew ()

Protected Member Functions

 vtkKitwareContourFilter ()
 ~vtkKitwareContourFilter ()
void ComputeInputUpdateExtents (vtkDataObject *data)
void Execute ()
void ExecuteInformation ()
void StructuredPointsContour (int dim)
void StructuredGridContour (int dim)
void RectilinearGridContour (int dim)
void DataSetContour ()

Protected Attributes

int ArrayComponent


Member Typedef Documentation

typedef vtkContourFilter vtkKitwareContourFilter::Superclass
 

Reimplemented from vtkContourFilter.

Definition at line 79 of file vtkKitwareContourFilter.h.


Constructor & Destructor Documentation

vtkKitwareContourFilter::vtkKitwareContourFilter  )  [protected]
 

vtkKitwareContourFilter::~vtkKitwareContourFilter  )  [protected]
 


Member Function Documentation

virtual const char* vtkKitwareContourFilter::GetClassName  )  [virtual]
 

Reimplemented from vtkContourFilter.

int vtkKitwareContourFilter::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 vtkContourFilter.

virtual int vtkKitwareContourFilter::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 vtkContourFilter.

vtkKitwareContourFilter* vtkKitwareContourFilter::SafeDownCast vtkObject o  )  [static]
 

Reimplemented from vtkContourFilter.

void vtkKitwareContourFilter::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 vtkContourFilter.

vtkKitwareContourFilter* vtkKitwareContourFilter::New  )  [static]
 

Construct object with initial range (0,1) and single contour value of 0.0.

Reimplemented from vtkContourFilter.

virtual void vtkKitwareContourFilter::SetArrayComponent int   )  [virtual]
 

Set/get which component of the scalar array to contour on; defaults to 0. Currently this feature only works if the input is a vtkImageData.

virtual int vtkKitwareContourFilter::GetArrayComponent  )  [virtual]
 

Set/get which component of the scalar array to contour on; defaults to 0. Currently this feature only works if the input is a vtkImageData.

void vtkKitwareContourFilter::ComputeInputUpdateExtents vtkDataObject data  )  [protected, virtual]
 

Do not let images return more than requested.

Reimplemented from vtkDataSetToPolyDataFilter.

void vtkKitwareContourFilter::Execute  )  [protected, virtual]
 

This method is the old style execute method

Reimplemented from vtkContourFilter.

void vtkKitwareContourFilter::ExecuteInformation  )  [protected, virtual]
 

Reimplemented from vtkSource.

void vtkKitwareContourFilter::StructuredPointsContour int  dim  )  [protected]
 

void vtkKitwareContourFilter::StructuredGridContour int  dim  )  [protected]
 

void vtkKitwareContourFilter::RectilinearGridContour int  dim  )  [protected]
 

void vtkKitwareContourFilter::DataSetContour  )  [protected]
 


Member Data Documentation

int vtkKitwareContourFilter::ArrayComponent [protected]
 

Definition at line 111 of file vtkKitwareContourFilter.h.


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