VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkAMRSliceFilter Class Reference

#include <vtkAMRSliceFilter.h>

Inheritance diagram for vtkAMRSliceFilter:
Inheritance graph
[legend]
Collaboration diagram for vtkAMRSliceFilter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkOverlappingAMRAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkAMRSliceFilterNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetOffSetFromOrigin (double)
virtual double GetOffSetFromOrigin ()
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int FillInputPortInformation (int port, vtkInformation *info)
virtual int FillOutputPortInformation (int port, vtkInformation *info)
virtual void SetForwardUpstream (int)
virtual int GetForwardUpstream ()
virtual void ForwardUpstreamOn ()
virtual void ForwardUpstreamOff ()
virtual void SetEnablePrefetching (int)
virtual int GetEnablePrefetching ()
virtual void EnablePrefetchingOn ()
virtual void EnablePrefetchingOff ()
virtual void SetMaxResolution (int)
virtual int GetMaxResolution ()
virtual void SetNormal (int)
virtual int GetNormal ()
virtual void SetController (vtkMultiProcessController *)
virtual vtkMultiProcessControllerGetController ()
virtual int RequestInformation (vtkInformation *rqst, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Static Public Member Functions

static vtkAMRSliceFilterNew ()
static int IsTypeOf (const char *type)
static vtkAMRSliceFilterSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkAMRSliceFilter ()
 ~vtkAMRSliceFilter ()
int GetDonorCellIdx (double x[3], vtkUniformGrid *ug)
vtkUniformGridGetSlice (double origin[3], int *dims, double *gorigin, double *spacing)
void GetSliceCellData (vtkUniformGrid *slice, vtkUniformGrid *grid3D)
bool PlaneIntersectsAMRBox (double plane[4], double bounds[6])
bool IsAMRData2D (vtkOverlappingAMR *input)
vtkPlaneGetCutPlane (vtkOverlappingAMR *input)
void ComputeCellCenter (vtkUniformGrid *ug, const int cellIdx, double centroid[3])
void ComputeAMRBlocksToLoad (vtkPlane *p, vtkOverlappingAMR *metadata)
void GetAMRSliceInPlane (vtkPlane *p, vtkOverlappingAMR *inp, vtkOverlappingAMR *out)
void InitializeOffSet (vtkOverlappingAMR *inp, double *min, double *max)

Protected Attributes

double OffSetFromOrigin
int Normal
bool initialRequest
int MaxResolution
vtkMultiProcessControllerController
int ForwardUpstream
int EnablePrefetching
std::vector< intBlocksToLoad

Detailed Description

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.

Tests:
vtkAMRSliceFilter (Tests)

Definition at line 42 of file vtkAMRSliceFilter.h.


Member Typedef Documentation

Reimplemented from vtkOverlappingAMRAlgorithm.

Definition at line 47 of file vtkAMRSliceFilter.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Reimplemented from vtkOverlappingAMRAlgorithm.

virtual vtkObjectBase* vtkAMRSliceFilter::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkOverlappingAMRAlgorithm.

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 void vtkAMRSliceFilter::SetForwardUpstream ( int  ) [virtual]

Set/Get ForwardUpstream property

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

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.

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)

Set/Get a multiprocess controller for paralle processing. By default this parameter is set to NULL by the constructor.

Set/Get a multiprocess controller for paralle processing. By default this parameter is set to NULL by the constructor.

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.

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.

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.

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.


Member Data Documentation

Definition at line 161 of file vtkAMRSliceFilter.h.

Definition at line 162 of file vtkAMRSliceFilter.h.

Definition at line 163 of file vtkAMRSliceFilter.h.

Definition at line 164 of file vtkAMRSliceFilter.h.

Definition at line 165 of file vtkAMRSliceFilter.h.

Definition at line 167 of file vtkAMRSliceFilter.h.

Definition at line 168 of file vtkAMRSliceFilter.h.

std::vector< int > vtkAMRSliceFilter::BlocksToLoad [protected]

Definition at line 170 of file vtkAMRSliceFilter.h.


The documentation for this class was generated from the following file: