logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoXtDevice — abstract base class device for use with the SoXtRenderArea

Description

       This  is  the  abstract  base  class for devices in the Inventor Xt component and utility library. When a
       device is registered with an SoXtRenderArea, the device is able to generate events  in  the  render  area
       window.

Inherits From

       SoXtDevice

Methods

virtualvoidenable(Widgetw,XtEventHandlerf,XtPointerdata,Windowwin=NULL)virtualvoiddisable(Widgetw,XtEventHandlerf,XtPointerdata)
          Enable  and  disable  the  device for the passed widget. When enabled, the callback function f will be
          invoked when events occur in the widget. data is the clientData which will be passed.

     virtualconstSoEvent*translateEvent(XAnyEvent*xevent)
          This attempts to convert the passed X event into an SoEvent. If the event was not  generated  by  this
          device, then NULL is returned.

     voidsetWindowSize(constSbVec2s&size)constSbVec2s&getWindowSize()const
          Set  and  get  the  window size of the widget this device is registered for. This allows the device to
          correctly convert position information from X window coordinates (origin  at  top  left)  to  Inventor
          window  coordinates  (origin  at bottom left). (SoXtRenderArea will automatically call this method for
          each device registered on it whenever the window size changes.)

Name

       SoXtDevice — abstract base class device for use with the SoXtRenderArea

See Also

SoXtMouse,SoXtKeyboard,SoXtSpaceball,SoXtInputFocus,SoXtRenderAreaSoXtDevice(3IV)()

Synopsis

#include<Inventor/Xt/devices/SoXtDevice.h>

          Methods from class SoXtDevice:

     virtualvoidenable(Widgetw,XtEventHandlerf,XtPointerdata,Windowwin=NULL)virtualvoiddisable(Widgetw,XtEventHandlerf,XtPointerdata)virtualconstSoEvent*translateEvent(XAnyEvent*xevent)voidsetWindowSize(constSbVec2s&size)constSbVec2s&getWindowSize()const

See Also