#ifndef __C_META_TRIANGLE_SELECTOR_H_INCLUDED__
#define __C_META_TRIANGLE_SELECTOR_H_INCLUDED__
#include "IMetaTriangleSelector.h"
#include "irrArray.h"
namespace irr
{
namespace scene
{
class CMetaTriangleSelector : public IMetaTriangleSelector
{
public:
CMetaTriangleSelector();
virtual ~CMetaTriangleSelector();
virtual s32 getTriangleCount() const;
virtual void getTriangles(core::triangle3df* triangles, s32 arraySize,
s32& outTriangleCount, const core::matrix4* transform=0) const;
virtual void getTriangles(core::triangle3df* triangles, s32 arraySize,
s32& outTriangleCount, const core::aabbox3d<f32>& box,
const core::matrix4* transform=0) const;
virtual void getTriangles(core::triangle3df* triangles, s32 arraySize,
s32& outTriangleCount, const core::line3d<f32>& line,
const core::matrix4* transform=0) const;
virtual void addTriangleSelector(ITriangleSelector* toAdd);
virtual bool removeTriangleSelector(ITriangleSelector* toRemove);
virtual void removeAllTriangleSelectors();
virtual ISceneNode* getSceneNodeForTriangle(u32 triangleIndex) const;
private:
core::array<ITriangleSelector*> TriangleSelectors;
};
}
}
#endif