Carna  Version 3.3.2
Classes | Public Types | Public Member Functions | List of all members
Carna::base::Renderable Class Reference

Represents a Geometry object that has been queued into a RenderQueue. The object's model-view transform has been computed in particular. More...

#include <Renderable.h>

Classes

struct  DepthOrder
 Defines partial order for renderables w.r.t. to their depth in eye space. More...
 
struct  VideoResourcesOrder
 Establishes partial order for renderables s.t. geometries with such GeometryFeature instances, that do control the same video resource, are grouped together. More...
 

Public Types

typedef DepthOrder<+1 > BackToFront
 Defines partial order for renderables w.r.t. to their depth in eye space s.t. distant renderables come before closer renderables.
 
typedef DepthOrder< -1 > FrontToBack
 Defines partial order for renderables w.r.t. to their depth in eye space s.t. closer renderables come before distant renderables.
 

Public Member Functions

 Renderable (const Geometry &geometry, const math::Matrix4f &modelViewTransform)
 Associates geometry with modelViewTransform.
 
 Renderable (const Renderable &other)
 Copies from other.
 
 ~Renderable ()
 Deletes.
 
const Geometrygeometry () const
 References the geometry node.
 
const math::Matrix4fmodelViewTransform () const
 References the model-view transform.
 
void setModelViewTransform (const math::Matrix4f &)
 Alters the model-view transform.
 
const math::Matrix4fviewModelTransform () const
 Returns the inverse modelViewTransform.
 
float eyeDistance2 () const
 Returns the squared distance of geometry to the eye. If it has an associated boundary volume, than the distance is computed w.r.t. to its closemost point. Otherwise it is computed w.r.t. its center.
 
Renderableoperator= (const Renderable &other)
 Assigns from other.
 

Detailed Description

Represents a Geometry object that has been queued into a RenderQueue. The object's model-view transform has been computed in particular.

Instances of this class are copyable and assignable.

Date
22.2.2015
Author
Leonid Kostrykin

Definition at line 45 of file Renderable.h.


The documentation for this class was generated from the following file: