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

A source to test AMR data object. More...

#include <vtkTemporalFractal.h>

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

List of all members.

Public Types

typedef vtkAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkTemporalFractalNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetFractalValue (float)
virtual float GetFractalValue ()
virtual void SetMaximumLevel (int)
virtual int GetMaximumLevel ()
virtual void SetDimensions (int)
virtual int GetDimensions ()
virtual void SetGhostLevels (int)
virtual int GetGhostLevels ()
virtual void GhostLevelsOn ()
virtual void GhostLevelsOff ()
virtual void SetGenerateRectilinearGrids (int)
virtual int GetGenerateRectilinearGrids ()
virtual void GenerateRectilinearGridsOn ()
virtual void GenerateRectilinearGridsOff ()
virtual void SetDiscreteTimeSteps (int)
virtual int GetDiscreteTimeSteps ()
virtual void DiscreteTimeStepsOn ()
virtual void DiscreteTimeStepsOff ()
virtual void SetTwoDimensional (int)
virtual int GetTwoDimensional ()
virtual void TwoDimensionalOn ()
virtual void TwoDimensionalOff ()
virtual void SetAsymetric (int)
virtual int GetAsymetric ()
virtual void SetAdaptiveSubdivision (int)
virtual int GetAdaptiveSubdivision ()
virtual void AdaptiveSubdivisionOn ()
virtual void AdaptiveSubdivisionOff ()

Static Public Member Functions

static vtkTemporalFractalNew ()
static int IsTypeOf (const char *type)
static vtkTemporalFractalSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkTemporalFractal ()
 ~vtkTemporalFractal ()
