You.i Engine
YiOrthographicCameraSceneNode.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_ORTHOGRAPHIC_CAMERA_SCENE_NODE_H_
3 #define _YI_ORTHOGRAPHIC_CAMERA_SCENE_NODE_H_
4 
6 
28 {
29 public:
32 
41  void SetBounds(const YI_FLOAT_RECT &bounds);
42 
48  const YI_FLOAT_RECT &GetBounds() const;
49 
55  static std::unique_ptr<CYIOrthographicCameraSceneNode> BuildDefaultCamera(const CYIString &name);
56 
60  static void ConfigureOrthographic(CYIOrthographicCameraSceneNode *pCamera, float regionOfInterestDistance, float regionOfInterestWidth, float regionOfInterestHeight);
61 
62 protected:
63  virtual glm::mat4 CalculateProjectionMatrix() const override;
64 
65  virtual CYIString GetDumpTreeString() const override;
66 
67 private:
68  YI_FLOAT_RECT m_bounds;
69 
71 };
72 
75 #endif // _YI_ORTHOGRAPHIC_CAMERA_SCENE_NODE_H_
static void ConfigureOrthographic(CYIOrthographicCameraSceneNode *pCamera, float regionOfInterestDistance, float regionOfInterestWidth, float regionOfInterestHeight)
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
Definition: YiOrthographicCameraSceneNode.h:27
Provides a base for the definition of camera objects.
Definition: YiAbstractCameraSceneNode.h:31
virtual CYIString GetDumpTreeString() const override
virtual glm::mat4 CalculateProjectionMatrix() const override
Definition: YiPredef.h:417
const YI_FLOAT_RECT & GetBounds() const
#define YI_TYPE_BASES(CLASS, BASES...)
Definition: YiRtti.h:257
static std::unique_ptr< CYIOrthographicCameraSceneNode > BuildDefaultCamera(const CYIString &name)
void SetBounds(const YI_FLOAT_RECT &bounds)