Files

31 lines
457 B
C++
Raw Permalink Normal View History

2025-05-13 02:46:21 +03:00
#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__