ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkHierarchicalFractal Class Reference

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

#include <vtkHierarchicalFractal.h>

Inherits vtkCompositeDataSetAlgorithm.

Public Types

typedef vtkCompositeDataSetAlgorithm Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetFractalValue (float)
 Essentially the iso surface value. More...
 
virtual float GetFractalValue ()
 Essentially the iso surface value. More...
 
virtual void SetMaximumLevel (int)
 Any blocks touching a predefined line will be subdivided to this level. More...
 
virtual int GetMaximumLevel ()
 Any blocks touching a predefined line will be subdivided to this level. More...
 
virtual void SetDimensions (int)
 XYZ dimensions of cells. More...
 
virtual int GetDimensions ()
 XYZ dimensions of cells. More...
 
virtual void SetGhostLevels (int)
 For testing ghost levels. More...
 
virtual int GetGhostLevels ()
 For testing ghost levels. More...
 
virtual void GhostLevelsOn ()
 For testing ghost levels. More...
 
virtual void GhostLevelsOff ()
 For testing ghost levels. More...
 
virtual void SetTimeStep (int)
 Dummy time-step. More...
 
virtual int GetTimeStep ()
 Dummy time-step. More...
 
virtual int * GetTimeStepRange ()
 Dummy time-step. More...
 
virtual void GetTimeStepRange (int &, int &)
 Dummy time-step. More...
 
virtual void GetTimeStepRange (int [2])
 Dummy time-step. More...
 
virtual void SetGenerateRectilinearGrids (int)
 Generate either rectilinear grids either uniform grids. More...
 
virtual int GetGenerateRectilinearGrids ()
 Generate either rectilinear grids either uniform grids. More...
 
virtual void GenerateRectilinearGridsOn ()
 Generate either rectilinear grids either uniform grids. More...
 
virtual void GenerateRectilinearGridsOff ()
 Generate either rectilinear grids either uniform grids. More...
 
virtual void SetTwoDimensional (int)
 Make a 2D data set to test. More...
 
virtual int GetTwoDimensional ()
 Make a 2D data set to test. More...
 
virtual void TwoDimensionalOn ()
 Make a 2D data set to test. More...
 
virtual void TwoDimensionalOff ()
 Make a 2D data set to test. More...
 
virtual void SetAsymetric (int)
 Test the case when the blocks do not have the same sizes. More...
 
virtual int GetAsymetric ()
 Test the case when the blocks do not have the same sizes. More...
 
virtual void SetOverlap (int)
 Test with lower levels overlapping higher levels. More...
 
virtual int GetOverlap ()
 Test with lower levels overlapping higher levels. More...
 

Static Public Member Functions

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

Protected Member Functions

 vtkHierarchicalFractal ()
 
 ~vtkHierarchicalFractal ()
 
virtual int RequestDataObject (vtkInformation *req, vtkInformationVector **inV, vtkInformationVector *outV)
 
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 This is called by the superclass. More...
 
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 This is called by the superclass. More...
 
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 double * GetTopLevelSpacing ()
 
virtual void GetTopLevelSpacing (double &, double &, double &)
 
virtual void GetTopLevelSpacing (double [3])
 
virtual void SetTopLevelOrigin (double, double, double)
 
virtual void SetTopLevelOrigin (double [3])
 
virtual double * GetTopLevelOrigin ()
 
virtual void GetTopLevelOrigin (double &, double &, double &)
 
virtual void GetTopLevelOrigin (double [3])
 
void InternalImageDataCopy (vtkHierarchicalFractal *src)
 

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
 
vtkIntArray * Levels
 
int TwoDimensional
 
double TopLevelSpacing [3]
 
double TopLevelOrigin [3]
 
int GenerateRectilinearGrids
 
vtkSmartPointer< HierarchicalFractalOutputUtil > OutputUtil
 

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 42 of file vtkHierarchicalFractal.h.

Member Typedef Documentation

§ Superclass

typedef vtkCompositeDataSetAlgorithm vtkHierarchicalFractal::Superclass

