16 #ifndef SURGSIM_DATASTRUCTURES_OCTREENODEPLYREADERDELEGATE_INL_H 17 #define SURGSIM_DATASTRUCTURES_OCTREENODEPLYREADERDELEGATE_INL_H 21 namespace DataStructures
24 template <
typename Data>
28 static_assert(std::is_default_constructible<Data>::value,
"OctreeNode Data needs default constructor.");
31 template <
typename Data>
35 static_assert(std::is_default_constructible<Data>::value,
"OctreeNode Data needs default constructor");
39 template <
typename Data>
45 template <
typename Data>
51 template <
typename Data>
61 template <
typename Data>
Definition: CompoundShapeToGraphics.cpp:29
double y
Definition: OctreeNodePlyReaderDelegate.h:114
void processVoxel(const std::string &elementName) override
Callback function to process one voxel.
Definition: OctreeNodePlyReaderDelegate-inl.h:52
Eigen::AlignedBox< double, 3 > m_boundingBox
Bounding box, will be initialized from the file.
Definition: OctreeNodePlyReaderDelegate.h:92
#define SURGSIM_ASSERT(condition)
Assert that condition is true.
Definition: Assert.h:77
double z
Definition: OctreeNodePlyReaderDelegate.h:115
virtual ~OctreeNodePlyReaderDelegate()
Destructor.
Definition: OctreeNodePlyReaderDelegate-inl.h:40
std::shared_ptr< OctreeNode< Data > > m_octree
The octree that will be filled with the data from the file.
Definition: OctreeNodePlyReaderDelegate.h:158
double x
Definition: OctreeNodePlyReaderDelegate.h:113
void initializeOctree() override
Set up the octree, this is left up to the derived classes.
Definition: OctreeNodePlyReaderDelegate-inl.h:62
struct SurgSim::DataStructures::OctreeNodePlyReaderDelegateBase::VoxelData m_voxel
OctreeNodePlyReaderDelegate()
Constructor.
Definition: OctreeNodePlyReaderDelegate-inl.h:25
std::shared_ptr< OctreeNode< Data > > getOctree()
Definition: OctreeNodePlyReaderDelegate-inl.h:46
int m_numLevels
Calculated number of levels for the octree.
Definition: OctreeNodePlyReaderDelegate.h:119
Eigen::Matrix< double, 3, 1 > Vector3d
A 3D vector of doubles.
Definition: Vector.h:57
Octree data structure.
Definition: OctreeNode.h:131