vrj::Frustum Class Reference

A frustum object. More...

#include <vrj/Display/Frustum.h>

List of all members.

Public Types

enum  entry {
  VJ_LEFT = 0, VJ_RIGHT = 1, VJ_BOTTOM, VJ_TOP,
  VJ_NEAR, VJ_FAR
}

Public Member Functions

 Frustum ()
void setBottomLeftTopRight (const float bottomVal, const float leftVal, const float topVal, const float rightVal)
void setNearFar (const float nearVal, const float farVal)
void set (const float leftVal, const float rightVal, const float bottomVal, const float topVal, const float nearVal, const float farVal)
float & operator[] (int elt)

Public Attributes

float frust [6]
 Left, Right, Bottom, Top, Near, Far.


Detailed Description

A frustum object.

This is a frustum.

Date:
10-1-97

Definition at line 50 of file Frustum.h.


Member Enumeration Documentation

enum vrj::Frustum::entry

Enumerator:
VJ_LEFT 
VJ_RIGHT 
VJ_BOTTOM 
VJ_TOP 
VJ_NEAR 
VJ_FAR 

Definition at line 53 of file Frustum.h.

00054    {
00055       VJ_LEFT = 0,
00056       VJ_RIGHT = 1,
00057       VJ_BOTTOM,
00058       VJ_TOP,
00059       VJ_NEAR,
00060       VJ_FAR
00061    };


Constructor & Destructor Documentation

vrj::Frustum::Frustum (  )  [inline]

Definition at line 63 of file Frustum.h.

00064    {
00065       frust[0] = frust[1] = frust[2] = 0.0f;
00066       frust[3] = frust[4] = frust[5] = 0.0f;
00067    }


Member Function Documentation

void vrj::Frustum::setBottomLeftTopRight ( const float  bottomVal,
const float  leftVal,
const float  topVal,
const float  rightVal 
) [inline]

Definition at line 69 of file Frustum.h.

00071    {
00072       frust[VJ_BOTTOM] = bottomVal;
00073       frust[VJ_LEFT]   = leftVal;
00074       frust[VJ_TOP]    = topVal;
00075       frust[VJ_RIGHT]  = rightVal;
00076    }

void vrj::Frustum::setNearFar ( const float  nearVal,
const float  farVal 
) [inline]

Definition at line 78 of file Frustum.h.

00079    {
00080       frust[VJ_NEAR] = nearVal;
00081       frust[VJ_FAR]  = farVal;
00082    }

void vrj::Frustum::set ( const float  leftVal,
const float  rightVal,
const float  bottomVal,
const float  topVal,
const float  nearVal,
const float  farVal 
) [inline]

Definition at line 84 of file Frustum.h.

Referenced by vrj::SurfaceProjection::calcViewFrustum(), and vrj::CameraProjection::calcViewMatrix().

00086    {
00087       frust[VJ_LEFT]   = leftVal;
00088       frust[VJ_RIGHT]  = rightVal;
00089       frust[VJ_BOTTOM] = bottomVal;
00090       frust[VJ_TOP]    = topVal;
00091       frust[VJ_NEAR]   = nearVal;
00092       frust[VJ_FAR]    = farVal;
00093    }

float& vrj::Frustum::operator[] ( int  elt  )  [inline]

Definition at line 95 of file Frustum.h.

00096    {
00097       return frust[elt];
00098    }


Member Data Documentation

float vrj::Frustum::frust[6]

Left, Right, Bottom, Top, Near, Far.

Definition at line 101 of file Frustum.h.

Referenced by vrj::GlWindow::setProjection().


The documentation for this class was generated from the following file:
Generated on Thu Jan 4 10:58:05 2007 for VR Juggler by  doxygen 1.5.1