ParaView
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkHierarchicalFractal Class Reference

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

#include <vtkHierarchicalFractal.h>

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

List of all members.

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
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 SetTimeStep (int)
virtual int GetTimeStep ()
virtual intGetTimeStepRange ()
virtual void GetTimeStepRange (int &, int &)
virtual void GetTimeStepRange (int[2])
virtual void SetGenerateRectilinearGrids (int)
virtual int GetGenerateRectilinearGrids ()
virtual void GenerateRectilinearGridsOn ()
virtual void GenerateRectilinearGridsOff ()
virtual void SetTwoDimensional (int)
virtual int GetTwoDimensional ()
virtual void TwoDimensionalOn ()
virtual void TwoDimensionalOff ()
virtual void SetAsymetric (int)
virtual int GetAsymetric ()
virtual void SetOverlap (int)
virtual int GetOverlap ()

Static Public Member Functions

static vtkHierarchicalFractalNew ()
static int IsTypeOf (const char *type)
static vtkHierarchicalFractalSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkHierarchicalFractal ()
 ~vtkHierarchicalFractal ()
unsigned int AppendDataSetToLevel (vtkCompositeDataSet *composite, unsigned int level, int extents[6], vtkDataSet *ds)
virtual int RequestDataObject (vtkInformation *req, vtkInformationVector **inV, vtkInformationVector *outV)
void Traverse (int &blockId, int level, vtkCompositeDataSet *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 (vtkCompositeDataSet *output)
void AddTestArray (vtkCompositeDataSet *output)
void AddFractalArray (vtkCompositeDataSet *output)
void AddBlockIdArray (vtkCompositeDataSet *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 (vtkHierarchicalFractal *src)
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)

Protected Attributes

int StartBlock
int EndBlock
int BlockCount
int TimeStep
int TimeStepRange [2]
int Overlap
int Asymetric
int MaximumLevel
int Dimensions
float FractalValue
int GhostLevels
vtkIntArrayLevels
int TwoDimensional
double TopLevelSpacing [3]
double TopLevelOrigin [3]
int GenerateRectilinearGrids

Detailed Description

A source to test AMR data object.

vtkHierarchicalFractal 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. If GenerateRectilinearGrids is true then this filter outputs vtkHierarchicalBoxDataSet otherwise it generates a vtkMultiBlockDataSet.

Definition at line 43 of file vtkHierarchicalFractal.h.


Constructor & Destructor Documentation

vtkHierarchicalFractal::vtkHierarchicalFractal ( ) [protected]
vtkHierarchicalFractal::~vtkHierarchicalFractal ( ) [protected]

Member Function Documentation

static vtkHierarchicalFractal* vtkHierarchicalFractal::New ( ) [static]

Reimplemented from vtkCompositeDataSetAlgorithm.

virtual const char* vtkHierarchicalFractal::GetClassName ( ) [virtual]

Reimplemented from vtkCompositeDataSetAlgorithm.

static int vtkHierarchicalFractal::IsTypeOf ( const char *  type) [static]

Reimplemented from vtkCompositeDataSetAlgorithm.

virtual int vtkHierarchicalFractal::IsA ( const char *  type) [virtual]

Reimplemented from vtkCompositeDataSetAlgorithm.

static vtkHierarchicalFractal* vtkHierarchicalFractal::SafeDownCast ( vtkObject o) [static]

Reimplemented from vtkCompositeDataSetAlgorithm.

void vtkHierarchicalFractal::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Reimplemented from vtkCompositeDataSetAlgorithm.

virtual void vtkHierarchicalFractal::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.

virtual float vtkHierarchicalFractal::GetFractalValue ( ) [virtual]

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 vtkHierarchicalFractal::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.

virtual int vtkHierarchicalFractal::GetMaximumLevel ( ) [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.

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

XYZ dimensions of cells.

virtual int vtkHierarchicalFractal::GetDimensions ( ) [virtual]

XYZ dimensions of cells.

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

For testing ghost levels.

virtual int vtkHierarchicalFractal::GetGhostLevels ( ) [virtual]

For testing ghost levels.

virtual void vtkHierarchicalFractal::GhostLevelsOn ( ) [virtual]

For testing ghost levels.

virtual void vtkHierarchicalFractal::GhostLevelsOff ( ) [virtual]

For testing ghost levels.

virtual void vtkHierarchicalFractal::SetTimeStep ( int  ) [virtual]

Dummy time-step

virtual int vtkHierarchicalFractal::GetTimeStep ( ) [virtual]

Dummy time-step

virtual int* vtkHierarchicalFractal::GetTimeStepRange ( ) [virtual]

Dummy time-step

virtual void vtkHierarchicalFractal::GetTimeStepRange ( int ,
int  
) [virtual]

Dummy time-step

virtual void vtkHierarchicalFractal::GetTimeStepRange ( int  [2]) [virtual]

Dummy time-step

virtual void vtkHierarchicalFractal::SetGenerateRectilinearGrids ( int  ) [virtual]

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

virtual int vtkHierarchicalFractal::GetGenerateRectilinearGrids ( ) [virtual]

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

virtual void vtkHierarchicalFractal::GenerateRectilinearGridsOn ( ) [virtual]

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

virtual void vtkHierarchicalFractal::GenerateRectilinearGridsOff ( ) [virtual]

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

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

Make a 2D data set to test.

virtual int vtkHierarchicalFractal::GetTwoDimensional ( ) [virtual]

Make a 2D data set to test.

virtual void vtkHierarchicalFractal::TwoDimensionalOn ( ) [virtual]

Make a 2D data set to test.

virtual void vtkHierarchicalFractal::TwoDimensionalOff ( ) [virtual]

Make a 2D data set to test.

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

Test with lower levels overlapping higher levels. This is what I assume flash is like.

virtual int vtkHierarchicalFractal::GetOverlap ( ) [virtual]

Test with lower levels overlapping higher levels. This is what I assume flash is like.

unsigned int vtkHierarchicalFractal::AppendDataSetToLevel ( vtkCompositeDataSet composite,
unsigned int  level,
int  extents[6],
vtkDataSet ds 
) [protected]
virtual int vtkHierarchicalFractal::RequestDataObject ( vtkInformation req,
vtkInformationVector **  inV,
vtkInformationVector outV 
) [protected, virtual]

Reimplemented from vtkCompositeDataSetAlgorithm.

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

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

Reimplemented from vtkCompositeDataSetAlgorithm.

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

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

Reimplemented from vtkCompositeDataSetAlgorithm.

void vtkHierarchicalFractal::Traverse ( int blockId,
int  level,
vtkCompositeDataSet output,
int  x0,
int  x1,
int  y0,
int  y1,
int  z0,
int  z1,
int  onFace[6] 
) [protected]
int vtkHierarchicalFractal::LineTest2 ( float  x0,
float  y0,
float  z0,
float  x1,
float  y1,
float  z1,
double  bds[6] 
) [protected]
int vtkHierarchicalFractal::LineTest ( float  x0,
float  y0,
float  z0,
float  x1,
float  y1,
float  z1,
double  bds[6],
int  level,
int  target 
) [protected]
void vtkHierarchicalFractal::SetBlockInfo ( vtkUniformGrid grid,
int  level,
int ext,
int  onFace[6] 
) [protected]
void vtkHierarchicalFractal::SetRBlockInfo ( vtkRectilinearGrid grid,
int  level,
int ext,
int  onFace[6] 
) [protected]
void vtkHierarchicalFractal::AddVectorArray ( vtkCompositeDataSet output) [protected]
void vtkHierarchicalFractal::AddTestArray ( vtkCompositeDataSet output) [protected]
void vtkHierarchicalFractal::AddFractalArray ( vtkCompositeDataSet output) [protected]
void vtkHierarchicalFractal::AddBlockIdArray ( vtkCompositeDataSet output) [protected]
void vtkHierarchicalFractal::AddDepthArray ( vtkHierarchicalBoxDataSet output) [protected]
void vtkHierarchicalFractal::AddGhostLevelArray ( vtkDataSet grid,
int  dim[3],
int  onFace[6] 
) [protected]
int vtkHierarchicalFractal::MandelbrotTest ( double  x,
double  y 
) [protected]
int vtkHierarchicalFractal::TwoDTest ( double  bds[6],
int  level,
int  target 
) [protected]
void vtkHierarchicalFractal::CellExtentToBounds ( int  level,
int  ext[6],
double  bds[6] 
) [protected]
void vtkHierarchicalFractal::ExecuteRectilinearMandelbrot ( vtkRectilinearGrid grid,
double ptr 
) [protected]
double vtkHierarchicalFractal::EvaluateSet ( double  p[4]) [protected]
void vtkHierarchicalFractal::GetContinuousIncrements ( int  extent[6],
vtkIdType incX,
vtkIdType incY,
vtkIdType incZ 
) [protected]
virtual void vtkHierarchicalFractal::SetTopLevelSpacing ( double  ,
double  ,
double   
) [protected, virtual]
virtual void vtkHierarchicalFractal::SetTopLevelSpacing ( double  [3]) [protected, virtual]
virtual double* vtkHierarchicalFractal::GetTopLevelSpacing ( ) [protected, virtual]
virtual void vtkHierarchicalFractal::GetTopLevelSpacing ( double ,
double ,
double  
) [protected, virtual]
virtual void vtkHierarchicalFractal::GetTopLevelSpacing ( double  [3]) [protected, virtual]
virtual void vtkHierarchicalFractal::SetTopLevelOrigin ( double  ,
double  ,
double   
) [protected, virtual]
virtual void vtkHierarchicalFractal::SetTopLevelOrigin ( double  [3]) [protected, virtual]
virtual double* vtkHierarchicalFractal::GetTopLevelOrigin ( ) [protected, virtual]
virtual void vtkHierarchicalFractal::GetTopLevelOrigin ( double ,
double ,
double  
) [protected, virtual]
virtual void vtkHierarchicalFractal::GetTopLevelOrigin ( double  [3]) [protected, virtual]
void vtkHierarchicalFractal::InternalImageDataCopy ( vtkHierarchicalFractal src) [protected]

Member Data Documentation

Definition at line 119 of file vtkHierarchicalFractal.h.

Definition at line 120 of file vtkHierarchicalFractal.h.

Definition at line 121 of file vtkHierarchicalFractal.h.

Definition at line 122 of file vtkHierarchicalFractal.h.

Definition at line 123 of file vtkHierarchicalFractal.h.

Definition at line 201 of file vtkHierarchicalFractal.h.

Definition at line 202 of file vtkHierarchicalFractal.h.

Definition at line 203 of file vtkHierarchicalFractal.h.

Definition at line 204 of file vtkHierarchicalFractal.h.

Definition at line 205 of file vtkHierarchicalFractal.h.

Definition at line 206 of file vtkHierarchicalFractal.h.

Definition at line 207 of file vtkHierarchicalFractal.h.

Definition at line 208 of file vtkHierarchicalFractal.h.

Definition at line 211 of file vtkHierarchicalFractal.h.

Definition at line 212 of file vtkHierarchicalFractal.h.

Definition at line 214 of file vtkHierarchicalFractal.h.


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