Computational Embodied Neuroscience Simulator  1.1
3D simulation library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Public Attributes | List of all members
cens::CENSGraphics::CENSCamera Struct Reference

parameters of a camera More...

#include <cens_graphics.h>

Collaboration diagram for cens::CENSGraphics::CENSCamera:
Collaboration graph
[legend]

Public Member Functions

 CENSCamera ()
 
 CENSCamera (const CENSCamera &copy)
 
 ~CENSCamera ()
 
void initPixels ()
 

Public Attributes

int m_cHandle
 
int m_cScreenWidth
 
int m_cScreenHeight
 
int m_cScreenXGap
 
int m_cScreenYGap
 
std::string m_cScreenTitle
 
float m_cFoV
 
float m_cRatio
 
float m_cNear
 
float m_cFar
 
float m_cAngle
 
float m_cDistance
 
float m_cHeight
 
Vector3f m_cOrigin
 
Vector3f m_cTarget
 
Vector3f m_cUp
 
float m_cMov
 
float m_cGap
 
unsigned char * m_cPixels
 
CENSPixelMap m_cPixmap
 

Detailed Description

parameters of a camera

Definition at line 139 of file cens_graphics.h.

Constructor & Destructor Documentation

cens::CENSGraphics::CENSCamera::CENSCamera ( )
inline

Definition at line 142 of file cens_graphics.h.

cens::CENSGraphics::CENSCamera::CENSCamera ( const CENSCamera copy)
inline
cens::CENSGraphics::CENSCamera::~CENSCamera ( )
inline

Definition at line 166 of file cens_graphics.h.

Member Function Documentation

void cens::CENSGraphics::CENSCamera::initPixels ( )
inline

Initialize the pixel storage array, an array of unsigned charsin which every pixel is represented by three subsequents unsigned chars

Definition at line 178 of file cens_graphics.h.

Referenced by cens::CENSGraphics::initCamera().

Member Data Documentation

float cens::CENSGraphics::CENSCamera::m_cAngle

angle of view

Definition at line 225 of file cens_graphics.h.

Referenced by CENSCamera(), and cens::CENSGraphics::updateCamera().

float cens::CENSGraphics::CENSCamera::m_cDistance
float cens::CENSGraphics::CENSCamera::m_cFar

distance of the far clipping plane

Definition at line 223 of file cens_graphics.h.

Referenced by cens::CENSEngine::attachCamera(), CENSCamera(), and cens::CENSGraphics::initCamera().

float cens::CENSGraphics::CENSCamera::m_cFoV

field of view

Definition at line 217 of file cens_graphics.h.

Referenced by cens::CENSEngine::attachCamera(), CENSCamera(), and cens::CENSGraphics::initCamera().

float cens::CENSGraphics::CENSCamera::m_cGap

camera up/down movement in response to a single keyboard command

Definition at line 247 of file cens_graphics.h.

Referenced by CENSCamera().

int cens::CENSGraphics::CENSCamera::m_cHandle
float cens::CENSGraphics::CENSCamera::m_cHeight

height relative to the target

Definition at line 229 of file cens_graphics.h.

Referenced by cens::CENSEngine::attachCamera(), CENSCamera(), and cens::CENSGraphics::updateCamera().

float cens::CENSGraphics::CENSCamera::m_cMov

camera rotation in response to a single keyboard command

Definition at line 241 of file cens_graphics.h.

Referenced by CENSCamera().

float cens::CENSGraphics::CENSCamera::m_cNear

distance of the near clipping plane

Definition at line 221 of file cens_graphics.h.

Referenced by cens::CENSEngine::attachCamera(), CENSCamera(), and cens::CENSGraphics::initCamera().

Vector3f cens::CENSGraphics::CENSCamera::m_cOrigin
unsigned char* cens::CENSGraphics::CENSCamera::m_cPixels

pixel storage array

Definition at line 249 of file cens_graphics.h.

CENSPixelMap cens::CENSGraphics::CENSCamera::m_cPixmap

pixel storage array interface for 2D-reading of the pixel space

Definition at line 256 of file cens_graphics.h.

Referenced by cens::CENSGraphics::getCameraPixelMap(), and cens::CENSGraphics::saveCameraPixelMap().

float cens::CENSGraphics::CENSCamera::m_cRatio

ratio of the camera field of view

Definition at line 219 of file cens_graphics.h.

Referenced by CENSCamera(), and cens::CENSGraphics::initCamera().

int cens::CENSGraphics::CENSCamera::m_cScreenHeight
std::string cens::CENSGraphics::CENSCamera::m_cScreenTitle

title of the camera

Definition at line 215 of file cens_graphics.h.

Referenced by cens::CENSEngine::attachCamera(), CENSCamera(), and cens::CENSGraphics::initCamera().

int cens::CENSGraphics::CENSCamera::m_cScreenWidth
int cens::CENSGraphics::CENSCamera::m_cScreenXGap

horizontal position of the camera from the left of the screen

Definition at line 205 of file cens_graphics.h.

Referenced by cens::CENSEngine::attachCamera(), CENSCamera(), and cens::CENSGraphics::initCamera().

int cens::CENSGraphics::CENSCamera::m_cScreenYGap

vertical position of the camera from the top of the screen

Definition at line 211 of file cens_graphics.h.

Referenced by cens::CENSEngine::attachCamera(), CENSCamera(), and cens::CENSGraphics::initCamera().

Vector3f cens::CENSGraphics::CENSCamera::m_cTarget
Vector3f cens::CENSGraphics::CENSCamera::m_cUp

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