72 const float&
Radius()
const {
return radius; }
[AI] Represents an axis-aligned bounding box in 3D space, using minimum and maximum points.
const Vector3 & Min() const
[AI] Const accessor for the minimum corner of the bounding box.
const Vector3 & Max() const
[AI] Const accessor for the maximum corner of the bounding box.
Vector3 & Min()
[AI] Non-const accessor for the minimum corner of the bounding box.
Vector3 & Max()
[AI] Non-const accessor for the maximum corner of the bounding box.
[AI] Represents a bounding sphere in 3D space with center and radius.
float & Radius()
[AI] Non-const accessor for the sphere radius.
const float & Radius() const
[AI] Const accessor for the sphere radius.
Vector3 & Center()
[AI] Non-const accessor for the center of the sphere.
const Vector3 & Center() const
[AI] Const accessor for the center of the sphere.
[AI] Abstract base class for an ordered list of LODObject pointers, where each entry represents an in...
size_t Size() const
[AI] Returns the current number of LODObject pointers contained.
[AI] Abstract base class for a Level-of-Detail (LOD) variant of a geometric object.
virtual double AveragePolyArea() const =0
[AI] Returns the average polygon area for this LOD.
virtual float VTable0x10()=0
[AI] Unknown method related to the LOD.
virtual int NVerts() const =0
[AI] Returns the number of vertices for this LOD.
virtual int NumPolys() const =0
[AI] Returns the number of polygons for this LOD.
[AI] Represents a 3D point with floating-point precision, inheriting from Vector3.
[AI] Abstract base class for Real-time Object Instances (ROI) in the world.
CompoundObject * comp
[AI] List of sub-ROIs composing this ROI (compound object), or NULL. [AI]
unsigned char GetVisibility()
[AI] Returns the visibility flag; true if visible, false if hidden.
virtual const BoundingBox & GetWorldBoundingBox() const =0
[AI] Returns the world-space bounding box of the object.
ROI()
[AI] Constructs an empty ROI, initially visible with no LOD or compound object assigned.
void SetVisibility(unsigned char p_visible)
[AI] Sets the visibility flag to the provided value.
const CompoundObject * GetComp() const
[AI] Returns the pointer to the compound object structure, or NULL if not present.
virtual const float * GetWorldVelocity() const =0
[AI] Returns the object's world-space velocity as a pointer to float values.
int GetLODCount() const
[AI] Returns the number of available LODs for this ROI.
const LODListBase * GetLODs() const
[AI] Returns the LOD list associated with this ROI, or NULL if not set.
virtual const BoundingSphere & GetWorldBoundingSphere() const =0
[AI] Returns the world-space bounding sphere of the object.
virtual float IntrinsicImportance() const =0
[AI] Returns the intrinsic importance (used for LOD selection, culling etc).
LODListBase * lods
[AI] Pointer to list of LODObject instances, or NULL if not set. [AI]
const LODObject * GetLOD(int i) const
[AI] Returns the LODObject at the specified index.
unsigned char m_visible
[AI] Visibility flag: nonzero = visible. [AI]
virtual ~ROI()
[AI] Destroys the ROI and asserts that 'comp' and 'lods' are managed/deleted by derived types.
[AI] 3D vector class, providing vector and cross-product operations in 3D space.
vector< const ROI * > ROIList
[AI] Typedef for a list of ROI pointers.
list< ROI * > CompoundObject
vector< int > IntList
[AI] Typedef for a list of integer indices, e.g.
[AI] STL compatibility layer header to provide consistent STL (Standard Template Library) types and a...