osgGA.GUIEventAdapter¶
-
class
osgGA.GUIEventAdapter¶ Represents: c++ class Wraps: osgGA::GUIEventAdapter Bases: osgGA.EventConstructors:
-
osgGA.GUIEventAdapter()¶
Methods:
-
:
setEventType(osgGA.GUIEventAdapter.EventType Type)¶ -
Parameters: Type ( osgGA.GUIEventAdapter.EventType) –
-
:
getEventType()¶ -
Return type: osgGA.GUIEventAdapter.EventType
-
:
time()¶ -
Return type: double
-
:
setGraphicsContext(osg.GraphicsContext context)¶ -
Parameters: context ( osg.GraphicsContext) –
-
:
getGraphicsContext()¶ -
Return type: osg.GraphicsContext
-
:
setWindowRectangle(int x, int y, int width, int height, bool updateMouseRange)¶ -
Parameters: - x (
int) – - y (
int) – - width (
int) – - height (
int) – - updateMouseRange (
bool) –
- x (
-
:
setWindowRectangle(int x, int y, int width, int height) -
Parameters: - x (
int) – - y (
int) – - width (
int) – - height (
int) –
- x (
-
:
setWindowX(int v)¶ -
Parameters: v ( int) –
-
:
getWindowX()¶ -
Return type: int
-
:
setWindowY(int v)¶ -
Parameters: v ( int) –
-
:
getWindowY()¶ -
Return type: int
-
:
setWindowWidth(int v)¶ -
Parameters: v ( int) –
-
:
getWindowWidth()¶ -
Return type: int
-
:
setWindowHeight(int v)¶ -
Parameters: v ( int) –
-
:
getWindowHeight()¶ -
Return type: int
-
:
setKey(int key)¶ -
Parameters: key ( int) –
-
:
getKey()¶ -
Return type: int
-
:
setUnmodifiedKey(int key)¶ -
Parameters: key ( int) –
-
:
getUnmodifiedKey()¶ -
Return type: int
-
:
setButton(int button)¶ -
Parameters: button ( int) –
-
:
getButton()¶ -
Return type: int
-
:
setInputRange(double Xmin, double Ymin, double Xmax, double Ymax)¶ -
Parameters: - Xmin (
double) – - Ymin (
double) – - Xmax (
double) – - Ymax (
double) –
- Xmin (
-
:
setXmin(double v)¶ -
Parameters: v ( double) –
-
:
getXmin()¶ -
Return type: double
-
:
setXmax(double v)¶ -
Parameters: v ( double) –
-
:
getXmax()¶ -
Return type: double
-
:
setYmin(double v)¶ -
Parameters: v ( double) –
-
:
getYmin()¶ -
Return type: double
-
:
setYmax(double v)¶ -
Parameters: v ( double) –
-
:
getYmax()¶ -
Return type: double
-
:
setX(double x)¶ -
Parameters: x ( double) –
-
:
getX()¶ -
Return type: double
-
:
setY(double y)¶ -
Parameters: y ( double) –
-
:
getY()¶ -
Return type: double
-
:
getXnormalized()¶ -
Return type: double
-
:
getYnormalized()¶ -
Return type: double
-
:
setMouseYOrientation(osgGA.GUIEventAdapter.MouseYOrientation myo)¶ -
Parameters: myo ( osgGA.GUIEventAdapter.MouseYOrientation) –
-
:
getMouseYOrientation()¶ -
Return type: osgGA.GUIEventAdapter.MouseYOrientation
-
:
setMouseYOrientationAndUpdateCoords(osgGA.GUIEventAdapter.MouseYOrientation myo)¶ -
Parameters: myo ( osgGA.GUIEventAdapter.MouseYOrientation) –
-
:
setButtonMask(int mask)¶ -
Parameters: mask ( int) –
-
:
getButtonMask()¶ -
Return type: int
-
:
setModKeyMask(int mask)¶ -
Parameters: mask ( int) –
-
:
getModKeyMask()¶ -
Return type: int
-
:
setScrollingMotion(osgGA.GUIEventAdapter.ScrollingMotion motion)¶ -
Parameters: motion ( osgGA.GUIEventAdapter.ScrollingMotion) –
-
:
getScrollingMotion()¶ -
Return type: osgGA.GUIEventAdapter.ScrollingMotion
-
:
setScrollingMotionDelta(double x, double y)¶ -
Parameters: - x (
double) – - y (
double) –
- x (
-
:
setScrollingDeltaX(double v)¶ -
Parameters: v ( double) –
-
:
getScrollingDeltaX()¶ -
Return type: double
-
:
setScrollingDeltaY(double v)¶ -
Parameters: v ( double) –
-
:
getScrollingDeltaY()¶ -
Return type: double
-
:
addTouchPoint(unsigned id, osgGA.GUIEventAdapter.TouchPhase phase, double x, double y, unsigned tapCount)¶ -
Parameters: - id (
unsigned) – - phase (
osgGA.GUIEventAdapter.TouchPhase) – - x (
double) – - y (
double) – - tapCount (
unsigned) –
- id (
-
:
addTouchPoint(unsigned id, osgGA.GUIEventAdapter.TouchPhase phase, double x, double y) -
Parameters: - id (
unsigned) – - phase (
osgGA.GUIEventAdapter.TouchPhase) – - x (
double) – - y (
double) –
- id (
-
:
setTouchData(osgGA.GUIEventAdapter.TouchData td)¶ -
Parameters: td ( osgGA.GUIEventAdapter.TouchData) –
-
:
getTouchData()¶ -
Return type: osgGA.GUIEventAdapter.TouchData
-
:
isMultiTouchEvent()¶ -
Return type: bool
-
:
getTouchPointNormalizedX(unsigned ndx)¶ -
Parameters: ndx ( unsigned) –Return type: double
-
:
getTouchPointNormalizedY(unsigned ndx)¶ -
Parameters: ndx ( unsigned) –Return type: double
-