#include <vtkTemporalFractal.h>
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.
Definition at line 42 of file vtkTemporalFractal.h.
Public Types | |
typedef vtkTemporalDataSetAlgorithm | Superclass |
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 | 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 vtkTemporalFractal * | New () |
static int | IsTypeOf (const char *type) |
static vtkTemporalFractal * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkTemporalFractal () | |
~vtkTemporalFractal () | |
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 | AddDataSet (vtkDataObject *output, unsigned int level, int extents[6], vtkDataSet *dataSet) |
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 | 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 |
vtkTemporalFractal::vtkTemporalFractal | ( | ) | [protected] |
vtkTemporalFractal::~vtkTemporalFractal | ( | ) | [protected] |
static vtkTemporalFractal* vtkTemporalFractal::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkTemporalDataSetAlgorithm.
virtual const char* vtkTemporalFractal::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkTemporalDataSetAlgorithm.
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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkTemporalDataSetAlgorithm.
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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkTemporalDataSetAlgorithm.
static vtkTemporalFractal* vtkTemporalFractal::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkTemporalDataSetAlgorithm.
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 vtkTemporalDataSetAlgorithm.
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::RequestInformation | ( | vtkInformation * | request, | |
vtkInformationVector ** | inputVector, | |||
vtkInformationVector * | outputVector | |||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkTemporalDataSetAlgorithm.
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.
Reimplemented from vtkTemporalDataSetAlgorithm.
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::AddDataSet | ( | vtkDataObject * | output, | |
unsigned int | level, | |||
int | extents[6], | |||
vtkDataSet * | dataSet | |||
) | [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 | ||||
) | [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] |
void vtkTemporalFractal::InternalImageDataCopy | ( | vtkTemporalFractal * | src | ) | [protected] |
int vtkTemporalFractal::StartBlock [protected] |
Definition at line 119 of file vtkTemporalFractal.h.
int vtkTemporalFractal::EndBlock [protected] |
Definition at line 120 of file vtkTemporalFractal.h.
int vtkTemporalFractal::BlockCount [protected] |
Definition at line 121 of file vtkTemporalFractal.h.
int vtkTemporalFractal::Asymetric [protected] |
Definition at line 197 of file vtkTemporalFractal.h.
int vtkTemporalFractal::MaximumLevel [protected] |
Definition at line 198 of file vtkTemporalFractal.h.
int vtkTemporalFractal::Dimensions [protected] |
Definition at line 199 of file vtkTemporalFractal.h.
float vtkTemporalFractal::FractalValue [protected] |
Definition at line 200 of file vtkTemporalFractal.h.
int vtkTemporalFractal::GhostLevels [protected] |
Definition at line 201 of file vtkTemporalFractal.h.
vtkIntArray* vtkTemporalFractal::Levels [protected] |
Definition at line 202 of file vtkTemporalFractal.h.
int vtkTemporalFractal::TwoDimensional [protected] |
Definition at line 203 of file vtkTemporalFractal.h.
int vtkTemporalFractal::DiscreteTimeSteps [protected] |
Definition at line 204 of file vtkTemporalFractal.h.
double vtkTemporalFractal::TopLevelSpacing[3] [protected] |
Definition at line 207 of file vtkTemporalFractal.h.
double vtkTemporalFractal::TopLevelOrigin[3] [protected] |
Definition at line 208 of file vtkTemporalFractal.h.
int vtkTemporalFractal::GenerateRectilinearGrids [protected] |
Definition at line 210 of file vtkTemporalFractal.h.
double vtkTemporalFractal::CurrentTime [protected] |
Definition at line 212 of file vtkTemporalFractal.h.
int vtkTemporalFractal::AdaptiveSubdivision [protected] |
Definition at line 214 of file vtkTemporalFractal.h.