VTK  9.1.0
vtkTemporalFractal.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ParaView
4 Module: vtkTemporalFractal.h
5
6 Copyright (c) Kitware, Inc.
7 All rights reserved.
8 See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
29#ifndef vtkTemporalFractal_h
30#define vtkTemporalFractal_h
31
32#include "vtkAlgorithm.h"
33#include "vtkFiltersHybridModule.h" // For export macro
34#include "vtkSmartPointer.h" //for ivars
35
37class vtkDataSet;
39class vtkIntArray;
41class vtkUniformGrid;
42class TemporalFractalOutputUtil;
43
44class VTKFILTERSHYBRID_EXPORT vtkTemporalFractal : public vtkAlgorithm
45{
46public:
48
53 void PrintSelf(ostream& os, vtkIndent indent) override;
55
57
61 vtkSetMacro(FractalValue, float);
62 vtkGetMacro(FractalValue, float);
64
66
71 vtkSetMacro(MaximumLevel, int);
72 vtkGetMacro(MaximumLevel, int);
74
76
79 vtkSetMacro(Dimensions, int);
80 vtkGetMacro(Dimensions, int);
82
84
87 vtkSetMacro(GhostLevels, vtkTypeBool);
88 vtkGetMacro(GhostLevels, vtkTypeBool);
89 vtkBooleanMacro(GhostLevels, vtkTypeBool);
91
93
97 vtkSetMacro(GenerateRectilinearGrids, vtkTypeBool);
98 vtkGetMacro(GenerateRectilinearGrids, vtkTypeBool);
99 vtkBooleanMacro(GenerateRectilinearGrids, vtkTypeBool);
101
103
107 vtkSetMacro(DiscreteTimeSteps, vtkTypeBool);
108 vtkGetMacro(DiscreteTimeSteps, vtkTypeBool);
109 vtkBooleanMacro(DiscreteTimeSteps, vtkTypeBool);
111
113
116 vtkSetMacro(TwoDimensional, vtkTypeBool);
117 vtkGetMacro(TwoDimensional, vtkTypeBool);
118 vtkBooleanMacro(TwoDimensional, vtkTypeBool);
120
122
126 vtkSetMacro(Asymmetric, int);
127 vtkGetMacro(Asymmetric, int);
129
131
134 vtkSetMacro(AdaptiveSubdivision, vtkTypeBool);
135 vtkGetMacro(AdaptiveSubdivision, vtkTypeBool);
136 vtkBooleanMacro(AdaptiveSubdivision, vtkTypeBool);
138
139protected:
142
143 int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation* info) override;
144
148
153 vtkInformationVector* outputVector) override;
154
160
165 virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
166 vtkInformationVector* outputVector);
167
169
173 virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
174 vtkInformationVector* outputVector);
176 vtkInformationVector** inputVector, vtkInformationVector* outputVector);
178
179 void Traverse(int& blockId, int level, vtkDataObject* output, int x0, int x1, int y0, int y1,
180 int z0, int z1, int onFace[6]);
181
182 int LineTest2(float x0, float y0, float z0, float x1, float y1, float z1, double bds[6]);
183 int LineTest(float x0, float y0, float z0, float x1, float y1, float z1, double bds[6], int level,
184 int target);
185
186 void SetBlockInfo(vtkUniformGrid* grid, int level, int* ext, int onFace[6]);
187 void SetRBlockInfo(vtkRectilinearGrid* grid, int level, int* ext, int onFace[6]);
188
194
195 void AddGhostLevelArray(vtkDataSet* grid, int dim[3], int onFace[6]);
196
197 int MandelbrotTest(double x, double y);
198 int TwoDTest(double bds[6], int level, int target);
199
200 void CellExtentToBounds(int level, int ext[6], double bds[6]);
201
203 double EvaluateSet(double p[4]);
204 void GetContinuousIncrements(int extent[6], vtkIdType& incX, vtkIdType& incY, vtkIdType& incZ);
205
206 // Dimensions:
207 // Specify blocks relative to this top level block.
208 // For now this has to be set before the blocks are defined.
209 vtkSetVector3Macro(TopLevelSpacing, double);
210 vtkGetVector3Macro(TopLevelSpacing, double);
211 vtkSetVector3Macro(TopLevelOrigin, double);
212 vtkGetVector3Macro(TopLevelOrigin, double);
213
215
224
225 // New method of specifying blocks.
226 double TopLevelSpacing[3];
227 double TopLevelOrigin[3];
228
230
232
235
236private:
237 vtkTemporalFractal(const vtkTemporalFractal&) = delete;
238 void operator=(const vtkTemporalFractal&) = delete;
239};
240
241#endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:123
abstract superclass for composite (multi-block or AMR) datasets
general representation of visualization data
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
Backwards compatibility class.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:149
a dataset that is topologically regular with variable spacing in the three coordinate directions
Hold a reference to a vtkObjectBase instance.
A source to test AMR data object.
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
vtkTypeBool GenerateRectilinearGrids
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void AddVectorArray(vtkHierarchicalBoxDataSet *output)
void SetBlockInfo(vtkUniformGrid *grid, int level, int *ext, int onFace[6])
vtkSmartPointer< TemporalFractalOutputUtil > OutputUtil
void AddGhostLevelArray(vtkDataSet *grid, int dim[3], int onFace[6])
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiation, type information, and printing.
vtkTypeBool AdaptiveSubdivision
void AddTestArray(vtkHierarchicalBoxDataSet *output)
void AddBlockIdArray(vtkHierarchicalBoxDataSet *output)
void AddDepthArray(vtkHierarchicalBoxDataSet *output)
virtual int RequestOneTimeStep(vtkCompositeDataSet *output, vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int LineTest2(float x0, float y0, float z0, float x1, float y1, float z1, double bds[6])
void Traverse(int &blockId, int level, vtkDataObject *output, int x0, int x1, int y0, int y1, int z0, int z1, int onFace[6])
~vtkTemporalFractal() override
void CellExtentToBounds(int level, int ext[6], double bds[6])
void GetContinuousIncrements(int extent[6], vtkIdType &incX, vtkIdType &incY, vtkIdType &incZ)
int LineTest(float x0, float y0, float z0, float x1, float y1, float z1, double bds[6], int level, int target)
static vtkTemporalFractal * New()
Standard methods for instantiation, type information, and printing.
int FillOutputPortInformation(int vtkNotUsed(port), vtkInformation *info) override
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int MandelbrotTest(double x, double y)
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
double EvaluateSet(double p[4])
void SetRBlockInfo(vtkRectilinearGrid *grid, int level, int *ext, int onFace[6])
int TwoDTest(double bds[6], int level, int target)
void ExecuteRectilinearMandelbrot(vtkRectilinearGrid *grid, double *ptr)
void AddFractalArray(vtkCompositeDataSet *output)
vtkTypeBool DiscreteTimeSteps
void InternalImageDataCopy(vtkTemporalFractal *src)
image data with blanking
int vtkTypeBool
Definition: vtkABI.h:69
boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
int vtkIdType
Definition: vtkType.h:332