Go to the documentation of this file.
27 #ifndef vtkAMRSliceFilter_h
28 #define vtkAMRSliceFilter_h
30 #include "vtkFiltersAMRModule.h"
57 vtkSetMacro(OffsetFromOrigin,
double);
58 vtkGetMacro(OffsetFromOrigin,
double);
65 vtkSetMacro(MaxResolution,
unsigned int);
66 vtkGetMacro(MaxResolution,
unsigned int);
74 X_NORMAL = 1, Y_NORMAL = 2, Z_NORMAL = 4
Encloses a rectangular region of voxel like cells.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Performs upstream requests to the reader.
perform various plane computations
bool IsAMRData2D(vtkOverlappingAMR *input)
A utility function that checks if the input AMR data is 2-D.
vtkPlane * GetCutPlane(vtkOverlappingAMR *input)
Returns the axis-aligned cut plane.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUniformGrid * 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 ...
int RequestInformation(vtkInformation *rqst, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Makes upstream request to a source, typically, a concrete instance of vtkAMRBaseReader,...
Multiprocessing communication superclass.
std::vector< int > BlocksToLoad
a simple class to control print indentation
void GetAMRSliceInPlane(vtkPlane *p, vtkOverlappingAMR *inp, vtkOverlappingAMR *out)
Extracts a 2-D AMR slice from the dataset.
void ComputeCellCenter(vtkUniformGrid *ug, const int cellIdx, double centroid[3])
Computes the cell center of the cell corresponding to the supplied cell index w.r....
hierarchical dataset of vtkUniformGrids
NormalTag
Tags to identify normals along the X, Y and Z directions.
vtkMultiProcessController * Controller
void GetSliceCellData(vtkUniformGrid *slice, vtkUniformGrid *grid3D)
Copies the cell data for the cells in the slice from the 3-D grid.
void ComputeAMRBlocksToLoad(vtkPlane *p, vtkOverlappingAMR *metadata)
Given the cut-plane and the metadata provided by a module upstream, this method generates the list of...
bool PlaneIntersectsAMRBox(double plane[4], double bounds[6])
Determines if a plane intersects with an AMR box.
static vtkAMRSliceFilter * New()
int FillOutputPortInformation(int port, vtkInformation *info) override
See algorithm for more info.
unsigned int MaxResolution
~vtkAMRSliceFilter() override
int GetDonorCellIdx(double x[3], vtkUniformGrid *ug)
Returns the cell index w.r.t.