1 #ifndef PROCEDURAL_VOXEL_EDIT_AXISALIGNEDBOX_HPP
2 #define PROCEDURAL_VOXEL_EDIT_AXISALIGNEDBOX_HPP
5 #include "blub/math/axisAlignedBox.hpp"
6 #include "blub/procedural/voxel/edit/base.hpp"
23 template <
class configType>
24 class axisAlignedBox :
public base<configType>
28 typedef base<configType> t_base;
29 typedef sharedPointer<axisAlignedBox> pointer;
37 static pointer
create(const ::blub::axisAlignedBox& desc)
75 m_aab.
getMaximum()*trans.scale + trans.position);
120 #endif // PROCEDURAL_VOXEL_EDIT_AXISALIGNEDBOX_HPP
Definition: customVertexInformation.cpp:193
void setInterpolationMax()
setInterpolationMax set interpolation to maximum.
Definition: data.hpp:129
static pointer create(const ::blub::axisAlignedBox &desc)
Allocates an instance and initialises the class.
Definition: axisAlignedBox.hpp:37
insertes/removes voxels that are included in an blub::axisAlignedBox. Always axis-aligned - use box i...
Definition: predecl.hpp:69
bool calculateOneVoxel(const vector3 &pos, t_voxel *resultVoxel) const override
checks if voxel is inside aab
Definition: axisAlignedBox.hpp:84
blub::axisAlignedBox getAxisAlignedBoundingBox(const transform &trans) const override
returns the bounding box describing the voxel to be recalculated
Definition: axisAlignedBox.hpp:72
bool contains(const vector3 &v) const
Definition: axisAlignedBox.hpp:496
virtual ~axisAlignedBox()
Destructor.
Definition: axisAlignedBox.hpp:44
const ::blub::axisAlignedBox & getAxisAlignedBox() const
Returns the describing blub::axisAlignedBox set by constructor or by setAxisAlignedBox().
Definition: axisAlignedBox.hpp:62
Definition: vector3.hpp:26
Definition: axisAlignedBox.hpp:20
void setAxisAlignedBox(const ::blub::axisAlignedBox &desc)
Changes the voxel-describing bounding-box. DON'T change it while class is generating voxel...
Definition: axisAlignedBox.hpp:54
The data class is the default voxel. Contains an 8-bit interpolation value. Replace/derive it and set...
Definition: data.hpp:27
const vector3 & getMinimum(void) const
Definition: axisAlignedBox.hpp:126
const vector3 & getMaximum(void) const
Definition: axisAlignedBox.hpp:141
Definition: deadlineTimer.hpp:10
Definition: customVertexInformation.cpp:177