class SG_EXPORT osg::Seg: public Referenced

Segment class for representing a line segment

Inheritance:


Public Methods

[more] Seg()
[more] Seg(const Seg& seg)
[more] Seg(const Vec3& s, const Vec3& e)
[more]virtual ~Seg()
[more]Seg& operator = (const Seg& seg)
[more]void set(const Vec3& s, const Vec3& e)
[more]const Vec3& start() const
[more]Vec3& start()
[more]const Vec3& end() const
[more]Vec3& end()
[more]bool intersect(const BoundingBox& bb) const
return true if segment intersects BoundingBox
[more]bool intersect(const BoundingBox& bb, float& r1, float& r2) const
return true if segment intersects BoundingSphere and return the intersection ratio's
[more]bool intersect(const BoundingSphere& bs) const
return true if segment intersects BoundingSphere
[more]bool intersect(const BoundingSphere& bs, float& r1, float& r2) const
return true if segment intersects BoundingSphere and return the intersection ratio's
[more]bool intersect(const Vec3& v1, const Vec3& v2, const Vec3& v3, float& r)
return true if segment intersects triangle and set ratio long segment.
[more]void mult(const Seg& seg, const Matrix& m)
post multiply a segment by matrix
[more]void mult(const Matrix& m, const Seg& seg)
pre multiply a segment by matrix

Protected Fields

[more]Vec3 _s
[more]Vec3 _e

Protected Methods

[more]static bool intersectAndClip(Vec3& s, Vec3& e, const BoundingBox& bb)


Inherited from Referenced:

Public Methods

ovoid ref()
ovoid unref()
oint referenceCount()

Protected Fields

oint _refCount


Documentation

Segment class for representing a line segment
o Seg()

o Seg(const Seg& seg)

o Seg(const Vec3& s, const Vec3& e)

ovirtual ~Seg()

oSeg& operator = (const Seg& seg)

ovoid set(const Vec3& s, const Vec3& e)

oconst Vec3& start() const

oVec3& start()

oconst Vec3& end() const

oVec3& end()

obool intersect(const BoundingBox& bb) const
return true if segment intersects BoundingBox

obool intersect(const BoundingBox& bb, float& r1, float& r2) const
return true if segment intersects BoundingSphere and return the intersection ratio's

obool intersect(const BoundingSphere& bs) const
return true if segment intersects BoundingSphere

obool intersect(const BoundingSphere& bs, float& r1, float& r2) const
return true if segment intersects BoundingSphere and return the intersection ratio's

obool intersect(const Vec3& v1, const Vec3& v2, const Vec3& v3, float& r)
return true if segment intersects triangle and set ratio long segment.

ovoid mult(const Seg& seg, const Matrix& m)
post multiply a segment by matrix

ovoid mult(const Matrix& m, const Seg& seg)
pre multiply a segment by matrix

ostatic bool intersectAndClip(Vec3& s, Vec3& e, const BoundingBox& bb)

oVec3 _s

oVec3 _e


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.