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  -  SBLINEPROJECTOR (3)

NAME

SbLineProjector — line projector

CONTENTS

Inherits From
Synopsis
Description
Methods
File Format/defaults
See Also

INHERITS FROM

SbProjector > SbLineProjector

SYNOPSIS

#include <Inventor/projectors/SbLineProjector.h>

Methods from class SbLineProjector:

       
                    
                     SbLineProjector()    
   
                    
                     ~SbLineProjector()    
void    
                    
void                 setLine(const SbLine &line)    
const SbLine &    
                    
const SbLine &       getLine() 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

SbLineProjector projects a 2D point, typically the location of the cursor, onto a 3D line.

METHODS

       
                    
                     SbLineProjector()    
   
                    
                     ~SbLineProjector()
Constructor and destructor. The default line passes through the origin and is aligned with the Y axis.

    void    
                    
void                 setLine(const SbLine &line)    
const SbLine &    
                    
const SbLine &       getLine() const
Set and get the line on which to project 2D points.

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

    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 position from a 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, SbPlaneProjector, SbSpherePlaneProjector, SbSphereProjector, SbSphereSectionProjector, SbSphereSheetProjector

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


SBLINEPROJECTOR(3IV) (-->)

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