Line projector.
More...
#include <Inventor/projectors/SbLineProjector.h>
SbLineProjector projects a 2D point, typically the location of the cursor, onto a 3D line.
- See Also
- SbCylinderProjector, SbCylinderPlaneProjector, SbCylinderSectionProjector, SbCylinderSheetProjector, SbPlaneProjector, SbSpherePlaneProjector, SbSphereProjector, SbSphereSectionProjector, SbSphereSheetProjector
Definition at line 75 of file SbLineProjector.h.
◆ SbLineProjector()
SbLineProjector::SbLineProjector |
( |
| ) |
|
The default line passes through the origin and is aligned with the Y axis.
◆ ~SbLineProjector()
SbLineProjector::~SbLineProjector |
( |
| ) |
|
|
inline |
The default line passes through the origin and is aligned with the Y axis.
Definition at line 85 of file SbLineProjector.h.
◆ copy()
The caller is responsible for deleting the copy when done.
Implements SbProjector.
◆ getLine()
const SbLine & SbLineProjector::getLine |
( |
| ) |
const |
|
inline |
◆ getVector() [1/2]
virtual SbVec3f SbLineProjector::getVector |
( |
const SbVec2f & |
mousePosition | ) |
|
|
virtual |
Uses the last point on this projector from the previous call to getVector() or setStartPostion(). Do not use this if the working space transform is changing since the new point will be in a different space than the old one.
◆ getVector() [2/2]
virtual SbVec3f SbLineProjector::getVector |
( |
const SbVec2f & |
mousePosition1, |
|
|
const SbVec2f & |
mousePosition2 |
|
) |
| |
|
virtual |
◆ project()
The point should be normalized from 0-1, with (0,0) at the lower-left.
Implements SbProjector.
◆ setLine()
void SbLineProjector::setLine |
( |
const SbLine & |
line | ) |
|
◆ setStartPosition() [1/2]
void SbLineProjector::setStartPosition |
( |
const SbVec2f & |
mousePosition | ) |
|
|
inline |
◆ setStartPosition() [2/2]
void SbLineProjector::setStartPosition |
( |
const SbVec3f & |
point | ) |
|
|
inline |
◆ lastPoint
◆ line
The documentation for this class was generated from the following file:
- C:/jh/mevislab/4.0.2_1/build/MeVis/ThirdParty/Sources/Inventor/include/Inventor/projectors/SbLineProjector.h