VTK
|
Generates surface of a CTH volume fraction. More...
#include <vtkExtractCTHPart.h>
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).
Definition at line 67 of file vtkExtractCTHPart.h.
Reimplemented from vtkMultiBlockDataSetAlgorithm.
Definition at line 71 of file vtkExtractCTHPart.h.
vtkExtractCTHPart::vtkExtractCTHPart | ( | ) | [protected] |
vtkExtractCTHPart::~vtkExtractCTHPart | ( | ) | [protected] |
static vtkExtractCTHPart* vtkExtractCTHPart::New | ( | ) | [static] |
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.
static vtkExtractCTHPart* vtkExtractCTHPart::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkMultiBlockDataSetAlgorithm.
virtual vtkObjectBase* vtkExtractCTHPart::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkMultiBlockDataSetAlgorithm.
vtkExtractCTHPart* vtkExtractCTHPart::NewInstance | ( | ) | const |
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.
const char* vtkExtractCTHPart::GetVolumeArrayName | ( | int | idx | ) |
Select cell-data arrays (volume-fraction arrays) to contour with.
void vtkExtractCTHPart::SetController | ( | vtkMultiProcessController * | controller | ) |
Get/Set the parallel controller. By default, the value returned by vtkMultiBlockDataSetAlgorithm::GetGlobalController() when the object is instantiated is used.
virtual vtkMultiProcessController* vtkExtractCTHPart::GetController | ( | ) | [virtual] |
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.
void vtkExtractCTHPart::SetClipPlane | ( | vtkPlane * | clipPlane | ) |
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.
virtual void vtkExtractCTHPart::SetVolumeFractionSurfaceValue | ( | double | ) | [virtual] |
Set and get the volume fraction surface value. This value should be between 0 and 1
virtual double vtkExtractCTHPart::GetVolumeFractionSurfaceValue | ( | ) | [virtual] |
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.
bool vtkExtractCTHPart::ComputeGlobalBounds | ( | vtkCompositeDataSet * | input | ) | [protected] |
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?
void vtkExtractCTHPart::TriggerProgressEvent | ( | double | val | ) | [protected] |
friend class ScaledProgress [friend] |
Definition at line 217 of file vtkExtractCTHPart.h.
int vtkExtractCTHPart::VolumeFractionType [protected] |
Definition at line 170 of file vtkExtractCTHPart.h.
double vtkExtractCTHPart::VolumeFractionSurfaceValue [protected] |
Definition at line 171 of file vtkExtractCTHPart.h.
Definition at line 172 of file vtkExtractCTHPart.h.
bool vtkExtractCTHPart::GenerateTriangles [protected] |
Definition at line 173 of file vtkExtractCTHPart.h.
bool vtkExtractCTHPart::Capping [protected] |
Definition at line 174 of file vtkExtractCTHPart.h.
bool vtkExtractCTHPart::RemoveGhostCells [protected] |
Definition at line 175 of file vtkExtractCTHPart.h.
vtkPlane* vtkExtractCTHPart::ClipPlane [protected] |
Definition at line 176 of file vtkExtractCTHPart.h.
vtkMultiProcessController* vtkExtractCTHPart::Controller [protected] |
Definition at line 177 of file vtkExtractCTHPart.h.