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

NAME

SoSpaceballButtonEvent — spaceball button press and release events

CONTENTS

Inherits From
Synopsis
Description
Methods
See Also

INHERITS FROM

SoEvent > SoButtonEvent > SoSpaceballButtonEvent

SYNOPSIS

#include <Inventor/events/SoSpaceballButtonEvent.h>

#define SO_SPACEBALL_PRESS_EVENT(EVENT,BUTTON)
(SoSpaceballButtonEvent::isButtonPressEvent(EVENT,
                        SoSpaceballButtonEvent::BUTTON))
#define SO_SPACEBALL_RELEASE_EVENT(EVENT,BUTTON)
(SoSpaceballButtonEvent::isButtonReleaseEvent(EVENT,
                        SoSpaceballButtonEvent::BUTTON))

enum Button {     SoSpaceballButtonEvent::ANY    
                              SoSpaceballButtonEvent::ANY   Any spaceball button    
SoSpaceballButtonEvent::BUTTON1    
                              SoSpaceballButtonEvent::BUTTON1 Spaceball button 1    
SoSpaceballButtonEvent::BUTTON2    
                              SoSpaceballButtonEvent::BUTTON2 Spaceball button 2    
SoSpaceballButtonEvent::BUTTON3    
                              SoSpaceballButtonEvent::BUTTON3 Spaceball button 3    
SoSpaceballButtonEvent::BUTTON4    
                              SoSpaceballButtonEvent::BUTTON4 Spaceball button 4    
SoSpaceballButtonEvent::BUTTON5    
                              SoSpaceballButtonEvent::BUTTON5 Spaceball button 5    
SoSpaceballButtonEvent::BUTTON6    
                              SoSpaceballButtonEvent::BUTTON6 Spaceball button 6    
SoSpaceballButtonEvent::BUTTON7    
                              SoSpaceballButtonEvent::BUTTON7 Spaceball button 7    
SoSpaceballButtonEvent::BUTTON8    
                              SoSpaceballButtonEvent::BUTTON8 Spaceball button 8    
SoSpaceballButtonEvent::PICK    
                              SoSpaceballButtonEvent::PICK  Spaceball pick button
}

Methods from class SoSpaceballButtonEvent:

       
                    
                     SoSpaceballButtonEvent()    
static SoType    
                    
static SoType        getClassTypeId()    
void    
                    
void                 setButton(SoSpaceballButtonEvent::Button b)    
SoSpaceballButtonEvent::Button    
                    
SoSpaceballButtonEvent::Button getButton() const    
static SbBool    
                    
static SbBool        isButtonPressEvent(const SoEvent *e, SoSpaceballButtonEvent::Button whichButton)    
static SbBool    
                    
static SbBool        isButtonReleaseEvent(const SoEvent *e, SoSpaceballButtonEvent::Button whichButton)

Methods from class SoButtonEvent:

    void    
                      
void                   setState(SoButtonEvent::State s)    
SoButtonEvent::State    
                      
SoButtonEvent::State   getState() const

Methods from class SoEvent:

    virtual SoType    
                    
virtual SoType       getTypeId() const    
SbBool    
                    
SbBool               isOfType(SoType type) const    
void    
                    
void                 setTime(SbTime t)    
SbTime    
                    
SbTime               getTime() const    
void    
                    
void                 setPosition(const SbVec2s &p)    
const SbVec2s &    
                    
const SbVec2s &      getPosition() const    
const SbVec2s &    
                    
const SbVec2s &      getPosition(const SbViewportRegion &vpRgn) const    
const SbVec2f &    
                    
const SbVec2f &      getNormalizedPosition(const SbViewportRegion &vpRgn) const    
void    
                    
void                 setShiftDown(SbBool isDown)    
void    
                    
void                 setCtrlDown(SbBool isDown)    
void    
                    
void                 setAltDown(SbBool isDown)    
SbBool    
                    
SbBool               wasShiftDown() const    
SbBool    
                    
SbBool               wasCtrlDown() const    
SbBool    
                    
SbBool               wasAltDown() const

DESCRIPTION

SoSpaceballButtonEvent represents spaceball button press and release events in the Inventor event model.

METHODS

       
                    
                     SoSpaceballButtonEvent()
Constructor.

    static SoType    
                    
static SoType        getClassTypeId()
Return the type id for the SoSpaceballButtonEvent class.

    void    
                    
void                 setButton(SoSpaceballButtonEvent::Button b)    
SoSpaceballButtonEvent::Button    
                    
SoSpaceballButtonEvent::Button getButton() const
Set and get which spaceball button generated the event.

    static SbBool    
                    
static SbBool        isButtonPressEvent(const SoEvent *e, SoSpaceballButtonEvent::Button whichButton)    
static SbBool    
                    
static SbBool        isButtonReleaseEvent(const SoEvent *e, SoSpaceballButtonEvent::Button whichButton)
Returns whether the passed event is a spaceball button press or release event of the passed button. When SoSpaceballButtonEvent::ANY is passed, this returns TRUE if the event represents a button press or release of any spaceball button.

SEE ALSO

SoEvent, SoButtonEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, SoMouseButtonEvent, SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, SoXtDevice

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


SOSPACEBALLBUTTONEVENT(3IV) (-->)

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