1SbLineProjector(3IV)()                                  SbLineProjector(3IV)()
2
3
4

NAME

6       SbLineProjector — line projector
7

INHERITS FROM

9       SbProjector > SbLineProjector
10

SYNOPSIS

12       #include <Inventor/projectors/SbLineProjector.h>
13
14          Methods from class SbLineProjector:
15
16                         SbLineProjector()
17                         ~SbLineProjector()
18     void                setLine(const SbLine &line)
19     const SbLine &      getLine() const
20     virtual   SbVec3f     getVector(const   SbVec2f   &mousePosition1,  const
21                              SbVec2f &mousePosition2)
22     virtual SbVec3f     getVector(const SbVec2f &mousePosition)
23     void                setStartPosition(const SbVec2f &mousePosition)
24     void                setStartPosition(const SbVec3f &point)
25
26          Methods from class SbProjector:
27
28     virtual SbVec3f        project(const SbVec2f &point)
29     virtual void           setViewVolume(const SbViewVolume &vol)
30     const SbViewVolume &   getViewVolume() const
31     virtual void           setWorkingSpace(const SbMatrix &space)
32     const SbMatrix &       getWorkingSpace() const
33     virtual SbProjector *  copy() const
34
35

DESCRIPTION

37       SbLineProjector projects a 2D point, typically the location of the cur‐
38       sor, onto a 3D line.
39

METHODS

41                         SbLineProjector()
42                         ~SbLineProjector()
43          Constructor and destructor. The default line passes through the ori‐
44          gin and is aligned with the Y axis.
45
46     void                setLine(const SbLine &line)
47     const SbLine &      getLine() const
48          Set and get the line on which to project 2D points.
49
50     virtual  SbVec3f     getVector(const   SbVec2f   &mousePosition1,   const
51                              SbVec2f &mousePosition2)
52          Get a vector on this line given two normalized mouse points.
53
54     virtual SbVec3f     getVector(const SbVec2f &mousePosition)
55          Get  a  vector given the current mouse point. Uses the last point on
56          this projector from the previous call to getVector() or setStartPos‐
57          tion().   Do not use this if the working space transform is changing
58          since the new point will be in a different space than the old one.
59
60     void                setStartPosition(const SbVec2f &mousePosition)
61          Set the initial position from a mouse position.
62
63     void                setStartPosition(const SbVec3f &point)
64          Set the initial position from a point on the projector.
65
66

SEE ALSO

68       SbCylinderProjector, SbCylinderPlaneProjector, SbCylinderSectionProjec‐
69       tor,  SbCylinderSheetProjector,  SbPlaneProjector, SbSpherePlaneProjec‐
70       tor, SbSphereProjector, SbSphereSectionProjector,  SbSphereSheetProjec‐
71       tor
72
73
74
75
76                                                        SbLineProjector(3IV)()
Impressum