 |
VTK
9.0.1
|
Go to the documentation of this file.
45 #ifndef vtkHyperTreeGridSource_h
46 #define vtkHyperTreeGridSource_h
48 #include "vtkFiltersSourcesModule.h"
95 vtkSetVector3Macro(Origin,
double);
96 vtkGetVector3Macro(Origin,
double);
103 vtkSetVector3Macro(GridScale,
double);
104 vtkGetVector3Macro(GridScale,
double);
114 vtkGetVector3Macro(Dimensions,
unsigned int);
122 vtkSetMacro(TransposedRootIndexing,
bool);
123 vtkGetMacro(TransposedRootIndexing,
bool);
132 vtkGetMacro(Orientation,
unsigned int);
139 vtkSetClampMacro(BranchFactor,
unsigned int, 2, 3);
140 vtkGetMacro(BranchFactor,
unsigned int);
149 vtkSetMacro(UseDescriptor,
bool);
150 vtkGetMacro(UseDescriptor,
bool);
151 vtkBooleanMacro(UseDescriptor,
bool);
160 vtkSetMacro(UseMask,
bool);
161 vtkGetMacro(UseMask,
bool);
162 vtkBooleanMacro(UseMask,
bool);
171 vtkSetMacro(GenerateInterfaceFields,
bool);
172 vtkGetMacro(GenerateInterfaceFields,
bool);
173 vtkBooleanMacro(GenerateInterfaceFields,
bool);
180 vtkSetStringMacro(Descriptor);
181 vtkGetStringMacro(Descriptor);
188 vtkSetStringMacro(Mask);
189 vtkGetStringMacro(Mask);
279 int idx[3],
int parentPos);
286 int idx[3],
int parentPos);
292 unsigned int level,
int treeIdx,
const int idx[3],
double origin[3],
double size[3]);
304 unsigned int Dimensions[3];
virtual void SetMaskBits(vtkBitArray *)
Set/Get the bitarray used as a material mask.
vtkDataArray * ZCoordinates
vtkBitArray * ConvertMaskStringToBitArray(const std::string &)
virtual void SetDescriptorBits(vtkBitArray *)
Set/Get the bitarray used to describe the grid.
static vtkHyperTreeGridSource * New()
std::map< vtkIdType, vtkIdType > LevelZeroMaterialMap
vtkHyperTreeGrid * OutputHTG
std::vector< std::string > LevelDescriptors
Create a synthetic grid of hypertrees.
vtkIdTypeArray * LevelZeroMaterialIndex
Objects for traversal a HyperTreeGrid.
abstract superclass for arrays of numeric data
unsigned int BranchFactor
void SubdivideFromQuadric(vtkHyperTreeGrid *output, vtkHyperTreeGridNonOrientedCursor *cursor, unsigned int level, int treeIdx, const int idx[3], double origin[3], double size[3])
Subdivide grid from quadric when descriptor is not used.
bool TransposedRootIndexing
evaluate implicit quadric function
vtkBitArray * DescriptorBits
int InitializeFromStringDescriptor()
Initialize grid from descriptor string when it is to be used.
void SubdivideFromStringDescriptor(vtkHyperTreeGrid *output, vtkHyperTreeGridNonOrientedCursor *cursor, unsigned int level, int treeIdx, int childIdx, int idx[3], int parentPos)
Subdivide grid from descriptor string when it is to be used.
void InitTreeFromDescriptor(vtkHyperTreeGrid *output, vtkHyperTreeGridNonOrientedCursor *cursor, int treeIdx, int idx[3])
Initialize tree grid from descriptor and call subdivide if needed.
std::vector< vtkIdType > LevelBitsIndex
abstract interface for implicit functions
vtkDataArray * XCoordinates
int InitializeFromBitsDescriptor()
Initialize grid from bit array descriptors when it is to be used.
double EvaluateQuadric(double[3])
Evaluate quadric at given point coordinates.
void SetIndexingModeToIJK()
void SetMaximumLevel(unsigned int levels)
vtkBitArray * ConvertDescriptorStringToBitArray(const std::string &)
Helpers to convert string descriptors & mask to bit arrays.
void SubdivideFromBitsDescriptor(vtkHyperTreeGrid *output, vtkHyperTreeGridNonOrientedCursor *cursor, unsigned int level, int treeIdx, int childIdx, int idx[3], int parentPos)
Subdivide grid from descriptor string when it is to be used.
void SetDimensions(unsigned int, unsigned int, unsigned int)
void SetMaxDepth(unsigned int levels)
Set the maximum number of levels of the hypertrees.
a simple class to control print indentation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkDataArray * YCoordinates
~vtkHyperTreeGridSource() override
int ProcessTrees(vtkHyperTreeGrid *, vtkDataObject *) override
Main routine to process individual trees in the grid.
unsigned int GetMaximumLevel()
virtual void SetLevelZeroMaterialIndex(vtkIdTypeArray *)
Set the index array used to as a material mask.
bool GenerateInterfaceFields
std::vector< int > LevelCounters
void SetDimensions(const unsigned int *dims)
Set/Get the number of root cells + 1 in each dimension of the grid.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetQuadricCoefficients(double[10])
Helpers to set/get the 10 coefficients of the quadric function.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
dynamic, self-adjusting array of vtkIdType
void SetGridScale(double scale)
unsigned int GetMaxDepth()
Return the maximum number of levels of the hypertree.
void GetQuadricCoefficients(double[10])
std::vector< std::string > LevelMasks
std::vector< vtkIdType > LevelBitsIndexCnt
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetQuadric(vtkQuadric *)
Set/Get the quadric function.
dynamic, self-adjusting array of bits
void SetIndexingModeToKJI()
general representation of visualization data
Superclass for algorithms that produce a hyper tree grid as output.
vtkMTimeType GetMTime() override
Override GetMTime because we delegate to a vtkQuadric.
double * GetQuadricCoefficients()
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
vtkTypeUInt32 vtkMTimeType