Go to the documentation of this file.
27 #ifndef vtkAMRSliceFilter_h
28 #define vtkAMRSliceFilter_h
30 #include "vtkFiltersAMRModule.h"
53 vtkGetMacro(OffSetFromOrigin,
double);
60 vtkGetMacro( ForwardUpstream,
int );
69 vtkGetMacro( EnablePrefetching,
int );
78 vtkGetMacro(MaxResolution,
int);
Encloses a rectangular region of voxel like cells.
perform various plane computations
A concrete instance of vtkOverlappingAMRAlgorithm which implements functionality for extracting slice...
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.
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 ...
Multiprocessing communication superclass.
virtual int RequestInformation(vtkInformation *rqst, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Makes upstream request to a source, typically, a concrete instance of vtkAMRBaseReader,...
std::vector< int > BlocksToLoad
a simple class to control print indentation
A base class for all algorithms that take as input vtkOverlappingAMR and produce vtkOverlappingAMR.
void GetAMRSliceInPlane(vtkPlane *p, vtkOverlappingAMR *inp, vtkOverlappingAMR *out)
Extracts a 2-D AMR slice from the dataset.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkMultiProcessController * Controller
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
See algorithm for more info.
void InitializeOffSet(vtkOverlappingAMR *inp, double *min, double *max)
Initializes the off-set to be at the center of the input data-set.
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.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
static vtkAMRSliceFilter * New()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Performs upstream requests to the reader.
int GetDonorCellIdx(double x[3], vtkUniformGrid *ug)
Returns the cell index w.r.t.