class CAVcam : public CAVSharedObject

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
GLdouble _rightx
Camera X right
GLdouble _righty
Camera Y right
GLdouble _rightz
Camera Z right
GLfloat _invViewMat [16]
Inverse Viewing Matrix -- This is used to get the world coordinate position and orientation of the object that is drawn to represent the camera. This is generated by taking the inverse of the viewing matrix that results from gluLookAt().
CAVImagePool* _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
fPtr UpdateFunc
Pointer to the users camera location function
int _fc
Frame Counter
int _captureFrames
Do we capture frames or not?
int _modFrames
The denominator of the fractional part of the video stream to capture
Methods
CAVcam (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
virtual ~CAVcam ()
The default destructor
void SetDrawFunc (void *df)
Accessor to set user drawing function
void SetUpdateFunc (void *df)
Accessor to set camera update function
void SetWidth (int _width)
void SetHeight (int _height)
void SetDepth (int _depth)
void SetColor (float r, float g, float b)
Accessor to set color of camera drawn, values are in the range [0.0, 1.0].
void SetPosition (float x, float y, float z)
Accessor to set the camera position in world coordinates.
void SetFront (float x, float y, float z)
Accessor sets vector specifying which direction is the front of the camera
void SetUp (float x, float y, float z)
Accessor sets vector specifying which direction is up for the camera
void SetFrameRate (int modFrames)
Accessor to set how often the camera should 'capture' frames from the CAVE scene. The argument is the denominator of the fractional part of the frames to capture, e.g. if N = 4, then the camera will capture 1/4 of the frames.
void TurnOnCapture (void)
void TurnOffCapture (void)
void CAVcam::Draw3DGrid (void)
Utility function to draw a 3d grid in CAVE space (-5, 0, -5) -> (+5, +10, +5)
void Update (void)
Update camera (call the UpdateFunction)
void Draw (void)
Draw the camera
virtual void Init (void)
Initialize the CAVcam
virtual void Process (void)
Render the frame
virtual void PutPix (void)
Store the Pixels
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 CAVSharedObject:


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 CAVE scene from the location and direction specified by the user.

In order for the CAVcam to capture a frame of video it must render the scene from the CAVcam perspective. The CAVcam uses the gluLookAt() function call (p. 323 OpenGL Reference Manual) is is used to accomplish this.

Methods

CAVcam(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

virtual ~CAVcam()
The default destructor

void SetDrawFunc(void *df)
Accessor to set user drawing function

void SetUpdateFunc(void *df)
Accessor to set camera update function

void SetWidth(int _width)

void SetHeight(int _height)

void SetDepth(int _depth)

void SetColor(float r, float g, float b)
Accessor to set color of camera drawn, values are in the range [0.0, 1.0].

void SetPosition(float x, float y, float z)
Accessor to set the camera position in world coordinates.

void SetFront(float x, float y, float z)
Accessor sets vector specifying which direction is the front of the camera

void SetUp(float x, float y, float z)
Accessor sets vector specifying which direction is up for the camera

void SetFrameRate(int modFrames)
Accessor to set how often the camera should 'capture' frames from the CAVE scene. The argument is the denominator of the fractional part of the frames to capture, e.g. if N = 4, then the camera will capture 1/4 of the frames.

void TurnOnCapture(void)

void TurnOffCapture(void)

void CAVcam::Draw3DGrid(void)
Utility function to draw a 3d grid in CAVE space (-5, 0, -5) -> (+5, +10, +5)

void Update(void)
Update camera (call the UpdateFunction)

void Draw(void)
Draw the camera

virtual void Init(void)
Initialize the CAVcam

virtual void Process(void)
Render the frame

virtual void PutPix(void)
Store the Pixels

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

GLdouble _rightx
Camera X right

GLdouble _righty
Camera Y right

GLdouble _rightz
Camera Z right

GLfloat _invViewMat[16]
Inverse Viewing Matrix -- This is used to get the world coordinate position and orientation of the object that is drawn to represent the camera. This is generated by taking the inverse of the viewing matrix that results from gluLookAt().

CAVImagePool* _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

fPtr UpdateFunc
Pointer to the users camera location function

int _fc
Frame Counter

int _captureFrames
Do we capture frames or not?

int _modFrames
The denominator of the fractional part of the video stream to capture


Direct child classes:
shmCAVcam
netCAVcam
fileCAVcam

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