summaryrefslogtreecommitdiff
path: root/common/light.h
diff options
context:
space:
mode:
authorleo2000-11-24 23:18:51 +0000
committerleo2000-11-24 23:18:51 +0000
commit2a4208f056fb3ce654bc116bdac561ead37159d7 (patch)
tree258561142c2c1c5286f355de64e129eb6f7a374d /common/light.h
parente10749445c0fbea11665a51bdda4912d798619b1 (diff)
Added Select function
git-svn-id: http://svn.leocad.org/trunk@166 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/light.h')
-rw-r--r--common/light.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/light.h b/common/light.h
index f0619c9..3cb1902 100644
--- a/common/light.h
+++ b/common/light.h
@@ -31,6 +31,11 @@ class LightTarget : public Object
public:
void MinIntersectDist (LC_CLICKLINE* pLine);
+ 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 light target
+ }
Light* GetParent () const
{ return m_pParent; }
@@ -49,9 +54,11 @@ class Light : public Object
Light (float px, float py, float pz, float tx, float ty, float tz);
virtual ~Light ();
+ void Select (bool bSelecting, bool bFocus, bool bMultiple);
+ void SelectTarget (bool bSelecting, bool bFocus, bool bMultiple);
public:
Light* m_pNext;
@@ -78,6 +85,9 @@ class Light : public Object
{ return m_strName; }
void GetTargetPos (float *pos) const
{ memcpy (pos, m_fTarget, sizeof (float[3])); }
+ LightTarget* GetTarget () const
+ { return m_pTarget; }
+
void Render (float fLineWidth);
void MinIntersectDist (LC_CLICKLINE* Line);