|
Public Types |
| typedef double | TimeStamp |
| enum | StatsID {
BeginCameraFrame,
BeginCull,
BeginPreCullCallbacks,
EndPreCullCallbacks,
BeginInnerCull,
EndInnerCull,
BeginPostCullCallbacks,
EndPostCullCallbacks,
EndCull,
Vsync,
BeginDraw,
BeginClear,
EndClear,
BeginPreDrawCallbacks,
EndPreDrawCallbacks,
BeginInnerDraw,
EndInnerDraw,
BeginPostDrawCallbacks,
EndPostDrawCallbacks,
BeginPostSwapCallbacks,
EndPostSwapCallbacks,
EndDraw,
EndCameraFrame,
LastStatsID
} |
Public Member Functions |
| | Camera (void) |
| void | enable () |
| void | disable () |
| bool | isEnabled () |
| void | frame (bool doSwap=true) |
| void | setSceneHandler (SceneHandler *sh) |
| SceneHandler * | getSceneHandler () |
| const SceneHandler * | getSceneHandler () const |
| void | setRenderSurface (RenderSurface *rs) |
| RenderSurface * | getRenderSurface () |
| const RenderSurface * | getRenderSurface () const |
| void | setRenderSurfaceWindowRectangle (int x, int y, unsigned int width, unsigned int height, bool resize=true) |
| void | setLens (Lens *lens) |
| Lens * | getLens () |
| const Lens * | getLens () const |
| void | setLensPerspective (double hfov, double vfov, double nearClip, double farClip, double xshear=0, double yshear=0) |
| void | setLensFrustum (double left, double right, double bottom, double top, double nearClip, double farClip, double xshear=0, double yshear=0) |
| void | setLensOrtho (double left, double right, double bottom, double top, double nearClip, double farClip, double xshear=0, double yshear=0) |
| void | setLensShear (double xshear, double yshear) |
| void | getLensShear (double &xshear, double &yshear) |
| bool | convertLensToOrtho (float d) |
| bool | convertLensToPerspective (float d) |
| Lens::Projection | getLensProjectionType () |
| void | applyLens () |
| void | getLensParams (double &left, double &right, double &bottom, double &top, double &nearClip, double &farClip, double &xshear, double &yshear) |
| float | getLensHorizontalFov () |
| float | getLensVerticalFov () |
| void | getLensMatrix (Matrix::value_type matrix[16]) |
| void | setLensAutoAspect (bool ar) |
| bool | getLensAutoAspect () |
| void | setLensAspectRatio (double aspectRatio) |
| double | getLensAspectRatio () |
| void | setProjectionRectangle (const float left, const float right, const float bottom, const float top) |
| void | getProjectionRectangle (float &left, float &right, float &bottom, float &top) const |
| void | setProjectionRectangle (int x, int y, unsigned int width, unsigned int height) |
| void | getProjectionRectangle (int &x, int &y, unsigned int &width, unsigned int &height) const |
| Matrix::value_type * | getProjectionMatrix () |
| 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) |
| void | setViewByMatrix (const Matrix &mat) |
| void | setFocalDistance (double focal_distance) |
| const Matrix::value_type * | getViewMatrix (void) const |
| const Matrix::value_type * | getPositionAndAttitudeMatrix (void) const |
| void | applyView () |
| void | setOffset (const Matrix::value_type matrix[16], Matrix::value_type _xshear=0.0, Matrix::value_type _yshear=0.0) |
| void | setOffset (double _xshear, double _yshear) |
| void | setClearColor (float red, float green, float blue, float alpha) |
| void | getClearColor (float &red, float &green, float &blue, float &alpha) |
| void | clear (void) |
| void | advance (void) |
| void | sync (int n=1) |
| void | addPreCullCallback (Callback *cb) |
| void | addPostCullCallback (Callback *cb) |
| void | addPreDrawCallback (Callback *cb) |
| void | addPostDrawCallback (Callback *cb) |
| void | addPostSwapCallback (Callback *cb) |
| virtual int | cancel () |
| void | run (void) |
| void | setSyncBarrier (Producer::RefBarrier *b) |
| void | setFrameBarrier (Producer::RefBarrier *b) |
| void | setInitTime (Timer_t initTime) |
| const FrameTimeStampSet & | getFrameStats () |
| void | setInstrumentationMode (bool mode) |
| bool | getInstrumentationMode () const |
| void | setBlockOnVsync (bool block) |
| bool | getBlockOnVsync () const |
| void | setIndex (unsigned int index) |
| unsigned int | getIndex () const |
| void | setShareLens (bool flag) |
| bool | getShareLens () |
| void | setShareView (bool flag) |
| bool | getShareView () |
| double | getTimeOfLastVSync () |
| double | getTimeOfNextVSync () |
Protected Member Functions |
| virtual | ~Camera (void) |
Protected Attributes |
| Producer::ref_ptr< Lens > | _lens |
| Producer::ref_ptr< Producer::RenderSurface > | _rs |
| Producer::ref_ptr< SceneHandler > | _sh |
| unsigned int | _index |
Friends |
| class | Producer::CameraGroup |
Classes |
| class | Callback |
| | Pure virtual class for specifying Camera callbacks. More...
|
| class | FrameTimeStampSet |
| class | Lens |
| | A Lens provides control over the PROJECTION matrix. More...
|
| struct | offset |
| class | SceneHandler |