25 lines
510 B
C
25 lines
510 B
C
|
#ifndef CNODESELECTION_H
|
||
|
#define CNODESELECTION_H
|
||
|
|
||
|
#include <list>
|
||
|
#include <Scene/CSceneNode.h>
|
||
|
|
||
|
class CSceneSelection
|
||
|
{
|
||
|
CSceneManager *mpScene;
|
||
|
std::vector<CSceneNode*> mSelectedNodes;
|
||
|
|
||
|
public:
|
||
|
CSceneSelection(CSceneManager *pScene);
|
||
|
void SelectNode(CSceneNode *pNode);
|
||
|
void DeselectNode(CSceneNode *pNode);
|
||
|
u32 SelectionSize();
|
||
|
CSceneNode* NodeByIndex(u32 Index);
|
||
|
void ClearSelection();
|
||
|
|
||
|
// Operators
|
||
|
CSceneNode* operator[](u32 Index);
|
||
|
};
|
||
|
|
||
|
#endif // CNODESELECTION_H
|