Equalizer  1.6.1
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
eq::fabric::Frustum Class Reference

A distributed object for frustum data. More...

#include <frustum.h>

+ Inheritance diagram for eq::fabric::Frustum:
+ Collaboration diagram for eq::fabric::Frustum:

Public Types

enum  Type { TYPE_NONE, TYPE_WALL, TYPE_PROJECTION }
 The type of the last specified frustum. More...
 

Public Member Functions

 Frustum ()
 Construct a new frustum. More...
 
virtual ~Frustum ()
 Destruct the frustum. More...
 
void setWall (const Wall &wall)
 Set the frustum using a wall description. More...
 
void setProjection (const Projection &projection)
 Set the frustum using a projection description. More...
 
const WallgetWall () const
 
const ProjectiongetProjection () const
 
Type getCurrentType () const
 
void unsetFrustum ()
 Set the last specified frustum to TYPE_NONE. More...
 
void serialize (co::DataOStream &os)
 
void deserialize (co::DataIStream &is)
 
virtual void backup ()
 
virtual void restore ()
 

Protected Member Functions

virtual void updateFrustum ()
 
virtual void notifyFrustumChanged ()
 

Detailed Description

A distributed object for frustum data.

Definition at line 36 of file frustum.h.

Member Enumeration Documentation

The type of the last specified frustum.

Version
1.0
Enumerator
TYPE_NONE 

No frustum has been specified.

TYPE_WALL 

A wall description has been set last.

TYPE_PROJECTION 

A projection description has been set last.

Definition at line 46 of file frustum.h.

Constructor & Destructor Documentation

eq::fabric::Frustum::Frustum ( )

Construct a new frustum.

Version
1.0
virtual eq::fabric::Frustum::~Frustum ( )
virtual

Destruct the frustum.

Version
1.0

Member Function Documentation

Type eq::fabric::Frustum::getCurrentType ( ) const
inline
Returns
the type of the latest specified frustum.
Version
1.0

Definition at line 66 of file frustum.h.

const Projection& eq::fabric::Frustum::getProjection ( ) const
inline
Returns
the last specified frustum as a projection.
Version
1.0

Definition at line 63 of file frustum.h.

const Wall& eq::fabric::Frustum::getWall ( ) const
inline
Returns
the last specified frustum as a wall.
Version
1.0

Definition at line 60 of file frustum.h.

void eq::fabric::Frustum::setProjection ( const Projection projection)

Set the frustum using a projection description.

Version
1.0
void eq::fabric::Frustum::setWall ( const Wall wall)

Set the frustum using a wall description.

Version
1.0
void eq::fabric::Frustum::unsetFrustum ( )

Set the last specified frustum to TYPE_NONE.

Version
1.0

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