VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkTemporalFractal Class Reference

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

#include <vtkTemporalFractal.h>

Inherits vtkAlgorithm.

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 vtkObjectBase * NewInstanceInternal () 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 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 (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
 
vtkIntArray * Levels
 
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

typedef vtkAlgorithm vtkTemporalFractal::Superclass

Definition at line 49 of file vtkTemporalFractal.h.

Constructor & Destructor Documentation

vtkTemporalFractal::vtkTemporalFractal ( )
protected
vtkTemporalFractal::~vtkTemporalFractal ( )
protected

Member Function Documentation

static vtkTemporalFractal* vtkTemporalFractal::New ( )
static
static int vtkTemporalFractal::IsTypeOf ( const char *  type)
static
virtual int vtkTemporalFractal::IsA ( const char *  type)
virtual
static vtkTemporalFractal* vtkTemporalFractal::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkTemporalFractal::NewInstanceInternal ( ) const
protectedvirtual
vtkTemporalFractal* vtkTemporalFractal::NewInstance ( ) const
void vtkTemporalFractal::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
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.

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

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

virtual void vtkTemporalFractal::SetGenerateRectilinearGrids ( int  )
virtual

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

virtual int vtkTemporalFractal::GetGenerateRectilinearGrids ( )
virtual

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

virtual void vtkTemporalFractal::GenerateRectilinearGridsOn ( )
virtual

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

virtual void vtkTemporalFractal::GenerateRectilinearGridsOff ( )
virtual

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)

virtual int vtkTemporalFractal::GetDiscreteTimeSteps ( )
virtual

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.

virtual int vtkTemporalFractal::GetTwoDimensional ( )
virtual

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

virtual int vtkTemporalFractal::GetAdaptiveSubdivision ( )
virtual

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 
)
protectedvirtual
virtual int vtkTemporalFractal::ProcessRequest ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual

see vtkAlgorithm for details

virtual int vtkTemporalFractal::RequestDataObject ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual

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

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

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

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

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

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::AddVectorArray ( vtkHierarchicalBoxDataSet *  output)
protected
void vtkTemporalFractal::AddTestArray ( vtkHierarchicalBoxDataSet *  output)
protected
void vtkTemporalFractal::AddFractalArray ( vtkCompositeDataSet *  output)
protected
void vtkTemporalFractal::AddBlockIdArray ( vtkHierarchicalBoxDataSet *  output)
protected
void vtkTemporalFractal::AddDepthArray ( vtkHierarchicalBoxDataSet *  output)
protected
void vtkTemporalFractal::AddGhostLevelArray ( vtkDataSet *  grid,
int  dim[3],
int  onFace[6] 
)
protected
int vtkTemporalFractal::MandelbrotTest ( double  x,
double  y 
)
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::ExecuteRectilinearMandelbrot ( vtkRectilinearGrid *  grid,
double *  ptr 
)
protected
double vtkTemporalFractal::EvaluateSet ( double  p[4])
protected
void vtkTemporalFractal::GetContinuousIncrements ( int  extent[6],
vtkIdType &  incX,
vtkIdType &  incY,
vtkIdType &  incZ 
)
protected
virtual void vtkTemporalFractal::SetTopLevelSpacing ( double  ,
double  ,
double   
)
protectedvirtual
virtual void vtkTemporalFractal::SetTopLevelSpacing ( double  [3])
protectedvirtual
virtual double* vtkTemporalFractal::GetTopLevelSpacing ( )
protectedvirtual
virtual void vtkTemporalFractal::GetTopLevelSpacing ( double &  ,
double &  ,
double &   
)
protectedvirtual
virtual void vtkTemporalFractal::GetTopLevelSpacing ( double  [3])
protectedvirtual
virtual void vtkTemporalFractal::SetTopLevelOrigin ( double  ,
double  ,
double   
)
protectedvirtual
virtual void vtkTemporalFractal::SetTopLevelOrigin ( double  [3])
protectedvirtual
virtual double* vtkTemporalFractal::GetTopLevelOrigin ( )
protectedvirtual
virtual void vtkTemporalFractal::GetTopLevelOrigin ( double &  ,
double &  ,
double &   
)
protectedvirtual
virtual void vtkTemporalFractal::GetTopLevelOrigin ( double  [3])
protectedvirtual
void vtkTemporalFractal::InternalImageDataCopy ( vtkTemporalFractal src)
protected

Member Data Documentation

int vtkTemporalFractal::StartBlock
protected

Definition at line 124 of file vtkTemporalFractal.h.

int vtkTemporalFractal::EndBlock
protected

Definition at line 125 of file vtkTemporalFractal.h.

int vtkTemporalFractal::BlockCount
protected

Definition at line 126 of file vtkTemporalFractal.h.

int vtkTemporalFractal::Asymetric
protected

Definition at line 213 of file vtkTemporalFractal.h.

int vtkTemporalFractal::MaximumLevel
protected

Definition at line 214 of file vtkTemporalFractal.h.

int vtkTemporalFractal::Dimensions
protected

Definition at line 215 of file vtkTemporalFractal.h.

float vtkTemporalFractal::FractalValue
protected

Definition at line 216 of file vtkTemporalFractal.h.

int vtkTemporalFractal::GhostLevels
protected

Definition at line 217 of file vtkTemporalFractal.h.

vtkIntArray* vtkTemporalFractal::Levels
protected

Definition at line 218 of file vtkTemporalFractal.h.

int vtkTemporalFractal::TwoDimensional
protected

Definition at line 219 of file vtkTemporalFractal.h.

int vtkTemporalFractal::DiscreteTimeSteps
protected

Definition at line 220 of file vtkTemporalFractal.h.

double vtkTemporalFractal::TopLevelSpacing[3]
protected

Definition at line 223 of file vtkTemporalFractal.h.

double vtkTemporalFractal::TopLevelOrigin[3]
protected

Definition at line 224 of file vtkTemporalFractal.h.

int vtkTemporalFractal::GenerateRectilinearGrids
protected

Definition at line 226 of file vtkTemporalFractal.h.

double vtkTemporalFractal::CurrentTime
protected

Definition at line 228 of file vtkTemporalFractal.h.

int vtkTemporalFractal::AdaptiveSubdivision
protected

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: