SpatiumLib
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
spatium::gfx3d::RenderObject Class Referenceabstract

Scene object that can be rendered. More...

#include <RenderObject.h>

Inheritance diagram for spatium::gfx3d::RenderObject:
Inheritance graph
[legend]
Collaboration diagram for spatium::gfx3d::RenderObject:
Collaboration graph
[legend]

Public Member Functions

 RenderObject ()
 
std::array< double, 6 > bounds () const
 Get the boundaries of the object; axis aligned. Xmin, Xmax, Ymin, Ymax, Zmin, Zmax. More...
 
void setColor (const std::array< unsigned char, 3 > color)
 Set the color. More...
 
std::array< unsigned char, 3 > color () const
 Get the color. More...
 
- Public Member Functions inherited from spatium::gfx3d::SceneObject
 SceneObject ()
 
Transformtransform ()
 Get the transformation. More...
 

Protected Member Functions

virtual void updateBounds ()=0
 

Protected Attributes

std::array< double, 6 > m_bounds
 
std::array< unsigned char, 3 > m_color
 \TODO: use BoundingBox<double, 3> from namespace idx More...
 
- Protected Attributes inherited from spatium::gfx3d::SceneObject
Transform m_transform
 

Detailed Description

Scene object that can be rendered.

A RenderObject has a certain size (bounds).

Constructor & Destructor Documentation

◆ RenderObject()

spatium::gfx3d::RenderObject::RenderObject ( )
inline

Member Function Documentation

◆ 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
[in]colColor

◆ updateBounds()

virtual void spatium::gfx3d::RenderObject::updateBounds ( )
protectedpure virtual

Implemented in spatium::gfx3d::Mesh.

Member Data Documentation

◆ 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: