summaryrefslogtreecommitdiff
path: root/common/camera.h
diff options
context:
space:
mode:
authorleo2006-02-26 22:06:29 +0000
committerleo2006-02-26 22:06:29 +0000
commitf4e2b1c72b90a0e5b85dd2e190351acdadcc5baa (patch)
treee3b6086d09054ed5569ca22df4e8729f6ee58107 /common/camera.h
parent4e11b17e7365ba4bb8bedddc96576562cd635d75 (diff)
Show selection on the status bar.
git-svn-id: http://svn.leocad.org/trunk@497 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/camera.h')
-rw-r--r--common/camera.h31
1 files changed, 18 insertions, 13 deletions
diff --git a/common/camera.h b/common/camera.h
index c129415..0e3cb2b 100644
--- a/common/camera.h
+++ b/common/camera.h
@@ -38,24 +38,26 @@ public:
CameraTarget (Camera *pParent);
virtual ~CameraTarget ();
- public:
- void MinIntersectDist (LC_CLICKLINE* pLine);
+public:
+ void MinIntersectDist (LC_CLICKLINE* pLine);
bool IntersectsVolume(const Vector4* Planes, int NumPlanes)
{ return false; }
- void Select (bool bSelecting, bool bFocus, bool bMultiple);
- void Move (unsigned short nTime, bool bAnimation, bool bAddKey, float x, float y, float z)
- {
- // FIXME: move the position handling to the camera target
- }
+ void Select (bool bSelecting, bool bFocus, bool bMultiple);
+ void Move (unsigned short nTime, bool bAnimation, bool bAddKey, float x, float y, float z)
+ {
+ // FIXME: move the position handling to the camera target
+ }
- Camera* GetParent () const
- { return m_pParent; }
+ const char* GetName() const;
- protected:
- Camera* m_pParent;
+ Camera* GetParent () const
+ { return m_pParent; }
- friend class Camera; // FIXME: needed for BoundingBoxCalculate ()
- // remove and use UpdatePosition instead
+protected:
+ Camera* m_pParent;
+
+ friend class Camera; // FIXME: needed for BoundingBoxCalculate ()
+ // remove and use UpdatePosition instead
};
class Camera : public Object
@@ -75,6 +77,9 @@ public:
inline Vector3 GetUpVector() const
{ return Vector3(m_fUp[0], m_fUp[1], m_fUp[2]); };
+ const char* GetName() const
+ { return m_strName; };
+
CameraTarget* GetTarget () const
{ return m_pTarget; }