Loading...
Searching...
No Matches
ITriangleSelector.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_TRIANGLE_SELECTOR_H_INCLUDED__
#define __I_TRIANGLE_SELECTOR_H_INCLUDED__
#include "IReferenceCounted.h"
#include "triangle3d.h"
#include "aabbox3d.h"
#include "matrix4.h"
#include "line3d.h"
namespace irr
{
namespace scene
{
class ISceneNode;
class ITriangleSelector : public virtual IReferenceCounted
{
public:
virtual s32 getTriangleCount() const = 0;
virtual void getTriangles(core::triangle3df* triangles, s32 arraySize,
s32& outTriangleCount, const core::matrix4* transform=0) const = 0;
virtual void getTriangles(core::triangle3df* triangles, s32 arraySize,
s32& outTriangleCount, const core::aabbox3d<f32>& box,
const core::matrix4* transform=0) const = 0;
virtual void getTriangles(core::triangle3df* triangles, s32 arraySize,
s32& outTriangleCount, const core::line3d<f32>& line,
const core::matrix4* transform=0) const = 0;
virtual ISceneNode* getSceneNodeForTriangle(u32 triangleIndex) const = 0;
virtual u32 getSelectorCount() const = 0;
virtual ITriangleSelector* getSelector(u32 index) = 0;
virtual const ITriangleSelector* getSelector(u32 index) const = 0;
};
} // end namespace scene
} // end namespace irr
#endif
IReferenceCounted.h
aabbox3d.h
irr::IReferenceCounted::IReferenceCounted
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:46
irr::core::aabbox3d
Axis aligned bounding box in 3d dimensional space.
Definition aabbox3d.h:22
irr::core::line3d
3D line between two points with intersection methods.
Definition line3d.h:19
irr::scene::ISceneNode
Scene node interface.
Definition ISceneNode.h:41
irr::scene::ITriangleSelector
Interface to return triangles with specific properties.
Definition ITriangleSelector.h:29
irr::scene::ITriangleSelector::getTriangleCount
virtual s32 getTriangleCount() const =0
Get amount of all available triangles in this selector.
irr::scene::ITriangleSelector::getTriangles
virtual void getTriangles(core::triangle3df *triangles, s32 arraySize, s32 &outTriangleCount, const core::line3d< f32 > &line, const core::matrix4 *transform=0) const =0
Gets the triangles for one associated node which have or may have contact with a 3d line.
irr::scene::ITriangleSelector::getTriangles
virtual void getTriangles(core::triangle3df *triangles, s32 arraySize, s32 &outTriangleCount, const core::matrix4 *transform=0) const =0
Gets the triangles for one associated node.
irr::scene::ITriangleSelector::getSelector
virtual const ITriangleSelector * getSelector(u32 index) const =0
Get TriangleSelector based on index based on getSelectorCount.
irr::scene::ITriangleSelector::getTriangles
virtual void getTriangles(core::triangle3df *triangles, s32 arraySize, s32 &outTriangleCount, const core::aabbox3d< f32 > &box, const core::matrix4 *transform=0) const =0
Gets the triangles for one associated node which may lie within a specific bounding box.
irr::scene::ITriangleSelector::getSceneNodeForTriangle
virtual ISceneNode * getSceneNodeForTriangle(u32 triangleIndex) const =0
Get scene node associated with a given triangle.
irr::scene::ITriangleSelector::getSelectorCount
virtual u32 getSelectorCount() const =0
Get number of TriangleSelectors that are part of this one.
irr::scene::ITriangleSelector::getSelector
virtual ITriangleSelector * getSelector(u32 index)=0
Get TriangleSelector based on index based on getSelectorCount.
line3d.h
matrix4.h
irr::core::triangle3df
triangle3d< f32 > triangle3df
Typedef for a f32 3d triangle.
Definition triangle3d.h:270
irr::core::matrix4
CMatrix4< f32 > matrix4
Typedef for f32 matrix.
Definition matrix4.h:2235
irr::scene
All scene management can be found in this namespace: Mesh loading, special scene nodes like octrees a...
Definition CDynamicMeshBuffer.h:16
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
triangle3d.h
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0