virtual int FillOutputPortInformation (int vtkNotUsed(port), vtkInformation *info)
void Traverse (int &blockId, int level, vtkDataObject *output, int x0, int x1, int y0, int y1, int z0, int z1, int onFace[6])
int LineTest2 (float x0, float y0, float z0, float x1, float y1, float z1, double bds[6])
int LineTest (float x0, float y0, float z0, float x1, float y1, float z1, double bds[6], int level, int target)
void SetBlockInfo (vtkUniformGrid *grid, int level, int *ext, int onFace[6])
void SetRBlockInfo (vtkRectilinearGrid *grid, int level, int *ext, int onFace[6])
void AddVectorArray (vtkHierarchicalBoxDataSet *output)
void AddTestArray (vtkHierarchicalBoxDataSet *output)
void AddFractalArray (vtkCompositeDataSet *output)
void AddBlockIdArray (vtkHierarchicalBoxDataSet *output)
void AddDepthArray (vtkHierarchicalBoxDataSet *output)
void AddGhostLevelArray (vtkDataSet *grid, int dim[3], int onFace[6])
int MandelbrotTest (double x, double y)
int TwoDTest (double bds[6], int level, int target)
void CellExtentToBounds (int level, int ext[6], double bds[6])
void ExecuteRectilinearMandelbrot (vtkRectilinearGrid *grid, double *ptr)
double EvaluateSet (double p[4])
void GetContinuousIncrements (int extent[6], vtkIdType &incX, vtkIdType &incY, vtkIdType &incZ)
virtual void SetTopLevelSpacing (double, double, double)
virtual void SetTopLevelSpacing (double[3])
virtual doubleGetTopLevelSpacing ()
virtual void GetTopLevelSpacing (double &, double &, double &)
virtual void GetTopLevelSpacing (double[3])
virtual void SetTopLevelOrigin (double, double, double)
virtual void SetTopLevelOrigin (double[3])
virtual doubleGetTopLevelOrigin ()
virtual void GetTopLevelOrigin (double &, double &, double &)
virtual void GetTopLevelOrigin (double[3])
void InternalImageDataCopy (vtkTemporalFractal *src)
virtual int ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestDataObject (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestOneTimeStep (vtkCompositeDataSet *output, vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)

Protected Attributes

int StartBlock
int EndBlock
int BlockCount
int Asymetric
int MaximumLevel
int Dimensions
float FractalValue
int GhostLevels
vtkIntArrayLevels
int TwoDimensional
int DiscreteTimeSteps
double TopLevelSpacing [3]
double TopLevelOrigin [3]
int GenerateRectilinearGrids
double CurrentTime
int AdaptiveSubdivision
vtkSmartPointer
< TemporalFractalOutputUtil > 
OutputUtil

Detailed Description

A source to test AMR data object.

vtkTemporalFractal is a collection of uniform grids. All have the same dimensions. Each block has a different origin and spacing. It uses mandelbrot to create cell data. I scale the fractal array to look like a volme fraction. I may also add block id and level as extra cell arrays. This source produces a vtkHierarchicalBoxDataSet when GenerateRectilinearGrids is off, otherwise produces a vtkMultiBlockDataSet.

Tests:
vtkTemporalFractal (Tests)

Definition at line 45 of file vtkTemporalFractal.h.


Member Typedef Documentation

Reimplemented from vtkAlgorithm.

Definition at line 49 of file vtkTemporalFractal.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 vtkAlgorithm.

static int vtkTemporalFractal::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 vtkAlgorithm.

virtual int vtkTemporalFractal::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 vtkAlgorithm.

Reimplemented from vtkAlgorithm.

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

Reimplemented from vtkAlgorithm.

Reimplemented from vtkAlgorithm.

void vtkTemporalFractal::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 vtkAlgorithm.

virtual void vtkTemporalFractal::SetFractalValue ( float  ) [virtual]

Essentially the iso surface value. The fractal array is scaled to map this value to 0.5 for use as a volume fraction.

Essentially the iso surface value. The fractal array is scaled to map this value to 0.5 for use as a volume fraction.

virtual void vtkTemporalFractal::SetMaximumLevel ( int  ) [virtual]

Any blocks touching a predefined line will be subdivided to this level. Other blocks are subdivided so that neighboring blocks only differ by one level.

Any blocks touching a predefined line will be subdivided to this level. Other blocks are subdivided so that neighboring blocks only differ by one level.

virtual void vtkTemporalFractal::SetDimensions ( int  ) [virtual]

XYZ dimensions of cells.

virtual int vtkTemporalFractal::GetDimensions ( ) [virtual]

XYZ dimensions of cells.

virtual void vtkTemporalFractal::SetGhostLevels ( int  ) [virtual]

For testing ghost levels.

virtual int vtkTemporalFractal::GetGhostLevels ( ) [virtual]

For testing ghost levels.

virtual void vtkTemporalFractal::GhostLevelsOn ( ) [virtual]

For testing ghost levels.

virtual void vtkTemporalFractal::GhostLevelsOff ( ) [virtual]

For testing ghost levels.

Generate either rectilinear grids either uniform grids. Default is false.

Generate either rectilinear grids either uniform grids. Default is false.

Generate either rectilinear grids either uniform grids. Default is false.

Generate either rectilinear grids either uniform grids. Default is false.

virtual void vtkTemporalFractal::SetDiscreteTimeSteps ( int  ) [virtual]

Limit this source to discrete integer time steps Default is off (continuous)

Limit this source to discrete integer time steps Default is off (continuous)

virtual void vtkTemporalFractal::DiscreteTimeStepsOn ( ) [virtual]

Limit this source to discrete integer time steps Default is off (continuous)

virtual void vtkTemporalFractal::DiscreteTimeStepsOff ( ) [virtual]

Limit this source to discrete integer time steps Default is off (continuous)

virtual void vtkTemporalFractal::SetTwoDimensional ( int  ) [virtual]

Make a 2D data set to test.

Make a 2D data set to test.

virtual void vtkTemporalFractal::TwoDimensionalOn ( ) [virtual]

Make a 2D data set to test.

virtual void vtkTemporalFractal::TwoDimensionalOff ( ) [virtual]

Make a 2D data set to test.

virtual void vtkTemporalFractal::SetAsymetric ( int  ) [virtual]

Test the case when the blocks do not have the same sizes. Adds 2 to the x extent of the far x blocks (level 1).

virtual int vtkTemporalFractal::GetAsymetric ( ) [virtual]

Test the case when the blocks do not have the same sizes. Adds 2 to the x extent of the far x blocks (level 1).

virtual void vtkTemporalFractal::SetAdaptiveSubdivision ( int  ) [virtual]

Make the division adaptive or not, defaults to Adaptive

Make the division adaptive or not, defaults to Adaptive

virtual void vtkTemporalFractal::AdaptiveSubdivisionOn ( ) [virtual]

Make the division adaptive or not, defaults to Adaptive

virtual void vtkTemporalFractal::AdaptiveSubdivisionOff ( ) [virtual]

Make the division adaptive or not, defaults to Adaptive

virtual int vtkTemporalFractal::FillOutputPortInformation ( int   vtkNotUsedport,
vtkInformation info 
) [protected, virtual]
virtual int vtkTemporalFractal::ProcessRequest ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

see vtkAlgorithm for details

Reimplemented from vtkAlgorithm.

This is called by the superclass. This is the method you should override.

virtual int vtkTemporalFractal::RequestInformation ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

virtual int vtkTemporalFractal::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

virtual int vtkTemporalFractal::RequestOneTimeStep ( vtkCompositeDataSet output,
vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

void vtkTemporalFractal::Traverse ( int blockId,
int  level,
vtkDataObject output,
int  x0,
int  x1,
int  y0,
int  y1,
int  z0,
int  z1,
int  onFace[6] 
) [protected]
int vtkTemporalFractal::LineTest2 ( float  x0,
float  y0,
float  z0,
float  x1,
float  y1,
float  z1,
double  bds[6] 
) [protected]
int vtkTemporalFractal::LineTest ( float  x0,
float  y0,
float  z0,
float  x1,
float  y1,
float  z1,
double  bds[6],
int  level,
int  target 
) [protected]
void vtkTemporalFractal::SetBlockInfo ( vtkUniformGrid grid,
int  level,
int ext,
int  onFace[6] 
) [protected]
void vtkTemporalFractal::SetRBlockInfo ( vtkRectilinearGrid grid,
int  level,
int ext,
int  onFace[6] 
) [protected]
void vtkTemporalFractal::AddGhostLevelArray ( vtkDataSet grid,
int  dim[3],
int  onFace[6] 
) [protected]
int vtkTemporalFractal::TwoDTest ( double  bds[6],
int  level,
int  target 
) [protected]
void vtkTemporalFractal::CellExtentToBounds ( int  level,
int  ext[6],
double  bds[6] 
) [protected]
void vtkTemporalFractal::GetContinuousIncrements ( int  extent[6],
vtkIdType incX,
vtkIdType incY,
vtkIdType incZ 
) [protected]
virtual void vtkTemporalFractal::SetTopLevelSpacing ( double  ,
double  ,
double   
) [protected, virtual]
virtual void vtkTemporalFractal::SetTopLevelSpacing ( double  [3]) [protected, virtual]
virtual double* vtkTemporalFractal::GetTopLevelSpacing ( ) [protected, virtual]
virtual void vtkTemporalFractal::GetTopLevelSpacing ( double ,
double ,
double  
) [protected, virtual]
virtual void vtkTemporalFractal::GetTopLevelSpacing ( double  [3]) [protected, virtual]
virtual void vtkTemporalFractal::SetTopLevelOrigin ( double  ,
double  ,
double   
) [protected, virtual]
virtual void vtkTemporalFractal::SetTopLevelOrigin ( double  [3]) [protected, virtual]
virtual double* vtkTemporalFractal::GetTopLevelOrigin ( ) [protected, virtual]
virtual void vtkTemporalFractal::GetTopLevelOrigin ( double ,
double ,
double  
) [protected, virtual]
virtual void vtkTemporalFractal::GetTopLevelOrigin ( double  [3]) [protected, virtual]

Member Data Documentation

Definition at line 124 of file vtkTemporalFractal.h.

Definition at line 125 of file vtkTemporalFractal.h.

Definition at line 126 of file vtkTemporalFractal.h.

Definition at line 213 of file vtkTemporalFractal.h.

Definition at line 214 of file vtkTemporalFractal.h.

Definition at line 215 of file vtkTemporalFractal.h.

Definition at line 216 of file vtkTemporalFractal.h.

Definition at line 217 of file vtkTemporalFractal.h.

Definition at line 218 of file vtkTemporalFractal.h.

Definition at line 219 of file vtkTemporalFractal.h.

Definition at line 220 of file vtkTemporalFractal.h.

Definition at line 223 of file vtkTemporalFractal.h.

Definition at line 224 of file vtkTemporalFractal.h.

Definition at line 226 of file vtkTemporalFractal.h.

Definition at line 228 of file vtkTemporalFractal.h.

Definition at line 230 of file vtkTemporalFractal.h.

vtkSmartPointer<TemporalFractalOutputUtil> vtkTemporalFractal::OutputUtil [protected]

Definition at line 231 of file vtkTemporalFractal.h.


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