Definition at line 47 of file vtkHierarchicalFractal.h.

Constructor & Destructor Documentation

§ vtkHierarchicalFractal()

vtkHierarchicalFractal::vtkHierarchicalFractal ( )
protected

§ ~vtkHierarchicalFractal()

vtkHierarchicalFractal::~vtkHierarchicalFractal ( )
protected

Member Function Documentation

§ New()

static vtkHierarchicalFractal* vtkHierarchicalFractal::New ( )
static

§ GetClassName()

virtual const char* vtkHierarchicalFractal::GetClassName ( )
virtual

§ IsTypeOf()

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

§ IsA()

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

§ SafeDownCast()

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

§ PrintSelf()

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

§ SetFractalValue()

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.

§ GetFractalValue()

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.

§ SetMaximumLevel()

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.

§ GetMaximumLevel()

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.

§ SetDimensions()

virtual void vtkHierarchicalFractal::SetDimensions ( int  )
virtual

XYZ dimensions of cells.

§ GetDimensions()

virtual int vtkHierarchicalFractal::GetDimensions ( )
virtual

XYZ dimensions of cells.

§ SetGhostLevels()

virtual void vtkHierarchicalFractal::SetGhostLevels ( int  )
virtual

For testing ghost levels.

§ GetGhostLevels()

virtual int vtkHierarchicalFractal::GetGhostLevels ( )
virtual

For testing ghost levels.

§ GhostLevelsOn()

virtual void vtkHierarchicalFractal::GhostLevelsOn ( )
virtual

For testing ghost levels.

§ GhostLevelsOff()

virtual void vtkHierarchicalFractal::GhostLevelsOff ( )
virtual

For testing ghost levels.

§ SetTimeStep()

virtual void vtkHierarchicalFractal::SetTimeStep ( int  )
virtual

Dummy time-step.

§ GetTimeStep()

virtual int vtkHierarchicalFractal::GetTimeStep ( )
virtual

Dummy time-step.

§ GetTimeStepRange() [1/3]

virtual int* vtkHierarchicalFractal::GetTimeStepRange ( )
virtual

Dummy time-step.

§ GetTimeStepRange() [2/3]

virtual void vtkHierarchicalFractal::GetTimeStepRange ( int &  ,
int &   
)
virtual

Dummy time-step.

§ GetTimeStepRange() [3/3]

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

Dummy time-step.

§ SetGenerateRectilinearGrids()

virtual void vtkHierarchicalFractal::SetGenerateRectilinearGrids ( int  )
virtual

Generate either rectilinear grids either uniform grids.

Default is false.

§ GetGenerateRectilinearGrids()

virtual int vtkHierarchicalFractal::GetGenerateRectilinearGrids ( )
virtual

Generate either rectilinear grids either uniform grids.

Default is false.

§ GenerateRectilinearGridsOn()

virtual void vtkHierarchicalFractal::GenerateRectilinearGridsOn ( )
virtual

Generate either rectilinear grids either uniform grids.

Default is false.

§ GenerateRectilinearGridsOff()

virtual void vtkHierarchicalFractal::GenerateRectilinearGridsOff ( )
virtual

Generate either rectilinear grids either uniform grids.

Default is false.

§ SetTwoDimensional()

virtual void vtkHierarchicalFractal::SetTwoDimensional ( int  )
virtual

Make a 2D data set to test.

§ GetTwoDimensional()

virtual int vtkHierarchicalFractal::GetTwoDimensional ( )
virtual

Make a 2D data set to test.

§ TwoDimensionalOn()

virtual void vtkHierarchicalFractal::TwoDimensionalOn ( )
virtual

Make a 2D data set to test.

§ TwoDimensionalOff()

virtual void vtkHierarchicalFractal::TwoDimensionalOff ( )
virtual

Make a 2D data set to test.

§ SetAsymetric()

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).

§ GetAsymetric()

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).

§ SetOverlap()

virtual void vtkHierarchicalFractal::SetOverlap ( int  )
virtual

