31 lines
457 B
C++
31 lines
457 B
C++
#ifndef INodeQuery_h__
|
|
#define INodeQuery_h__
|
|
|
|
#include "queries/IQuery.h"
|
|
#include "IGraphicsNode.h"
|
|
#include <vector>
|
|
|
|
namespace LifeGraphics
|
|
{
|
|
class INodeQuery : public IQuery
|
|
{
|
|
public:
|
|
void Flush()
|
|
{
|
|
nodes.clear();
|
|
}
|
|
void AddNode(IGraphicsNode* node)
|
|
{
|
|
nodes.push_back(node);
|
|
}
|
|
int Size()
|
|
{
|
|
return nodes.size();
|
|
}
|
|
protected:
|
|
typedef std::vector<IGraphicsNode*> NodeList;
|
|
NodeList nodes;
|
|
};
|
|
}
|
|
|
|
#endif // INodeQuery_h__
|