mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-21 02:39:17 +00:00
Initial commit of current work on Prime World Editor
This commit is contained in:
24
UI/CNodeSelection.h
Normal file
24
UI/CNodeSelection.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user