![]() |
Radium Engine
1.7.0
|
#include <Engine/Data/VolumeObject.hpp>
Inheritance diagram for Ra::Engine::Data::VolumeObject:
Collaboration diagram for Ra::Engine::Data::VolumeObject:Public Member Functions | |
| VolumeObject (const std::string &name) | |
| VolumeObject (const VolumeObject &rhs)=delete | |
| void | operator= (const VolumeObject &rhs)=delete |
| const Core::Geometry::AbstractGeometry & | getAbstractGeometry () const override |
| Core::Geometry::AbstractGeometry & | getAbstractGeometry () override |
| const Core::Geometry::AbstractVolume & | getVolume () const |
| Returns the underlying AbstractVolume. | |
| Core::Geometry::AbstractVolume & | getVolume () |
| void | loadGeometry (Core::Geometry::AbstractVolume *volume) |
| Use the given volume for display. | |
| void | loadGeometry (Core::Geometry::AbstractVolume *volume, const Core::Aabb &aabb) |
| void | setDirty () |
| Mark the data types as dirty, forcing an update of the openGL buffer. | |
| const Texture & | getDataTexture () |
| get read access to the 3d texture storing the data | |
| void | updateGL () override |
| void | render (const ShaderProgram *prog) override |
| Draw the mesh. | |
| size_t | getNumFaces () const override |
| 6 quad faces of the cube, thus 12 triangles. | |
| size_t | getNumVertices () const override |
| 8 vertices of the cube | |
| const std::string & | getName () const |
| Returns the name of the mesh. | |
Public Member Functions inherited from Ra::Engine::Data::Displayable | |
| Displayable (const std::string &name) | |
| Displayable (const Displayable &rhs)=delete | |
| void | operator= (const Displayable &rhs)=delete |
| PickingRenderMode | pickingRenderMode () const |
| Returns the picking rendermode advised by the object (default PickingRenderMode::NO_PICKING) | |
| const std::string & | getName () const |
| Returns the name of the mesh. | |
Additional Inherited Members | |
Public Types inherited from Ra::Engine::Data::Displayable | |
| enum | PickingRenderMode { PKM_POINTS = 0 , PKM_LINES = 1 , PKM_LINE_ADJ = 2 , PKM_TRI = 3 , NO_PICKING } |
Protected Attributes inherited from Ra::Engine::Data::Displayable | |
| PickingRenderMode | m_pickingRenderMode { NO_PICKING } |
A class representing an openGL volume
Definition at line 32 of file VolumeObject.hpp.
|
explicit |
Definition at line 13 of file VolumeObject.cpp.
|
override |
Definition at line 16 of file VolumeObject.cpp.
|
inlineoverridevirtual |
Returns the underlying AbstractGeometry, which is in fact a AbstractVolume
Implements Ra::Engine::Data::Displayable.
Definition at line 90 of file VolumeObject.hpp.
|
inlineoverridevirtual |
Implements Ra::Engine::Data::Displayable.
Definition at line 95 of file VolumeObject.hpp.
|
inline |
get read access to the 3d texture storing the data
Definition at line 64 of file VolumeObject.hpp.
|
inline |
Returns the name of the mesh.
Definition at line 42 of file DisplayableObject.hpp.
|
inlineoverridevirtual |
6 quad faces of the cube, thus 12 triangles.
Reimplemented from Ra::Engine::Data::Displayable.
Definition at line 76 of file VolumeObject.hpp.
|
inlineoverridevirtual |
8 vertices of the cube
Reimplemented from Ra::Engine::Data::Displayable.
Definition at line 78 of file VolumeObject.hpp.
|
inline |
Definition at line 106 of file VolumeObject.hpp.
|
inline |
Returns the underlying AbstractVolume.
Definition at line 101 of file VolumeObject.hpp.
| void Ra::Engine::Data::VolumeObject::loadGeometry | ( | Core::Geometry::AbstractVolume * | volume | ) |
Use the given volume for display.
Definition at line 81 of file VolumeObject.cpp.
Here is the call graph for this function:| void Ra::Engine::Data::VolumeObject::loadGeometry | ( | Core::Geometry::AbstractVolume * | volume, |
| const Core::Aabb & | aabb ) |
Use the given volume for display and build the proxy from the given aabb.
Definition at line 18 of file VolumeObject.cpp.
Here is the call graph for this function:
|
overridevirtual |
Draw the mesh.
Implements Ra::Engine::Data::Displayable.
Definition at line 95 of file VolumeObject.cpp.
|
inline |
Mark the data types as dirty, forcing an update of the openGL buffer.
Definition at line 61 of file VolumeObject.hpp.
|
overridevirtual |
This function is called at the start of the rendering. It will update the necessary openGL buffers.
Implements Ra::Engine::Data::Displayable.
Definition at line 85 of file VolumeObject.cpp.