VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkAMRCutPlane Class Reference

#include <vtkAMRCutPlane.h>

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

List of all members.

Public Types

typedef
vtkMultiBlockDataSetAlgorithm 
Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkAMRCutPlaneNewInstance () const
void PrintSelf (ostream &oss, vtkIndent indent)
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int FillInputPortInformation (int port, vtkInformation *info)
virtual int FillOutputPortInformation (int port, vtkInformation *info)
virtual void SetCenter (double, double, double)
virtual void SetCenter (double[3])
virtual void SetNormal (double, double, double)
virtual void SetNormal (double[3])
virtual void SetLevelOfResolution (int)
virtual int GetLevelOfResolution ()
*virtual void SetUseNativeCutter (bool)
virtual bool GetUseNativeCutter ()
virtual void UseNativeCutterOn ()
virtual void UseNativeCutterOff ()
virtual void SetController (vtkMultiProcessController *)
virtual vtkMultiProcessControllerGetController ()
virtual int RequestInformation (vtkInformation *rqst, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Static Public Member Functions

static vtkAMRCutPlaneNew ()
static int IsTypeOf (const char *type)
static vtkAMRCutPlaneSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkAMRCutPlane ()
virtual ~vtkAMRCutPlane ()
vtkPlaneGetCutPlane (vtkOverlappingAMR *metadata)
void ComputeAMRBlocksToLoad (vtkPlane *p, vtkOverlappingAMR *m)
void InitializeCenter (double min[3], double max[3])
bool PlaneIntersectsCell (vtkPlane *pl, vtkCell *cell)
bool IsAMRData2D (vtkOverlappingAMR *input)
void ExtractCellFromGrid (vtkUniformGrid *grid, vtkCell *cell, std::map< vtkIdType, vtkIdType > &gridPntMapping, vtkPoints *nodes, vtkCellArray *cells)
void ExtractPointDataFromGrid (vtkUniformGrid *grid, std::map< vtkIdType, vtkIdType > &gridPntMapping, vtkIdType NumNodes, vtkPointData *PD)
void ExtractCellDataFromGrid (vtkUniformGrid *grid, std::vector< vtkIdType > &cellIdxList, vtkCellData *CD)
bool PlaneIntersectsAMRBox (vtkPlane *pl, double bounds[6])
bool PlaneIntersectsAMRBox (double plane[4], double bounds[6])
void CutAMRBlock (vtkPlane *cutPlane, unsigned int blockIdx, vtkUniformGrid *grid, vtkMultiBlockDataSet *dataSet)

Protected Attributes

int LevelOfResolution
double Center [3]
double Normal [3]
bool initialRequest
bool UseNativeCutter
vtkMultiProcessControllerController
std::vector< intBlocksToLoad

Detailed Description

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.


Member Typedef Documentation

Reimplemented from vtkMultiBlockDataSetAlgorithm.

Definition at line 50 of file vtkAMRCutPlane.h.


Constructor & Destructor Documentation

virtual vtkAMRCutPlane::~vtkAMRCutPlane ( ) [protected, virtual]

Member Function Documentation

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.

Reimplemented from vtkMultiBlockDataSetAlgorithm.

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

Reimplemented from vtkMultiBlockDataSetAlgorithm.

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

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]

Set/Get a multiprocess controller for parallel processing. By default this parameter is set to NULL by the constructor.

Set/Get a multiprocess controller for parallel processing. By default this parameter is set to NULL by the constructor.

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.

Performs upstream requests to the reader

Reimplemented from vtkMultiBlockDataSetAlgorithm.

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.

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


Member Data Documentation

Definition at line 172 of file vtkAMRCutPlane.h.

Definition at line 173 of file vtkAMRCutPlane.h.

Definition at line 174 of file vtkAMRCutPlane.h.

Definition at line 175 of file vtkAMRCutPlane.h.

Definition at line 176 of file vtkAMRCutPlane.h.

Definition at line 177 of file vtkAMRCutPlane.h.

std::vector<int> vtkAMRCutPlane::BlocksToLoad [protected]

Definition at line 180 of file vtkAMRCutPlane.h.


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