KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
kjb::Renderable_model Class Referenceabstract

#include <gr_renderable_model.h>

Inheritance diagram for kjb::Renderable_model:
kjb::Cloneable kjb::Parametric_frustum kjb::Parametric_parapiped kjb::Parametric_sphere

Public Member Functions

 Renderable_model (bool istatus=false)
 Constructor. More...
 
 Renderable_model (const Renderable_model &src)
 Copy constructor. More...
 
Renderable_modeloperator= (const Renderable_model &)
 Assignment operator. More...
 
virtual ~Renderable_model ()
 
virtual void wire_render () const throw (kjb::KJB_error)
 Renders this model as a wireframe. More...
 
virtual void wire_occlude_render () const throw (kjb::KJB_error)
 Renders this model into the depth buffer. More...
 
virtual void solid_render () const throw (kjb::KJB_error)
 Renders this model as a solid. More...
 
virtual void render_occluded_wireframe () const throw (kjb::KJB_error)
 Renders this model as a wireframe by removing occluded edges. More...
 
virtual void silhouette_render (const kjb::Base_gl_interface &, double width=1.0) const
 renders the silhouette of this object More...
 
void update_if_needed () const
 
void force_update () const
 
- Public Member Functions inherited from kjb::Cloneable
virtual ~Cloneable ()
 Deletes this Cloneable. More...
 
virtual Cloneableclone () const =0
 Processes an Option from program command-line arguments. More...
 

Protected Member Functions

virtual Abstract_renderableget_rendering_interface () const =0
 Returns a reference to the rendering interface used to render this model. More...
 
virtual void update_rendering_representation () const =0 throw (kjb::KJB_error)
 Updates the rendering interface so that it reflects the paremeter values of this model to the rendering interface used to render this model. More...
 
void set_rendering_representation_dirty () const
 This method is called to whenever the model parameters where changed without updating the rendering interface accordingly. This means that the rendering interface has to be updated before calling any rendering method, otherwise the rendering will not match the parameter values of the model. More...
 

Constructor & Destructor Documentation

kjb::Renderable_model::Renderable_model ( bool  istatus = false)
inline

Constructor.

specifies whether the rendering interface matches the model parameters or needs to be updated

kjb::Renderable_model::Renderable_model ( const Renderable_model src)
inline

Copy constructor.

virtual kjb::Renderable_model::~Renderable_model ( )
inlinevirtual

Member Function Documentation

void kjb::Renderable_model::force_update ( ) const
inline
virtual Abstract_renderable& kjb::Renderable_model::get_rendering_interface ( ) const
protectedpure virtual

Returns a reference to the rendering interface used to render this model.

Implemented in kjb::Parametric_frustum, kjb::Parametric_parapiped, and kjb::Parametric_sphere.

Renderable_model& kjb::Renderable_model::operator= ( const Renderable_model )
inline

Assignment operator.

void Renderable_model::render_occluded_wireframe ( ) const
throw (kjb::KJB_error
)
virtual

Renders this model as a wireframe by removing occluded edges.

void kjb::Renderable_model::set_rendering_representation_dirty ( ) const
inlineprotected

This method is called to whenever the model parameters where changed without updating the rendering interface accordingly. This means that the rendering interface has to be updated before calling any rendering method, otherwise the rendering will not match the parameter values of the model.

void Renderable_model::silhouette_render ( const kjb::Base_gl_interface camera,
double  width = 1.0 
) const
virtual

renders the silhouette of this object

void Renderable_model::solid_render ( ) const
throw (kjb::KJB_error
)
virtual

Renders this model as a solid.

void kjb::Renderable_model::update_if_needed ( ) const
inline

Updates the graphical representation if needed

virtual void kjb::Renderable_model::update_rendering_representation ( ) const
throw (kjb::KJB_error
)
protectedpure virtual

Updates the rendering interface so that it reflects the paremeter values of this model to the rendering interface used to render this model.

Implemented in kjb::Parametric_frustum, kjb::Parametric_parapiped, and kjb::Parametric_sphere.

void Renderable_model::wire_occlude_render ( ) const
throw (kjb::KJB_error
)
virtual

Renders this model into the depth buffer.

void Renderable_model::wire_render ( ) const
throw (kjb::KJB_error
)
virtual

Renders this model as a wireframe.


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