Test with lower levels overlapping higher levels.

This is what I assume flash is like.

§ GetOverlap()

virtual int vtkHierarchicalFractal::GetOverlap ( )
virtual

Test with lower levels overlapping higher levels.

This is what I assume flash is like.

§ RequestDataObject()

virtual int vtkHierarchicalFractal::RequestDataObject ( vtkInformation *  req,
vtkInformationVector **  inV,
vtkInformationVector *  outV 
)
protectedvirtual

§ RequestInformation()

virtual int vtkHierarchicalFractal::RequestInformation ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual

This is called by the superclass.

This is the method you should override.

§ RequestData()

virtual int vtkHierarchicalFractal::RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual

This is called by the superclass.

This is the method you should override.

§ Traverse()

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

§ LineTest2()

int vtkHierarchicalFractal::LineTest2 ( float  x0,
float  y0,
float  z0,
float  x1,
float  y1,
float  z1,
double  bds[6] 
)
protected

§ LineTest()

int vtkHierarchicalFractal::LineTest ( float  x0,
float  y0,
float  z0,
float  x1,
float  y1,
float  z1,
double  bds[6],
int  level,
int  target 
)
protected

§ SetBlockInfo()

void vtkHierarchicalFractal::SetBlockInfo ( vtkUniformGrid *  grid,
int  level,
int *  ext,
int  onFace[6] 
)
protected

§ SetRBlockInfo()

void vtkHierarchicalFractal::SetRBlockInfo ( vtkRectilinearGrid *  grid,
int  level,
int *  ext,
int  onFace[6] 
)
protected

§ AddVectorArray()

void vtkHierarchicalFractal::AddVectorArray ( vtkCompositeDataSet *  output)
protected

§ AddTestArray()

void vtkHierarchicalFractal::AddTestArray ( vtkCompositeDataSet *  output)
protected

§ AddFractalArray()

void vtkHierarchicalFractal::AddFractalArray ( vtkCompositeDataSet *  output)
protected

§ AddBlockIdArray()

void vtkHierarchicalFractal::AddBlockIdArray ( vtkCompositeDataSet *  output)
protected

§ AddDepthArray()

void vtkHierarchicalFractal::AddDepthArray ( vtkHierarchicalBoxDataSet *  output)
protected

§ AddGhostLevelArray()

void vtkHierarchicalFractal::AddGhostLevelArray ( vtkDataSet *  grid,
int  dim[3],
int  onFace[6] 
)
protected

§ MandelbrotTest()

int vtkHierarchicalFractal::MandelbrotTest ( double  x,
double  y 
)
protected

§ TwoDTest()

int vtkHierarchicalFractal::TwoDTest ( double  bds[6],
int  level,
int  target 
)
protected

§ CellExtentToBounds()

void vtkHierarchicalFractal::CellExtentToBounds ( int  level,
int  ext[6],
double  bds[6] 
)
protected

§ ExecuteRectilinearMandelbrot()

void vtkHierarchicalFractal::ExecuteRectilinearMandelbrot ( vtkRectilinearGrid *  grid,
double *  ptr 
)
protected

§ EvaluateSet()

double vtkHierarchicalFractal::EvaluateSet ( double  p[4])
protected

§ GetContinuousIncrements()

void vtkHierarchicalFractal::GetContinuousIncrements ( int  extent[6],
vtkIdType &  incX,
vtkIdType &  incY,
vtkIdType &  incZ 
)
protected

§ SetTopLevelSpacing() [1/2]

virtual void vtkHierarchicalFractal::SetTopLevelSpacing ( double  ,
double  ,
double   
)
protectedvirtual

§ SetTopLevelSpacing() [2/2]

virtual void vtkHierarchicalFractal::SetTopLevelSpacing ( double  [3])
protectedvirtual

§ GetTopLevelSpacing() [1/3]

virtual double* vtkHierarchicalFractal::GetTopLevelSpacing ( )
protectedvirtual

§ GetTopLevelSpacing() [2/3]

virtual void vtkHierarchicalFractal::GetTopLevelSpacing ( double &  ,
double &  ,
double &   
)
protectedvirtual

§ GetTopLevelSpacing() [3/3]

virtual void vtkHierarchicalFractal::GetTopLevelSpacing ( double  [3])
protectedvirtual

§ SetTopLevelOrigin() [1/2]

virtual void vtkHierarchicalFractal::SetTopLevelOrigin ( double  ,
double  ,
double   
)
protectedvirtual

§ SetTopLevelOrigin() [2/2]

virtual void vtkHierarchicalFractal::SetTopLevelOrigin ( double  [3])
protectedvirtual

§ GetTopLevelOrigin() [1/3]

virtual double* vtkHierarchicalFractal::GetTopLevelOrigin ( )
protectedvirtual

§ GetTopLevelOrigin() [2/3]

virtual void vtkHierarchicalFractal::GetTopLevelOrigin ( double &  ,
double &  ,
double &   
)
protectedvirtual

§ GetTopLevelOrigin() [3/3]

virtual void vtkHierarchicalFractal::GetTopLevelOrigin ( double  [3])
protectedvirtual

§ InternalImageDataCopy()

void vtkHierarchicalFractal::InternalImageDataCopy ( vtkHierarchicalFractal src)
protected

Member Data Documentation

§ StartBlock

int vtkHierarchicalFractal::StartBlock
protected

Definition at line 137 of file vtkHierarchicalFractal.h.

§ EndBlock

int vtkHierarchicalFractal::EndBlock
protected

Definition at line 138 of file vtkHierarchicalFractal.h.

§ BlockCount

int vtkHierarchicalFractal::BlockCount
protected

Definition at line 139 of file vtkHierarchicalFractal.h.

§ TimeStep

int vtkHierarchicalFractal::TimeStep
protected

Definition at line 140 of file vtkHierarchicalFractal.h.

§ TimeStepRange

int vtkHierarchicalFractal::TimeStepRange[2]
protected

Definition at line 141 of file vtkHierarchicalFractal.h.

§ Overlap

int vtkHierarchicalFractal::Overlap
protected

Definition at line 199 of file vtkHierarchicalFractal.h.

§ Asymetric

int vtkHierarchicalFractal::Asymetric
protected

Definition at line 200 of file vtkHierarchicalFractal.h.

§ MaximumLevel

int vtkHierarchicalFractal::MaximumLevel
protected

Definition at line 201 of file vtkHierarchicalFractal.h.

§ Dimensions

int vtkHierarchicalFractal::Dimensions
protected

Definition at line 202 of file vtkHierarchicalFractal.h.

§ FractalValue

float vtkHierarchicalFractal::FractalValue
protected

Definition at line 203 of file vtkHierarchicalFractal.h.

§ GhostLevels

int vtkHierarchicalFractal::GhostLevels
protected

Definition at line 204 of file vtkHierarchicalFractal.h.

§ Levels

vtkIntArray* vtkHierarchicalFractal::Levels
protected

Definition at line 205 of file vtkHierarchicalFractal.h.

§ TwoDimensional

int vtkHierarchicalFractal::TwoDimensional
protected

Definition at line 206 of file vtkHierarchicalFractal.h.

§ TopLevelSpacing

double vtkHierarchicalFractal::TopLevelSpacing[3]
protected

Definition at line 209 of file vtkHierarchicalFractal.h.

§ TopLevelOrigin

double vtkHierarchicalFractal::TopLevelOrigin[3]
protected

Definition at line 210 of file vtkHierarchicalFractal.h.

§ GenerateRectilinearGrids

int vtkHierarchicalFractal::GenerateRectilinearGrids
protected

Definition at line 212 of file vtkHierarchicalFractal.h.

§ OutputUtil

vtkSmartPointer<HierarchicalFractalOutputUtil> vtkHierarchicalFractal::OutputUtil
protected

Definition at line 215 of file vtkHierarchicalFractal.h.


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