19#ifndef vtkAMRSliceFilter_h
20#define vtkAMRSliceFilter_h
22#include "vtkFiltersAMRModule.h"
27VTK_ABI_NAMESPACE_BEGIN
Encloses a rectangular region of voxel like cells.
bool IsAMRData2D(vtkOverlappingAMR *input)
A utility function that checks if the input AMR data is 2-D.
void ComputeAMRBlocksToLoad(vtkPlane *p, vtkOverlappingAMR *metadata)
Given the cut-plane and the metadata provided by a module upstream, this method generates the list of...
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Performs upstream requests to the reader.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMultiProcessController * Controller
vtkPlane * GetCutPlane(vtkOverlappingAMR *input)
Returns the axis-aligned cut plane.
static vtkAMRSliceFilter * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void ComputeCellCenter(vtkImageData *imageData, int cellIdx, double centroid[3])
Computes the cell center of the cell corresponding to the supplied cell index w.r....
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
bool PlaneIntersectsAMRBox(double plane[4], double bounds[6])
Determines if a plane intersects with an AMR box.
void GetSliceCellData(vtkImageData *slice, vtkImageData *grid3D)
Copies the cell data for the cells in the slice from the 3-D grid.
std::vector< int > BlocksToLoad
int GetDonorCellIdx(double x[3], vtkImageData *imageData)
Returns the cell index w.r.t.
~vtkAMRSliceFilter() override
NormalTag
Tags to identify normals along the X, Y and Z directions.
virtual void SetController(vtkMultiProcessController *)
Set/Get a multiprocess controller for parallel processing.
vtkImageData * GetSlice(double origin[3], int *dims, double *gorigin, double *spacing)
Gets the slice from the given grid given the plane origin & the user-supplied normal associated with ...
void GetAMRSliceInPlane(vtkPlane *p, vtkOverlappingAMR *inp, vtkOverlappingAMR *out)
Extracts a 2-D AMR slice from the dataset.
void GetSlicePointData(vtkImageData *slice, vtkImageData *grid3D)
Copies the point data for the cells in the slice from the 3-D grid.
unsigned int MaxResolution
int GetDonorPointIdx(double x[3], vtkImageData *imageData)
Returns the point index w.r.t.
int RequestInformation(vtkInformation *rqst, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Makes upstream request to a source, typically, a concrete instance of vtkAMRBaseReader,...
topologically and geometrically regular array of data
a simple class to control print indentation
Multiprocessing communication superclass.
vtkOverlappingAMRAlgorithm()
a multi-resolution dataset based on vtkCartesianGrid allowing overlaps
perform various plane computations