Scene object that can be rendered.
More...
#include <RenderObject.h>
Scene object that can be rendered.
A RenderObject has a certain size (bounds).
◆ RenderObject()
spatium::gfx3d::RenderObject::RenderObject |
( |
| ) |
|
|
inline |
◆ bounds()
std::array<double, 6> spatium::gfx3d::RenderObject::bounds |
( |
| ) |
const |
|
inline |
Get the boundaries of the object; axis aligned. Xmin, Xmax, Ymin, Ymax, Zmin, Zmax.
- Returns
- Boundaries
◆ color()
std::array<unsigned char, 3> spatium::gfx3d::RenderObject::color |
( |
| ) |
const |
|
inline |
Get the color.
Color is defined as RGB values with range 0 - 255
- Returns
- Color
◆ setColor()
void spatium::gfx3d::RenderObject::setColor |
( |
const std::array< unsigned char, 3 > |
color | ) |
|
|
inline |
Set the color.
Color is defined as RGB values with range 0 - 255.
- Parameters
-
◆ updateBounds()
virtual void spatium::gfx3d::RenderObject::updateBounds |
( |
| ) |
|
|
protectedpure virtual |
◆ m_bounds
std::array<double, 6> spatium::gfx3d::RenderObject::m_bounds |
|
protected |
◆ m_color
std::array<unsigned char, 3> spatium::gfx3d::RenderObject::m_color |
|
protected |
\TODO: use BoundingBox<double, 3> from namespace idx
The documentation for this class was generated from the following file:
- /home/martijn/Development/Projects/SpatiumLib/include/spatium/gfx3d/RenderObject.h