VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
vtkExtractCTHPart Class Reference

Generates surface of a CTH volume fraction. More...

#include <vtkExtractCTHPart.h>

Inheritance diagram for vtkExtractCTHPart:
Inheritance graph
[legend]
Collaboration diagram for vtkExtractCTHPart:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
vtkMultiBlockDataSetAlgorithm 
Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkExtractCTHPartNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
unsigned long GetMTime ()
void AddVolumeArrayName (const char *)
void RemoveVolumeArrayNames ()
int GetNumberOfVolumeArrayNames ()
const char * GetVolumeArrayName (int idx)
void SetController (vtkMultiProcessController *controller)
virtual vtkMultiProcessControllerGetController ()
virtual void SetCapping (bool)
virtual bool GetCapping ()
virtual void CappingOn ()
virtual void CappingOff ()
virtual void SetGenerateTriangles (bool)
virtual bool GetGenerateTriangles ()
virtual void GenerateTrianglesOn ()
virtual void GenerateTrianglesOff ()
virtual void SetRemoveGhostCells (bool)
virtual bool GetRemoveGhostCells ()
virtual void RemoveGhostCellsOn ()
virtual void RemoveGhostCellsOff ()
void SetClipPlane (vtkPlane *clipPlane)
virtual vtkPlaneGetClipPlane ()
virtual void SetVolumeFractionSurfaceValue (double)
virtual double GetVolumeFractionSurfaceValue ()

Static Public Member Functions

static vtkExtractCTHPartNew ()
static int IsTypeOf (const char *type)
static vtkExtractCTHPartSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkExtractCTHPart ()
 ~vtkExtractCTHPart ()
virtual int FillInputPortInformation (int port, vtkInformation *info)
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
bool ComputeGlobalBounds (vtkCompositeDataSet *input)
void ExecuteFaceQuads (vtkDataSet *input, vtkPolyData *output, int maxFlag, int originExtents[3], int ext[6], int aAxis, int bAxis, int cAxis)
void TriggerProgressEvent (double val)
bool ExtractContour (vtkPolyData *output, vtkCompositeDataSet *input, const char *arrayName)
int IsGhostFace (int axis0, int maxFlag, int dims[3], vtkUnsignedCharArray *ghostArray)

Protected Attributes

int VolumeFractionType
double VolumeFractionSurfaceValue
double VolumeFractionSurfaceValueInternal
bool GenerateTriangles
bool Capping
bool RemoveGhostCells
vtkPlaneClipPlane
vtkMultiProcessControllerController

Friends

class ScaledProgress

Detailed Description

Generates surface of a CTH volume fraction.

vtkExtractCTHPart is a filter that is specialized for creating visualizations for a CTH simulation. CTH datasets comprise of either vtkNonOverlappingAMR or a multiblock of non-overlapping rectilinear grids with cell-data. Certain cell-arrays in the dataset identify the fraction of a particular material present in a given cell. This goal with this filter is to extract a surface contour demarcating the surface where the volume fraction for a particular material is equal to the user chosen value.

To achieve that, this filter first converts the cell-data to point-data and then simply apply vtkContourFilter filter to extract the contour.

vtkExtractCTHPart also provides the user with an option to clip the resultant contour using a vtkPlane. Internally, it uses vtkClipClosedSurface to clip the contour using the vtkPlane provided.

The output of this filter is a vtkMultiBlockDataSet with one block corresponding to each volume-fraction array requested. Each block itself is a vtkPolyData for the contour generated on the current process (which may be null, for processes where no contour is generated).

Tests:
vtkExtractCTHPart (Tests)

Definition at line 67 of file vtkExtractCTHPart.h.


Member Typedef Documentation

Reimplemented from vtkMultiBlockDataSetAlgorithm.

Definition at line 71 of file vtkExtractCTHPart.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

