OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
#include <OgrePCPlane.h>
Public Member Functions | |
PCPlane () | |
Standard constructor. | |
PCPlane (const Plane &plane) | |
Alternative constructor. | |
PCPlane (const Vector3 &rkNormal, const Vector3 &rkPoint) | |
Alternative constructor. | |
PCPlane (const Vector3 &rkPoint0, const Vector3 &rkPoint1, const Vector3 &rkPoint2) | |
Alternative constructor. | |
~PCPlane () | |
Standard destructor. | |
PortalBase * | getPortal () |
Returns the Portal that was used to create this plane. | |
void | setFromOgrePlane (Plane &ogrePlane) |
Copy from an Ogre Plane. | |
void | setPortal (PortalBase *o) |
Sets the Portal that was used to create this plane. | |
Public Member Functions inherited from Ogre::Plane | |
Plane () | |
Default constructor - sets everything to 0. | |
Plane (const Vector3 &p0, const Vector3 &p1, const Vector3 &p2) | |
Plane (const Vector3 &rkNormal, const Vector3 &rkPoint) | |
Plane (const Vector3 &rkNormal, Real fConstant) | |
Construct a plane through a normal, and a distance to move the plane along the normal. | |
Plane (const Vector4 &v) | |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
Plane (Real a, Real b, Real c, Real _d) | |
Construct a plane using the 4 constants directly. | |
Real | getDistance (const Vector3 &rkPoint) const |
This is a pseudodistance. | |
Side | getSide (const AxisAlignedBox &box) const |
Returns the side where the alignedBox is. | |
Side | getSide (const Vector3 ¢re, const Vector3 &halfSize) const |
Returns which side of the plane that the given box lies on. | |
Side | getSide (const Vector3 &rkPoint) const |
Real | normalise (void) |
Normalises the plane. | |
bool | operator!= (const Plane &rhs) const |
Plane | operator- () const |
Get flipped plane, with same location but reverted orientation. | |
bool | operator== (const Plane &rhs) const |
Comparison operator. | |
Vector3 | projectVector (const Vector3 &v) const |
Project a vector onto the plane. | |
void | redefine (const Vector3 &p0, const Vector3 &p1, const Vector3 &p2) |
Redefine this plane based on 3 points. | |
void | redefine (const Vector3 &rkNormal, const Vector3 &rkPoint) |
Redefine this plane based on a normal and a point. | |
Additional Inherited Members | |
Public Types inherited from Ogre::Plane | |
enum | Side { NO_SIDE , POSITIVE_SIDE , NEGATIVE_SIDE , BOTH_SIDE } |
The "positive side" of the plane is the half space to which the plane normal points. More... | |
Public Attributes inherited from Ogre::Plane | |
Real | d |
Vector3 | normal |
Specialized Plane that is customized for working with the PCZSceneManager. Each Plane has a pointer to the Portal which was used to create it Portal Culling Planes are created from one side of a portal and the origin of a camera.
Ogre::PCPlane::PCPlane | ( | ) |
Standard constructor.
Alternative constructor.
Ogre::PCPlane::PCPlane | ( | const Vector3 & | rkPoint0, |
const Vector3 & | rkPoint1, | ||
const Vector3 & | rkPoint2 | ||
) |
Alternative constructor.
Ogre::PCPlane::~PCPlane | ( | ) |
Standard destructor.
|
inline |
Returns the Portal that was used to create this plane.
|
inline |
Sets the Portal that was used to create this plane.