1SbPlaneProjector(3IV)()                                SbPlaneProjector(3IV)()
2
3
4

NAME

6       SbPlaneProjector — plane projector
7

INHERITS FROM

9       SbProjector > SbPlaneProjector
10

SYNOPSIS

12       #include <Inventor/projectors/SbPlaneProjector.h>
13
14          Methods from class SbPlaneProjector:
15
16                         SbPlaneProjector(SbBool orient = FALSE)
17                         SbPlaneProjector(const  SbPlane &plane, SbBool orient
18                              = FALSE)
19                         ~SbPlaneProjector()
20     void                setPlane(const SbPlane &plane)
21     const SbPlane &     getPlane() const
22     void                setOrientToEye(SbBool orientToEye)
23     SbBool              isOrientToEye() const
24     virtual  SbVec3f     getVector(const   SbVec2f   &mousePosition1,   const
25                              SbVec2f &mousePosition2)
26     virtual SbVec3f     getVector(const SbVec2f &mousePosition)
27     void                setStartPosition(const SbVec2f &mousePosition)
28     void                setStartPosition(const SbVec3f &point)
29
30          Methods from class SbProjector:
31
32     virtual SbVec3f        project(const SbVec2f &point)
33     virtual void           setViewVolume(const SbViewVolume &vol)
34     const SbViewVolume &   getViewVolume() const
35     virtual void           setWorkingSpace(const SbMatrix &space)
36     const SbMatrix &       getWorkingSpace() const
37     virtual SbProjector *  copy() const
38
39

DESCRIPTION

41       SbPlaneProjector  projects  the  mouse  onto a plane. This is typically
42       used to write interactive 3D manipulators and viewers.
43

METHODS

45                         SbPlaneProjector(SbBool orient = FALSE)
46          Constructor. The default plane passes through the origin and is ori‐
47          ented perpendicular to the Z axis.
48
49                         SbPlaneProjector(const  SbPlane &plane, SbBool orient
50                              = FALSE)
51          Constructor which is passed a plane. If orient to eye is  TRUE,  the
52          plane will be reoriented to the eye.
53
54                         ~SbPlaneProjector()
55          Destructor.
56
57     void                setPlane(const SbPlane &plane)
58     const SbPlane &     getPlane() const
59          Set and get the plane to use.
60
61     void                setOrientToEye(SbBool orientToEye)
62     SbBool              isOrientToEye() const
63          Set  and  get  whether  the projector should be oriented towards the
64          eye. If orientToEye is set to TRUE, the given plane's  direction  is
65          ignored,  and  the  plane  will be oriented to the eye. It will pass
66          through the same point from the origin defined by the original dir *
67          dist. Set to FALSE if the plane's direction should remain in working
68          space.
69
70     virtual  SbVec3f     getVector(const   SbVec2f   &mousePosition1,   const
71                              SbVec2f &mousePosition2)
72          Get a vector on this plane given two normalized mouse positions.
73
74     virtual SbVec3f     getVector(const SbVec2f &mousePosition)
75          Get  a  vector given the current mouse point. Uses the last point on
76          this projector from the previous call to getVector() or setStartPos‐
77          tion().   Do not use this if the working space transform is changing
78          since the new point will be in a different space than the old one.
79
80     void                setStartPosition(const SbVec2f &mousePosition)
81          Set the initial mouse position.
82
83     void                setStartPosition(const SbVec3f &point)
84          Set the initial position from a point on the projector.
85
86

SEE ALSO

88       SbCylinderProjector, SbCylinderPlaneProjector, SbCylinderSectionProjec‐
89       tor, SbCylinderSheetProjector, SbLineProjector, SbSpherePlaneProjector,
90       SbSphereProjector, SbSphereSectionProjector, SbSphereSheetProjector
91
92
93
94
95                                                       SbPlaneProjector(3IV)()
Impressum