List of all members.
Public Types |
| enum | { num_components = 3
} |
| typedef double | value_type |
| typedef Vec3d | Vec3_type |
| typedef Vec4d | Vec4_type |
Public Member Functions |
| | Plane () |
| | Plane (const Plane &pl) |
| | Plane (value_type a, value_type b, value_type c, value_type d) |
| | Plane (const Vec4f &vec) |
| | Plane (const Vec4d &vec) |
| | Plane (const Vec3_type &norm, value_type d) |
| | Plane (const Vec3_type &v1, const Vec3_type &v2, const Vec3_type &v3) |
| | Plane (const Vec3_type &norm, const Vec3_type &point) |
| Plane & | operator= (const Plane &pl) |
| void | set (const Plane &pl) |
| void | set (value_type a, value_type b, value_type c, value_type d) |
| void | set (const Vec4f &vec) |
| void | set (const Vec4d &vec) |
| void | set (const Vec3_type &norm, double d) |
| void | set (const Vec3_type &v1, const Vec3_type &v2, const Vec3_type &v3) |
| void | set (const Vec3_type &norm, const Vec3_type &point) |
| void | flip () |
| void | makeUnitLength () |
| void | calculateUpperLowerBBCorners () |
| bool | valid () const |
| bool | isNaN () const |
| bool | operator== (const Plane &plane) const |
| bool | operator!= (const Plane &plane) const |
| bool | operator< (const Plane &plane) const |
| value_type * | ptr () |
| const value_type * | ptr () const |
| Vec4_type | asVec4 () const |
| value_type & | operator[] (unsigned int i) |
| value_type | operator[] (unsigned int i) const |
| Vec3_type | getNormal () const |
| float | distance (const osg::Vec3f &v) const |
| double | distance (const osg::Vec3d &v) const |
| float | dotProductNormal (const osg::Vec3f &v) const |
| double | dotProductNormal (const osg::Vec3d &v) const |
| int | intersect (const std::vector< Vec3f > &vertices) const |
| int | intersect (const std::vector< Vec3d > &vertices) const |
| int | intersect (const BoundingSphere &bs) const |
| int | intersect (const BoundingBox &bb) const |
| void | transform (const osg::Matrix &matrix) |
| void | transformProvidingInverse (const osg::Matrix &matrix) |
Protected Attributes |
| value_type | _fv [4] |
| unsigned int | _upperBBCorner |
| unsigned int | _lowerBBCorner |
Detailed Description
A plane class. It can be used to represent an infinite plane.
Member Typedef Documentation
Member Enumeration Documentation
Number of vector components.
- Enumerator:
-
Constructor & Destructor Documentation
| osg::Plane::Plane |
( |
|
) |
[inline] |
| osg::Plane::Plane |
( |
const Plane & |
pl |
) |
[inline] |
| osg::Plane::Plane |
( |
const Vec4f & |
vec |
) |
[inline] |
| osg::Plane::Plane |
( |
const Vec4d & |
vec |
) |
[inline] |
Member Function Documentation
| Vec4_type osg::Plane::asVec4 |
( |
|
) |
const [inline] |
| void osg::Plane::calculateUpperLowerBBCorners |
( |
|
) |
[inline] |
calculate the upper and lower bounding box corners to be used in the intersect(BoundingBox&) method for speeding calculations.
| float osg::Plane::distance |
( |
const osg::Vec3f & |
v |
) |
const [inline] |
| double osg::Plane::distance |
( |
const osg::Vec3d & |
v |
) |
const [inline] |
| float osg::Plane::dotProductNormal |
( |
const osg::Vec3f & |
v |
) |
const [inline] |
| double osg::Plane::dotProductNormal |
( |
const osg::Vec3d & |
v |
) |
const [inline] |
| void osg::Plane::flip |
( |
|
) |
[inline] |
flip/reverse the orientation of the plane.
| Vec3_type osg::Plane::getNormal |
( |
|
) |
const [inline] |
| int osg::Plane::intersect |
( |
const std::vector< Vec3f > & |
vertices |
) |
const [inline] |
intersection test between plane and vertex list return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane.
| int osg::Plane::intersect |
( |
const std::vector< Vec3d > & |
vertices |
) |
const [inline] |
intersection test between plane and vertex list return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane.
| int osg::Plane::intersect |
( |
const BoundingSphere & |
bs |
) |
const [inline] |
| int osg::Plane::intersect |
( |
const BoundingBox & |
bb |
) |
const [inline] |
intersection test between plane and bounding sphere. return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane.
References osg::BoundingBoxImpl< VT >::corner().
| bool osg::Plane::isNaN |
( |
|
) |
const [inline] |
| void osg::Plane::makeUnitLength |
( |
|
) |
[inline] |
| bool osg::Plane::operator!= |
( |
const Plane & |
plane |
) |
const [inline] |
| bool osg::Plane::operator< |
( |
const Plane & |
plane |
) |
const [inline] |
| Plane& osg::Plane::operator= |
( |
const Plane & |
pl |
) |
[inline] |
| bool osg::Plane::operator== |
( |
const Plane & |
plane |
) |
const [inline] |
| value_type& osg::Plane::operator[] |
( |
unsigned int |
i |
) |
[inline] |
| value_type osg::Plane::operator[] |
( |
unsigned int |
i |
) |
const [inline] |
| const value_type* osg::Plane::ptr |
( |
|
) |
const [inline] |
| void osg::Plane::set |
( |
const Vec4f & |
vec |
) |
[inline] |
| void osg::Plane::set |
( |
const Plane & |
pl |
) |
[inline] |
| void osg::Plane::set |
( |
const Vec4d & |
vec |
) |
[inline] |
| void osg::Plane::set |
( |
const Vec3_type & |
norm, |
|
|
double |
d | |
|
) |
| | [inline] |
| void osg::Plane::transform |
( |
const osg::Matrix & |
matrix |
) |
[inline] |
| void osg::Plane::transformProvidingInverse |
( |
const osg::Matrix & |
matrix |
) |
[inline] |
Transform the plane by providing a pre inverted matrix. see transform for details.
| bool osg::Plane::valid |
( |
|
) |
const [inline] |
Member Data Documentation
The documentation for this class was generated from the following file: