12#ifndef RENDERABLE_H_6014714286
13#define RENDERABLE_H_6014714286
15#include <Carna/Carna.h>
49 const std::unique_ptr< Details > pimpl;
109 template<
int order >
116 const static bool isViewDependent =
true;
143 template<
unsigned int role >
150 const static bool isViewDependent =
false;
169template<
unsigned int role >
174 if(
gfl.controlsSameVideoResource(
gfr ) )
Defines Carna::base::GeometryFeature.
Represents an association.
Represents "components" that are aggregated by Geometry objects. Closer description is given here.
Defines scene graph leafs. Instances of this class represent visible geometry that can be rendered....
Represents a Geometry object that has been queued into a RenderQueue. The object's model-view transfo...
float eyeDistance2() const
Returns the squared distance of geometry to the eye. If it has an associated boundary volume,...
const math::Matrix4f & viewModelTransform() const
Returns the inverse modelViewTransform.
Renderable(const Geometry &geometry, const math::Matrix4f &modelViewTransform)
Associates geometry with modelViewTransform.
const Geometry & geometry() const
References the geometry node.
void setModelViewTransform(const math::Matrix4f &)
Alters the model-view transform.
Renderable(const Renderable &other)
Copies from other.
Renderable & operator=(const Renderable &other)
Assigns from other.
const math::Matrix4f & modelViewTransform() const
References the model-view transform.
DepthOrder<+1 > BackToFront
Defines partial order for renderables w.r.t. to their depth in eye space s.t. distant renderables com...
DepthOrder< -1 > FrontToBack
Defines partial order for renderables w.r.t. to their depth in eye space s.t. closer renderables come...
Defines Carna::base::math namespace and CARNA_FOR_VECTOR3UI.
Eigen::Matrix< float, 4, 4, Eigen::ColMajor > Matrix4f
Defines matrix.
Defines partial order for renderables w.r.t. to their depth in eye space.
bool operator()(const Renderable &l, const Renderable &r) const
Tells whether l is further away than r for order>0 or closer for order<0 respectively.
Establishes partial order for renderables s.t. geometries with such GeometryFeature instances,...
bool operator()(const Renderable &l, const Renderable &r) const
Returns the result of GeometryFeature::controlsSameVideoResource for the geometry features with role ...