VTK
|
#include <vtkAMRCutPlane.h>
A concrete instance of vtkMultiBlockDataSet that provides functionality for cutting an AMR dataset (an instance of vtkOverlappingAMR) with user supplied implicit plane function defined by a normal and center.
Definition at line 46 of file vtkAMRCutPlane.h.
Reimplemented from vtkMultiBlockDataSetAlgorithm.
Definition at line 50 of file vtkAMRCutPlane.h.
vtkAMRCutPlane::vtkAMRCutPlane | ( | ) | [protected] |
virtual vtkAMRCutPlane::~vtkAMRCutPlane | ( | ) | [protected, virtual] |
static vtkAMRCutPlane* vtkAMRCutPlane::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkMultiBlockDataSetAlgorithm.
static int vtkAMRCutPlane::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 vtkAMRCutPlane::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 vtkAMRCutPlane* vtkAMRCutPlane::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkMultiBlockDataSetAlgorithm.
virtual vtkObjectBase* vtkAMRCutPlane::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkMultiBlockDataSetAlgorithm.
vtkAMRCutPlane* vtkAMRCutPlane::NewInstance | ( | ) | const |
Reimplemented from vtkMultiBlockDataSetAlgorithm.
void vtkAMRCutPlane::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.
virtual void vtkAMRCutPlane::SetCenter | ( | double | , |
double | , | ||
double | |||
) | [virtual] |
Sets the center
virtual void vtkAMRCutPlane::SetCenter | ( | double | [3] | ) | [virtual] |
Sets the center
virtual void vtkAMRCutPlane::SetNormal | ( | double | , |
double | , | ||
double | |||
) | [virtual] |
Sets the normal
virtual void vtkAMRCutPlane::SetNormal | ( | double | [3] | ) | [virtual] |
Sets the normal
virtual void vtkAMRCutPlane::SetLevelOfResolution | ( | int | ) | [virtual] |
Sets the level of resolution
virtual int vtkAMRCutPlane::GetLevelOfResolution | ( | ) | [virtual] |
Sets the level of resolution
* virtual void vtkAMRCutPlane::SetUseNativeCutter | ( | bool | ) | [virtual] |
virtual bool vtkAMRCutPlane::GetUseNativeCutter | ( | ) | [virtual] |
virtual void vtkAMRCutPlane::UseNativeCutterOn | ( | ) | [virtual] |
virtual void vtkAMRCutPlane::UseNativeCutterOff | ( | ) | [virtual] |
virtual void vtkAMRCutPlane::SetController | ( | vtkMultiProcessController * | ) | [virtual] |
Set/Get a multiprocess controller for parallel processing. By default this parameter is set to NULL by the constructor.
virtual vtkMultiProcessController* vtkAMRCutPlane::GetController | ( | ) | [virtual] |
Set/Get a multiprocess controller for parallel processing. By default this parameter is set to NULL by the constructor.
virtual int vtkAMRCutPlane::RequestData | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkMultiBlockDataSetAlgorithm.
virtual int vtkAMRCutPlane::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [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 vtkAMRCutPlane::FillOutputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [virtual] |
Fill the output port information objects for this algorithm. This is invoked by the first call to GetOutputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkMultiBlockDataSetAlgorithm.
virtual int vtkAMRCutPlane::RequestInformation | ( | vtkInformation * | rqst, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [virtual] |
Gets the metadata from upstream module and determines which blocks should be loaded by this instance.
Reimplemented from vtkMultiBlockDataSetAlgorithm.
virtual int vtkAMRCutPlane::RequestUpdateExtent | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [virtual] |
Performs upstream requests to the reader
Reimplemented from vtkMultiBlockDataSetAlgorithm.
vtkPlane* vtkAMRCutPlane::GetCutPlane | ( | vtkOverlappingAMR * | metadata | ) | [protected] |
Returns the cut-plane defined by a vtkCutPlane instance based on the user-supplied center and normal.
void vtkAMRCutPlane::ExtractCellFromGrid | ( | vtkUniformGrid * | grid, |
vtkCell * | cell, | ||
std::map< vtkIdType, vtkIdType > & | gridPntMapping, | ||
vtkPoints * | nodes, | ||
vtkCellArray * | cells | ||
) | [protected] |
Extracts cell
void vtkAMRCutPlane::ExtractPointDataFromGrid | ( | vtkUniformGrid * | grid, |
std::map< vtkIdType, vtkIdType > & | gridPntMapping, | ||
vtkIdType | NumNodes, | ||
vtkPointData * | PD | ||
) | [protected] |
Given the grid and a subset ID pair, grid IDs mapping to the extracted grid IDs, extract the point data.
void vtkAMRCutPlane::ExtractCellDataFromGrid | ( | vtkUniformGrid * | grid, |
std::vector< vtkIdType > & | cellIdxList, | ||
vtkCellData * | CD | ||
) | [protected] |
Given the grid and the list of cells that are extracted, extract the corresponding cell data.
void vtkAMRCutPlane::ComputeAMRBlocksToLoad | ( | vtkPlane * | p, |
vtkOverlappingAMR * | m | ||
) | [protected] |
Given a cut-plane, p, and the metadata, m, this method computes which blocks need to be loaded. The corresponding block IDs are stored in the internal STL vector, blocksToLoad, which is then propagated upstream in the RequestUpdateExtent.
void vtkAMRCutPlane::InitializeCenter | ( | double | min[3], |
double | max[3] | ||
) | [protected] |
bool vtkAMRCutPlane::PlaneIntersectsAMRBox | ( | vtkPlane * | pl, |
double | bounds[6] | ||
) | [protected] |
Determines if a plane intersects with an AMR box
bool vtkAMRCutPlane::PlaneIntersectsAMRBox | ( | double | plane[4], |
double | bounds[6] | ||
) | [protected] |
Determines if a plane intersects with an AMR box
bool vtkAMRCutPlane::PlaneIntersectsCell | ( | vtkPlane * | pl, |
vtkCell * | cell | ||
) | [protected] |
Determines if a plane intersects with a grid cell
bool vtkAMRCutPlane::IsAMRData2D | ( | vtkOverlappingAMR * | input | ) | [protected] |
A utility function that checks if the input AMR data is 2-D.
void vtkAMRCutPlane::CutAMRBlock | ( | vtkPlane * | cutPlane, |
unsigned int | blockIdx, | ||
vtkUniformGrid * | grid, | ||
vtkMultiBlockDataSet * | dataSet | ||
) | [protected] |
Applies cutting to an AMR block
int vtkAMRCutPlane::LevelOfResolution [protected] |
Definition at line 172 of file vtkAMRCutPlane.h.
double vtkAMRCutPlane::Center[3] [protected] |
Definition at line 173 of file vtkAMRCutPlane.h.
double vtkAMRCutPlane::Normal[3] [protected] |
Definition at line 174 of file vtkAMRCutPlane.h.
bool vtkAMRCutPlane::initialRequest [protected] |
Definition at line 175 of file vtkAMRCutPlane.h.
bool vtkAMRCutPlane::UseNativeCutter [protected] |
Definition at line 176 of file vtkAMRCutPlane.h.
vtkMultiProcessController* vtkAMRCutPlane::Controller [protected] |
Definition at line 177 of file vtkAMRCutPlane.h.
std::vector<int> vtkAMRCutPlane::BlocksToLoad [protected] |
Definition at line 180 of file vtkAMRCutPlane.h.