#include <LineSegment.h>
|
| LineSegment () |
|
| LineSegment (const LineSegment &seg) |
|
| LineSegment (const vec_type &s, const vec_type &e) |
|
LineSegment & | operator= (const LineSegment &seg) |
|
void | set (const vec_type &s, const vec_type &e) |
|
vec_type & | start () |
|
const vec_type & | start () const |
|
vec_type & | end () |
|
const vec_type & | end () const |
|
bool | valid () const |
|
bool | intersect (const BoundingBox &bb) const |
|
bool | intersectAndComputeRatios (const BoundingBox &bb, float &ratioFromStartToEnd1, float &ratioFromStartToEnd2) const |
|
bool | intersectAndComputeRatios (const BoundingBox &bb, double &ratioFromStartToEnd1, double &ratioFromStartToEnd2) const |
|
bool | intersect (const BoundingSphere &bs) const |
|
bool | intersectAndComputeRatios (const BoundingSphere &bs, float &ratioFromStartToEnd1, float &ratioFromStartToEnd2) const |
|
bool | intersectAndComputeRatios (const BoundingSphere &bs, double &ratioFromStartToEnd1, double &ratioFromStartToEnd2) const |
|
bool | intersect (const Vec3f &v1, const Vec3f &v2, const Vec3f &v3, float &ratioFromStartToEnd) |
|
bool | intersect (const Vec3d &v1, const Vec3d &v2, const Vec3d &v3, double &ratioFromStartToEnd) |
|
void | mult (const LineSegment &seg, const Matrix &m) |
|
void | mult (const Matrix &m, const LineSegment &seg) |
|
| Referenced () |
|
| Referenced (bool threadSafeRefUnref) |
|
| Referenced (const Referenced &) |
|
Referenced & | operator= (const Referenced &) |
|
virtual void | setThreadSafeRefUnref (bool threadSafe) |
|
bool | getThreadSafeRefUnref () const |
|
OpenThreads::Mutex * | getRefMutex () const |
|
int | ref () const |
|
int | unref () const |
|
int | unref_nodelete () const |
|
int | referenceCount () const |
|
ObserverSet * | getObserverSet () const |
|
ObserverSet * | getOrCreateObserverSet () const |
|
void | addObserver (Observer *observer) const |
|
void | removeObserver (Observer *observer) const |
|
LineSegment class for representing a line segment.
Definition at line 24 of file LineSegment.h.
osg::LineSegment::LineSegment |
( |
| ) |
|
|
inline |
osg::LineSegment::LineSegment |
( |
const LineSegment & |
seg | ) |
|
|
inline |
virtual osg::LineSegment::~LineSegment |
( |
| ) |
|
|
protectedvirtual |
const vec_type& osg::LineSegment::end |
( |
| ) |
const |
|
inline |
bool osg::LineSegment::intersect |
( |
const BoundingBox & |
bb | ) |
const |
return true if segment intersects BoundingBox.
return true if segment intersects BoundingSphere.
bool osg::LineSegment::intersect |
( |
const Vec3f & |
v1, |
|
|
const Vec3f & |
v2, |
|
|
const Vec3f & |
v3, |
|
|
float & |
ratioFromStartToEnd |
|
) |
| |
return true if segment intersects triangle and set float ratios where the ratio is 0.0 at the segment start point, and 1.0 at the segment end point.
bool osg::LineSegment::intersect |
( |
const Vec3d & |
v1, |
|
|
const Vec3d & |
v2, |
|
|
const Vec3d & |
v3, |
|
|
double & |
ratioFromStartToEnd |
|
) |
| |
return true if segment intersects triangle and set double ratios where the ratio is 0.0 at the segment start point, and 1.0 at the segment end point.
bool osg::LineSegment::intersectAndComputeRatios |
( |
const BoundingBox & |
bb, |
|
|
float & |
ratioFromStartToEnd1, |
|
|
float & |
ratioFromStartToEnd2 |
|
) |
| const |
return true if segment intersects BoundingBox and set float ratios for the first and second intersections, where the ratio is 0.0 at the segment start point, and 1.0 at the segment end point.
bool osg::LineSegment::intersectAndComputeRatios |
( |
const BoundingBox & |
bb, |
|
|
double & |
ratioFromStartToEnd1, |
|
|
double & |
ratioFromStartToEnd2 |
|
) |
| const |
return true if segment intersects BoundingBox and set double ratios for the first and second intersections, where the ratio is 0.0 at the segment start point, and 1.0 at the segment end point.
bool osg::LineSegment::intersectAndComputeRatios |
( |
const BoundingSphere & |
bs, |
|
|
float & |
ratioFromStartToEnd1, |
|
|
float & |
ratioFromStartToEnd2 |
|
) |
| const |
return true if segment intersects BoundingSphere and set float ratios for the first and second intersections, where the ratio is 0.0 at the segment start point, and 1.0 at the segment end point.
bool osg::LineSegment::intersectAndComputeRatios |
( |
const BoundingSphere & |
bs, |
|
|
double & |
ratioFromStartToEnd1, |
|
|
double & |
ratioFromStartToEnd2 |
|
) |
| const |
return true if segment intersects BoundingSphere and set double ratios for the first and second intersections, where the ratio is 0.0 at the segment start point, and 1.0 at the segment end point.
post multiply a segment by matrix.
Definition at line 87 of file LineSegment.h.
pre multiply a segment by matrix.
Definition at line 90 of file LineSegment.h.
const vec_type& osg::LineSegment::start |
( |
| ) |
const |
|
inline |
bool osg::LineSegment::valid |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: