Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

vrj::Frustum Class Reference

A frustum object. More...

#include <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 Methods

 Frustum ()
void setBottomLeftTopRight (float bot_val, float left_val, float top_val, float right_val)
void setNearFar (float near_val, float far_val)
void set (float left_val, float right_val, float bottom_val, float top_val, float near_val, float far_val)
float & operator[] (int elt)

Public Attributes

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


Detailed Description

A frustum object.

This is a frustum.

Date:
10-1-97

Definition at line 49 of file Frustum.h.


Member Enumeration Documentation

enum vrj::Frustum::entry
 

Enumeration values:
VJ_LEFT 
VJ_RIGHT 
VJ_BOTTOM 
VJ_TOP 
VJ_NEAR 
VJ_FAR 

Definition at line 52 of file Frustum.h.


Constructor & Destructor Documentation

vrj::Frustum::Frustum   [inline]
 

Definition at line 55 of file Frustum.h.

00056    {
00057       frust[0] = frust[1] = frust[2] = 0.0f;
00058       frust[3] = frust[4] = frust[5] = 0.0f;
00059    }


Member Function Documentation

void vrj::Frustum::setBottomLeftTopRight float    bot_val,
float    left_val,
float    top_val,
float    right_val
[inline]
 

Definition at line 61 of file Frustum.h.

00062    {
00063       frust[VJ_BOTTOM] = bot_val;
00064       frust[VJ_LEFT] = left_val;
00065       frust[VJ_TOP] = top_val;
00066       frust[VJ_RIGHT] = right_val;
00067    }

void vrj::Frustum::setNearFar float    near_val,
float    far_val
[inline]
 

Definition at line 69 of file Frustum.h.

00070    {
00071       frust[VJ_NEAR] = near_val;
00072       frust[VJ_FAR] = far_val;
00073    }

void vrj::Frustum::set float    left_val,
float    right_val,
float    bottom_val,
float    top_val,
float    near_val,
float    far_val
[inline]
 

Definition at line 75 of file Frustum.h.

00076    {
00077       frust[VJ_LEFT] = left_val;
00078       frust[VJ_RIGHT] = right_val;
00079       frust[VJ_BOTTOM] = bottom_val;
00080       frust[VJ_TOP] = top_val;
00081       frust[VJ_NEAR] = near_val;
00082       frust[VJ_FAR] = far_val;
00083    }

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

Definition at line 85 of file Frustum.h.

00086    {
00087       return frust[elt];
00088    }


Member Data Documentation

float vrj::Frustum::frust[6]
 

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

Definition at line 91 of file Frustum.h.

Referenced by vrj::GlWindow::setProjection.


The documentation for this class was generated from the following file:
Generated on Sun May 2 15:11:06 2004 for VR Juggler by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002