|
Public Types |
enum | ThreadingModel { SingleThreaded,
ThreadPerRenderSurface,
ThreadPerCamera
} |
Public Member Functions |
| CameraGroup () |
| CameraGroup (CameraConfig *cfg) |
| CameraGroup (const std::string &configFile) |
CameraConfig * | getCameraConfig () |
const CameraConfig * | getCameraConfig () const |
void | setStackSize (size_t size) |
virtual bool | realize (ThreadingModel thread_model) |
virtual bool | realize () |
bool | isRealized () const |
bool | waitForRealize () |
bool | validForRendering () const |
void | setViewByLookat (float eyex, float eyey, float eyez, float centerx, float centery, float centerz, float upx, float upy, float upz) |
void | setViewByLookat (const Vec3 &eye, const Vec3 ¢er, const Vec3 &up) |
virtual void | setViewByMatrix (const Producer::Matrix &) |
unsigned int | getNumberOfCameras () const |
Camera * | getCamera (int i) |
const Camera * | getCamera (int i) const |
virtual void | frame () |
virtual void | sync () |
void | advance () |
void | setSceneHandler (Camera::SceneHandler *) |
void | setInstrumentationMode (bool flag) |
bool | getInstrumentationMode () const |
const FrameStats & | getFrameStats () const |
void | setStatsHandler (StatsHandler *sh) |
void | setBlockOnVsync (bool block) |
bool | getBlockOnVsync () |
void | setLensPerspective (double hfov, double vfov, double nearClip, double farClip) |
void | setLensFrustum (double left, double right, double bottom, double top, double nearClip, double farClip) |
void | setLensOrtho (double left, double right, double bottom, double top, double nearClip, double farClip) |
bool | convertLensToOrtho (float d) |
bool | convertLensToPerspective (float d) |
Camera::Lens::Projection | getLensProjectionType () |
void | getLensParams (double &left, double &right, double &bottom, double &top, double &nearClip, double &farClip) |
float | getLensHorizontalFov () |
float | getLensVerticalFov () |
void | setLensAutoAspect (bool ar) |
bool | getLensAutoAspect () |
void | setLensAspectRatio (double aspectRatio) |
Protected Member Functions |
virtual | ~CameraGroup () |
void | _initVariables () |
void | _frame () |
void | _frameInstrumented () |
void | _sync () |
void | _syncInstrumented (bool) |
void | _updateStats () |
void | _initLens () |
void | _threadPerCameraFrame () |
void | _singleThreadedFrame () |
Protected Attributes |
ref_ptr< CameraConfig > | _cfg |
Producer::ref_ptr< Camera::Lens > | _lens |
Producer::ref_ptr< StatsHandler > | _statsHandler |
ThreadingModel | _thread_model |
ref_ptr< RefBarrier > | _syncBarrier |
ref_ptr< RefBarrier > | _frameBarrier |
bool | _realized |
size_t | _stack_size |
unsigned int | _frame_count |
unsigned int | _sync_count |
bool | _instrumented |
Timer | _timer |
Timer_t | _initTime |
Timer_t | _startOfFrame |
Timer_t | _startOfUpdate |
Timer_t | _endOfUpdate |
FrameStats | _frameStats |
bool | _block_on_vsync |