VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkAMRCutPlane Class Reference

#include <vtkAMRCutPlane.h>

Inherits vtkMultiBlockDataSetAlgorithm.

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 vtkMultiProcessController * GetController ()
 
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 vtkObjectBase * NewInstanceInternal () const
 
 vtkAMRCutPlane ()
 
virtual ~vtkAMRCutPlane ()
 
vtkPlane * GetCutPlane (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
 
vtkMultiProcessController * Controller
 
std::vector< int > BlocksToLoad
 

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

typedef vtkMultiBlockDataSetAlgorithm vtkAMRCutPlane::Superclass

Definition at line 50 of file vtkAMRCutPlane.h.

Constructor & Destructor Documentation

vtkAMRCutPlane::vtkAMRCutPlane ( )
protected
virtual vtkAMRCutPlane::~vtkAMRCutPlane ( )
protectedvirtual

Member Function Documentation

static vtkAMRCutPlane* vtkAMRCutPlane::New ( )
static
static int vtkAMRCutPlane::IsTypeOf ( const char *  type)
static
virtual int vtkAMRCutPlane::IsA ( const char *  type)
virtual
static vtkAMRCutPlane* vtkAMRCutPlane::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkAMRCutPlane::NewInstanceInternal ( ) const
protectedvirtual
vtkAMRCutPlane* vtkAMRCutPlane::NewInstance ( ) const
void vtkAMRCutPlane::PrintSelf ( ostream &  oss,
vtkIndent  indent 
)
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
virtual int vtkAMRCutPlane::FillInputPortInformation ( int  port,
vtkInformation *  info 
)
virtual
virtual int vtkAMRCutPlane::FillOutputPortInformation ( int  port,
vtkInformation *  info 
)
virtual
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.

virtual int vtkAMRCutPlane::RequestUpdateExtent ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
virtual

Performs upstream requests to the reader

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

Member Data Documentation

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.


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