SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLKeyframeCamera.h
Go to the documentation of this file.
1 /**
2  * \file SLKeyframeCamera.h
3  * \date Dezember 2017
4  * \remarks Please use clangformat to format the code. See more code style on
5  * https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
6  * \authors Marcus Hudritsch, Michael Goettlicher
7  * \copyright http://opensource.org/licenses/GPL-3.0
8 */
9 
10 #ifndef SLKEYFRAMECAMERA_H
11 #define SLKEYFRAMECAMERA_H
12 
13 #include <SLCamera.h>
14 #include <SLKeyframeCamera.h>
15 
16 //-----------------------------------------------------------------------------
17 /*! Special camera for ORB-SLAM keyframes that allows the video image display
18 on the near clippling plane.
19 */
20 class SLKeyframeCamera : public SLCamera
21 {
22 public:
23  explicit SLKeyframeCamera(SLstring name = "Camera");
24  virtual void drawMesh(SLSceneView* sv);
25  void setDrawColor(SLCol4f color = SLCol4f::WHITE * 0.7f);
26 
27  // Getters
30 
31 private:
32  bool _allowAsActiveCam = false;
33  bool _renderBackground = false;
34 
36 };
37 //-----------------------------------------------------------------------------
38 #endif // SLKEYFRAMECAMERA_H
string SLstring
Definition: SL.h:158
Active or visible camera node class.
Definition: SLCamera.h:54
SLKeyframeCamera(SLstring name="Camera")
virtual void drawMesh(SLSceneView *sv)
SLKeyframeCamera::drawMeshes draws the cameras frustum lines.
void setDrawColor(SLCol4f color=SLCol4f::WHITE *0.7f)
SLKeyframeCamera::setDrawColor specify which color should be use.
const SLstring & name() const
Definition: SLObject.h:38
SceneView class represents a dynamic real time 3D view onto the scene.
Definition: SLSceneView.h:69
static SLVec4 WHITE
Definition: SLVec4.h:215