VISH  0.2
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
Wizt::RenderAble Class Reference

Abstract base class for objects that can be rendered. More...

#include </home/werner/origo/vish/ocean/Anemonia/VRenderAble.hpp>

List of all members.

Public Member Functions

Static Public Member Functions

Public Attributes

Protected Member Functions

Protected Attributes


Detailed Description

Abstract base class for objects that can be rendered.


Member Function Documentation

virtual void Wizt::RenderAble::environment_render ( VRenderContext Context) const [pure virtual]

A render routine which may change the state of OpenGL for all subsequent renderings.

Use this function overload with care! By default, it saves the OpenGL state, calls the render() routine, and restores the OpenGL state.

Implemented in Wizt::VGLRenderObject, CameraLens, and LocalLens.

RefPtr< BoundingBall > Wizt::RenderAble::getBoundingBall ( const RefPtr< ValuePool > &  VP) const [virtual]

Retrieve the bounding volume of the object.

By default, it reads out the interface of the local VObject::State object.

Reimplemented in Wizt::VRenderObject.

bool Wizt::RenderAble::safe_render ( VRenderContext Context,
double  Z = 0,
double  dZ = -1 
) const

Calls the render function with pushing/popping the modelview matrix.

Parameters:
ZThe starting depth
dZThe depth thickness; if negative, draw all.
Note:
Use the timed_render() function in application code. This function will throw render exceptions if something bad happened during rendering.
bool Wizt::RenderAble::timed_render ( double &  RenderTime,
VRenderContext Context,
double  Z = 0,
double  dZ = -1 
) const

Render this object (calling safe_render() ) including timing measurements.

This is the preferred methods on how objects are rendered. This function will catch exceptions and print them on the console, so it is safe to call. If an application wants to do something about render exceptions, then do not call this function but use safe_render() instead.

const char * Wizt::RenderAble::VisibilitySlotName ( ) [static]

The name of the slot indicating visibility.

This name is a reserved name for child classes, they must not defined own slots of same name.


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