15#ifndef RENDERABLE_H_6014714286
16#define RENDERABLE_H_6014714286
52 const std::unique_ptr< Details > pimpl;
112 template<
int order >
119 const static bool isViewDependent =
true;
146 template<
unsigned int role >
153 const static bool isViewDependent =
false;
172template<
unsigned int role >
177 if(
gfl.controlsSameVideoResource(
gfr ) )
Defines LibCarna::base::GeometryFeature.
Contains forward-declarations.
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...
Renderable(const Geometry &geometry, const math::Matrix4f &modelViewTransform)
Associates geometry with modelViewTransform.
DepthOrder< -1 > FrontToBack
Defines partial order for renderables w.r.t. to their depth in eye space s.t. closer renderables come...
Renderable(const Renderable &other)
Copies from other.
DepthOrder<+1 > BackToFront
Defines partial order for renderables w.r.t. to their depth in eye space s.t. distant renderables com...
const math::Matrix4f & viewModelTransform() const
Returns the inverse modelViewTransform.
void setModelViewTransform(const math::Matrix4f &)
Alters the model-view transform.
const Geometry & geometry() const
References the geometry node.
const math::Matrix4f & modelViewTransform() const
References the model-view transform.
Renderable & operator=(const Renderable &other)
Assigns from other.
float eyeDistance2() const
Returns the squared distance of geometry to the eye. If it has an associated boundary volume,...
Defines LibCarna::base::math namespace and LIBCARNA_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 ...