]> git.cworth.org Git - vogl/blob - src/vogleditor/vogleditor_statetreelightitem.h
Initial vogl checkin
[vogl] / src / vogleditor / vogleditor_statetreelightitem.h
1 #ifndef VOGLEDITOR_STATETREELIGHTITEM_H
2 #define VOGLEDITOR_STATETREELIGHTITEM_H
3
4 #include "vogleditor_statetreeitem.h"
5
6 class vogleditor_stateTreeLightItem: public vogleditor_stateTreeItem
7 {
8 public:
9     vogleditor_stateTreeLightItem(QString name, unsigned int lightIndex, vogleditor_stateTreeItem* parent, const vogl_state_vector* pState);
10     virtual ~vogleditor_stateTreeLightItem()
11     {
12         m_pState = NULL;
13         m_pDiffBaseState = NULL;
14     }
15
16     void set_diff_base_state(const vogl_state_vector* pBaseState);
17
18     unsigned int get_light_index() const { return m_lightIndex; }
19
20 private:
21     unsigned int m_lightIndex;
22     const vogl_state_vector* m_pState;
23     const vogl_state_vector* m_pDiffBaseState;
24     vogl::vector<vogleditor_stateTreeStateVecDiffableItem*> m_diffableItems;
25 };
26
27 #endif // VOGLEDITOR_STATETREELIGHTITEM_H