4#ifndef vtkAMRToBricksHelper_h
5#define vtkAMRToBricksHelper_h
16VTK_ABI_NAMESPACE_BEGIN
72 float Bounds[6] = { 0.f, 0.f, 0.f, 0.f, 0.f, 0.f };
73 float ScalarMin = std::numeric_limits<float>::max();
74 float ScalarMax = std::numeric_limits<float>::lowest();
187 std::vector<SupportFragment> fragments,
const float regionMin[3],
const float regionMax[3]);
188 void CreateABRLeaf(
const std::vector<SupportFragment>& fragments,
const float regionMin[3],
189 const float regionMax[3]);
199 std::vector<uint32_t>& indices,
size_t start,
size_t end, std::atomic<uint32_t>& nodeCounter);
vtkExaBVHNode vtkHTGBVHNode
void ComputeScalarRange()
void BuildABRs()
Active Brick Regions (ABRs), paper §3.2.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExaBricks vtkHTGBricks
void BuildABRsRecursive(std::vector< SupportFragment > fragments, const float regionMin[3], const float regionMax[3])
virtual const char * GetInputTypeName() const =0
static constexpr unsigned int MAX_BRICK_WIDTH
vtkExaBricks BuildBricks()
static vtkSmartPointer< vtkAMRToBricksHelper > NewForInput(vtkDataObject *input)
virtual void BuildBricksFromInput()
input-specific; default no-op (AMR patches are already bricks).
std::vector< float > BrickScalarMax
void CreateABRLeaf(const std::vector< SupportFragment > &fragments, const float regionMin[3], const float regionMax[3])
~vtkAMRToBricksHelper() override
int32_t BuildBVHRecursive(std::vector< uint32_t > &indices, size_t start, size_t end, std::atomic< uint32_t > &nodeCounter)
BVH over bricks, paper §3.3.
static constexpr float BLANKED_CELL_SENTINEL
static constexpr unsigned int MIN_ABR_FRAGMENTS
void ComputeGlobalBounds()
void BuildBVH()
BVH over bricks, paper §3.3.
std::vector< float > BrickScalarMin
unsigned int MaxTraversalDepth
virtual void CollectInput()=0
input-specific: fill BricksData + BrickScalarMin/Max + MaxLevel.
general representation of visualization data
a simple class to control print indentation
Hold a reference to a vtkObjectBase instance.
ABR build fragment: a brick's support box (half cell width beyond the brick bounds) tagged with the b...
ABR, paper §3.2, BrickListOffset + [0..BrickCount) indices into ABRBrickLists.
BVH node, paper §3.3, built over ABRs; leaf RightIndex = ABR index (LeftIndex = -1).
Brick, paper §3.1, 3D grid of same-level cells filling its bounds.
Result of BuildBricks: the three structures, ready for GPU upload.
std::array< float, 6 > GlobalBounds
std::vector< unsigned int > ABRBrickLists
std::vector< vtkExaBVHNode > BVHNodes
std::vector< float > Scalars
std::vector< vtkExaBrick > Bricks
std::vector< float > InterfaceData
std::vector< vtkExaABR > ABRs