GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SBPLANEPROJECTOR (3)

NAME

SbPlaneProjector — plane projector

CONTENTS

Inherits From
Synopsis
Description
Methods
File Format/defaults
See Also

INHERITS FROM

SbProjector > SbPlaneProjector

SYNOPSIS

#include <Inventor/projectors/SbPlaneProjector.h>

Methods from class SbPlaneProjector:

       
                    
                     SbPlaneProjector(SbBool orient = FALSE)    
   
                    
                     SbPlaneProjector(const SbPlane &plane, SbBool orient = FALSE)    
   
                    
                     ~SbPlaneProjector()    
void    
                    
void                 setPlane(const SbPlane &plane)    
const SbPlane &    
                    
const SbPlane &      getPlane() const    
void    
                    
void                 setOrientToEye(SbBool orientToEye)    
SbBool    
                    
SbBool               isOrientToEye() const    
virtual SbVec3f    
                    
virtual SbVec3f      getVector(const SbVec2f &mousePosition1, const SbVec2f &mousePosition2)    
virtual SbVec3f    
                    
virtual SbVec3f      getVector(const SbVec2f &mousePosition)    
void    
                    
void                 setStartPosition(const SbVec2f &mousePosition)    
void    
                    
void                 setStartPosition(const SbVec3f &point)

Methods from class SbProjector:

    virtual SbVec3f    
                       
virtual SbVec3f         project(const SbVec2f &point)    
virtual void    
                       
virtual void            setViewVolume(const SbViewVolume &vol)    
const SbViewVolume &    
                       
const SbViewVolume &    getViewVolume() const    
virtual void    
                       
virtual void            setWorkingSpace(const SbMatrix &space)    
const SbMatrix &    
                       
const SbMatrix &        getWorkingSpace() const    
virtual SbProjector *    
                       
virtual SbProjector *   copy() const

DESCRIPTION

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

METHODS

       
                    
                     SbPlaneProjector(SbBool orient = FALSE)
Constructor. The default plane passes through the origin and is oriented perpendicular to the Z axis.

       
                    
                     SbPlaneProjector(const SbPlane &plane, SbBool orient = FALSE)
Constructor which is passed a plane. If orient to eye is TRUE, the plane will be reoriented to the eye.

       
                    
                     ~SbPlaneProjector()
Destructor.

    void    
                    
void                 setPlane(const SbPlane &plane)    
const SbPlane &    
                    
const SbPlane &      getPlane() const
Set and get the plane to use.

    void    
                    
void                 setOrientToEye(SbBool orientToEye)    
SbBool    
                    
SbBool               isOrientToEye() const
Set and get whether the projector should be oriented towards the eye. If orientToEye is set to TRUE, the given plane’s direction is ignored, and the plane will be oriented to the eye. It will pass through the same point from the origin defined by the original dir * dist. Set to FALSE if the plane’s direction should remain in working space.

    virtual SbVec3f    
                    
virtual SbVec3f      getVector(const SbVec2f &mousePosition1, const SbVec2f &mousePosition2)
Get a vector on this plane given two normalized mouse positions.

    virtual SbVec3f    
                    
virtual SbVec3f      getVector(const SbVec2f &mousePosition)
Get a vector given the current mouse point. 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.

    void    
                    
void                 setStartPosition(const SbVec2f &mousePosition)
Set the initial mouse position.

    void    
                    
void                 setStartPosition(const SbVec3f &point)
Set the initial position from a point on the projector.

FILE FORMAT/DEFAULTS

SEE ALSO

SbCylinderProjector, SbCylinderPlaneProjector, SbCylinderSectionProjector, SbCylinderSheetProjector, SbLineProjector, SbSpherePlaneProjector, SbSphereProjector, SbSphereSectionProjector, SbSphereSheetProjector

Search for    or go to Top of page |  Section 3 |  Main Index


SBPLANEPROJECTOR(3IV) (-->)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.