VTK
|
#include <vtkAMRSliceFilter.h>
A concrete instance of vtkOverlappingAMRAlgorithm which implements functionality for extracting slices from AMR data. Unlike the conventional slice filter, the output of this filter is a 2-D AMR dataset itself.
Definition at line 42 of file vtkAMRSliceFilter.h.
Reimplemented from vtkOverlappingAMRAlgorithm.
Definition at line 47 of file vtkAMRSliceFilter.h.
vtkAMRSliceFilter::vtkAMRSliceFilter | ( | ) | [protected] |
vtkAMRSliceFilter::~vtkAMRSliceFilter | ( | ) | [protected] |
static vtkAMRSliceFilter* vtkAMRSliceFilter::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkOverlappingAMRAlgorithm.
static int vtkAMRSliceFilter::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkOverlappingAMRAlgorithm.
virtual int vtkAMRSliceFilter::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkOverlappingAMRAlgorithm.
static vtkAMRSliceFilter* vtkAMRSliceFilter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkOverlappingAMRAlgorithm.
virtual vtkObjectBase* vtkAMRSliceFilter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkOverlappingAMRAlgorithm.
vtkAMRSliceFilter* vtkAMRSliceFilter::NewInstance | ( | ) | const |
Reimplemented from vtkOverlappingAMRAlgorithm.
void vtkAMRSliceFilter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkOverlappingAMRAlgorithm.
virtual void vtkAMRSliceFilter::SetOffSetFromOrigin | ( | double | ) | [virtual] |
virtual double vtkAMRSliceFilter::GetOffSetFromOrigin | ( | ) | [virtual] |
virtual void vtkAMRSliceFilter::SetForwardUpstream | ( | int | ) | [virtual] |
Set/Get ForwardUpstream property
virtual int vtkAMRSliceFilter::GetForwardUpstream | ( | ) | [virtual] |
Set/Get ForwardUpstream property
virtual void vtkAMRSliceFilter::ForwardUpstreamOn | ( | ) | [virtual] |
Set/Get ForwardUpstream property
virtual void vtkAMRSliceFilter::ForwardUpstreamOff | ( | ) | [virtual] |
Set/Get ForwardUpstream property
virtual void vtkAMRSliceFilter::SetEnablePrefetching | ( | int | ) | [virtual] |
Set/Get EnablePrefetching property
virtual int vtkAMRSliceFilter::GetEnablePrefetching | ( | ) | [virtual] |
Set/Get EnablePrefetching property
virtual void vtkAMRSliceFilter::EnablePrefetchingOn | ( | ) | [virtual] |
Set/Get EnablePrefetching property
virtual void vtkAMRSliceFilter::EnablePrefetchingOff | ( | ) | [virtual] |
Set/Get EnablePrefetching property
virtual void vtkAMRSliceFilter::SetMaxResolution | ( | int | ) | [virtual] |
Set/Get the maximum resolution used in this instance.
virtual int vtkAMRSliceFilter::GetMaxResolution | ( | ) | [virtual] |
Set/Get the maximum resolution used in this instance.
virtual void vtkAMRSliceFilter::SetNormal | ( | int | ) | [virtual] |
Set/Get the Axis normal. There are only 3 acceptable values 1-(X-Normal); 2-(Y-Normal); 3-(Z-Normal)
virtual int vtkAMRSliceFilter::GetNormal | ( | ) | [virtual] |
Set/Get the Axis normal. There are only 3 acceptable values 1-(X-Normal); 2-(Y-Normal); 3-(Z-Normal)
virtual void vtkAMRSliceFilter::SetController | ( | vtkMultiProcessController * | ) | [virtual] |
Set/Get a multiprocess controller for paralle processing. By default this parameter is set to NULL by the constructor.
virtual vtkMultiProcessController* vtkAMRSliceFilter::GetController | ( | ) | [virtual] |
Set/Get a multiprocess controller for paralle processing. By default this parameter is set to NULL by the constructor.
virtual int vtkAMRSliceFilter::RequestData | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkUniformGridAMRAlgorithm.
virtual int vtkAMRSliceFilter::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [virtual] |
See algorithm for more info.
Reimplemented from vtkOverlappingAMRAlgorithm.
virtual int vtkAMRSliceFilter::FillOutputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [virtual] |
See algorithm for more info.
Reimplemented from vtkOverlappingAMRAlgorithm.
virtual int vtkAMRSliceFilter::RequestInformation | ( | vtkInformation * | rqst, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [virtual] |
Makes upstream request to a source, typically, a concrete instance of vtkAMRBaseReader, for which blocks to load.
Reimplemented from vtkUniformGridAMRAlgorithm.
virtual int vtkAMRSliceFilter::RequestUpdateExtent | ( | vtkInformation * | , |
vtkInformationVector ** | , | ||
vtkInformationVector * | |||
) | [virtual] |
Performs upstream requests to the reader
Reimplemented from vtkUniformGridAMRAlgorithm.
int vtkAMRSliceFilter::GetDonorCellIdx | ( | double | x[3], |
vtkUniformGrid * | ug | ||
) | [protected] |
Returns the cell index w.r.t. the given input grid which contains the query point x. A -1 is returned if the point is not found.
void vtkAMRSliceFilter::ComputeCellCenter | ( | vtkUniformGrid * | ug, |
const int | cellIdx, | ||
double | centroid[3] | ||
) | [protected] |
Computes the cell center of the cell corresponding to the supplied cell index w.r.t. the input uniform grid.
vtkUniformGrid* vtkAMRSliceFilter::GetSlice | ( | double | origin[3], |
int * | dims, | ||
double * | gorigin, | ||
double * | spacing | ||
) | [protected] |
Gets the slice from the given grid given the plane origin & the user-supplied normal associated with this class instance.
void vtkAMRSliceFilter::GetSliceCellData | ( | vtkUniformGrid * | slice, |
vtkUniformGrid * | grid3D | ||
) | [protected] |
Copies the cell data for the cells in the slice from the 3-D grid.
bool vtkAMRSliceFilter::PlaneIntersectsAMRBox | ( | double | plane[4], |
double | bounds[6] | ||
) | [protected] |
Determines if a plane intersects with an AMR box
void vtkAMRSliceFilter::ComputeAMRBlocksToLoad | ( | vtkPlane * | p, |
vtkOverlappingAMR * | metadata | ||
) | [protected] |
Given the cut-plane and the metadata provided by a module upstream, this method generates the list of linear AMR block indices that need to be loaded.
void vtkAMRSliceFilter::GetAMRSliceInPlane | ( | vtkPlane * | p, |
vtkOverlappingAMR * | inp, | ||
vtkOverlappingAMR * | out | ||
) | [protected] |
Extracts a 2-D AMR slice from the dataset.
bool vtkAMRSliceFilter::IsAMRData2D | ( | vtkOverlappingAMR * | input | ) | [protected] |
A utility function that checks if the input AMR data is 2-D.
vtkPlane* vtkAMRSliceFilter::GetCutPlane | ( | vtkOverlappingAMR * | input | ) | [protected] |
Returns the axis-aligned cut plane.
void vtkAMRSliceFilter::InitializeOffSet | ( | vtkOverlappingAMR * | inp, |
double * | min, | ||
double * | max | ||
) | [protected] |
Initializes the off-set to be at the center of the input data-set.
double vtkAMRSliceFilter::OffSetFromOrigin [protected] |
Definition at line 161 of file vtkAMRSliceFilter.h.
int vtkAMRSliceFilter::Normal [protected] |
Definition at line 162 of file vtkAMRSliceFilter.h.
bool vtkAMRSliceFilter::initialRequest [protected] |
Definition at line 163 of file vtkAMRSliceFilter.h.
int vtkAMRSliceFilter::MaxResolution [protected] |
Definition at line 164 of file vtkAMRSliceFilter.h.
vtkMultiProcessController* vtkAMRSliceFilter::Controller [protected] |
Definition at line 165 of file vtkAMRSliceFilter.h.
int vtkAMRSliceFilter::ForwardUpstream [protected] |
Definition at line 167 of file vtkAMRSliceFilter.h.
int vtkAMRSliceFilter::EnablePrefetching [protected] |
Definition at line 168 of file vtkAMRSliceFilter.h.
std::vector< int > vtkAMRSliceFilter::BlocksToLoad [protected] |
Definition at line 170 of file vtkAMRSliceFilter.h.