static int vtkExtractCTHPart::IsTypeOf ( const char *  name) [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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

virtual int vtkExtractCTHPart::IsA ( const char *  name) [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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

virtual vtkObjectBase* vtkExtractCTHPart::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkMultiBlockDataSetAlgorithm.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

void vtkExtractCTHPart::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 vtkMultiBlockDataSetAlgorithm.

void vtkExtractCTHPart::AddVolumeArrayName ( const char *  )

Select cell-data arrays (volume-fraction arrays) to contour with.

Select cell-data arrays (volume-fraction arrays) to contour with.

Select cell-data arrays (volume-fraction arrays) to contour with.

Select cell-data arrays (volume-fraction arrays) to contour with.

Get/Set the parallel controller. By default, the value returned by vtkMultiBlockDataSetAlgorithm::GetGlobalController() when the object is instantiated is used.

Get/Set the parallel controller. By default, the value returned by vtkMultiBlockDataSetAlgorithm::GetGlobalController() when the object is instantiated is used.

virtual void vtkExtractCTHPart::SetCapping ( bool  ) [virtual]

On by default, enables logic to cap the material volume.

virtual bool vtkExtractCTHPart::GetCapping ( ) [virtual]

On by default, enables logic to cap the material volume.

virtual void vtkExtractCTHPart::CappingOn ( ) [virtual]

On by default, enables logic to cap the material volume.

virtual void vtkExtractCTHPart::CappingOff ( ) [virtual]

On by default, enables logic to cap the material volume.

virtual void vtkExtractCTHPart::SetGenerateTriangles ( bool  ) [virtual]

Triangulate results. When set to false, the internal cut and contour filters are told not to triangulate results if possible. true by default.

virtual bool vtkExtractCTHPart::GetGenerateTriangles ( ) [virtual]

Triangulate results. When set to false, the internal cut and contour filters are told not to triangulate results if possible. true by default.

virtual void vtkExtractCTHPart::GenerateTrianglesOn ( ) [virtual]

Triangulate results. When set to false, the internal cut and contour filters are told not to triangulate results if possible. true by default.

virtual void vtkExtractCTHPart::GenerateTrianglesOff ( ) [virtual]

Triangulate results. When set to false, the internal cut and contour filters are told not to triangulate results if possible. true by default.

virtual void vtkExtractCTHPart::SetRemoveGhostCells ( bool  ) [virtual]

When set to false, the output surfaces will not hide contours extracted from ghost cells. This results in overlapping contours but overcomes holes. Default is set to true.

virtual bool vtkExtractCTHPart::GetRemoveGhostCells ( ) [virtual]

When set to false, the output surfaces will not hide contours extracted from ghost cells. This results in overlapping contours but overcomes holes. Default is set to true.

virtual void vtkExtractCTHPart::RemoveGhostCellsOn ( ) [virtual]

When set to false, the output surfaces will not hide contours extracted from ghost cells. This results in overlapping contours but overcomes holes. Default is set to true.

virtual void vtkExtractCTHPart::RemoveGhostCellsOff ( ) [virtual]

When set to false, the output surfaces will not hide contours extracted from ghost cells. This results in overlapping contours but overcomes holes. Default is set to true.

Set, get or manipulate the implicit clipping plane.

virtual vtkPlane* vtkExtractCTHPart::GetClipPlane ( ) [virtual]

Set, get or manipulate the implicit clipping plane.

unsigned long vtkExtractCTHPart::GetMTime ( ) [virtual]

Look at clip plane to compute MTime.

Reimplemented from vtkObject.

Set and get the volume fraction surface value. This value should be between 0 and 1

Set and get the volume fraction surface value. This value should be between 0 and 1

virtual int vtkExtractCTHPart::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

virtual int vtkExtractCTHPart::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

Compute the bounds over the composite dataset, some sub-dataset can be on other processors. Returns false of communication failure.

bool vtkExtractCTHPart::ExtractContour ( vtkPolyData output,
vtkCompositeDataSet input,
const char *  arrayName 
) [protected]

Extract contour for a particular array over the entire input dataset. Returns false on error.

void vtkExtractCTHPart::ExecuteFaceQuads ( vtkDataSet input,
vtkPolyData output,
int  maxFlag,
int  originExtents[3],
int  ext[6],
int  aAxis,
int  bAxis,
int  cAxis 
) [protected]
int vtkExtractCTHPart::IsGhostFace ( int  axis0,
int  maxFlag,
int  dims[3],
vtkUnsignedCharArray ghostArray 
) [protected]

Is block face on axis0 (either min or max depending on the maxFlag) composed of only ghost cells?

Precondition:
valid_axis0: axis0>=0 && axis0<=2

Friends And Related Function Documentation

friend class ScaledProgress [friend]

Definition at line 217 of file vtkExtractCTHPart.h.


Member Data Documentation

Definition at line 170 of file vtkExtractCTHPart.h.

Definition at line 171 of file vtkExtractCTHPart.h.

Definition at line 172 of file vtkExtractCTHPart.h.

Definition at line 173 of file vtkExtractCTHPart.h.

bool vtkExtractCTHPart::Capping [protected]

Definition at line 174 of file vtkExtractCTHPart.h.

Definition at line 175 of file vtkExtractCTHPart.h.

Definition at line 176 of file vtkExtractCTHPart.h.

Definition at line 177 of file vtkExtractCTHPart.h.


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