class CAVEcam : public SharedObject

This is the CAVEcam base class from which all CAVEcam objects are derived

Inheritance:


Public

Data
GLfloat _red
Red Value of Camera's Color
GLfloat _green
Green Value of Camera's Color
GLfloat _blue
Blue Value of Camera's Color
GLdouble _eyex
Camera X position
GLdouble _eyey
Camera Y position
GLdouble _eyez
Camera Z position
GLdouble _centerx
Camera X direction
GLdouble _centery
Camera Y direction
GLdouble _centerz
Camera Z direction
GLdouble _upx
Camera X up
GLdouble _upy
Camera Y up
GLdouble _upz
Camera Z up
ImagePool* _imagepool
Ring Buffer of image descriptors
int _lastimage
Index of last image used from Ring Buffer
int _lastserial
Serial number of last image used
int _fb_width
Current image width
int _fb_height
Current image height
int _fb_depth
Current image depth
int _fb_size
Current image size (height * width * depth)
fPtr DrawFunc
Pointer to users drawing function
int _fc
Frame Counter
Methods
CAVEcam(float ex = 0.0, float ey = 5.0, float ez = 0.0, float cx = 0.0, float cy = 5.0, float cz = -5.0, float ux = 0.0, float uy = 1.0, float uz = 0.0)
The default constructor takes nine arguments, the x, y, and z location, the direction vector, and the up vector of the camera.
virtual ~CAVEcam()
The default destructor takes no arguments, and is virtual
void SetDrawFunc(void *df)
This accessor takes a pointer to the users drawing function, this is identical to the CAVEDisplay() function in the CAVE library.
void SetWidth(int _width)
This accessor takes an integer argument to set the width, in pixels, of the frame of video
void SetHeight(int _height)
This accessor takes an integer argument to set the height, in pixels, of the frame of video
void SetDepth(int _depth)
This accessor takes an integer argument to set the depth, in bytes, of the frame of video
void SetColor(float r, float g, float b)
This accessor takes three floating point arguments to set the red, green and blue values of the current color of the camera object
void SetPosition(float x, float y, float z)
This accessor takes three floating point arguments to set the x, y, and z location of the camera
void SetOrientation(float x, float y, float z)
This accessor takes three floating point arguments to set the x, y, and z orientation vector of the camera
void SetUp(float x, float y, float z)
This accessor takes three floating point arguments to set the x, y, and z up vector of the camera
virtual void Init(void)
This function provides a place for any camera specific initialization to occur
virtual void Process(void)
This function is where the frame is rendered and stored in some camera local space
virtual void PutPix(void)
This function is where the frame is moved from camera local space to space external to the camera
void Draw(void)
This function draws the camera object in the CAVE scene
void CallDraw(void)
This function calls the user-specified drawing function
void FlipFrame(unsigned char *, int)
This function flips the frame since glReadPixels returns it upside down

Inherited from SharedObject:


Documentation

This is the CAVEcam base class from which all CAVEcam objects are derived. The CAVEcam is an object that captures a frame of the scene from the location and direction specified by the user. The CAVEcam must render the scene from this perspective. The gluLookAt() function call is is used to accomplish this. When using the CAVEcam an application actually renders one extra frame per rendering cycle.
Methods

CAVEcam(float ex = 0.0, float ey = 5.0, float ez = 0.0, float cx = 0.0, float cy = 5.0, float cz = -5.0, float ux = 0.0, float uy = 1.0, float uz = 0.0)
The default constructor takes nine arguments, the x, y, and z location, the direction vector, and the up vector of the camera.

virtual ~CAVEcam()
The default destructor takes no arguments, and is virtual

void SetDrawFunc(void *df)
This accessor takes a pointer to the users drawing function, this is identical to the CAVEDisplay() function in the CAVE library.

void SetWidth(int _width)
This accessor takes an integer argument to set the width, in pixels, of the frame of video

void SetHeight(int _height)
This accessor takes an integer argument to set the height, in pixels, of the frame of video

void SetDepth(int _depth)
This accessor takes an integer argument to set the depth, in bytes, of the frame of video

void SetColor(float r, float g, float b)
This accessor takes three floating point arguments to set the red, green and blue values of the current color of the camera object

void SetPosition(float x, float y, float z)
This accessor takes three floating point arguments to set the x, y, and z location of the camera

void SetOrientation(float x, float y, float z)
This accessor takes three floating point arguments to set the x, y, and z orientation vector of the camera

void SetUp(float x, float y, float z)
This accessor takes three floating point arguments to set the x, y, and z up vector of the camera

virtual void Init(void)
This function provides a place for any camera specific initialization to occur

virtual void Process(void)
This function is where the frame is rendered and stored in some camera local space

virtual void PutPix(void)
This function is where the frame is moved from camera local space to space external to the camera

void Draw(void)
This function draws the camera object in the CAVE scene

void CallDraw(void)
This function calls the user-specified drawing function

void FlipFrame(unsigned char *, int)
This function flips the frame since glReadPixels returns it upside down

Data

GLfloat _red
Red Value of Camera's Color

GLfloat _green
Green Value of Camera's Color

GLfloat _blue
Blue Value of Camera's Color

GLdouble _eyex
Camera X position

GLdouble _eyey
Camera Y position

GLdouble _eyez
Camera Z position

GLdouble _centerx
Camera X direction

GLdouble _centery
Camera Y direction

GLdouble _centerz
Camera Z direction

GLdouble _upx
Camera X up

GLdouble _upy
Camera Y up

GLdouble _upz
Camera Z up

ImagePool* _imagepool
Ring Buffer of image descriptors

int _lastimage
Index of last image used from Ring Buffer

int _lastserial
Serial number of last image used

int _fb_width
Current image width

int _fb_height
Current image height

int _fb_depth
Current image depth

int _fb_size
Current image size (height * width * depth)

fPtr DrawFunc
Pointer to users drawing function

int _fc
Frame Counter


Direct child classes:
shmCAVEcam
netCAVEcam
fileCAVEcam

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de