Public Member Functions | Friends

sp::scene::Sector Class Reference
[Scene Management]

#include <spSceneSector.hpp>

List of all members.

Public Member Functions

 Sector ()
 ~Sector ()
bool addPortal (Portal *PortalObj)
bool removePortal (Portal *PortalObj)
void clearPortals ()
void addRenderNode (RenderNode *NodeObj)
void removeRenderNode (RenderNode *NodeObj)
void clearRenderNodes ()
f32 getPointDistance (const dim::vector3df &Point) const
 Returns the distance between the given point and this sector's bounding box.
bool isPointInside (const dim::vector3df &Point) const
 Returns true if the given point is inside this sector's convex hull.
bool isBoundingVolumeInsideInv (const BoundingVolume &BoundVolume, const dim::matrix4f &InvMatrix) const
bool isPortalNearby (const Portal *PortalObj, f32 Tolerance=0.1f) const
void setTransformation (const dim::matrix4f &Transform)
dim::matrix4f getTransformation () const

Friends

class SceneGraphPortalBased

Detailed Description

This is the sector class for portal-based scene graphs.

Since:
Version 3.2

Constructor & Destructor Documentation

sp::scene::Sector::Sector (  ) 
sp::scene::Sector::~Sector (  ) 

Member Function Documentation

bool sp::scene::Sector::addPortal ( Portal PortalObj  ) 
void sp::scene::Sector::addRenderNode ( RenderNode NodeObj  ) 
void sp::scene::Sector::clearPortals (  ) 
void sp::scene::Sector::clearRenderNodes (  ) 
f32 sp::scene::Sector::getPointDistance ( const dim::vector3df Point  )  const

Returns the distance between the given point and this sector's bounding box.

dim::matrix4f sp::scene::Sector::getTransformation (  )  const
bool sp::scene::Sector::isBoundingVolumeInsideInv ( const BoundingVolume BoundVolume,
const dim::matrix4f InvMatrix 
) const
bool sp::scene::Sector::isPointInside ( const dim::vector3df Point  )  const

Returns true if the given point is inside this sector's convex hull.

bool sp::scene::Sector::isPortalNearby ( const Portal PortalObj,
f32  Tolerance = 0.1f 
) const

Check is if the portal is nearby the sector.

Parameters:
[in] PortalObj Pointer to the portal object which is to be tested against this sector.
[in] Tolerance Specifies the distance tolerance value. By default 0.1.
Returns:
Ture if the given portal is nearby this sector or inside the sector.
bool sp::scene::Sector::removePortal ( Portal PortalObj  ) 
void sp::scene::Sector::removeRenderNode ( RenderNode NodeObj  ) 
void sp::scene::Sector::setTransformation ( const dim::matrix4f Transform  ) 

Friends And Related Function Documentation

friend class SceneGraphPortalBased [friend]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines