'\"! tbl | mmdoc '\"macro stdmacro .ie n \{\ . ds Cr \fB . ds Cb \fB .\} .el \{\ . ds Cr \f7 . ds Cb \f8 .\} .TH SoSpaceballButtonEvent(3IV) .SH NAME SoSpaceballButtonEvent \(em spaceball button press and release events .SH INHERITS FROM SoEvent > SoButtonEvent > SoSpaceballButtonEvent .SH SYNOPSIS .ps -1 \*(Cr#include .sp \*(Cr#define SO_SPACEBALL_PRESS_EVENT(EVENT,BUTTON) (SoSpaceballButtonEvent::isButtonPressEvent(EVENT, SoSpaceballButtonEvent::BUTTON)) .br \*(Cr#define SO_SPACEBALL_RELEASE_EVENT(EVENT,BUTTON) (SoSpaceballButtonEvent::isButtonReleaseEvent(EVENT, SoSpaceballButtonEvent::BUTTON)) .sp .in 0.5i \*(Crenum \*(CbButton\*(Cr { .in 1i .ta 29m .in 1.5i+29n .ti 1i .ta 29m .ds Pt \*(CbSoSpaceballButtonEvent::ANY\f1 .ie \w'\*(Pt'>=29n \{\ .ne 3 \*(Pt .ti 1i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} Any spaceball button .br .in 1.5i+29n .ti 1i .ta 29m .ds Pt \*(CbSoSpaceballButtonEvent::BUTTON1\f1 .ie \w'\*(Pt'>=29n \{\ .ne 3 \*(Pt .ti 1i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} Spaceball button 1 .br .in 1.5i+29n .ti 1i .ta 29m .ds Pt \*(CbSoSpaceballButtonEvent::BUTTON2\f1 .ie \w'\*(Pt'>=29n \{\ .ne 3 \*(Pt .ti 1i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} Spaceball button 2 .br .in 1.5i+29n .ti 1i .ta 29m .ds Pt \*(CbSoSpaceballButtonEvent::BUTTON3\f1 .ie \w'\*(Pt'>=29n \{\ .ne 3 \*(Pt .ti 1i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} Spaceball button 3 .br .in 1.5i+29n .ti 1i .ta 29m .ds Pt \*(CbSoSpaceballButtonEvent::BUTTON4\f1 .ie \w'\*(Pt'>=29n \{\ .ne 3 \*(Pt .ti 1i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} Spaceball button 4 .br .in 1.5i+29n .ti 1i .ta 29m .ds Pt \*(CbSoSpaceballButtonEvent::BUTTON5\f1 .ie \w'\*(Pt'>=29n \{\ .ne 3 \*(Pt .ti 1i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} Spaceball button 5 .br .in 1.5i+29n .ti 1i .ta 29m .ds Pt \*(CbSoSpaceballButtonEvent::BUTTON6\f1 .ie \w'\*(Pt'>=29n \{\ .ne 3 \*(Pt .ti 1i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} Spaceball button 6 .br .in 1.5i+29n .ti 1i .ta 29m .ds Pt \*(CbSoSpaceballButtonEvent::BUTTON7\f1 .ie \w'\*(Pt'>=29n \{\ .ne 3 \*(Pt .ti 1i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} Spaceball button 7 .br .in 1.5i+29n .ti 1i .ta 29m .ds Pt \*(CbSoSpaceballButtonEvent::BUTTON8\f1 .ie \w'\*(Pt'>=29n \{\ .ne 3 \*(Pt .ti 1i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} Spaceball button 8 .br .in 1.5i+29n .ti 1i .ta 29m .ds Pt \*(CbSoSpaceballButtonEvent::PICK\f1 .ie \w'\*(Pt'>=29n \{\ .ne 3 \*(Pt .ti 1i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} Spaceball pick button .br .in 0.5i \*(Cr} .sp .in 1i \f1Methods from class SoSpaceballButtonEvent: .in 0.5i .sp .ta 20m .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Cr .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbSoSpaceballButtonEvent\*(Cr() .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crstatic SoType .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetClassTypeId\*(Cr() .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetButton\*(Cr(SoSpaceballButtonEvent::Button b) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSoSpaceballButtonEvent::Button .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetButton\*(Cr() const .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crstatic SbBool .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbisButtonPressEvent\*(Cr(const SoEvent *e, SoSpaceballButtonEvent::Button whichButton) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crstatic SbBool .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbisButtonReleaseEvent\*(Cr(const SoEvent *e, SoSpaceballButtonEvent::Button whichButton) .sp .in 1i \f1Methods from class SoButtonEvent: .in 0.5i .sp .ta 22m .in 1i+22n .ti 0.5i .ta 22m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=22n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetState\*(Cr(SoButtonEvent::State s) .br .in 1i+22n .ti 0.5i .ta 22m .ds Pt \*(CrSoButtonEvent::State .ie \w'\*(Pt'>=22n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetState\*(Cr() const .sp .in 1i \f1Methods from class SoEvent: .in 0.5i .sp .ta 20m .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvirtual SoType .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetTypeId\*(Cr() const .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSbBool .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbisOfType\*(Cr(SoType type) const .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetTime\*(Cr(SbTime t) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSbTime .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetTime\*(Cr() const .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetPosition\*(Cr(const SbVec2s &p) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crconst SbVec2s & .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetPosition\*(Cr() const .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crconst SbVec2s & .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetPosition\*(Cr(const SbViewportRegion &vpRgn) const .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crconst SbVec2f & .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetNormalizedPosition\*(Cr(const SbViewportRegion &vpRgn) const .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetShiftDown\*(Cr(SbBool isDown) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetCtrlDown\*(Cr(SbBool isDown) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetAltDown\*(Cr(SbBool isDown) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSbBool .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbwasShiftDown\*(Cr() const .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSbBool .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbwasCtrlDown\*(Cr() const .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSbBool .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbwasAltDown\*(Cr() const .sp .SH DESCRIPTION \*(CbSoSpaceballButtonEvent\f1 represents spaceball button press and release events in the Inventor event model. .SH METHODS .ta 20m .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Cr .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbSoSpaceballButtonEvent\*(Cr() .br .in 1i \f1Constructor. .sp .in 0.5i .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crstatic SoType .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetClassTypeId\*(Cr() .br .in 1i \f1Return the type id for the \*(CbSoSpaceballButtonEvent\f1 class. .sp .in 0.5i .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crvoid .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbsetButton\*(Cr(SoSpaceballButtonEvent::Button b) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(CrSoSpaceballButtonEvent::Button .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbgetButton\*(Cr() const .br .in 1i \f1Set and get which spaceball button generated the event. .sp .in 0.5i .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crstatic SbBool .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbisButtonPressEvent\*(Cr(const SoEvent *e, SoSpaceballButtonEvent::Button whichButton) .br .in 1i+20n .ti 0.5i .ta 20m .ds Pt \*(Crstatic SbBool .ie \w'\*(Pt'>=20n \{\ .ne 3 \*(Pt .ti 0.5i \c\ \} .el\{\ .ne 2 \*(Pt \c\ \} \*(CbisButtonReleaseEvent\*(Cr(const SoEvent *e, SoSpaceballButtonEvent::Button whichButton) .br .in 1i \f1Returns whether the passed event is a spaceball button press or release event of the passed button. When \f2SoSpaceballButtonEvent::ANY\f1 is passed, this returns \f2TRUE\f1 if the event represents a button press or release of any spaceball button. .sp .in 0.5i .SH SEE ALSO \*(CbSoEvent, SoButtonEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, SoMouseButtonEvent, SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, SoXtDevice