Go to the documentation of this file.
24 #ifndef vtkAMRCutPlane_h
25 #define vtkAMRCutPlane_h
27 #include "vtkFiltersAMRModule.h"
58 vtkSetVector3Macro(Center,
double);
72 vtkSetMacro(LevelOfResolution,
int);
73 vtkGetMacro(LevelOfResolution,
int);
80 vtkSetMacro(UseNativeCutter,
bool);
81 vtkGetMacro(UseNativeCutter,
bool);
82 vtkBooleanMacro(UseNativeCutter,
bool);
132 std::map<vtkIdType,vtkIdType>& gridPntMapping,
142 std::map<vtkIdType,vtkIdType>& gridPntMapping,
152 std::vector<vtkIdType>& cellIdxList,
190 unsigned int blockIdx,
represent and manipulate 3D points
vtkMultiProcessController * Controller
bool PlaneIntersectsCell(vtkPlane *pl, vtkCell *cell)
Determines if a plane intersects with a grid cell.
perform various plane computations
void ExtractCellFromGrid(vtkUniformGrid *grid, vtkCell *cell, std::map< vtkIdType, vtkIdType > &gridPntMapping, vtkPoints *nodes, vtkCellArray *cells)
Extracts cell.
represent and manipulate point attribute data
std::vector< int > BlocksToLoad
static vtkAMRCutPlane * New()
Composite dataset that organizes datasets into blocks.
void CutAMRBlock(vtkPlane *cutPlane, unsigned int blockIdx, vtkUniformGrid *grid, vtkMultiBlockDataSet *dataSet)
Applies cutting to an AMR block.
bool PlaneIntersectsAMRBox(vtkPlane *pl, double bounds[6])
Determines if a plane intersects with an AMR box.
bool PlaneIntersectsAMRBox(double plane[4], double bounds[6])
void ExtractCellDataFromGrid(vtkUniformGrid *grid, std::vector< vtkIdType > &cellIdxList, vtkCellData *CD)
Given the grid and the list of cells that are extracted, extract the corresponding cell data.
Multiprocessing communication superclass.
abstract class to specify cell behavior
represent and manipulate cell attribute data
a simple class to control print indentation
object to represent cell connectivity
bool IsAMRData2D(vtkOverlappingAMR *input)
A utility function that checks if the input AMR data is 2-D.
void ExtractPointDataFromGrid(vtkUniformGrid *grid, std::map< vtkIdType, vtkIdType > &gridPntMapping, vtkIdType NumNodes, vtkPointData *PD)
Given the grid and a subset ID pair, grid IDs mapping to the extracted grid IDs, extract the point da...
vtkPlane * GetCutPlane(vtkOverlappingAMR *metadata)
Returns the cut-plane defined by a vtkCutPlane instance based on the user-supplied center and normal.
hierarchical dataset of vtkUniformGrids
A concrete instance of vtkMultiBlockDataSet that provides functionality for cutting an AMR dataset (a...
int RequestInformation(vtkInformation *rqst, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Gets the metadata from upstream module and determines which blocks should be loaded by this instance.
~vtkAMRCutPlane() override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Performs upstream requests to the reader.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &oss, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void InitializeCenter(double min[3], double max[3])
void ComputeAMRBlocksToLoad(vtkPlane *p, vtkOverlappingAMR *m)
Given a cut-plane, p, and the metadata, m, this method computes which blocks need to be loaded.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.