|
| enum | MouseButtonMask { LEFT_MOUSE_BUTTON = 1<<0,
MIDDLE_MOUSE_BUTTON = 1<<1,
RIGHT_MOUSE_BUTTON = 1<<2
} |
| |
| enum | EventType {
NONE = 0,
PUSH = 1<<0,
RELEASE = 1<<1,
DOUBLECLICK = 1<<2,
DRAG = 1<<3,
MOVE = 1<<4,
KEYDOWN = 1<<5,
KEYUP = 1<<6,
FRAME = 1<<7,
RESIZE = 1<<8,
SCROLL = 1<<9,
PEN_PRESSURE = 1<<10,
PEN_ORIENTATION = 1<<11,
PEN_PROXIMITY_ENTER = 1<<12,
PEN_PROXIMITY_LEAVE = 1<<13,
CLOSE_WINDOW = 1<<14,
QUIT_APPLICATION = 1<<15,
USER = 1<<16
} |
| |
| enum | KeySymbol {
KEY_Space = 0x20,
KEY_0 = '0',
KEY_1 = '1',
KEY_2 = '2',
KEY_3 = '3',
KEY_4 = '4',
KEY_5 = '5',
KEY_6 = '6',
KEY_7 = '7',
KEY_8 = '8',
KEY_9 = '9',
KEY_A = 'a',
KEY_B = 'b',
KEY_C = 'c',
KEY_D = 'd',
KEY_E = 'e',
KEY_F = 'f',
KEY_G = 'g',
KEY_H = 'h',
KEY_I = 'i',
KEY_J = 'j',
KEY_K = 'k',
KEY_L = 'l',
KEY_M = 'm',
KEY_N = 'n',
KEY_O = 'o',
KEY_P = 'p',
KEY_Q = 'q',
KEY_R = 'r',
KEY_S = 's',
KEY_T = 't',
KEY_U = 'u',
KEY_V = 'v',
KEY_W = 'w',
KEY_X = 'x',
KEY_Y = 'y',
KEY_Z = 'z',
KEY_Exclaim = 0x21,
KEY_Quotedbl = 0x22,
KEY_Hash = 0x23,
KEY_Dollar = 0x24,
KEY_Ampersand = 0x26,
KEY_Quote = 0x27,
KEY_Leftparen = 0x28,
KEY_Rightparen = 0x29,
KEY_Asterisk = 0x2A,
KEY_Plus = 0x2B,
KEY_Comma = 0x2C,
KEY_Minus = 0x2D,
KEY_Period = 0x2E,
KEY_Slash = 0x2F,
KEY_Colon = 0x3A,
KEY_Semicolon = 0x3B,
KEY_Less = 0x3C,
KEY_Equals = 0x3D,
KEY_Greater = 0x3E,
KEY_Question = 0x3F,
KEY_At = 0x40,
KEY_Leftbracket = 0x5B,
KEY_Backslash = 0x5C,
KEY_Rightbracket = 0x5D,
KEY_Caret = 0x5E,
KEY_Underscore = 0x5F,
KEY_Backquote = 0x60,
KEY_BackSpace = 0xFF08,
KEY_Tab = 0xFF09,
KEY_Linefeed = 0xFF0A,
KEY_Clear = 0xFF0B,
KEY_Return = 0xFF0D,
KEY_Pause = 0xFF13,
KEY_Scroll_Lock = 0xFF14,
KEY_Sys_Req = 0xFF15,
KEY_Escape = 0xFF1B,
KEY_Delete = 0xFFFF,
KEY_Home = 0xFF50,
KEY_Left = 0xFF51,
KEY_Up = 0xFF52,
KEY_Right = 0xFF53,
KEY_Down = 0xFF54,
KEY_Prior = 0xFF55,
KEY_Page_Up = 0xFF55,
KEY_Next = 0xFF56,
KEY_Page_Down = 0xFF56,
KEY_End = 0xFF57,
KEY_Begin = 0xFF58,
KEY_Select = 0xFF60,
KEY_Print = 0xFF61,
KEY_Execute = 0xFF62,
KEY_Insert = 0xFF63,
KEY_Undo = 0xFF65,
KEY_Redo = 0xFF66,
KEY_Menu = 0xFF67,
KEY_Find = 0xFF68,
KEY_Cancel = 0xFF69,
KEY_Help = 0xFF6A,
KEY_Break = 0xFF6B,
KEY_Mode_switch = 0xFF7E,
KEY_Script_switch = 0xFF7E,
KEY_Num_Lock = 0xFF7F,
KEY_KP_Space = 0xFF80,
KEY_KP_Tab = 0xFF89,
KEY_KP_Enter = 0xFF8D,
KEY_KP_F1 = 0xFF91,
KEY_KP_F2 = 0xFF92,
KEY_KP_F3 = 0xFF93,
KEY_KP_F4 = 0xFF94,
KEY_KP_Home = 0xFF95,
KEY_KP_Left = 0xFF96,
KEY_KP_Up = 0xFF97,
KEY_KP_Right = 0xFF98,
KEY_KP_Down = 0xFF99,
KEY_KP_Prior = 0xFF9A,
KEY_KP_Page_Up = 0xFF9A,
KEY_KP_Next = 0xFF9B,
KEY_KP_Page_Down = 0xFF9B,
KEY_KP_End = 0xFF9C,
KEY_KP_Begin = 0xFF9D,
KEY_KP_Insert = 0xFF9E,
KEY_KP_Delete = 0xFF9F,
KEY_KP_Equal = 0xFFBD,
KEY_KP_Multiply = 0xFFAA,
KEY_KP_Add = 0xFFAB,
KEY_KP_Separator = 0xFFAC,
KEY_KP_Subtract = 0xFFAD,
KEY_KP_Decimal = 0xFFAE,
KEY_KP_Divide = 0xFFAF,
KEY_KP_0 = 0xFFB0,
KEY_KP_1 = 0xFFB1,
KEY_KP_2 = 0xFFB2,
KEY_KP_3 = 0xFFB3,
KEY_KP_4 = 0xFFB4,
KEY_KP_5 = 0xFFB5,
KEY_KP_6 = 0xFFB6,
KEY_KP_7 = 0xFFB7,
KEY_KP_8 = 0xFFB8,
KEY_KP_9 = 0xFFB9,
KEY_F1 = 0xFFBE,
KEY_F2 = 0xFFBF,
KEY_F3 = 0xFFC0,
KEY_F4 = 0xFFC1,
KEY_F5 = 0xFFC2,
KEY_F6 = 0xFFC3,
KEY_F7 = 0xFFC4,
KEY_F8 = 0xFFC5,
KEY_F9 = 0xFFC6,
KEY_F10 = 0xFFC7,
KEY_F11 = 0xFFC8,
KEY_F12 = 0xFFC9,
KEY_F13 = 0xFFCA,
KEY_F14 = 0xFFCB,
KEY_F15 = 0xFFCC,
KEY_F16 = 0xFFCD,
KEY_F17 = 0xFFCE,
KEY_F18 = 0xFFCF,
KEY_F19 = 0xFFD0,
KEY_F20 = 0xFFD1,
KEY_F21 = 0xFFD2,
KEY_F22 = 0xFFD3,
KEY_F23 = 0xFFD4,
KEY_F24 = 0xFFD5,
KEY_F25 = 0xFFD6,
KEY_F26 = 0xFFD7,
KEY_F27 = 0xFFD8,
KEY_F28 = 0xFFD9,
KEY_F29 = 0xFFDA,
KEY_F30 = 0xFFDB,
KEY_F31 = 0xFFDC,
KEY_F32 = 0xFFDD,
KEY_F33 = 0xFFDE,
KEY_F34 = 0xFFDF,
KEY_F35 = 0xFFE0,
KEY_Shift_L = 0xFFE1,
KEY_Shift_R = 0xFFE2,
KEY_Control_L = 0xFFE3,
KEY_Control_R = 0xFFE4,
KEY_Caps_Lock = 0xFFE5,
KEY_Shift_Lock = 0xFFE6,
KEY_Meta_L = 0xFFE7,
KEY_Meta_R = 0xFFE8,
KEY_Alt_L = 0xFFE9,
KEY_Alt_R = 0xFFEA,
KEY_Super_L = 0xFFEB,
KEY_Super_R = 0xFFEC,
KEY_Hyper_L = 0xFFED,
KEY_Hyper_R = 0xFFEE
} |
| |
| enum | ModKeyMask {
MODKEY_LEFT_SHIFT = 0x0001,
MODKEY_RIGHT_SHIFT = 0x0002,
MODKEY_LEFT_CTRL = 0x0004,
MODKEY_RIGHT_CTRL = 0x0008,
MODKEY_LEFT_ALT = 0x0010,
MODKEY_RIGHT_ALT = 0x0020,
MODKEY_LEFT_META = 0x0040,
MODKEY_RIGHT_META = 0x0080,
MODKEY_LEFT_SUPER = 0x0100,
MODKEY_RIGHT_SUPER = 0x0200,
MODKEY_LEFT_HYPER = 0x0400,
MODKEY_RIGHT_HYPER = 0x0800,
MODKEY_NUM_LOCK = 0x1000,
MODKEY_CAPS_LOCK = 0x2000,
MODKEY_CTRL = (MODKEY_LEFT_CTRL|MODKEY_RIGHT_CTRL),
MODKEY_SHIFT = (MODKEY_LEFT_SHIFT|MODKEY_RIGHT_SHIFT),
MODKEY_ALT = (MODKEY_LEFT_ALT|MODKEY_RIGHT_ALT),
MODKEY_META = (MODKEY_LEFT_META|MODKEY_RIGHT_META),
MODKEY_SUPER = (MODKEY_LEFT_SUPER|MODKEY_RIGHT_SUPER),
MODKEY_HYPER = (MODKEY_LEFT_HYPER|MODKEY_RIGHT_HYPER)
} |
| |
| enum | MouseYOrientation { Y_INCREASING_UPWARDS,
Y_INCREASING_DOWNWARDS
} |
| |
| enum | ScrollingMotion {
SCROLL_NONE,
SCROLL_LEFT,
SCROLL_RIGHT,
SCROLL_UP,
SCROLL_DOWN,
SCROLL_2D
} |
| |
| enum | TabletPointerType { UNKNOWN = 0,
PEN,
PUCK,
ERASER
} |
| |
| enum | TouchPhase {
TOUCH_UNKNOWN,
TOUCH_BEGAN,
TOUCH_MOVED,
TOUCH_STATIONERY,
TOUCH_ENDED
} |
| |
| typedef std::vector< osg::ref_ptr< PointerData > > | PointerDataList |
| |
| enum | DataVariance { DYNAMIC,
STATIC,
UNSPECIFIED
} |
| |
|
| | GUIEventAdapter () |
| |
| | GUIEventAdapter (const GUIEventAdapter &rhs, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) |
| |
| | META_Object (osgGA, GUIEventAdapter) |
| |
| virtual GUIEventAdapter * | asGUIEventAdapter () |
| |
| virtual const GUIEventAdapter * | asGUIEventAdapter () const |
| |
| void | setEventType (EventType Type) |
| | set the event type. More...
|
| |
| virtual EventType | getEventType () const |
| | get the event type. More...
|
| |
| double | time () const |
| | deprecated function for getting time of event. More...
|
| |
| void | setGraphicsContext (osg::GraphicsContext *context) |
| |
| osg::GraphicsContext * | getGraphicsContext () |
| |
| const osg::GraphicsContext * | getGraphicsContext () const |
| |
| void | setWindowRectangle (int x, int y, int width, int height, bool updateMouseRange=true) |
| | set window rectangle. More...
|
| |
| void | setWindowX (int v) |
| | set window x origin. More...
|
| |
| int | getWindowX () const |
| | get window x origin. More...
|
| |
| void | setWindowY (int v) |
| | set window x origin. More...
|
| |
| int | getWindowY () const |
| | get window y origin. More...
|
| |
| void | setWindowWidth (int v) |
| | set window width. More...
|
| |
| int | getWindowWidth () const |
| | get window width. More...
|
| |
| void | setWindowHeight (int v) |
| | set window height. More...
|
| |
| int | getWindowHeight () const |
| | get window height. More...
|
| |
| void | setKey (int key) |
| | set key pressed. More...
|
| |
| virtual int | getKey () const |
| | get key pressed, return -1 if inappropriate for this GUIEventAdapter. More...
|
| |
| void | setUnmodifiedKey (int key) |
| | set virtual key pressed. More...
|
| |
| int | getUnmodifiedKey () const |
| | get virtual key pressed. More...
|
| |
| void | setButton (int button) |
| | set button pressed/released. More...
|
| |
| int | getButton () const |
| | button pressed/released, return -1 if inappropriate for this GUIEventAdapter. More...
|
| |
| void | setInputRange (float Xmin, float Ymin, float Xmax, float Ymax) |
| | set mouse input range. More...
|
| |
| void | setXmin (float v) |
| | set mouse minimum x. More...
|
| |
| float | getXmin () const |
| | get mouse minimum x. More...
|
| |
| void | setXmax (float v) |
| | set mouse maximum x. More...
|
| |
| float | getXmax () const |
| | get mouse maximum x. More...
|
| |
| void | setYmin (float v) |
| | set mouse minimum x. More...
|
| |
| float | getYmin () const |
| | get mouse minimum y. More...
|
| |
| void | setYmax (float v) |
| | set mouse maximum y. More...
|
| |
| float | getYmax () const |
| | get mouse maximum y. More...
|
| |
| void | setX (float x) |
| | set current mouse x position. More...
|
| |
| float | getX () const |
| | get current mouse x position. More...
|
| |
| void | setY (float y) |
| | set current mouse y position. More...
|
| |
| float | getY () const |
| | get current mouse y position. More...
|
| |
| float | getXnormalized () const |
| |
| float | getYnormalized () const |
| |
| void | setMouseYOrientation (MouseYOrientation myo) |
| | set mouse-Y orientation (mouse-Y increases upwards or downwards). More...
|
| |
| MouseYOrientation | getMouseYOrientation () const |
| | get mouse-Y orientation (mouse-Y increases upwards or downwards). More...
|
| |
| void | setMouseYOrientationAndUpdateCoords (MouseYOrientation myo) |
| | set mouse-Y orientation (mouse-Y increases upwards or downwards) and recompute variables More...
|
| |
| void | setButtonMask (int mask) |
| | set current mouse button state. More...
|
| |
| int | getButtonMask () const |
| | get current mouse button state. More...
|
| |
| void | setModKeyMask (int mask) |
| | set modifier key mask. More...
|
| |
| int | getModKeyMask () const |
| | get modifier key mask. More...
|
| |
| void | setScrollingMotion (ScrollingMotion motion) |
| | set scrolling motion (for EventType::SCROLL). More...
|
| |
| ScrollingMotion | getScrollingMotion () const |
| | get scrolling motion (for EventType::SCROLL). More...
|
| |
| void | setScrollingMotionDelta (float x, float y) |
| | set the scrolling delta to x,y and the scrolling motion to SCROLL_2D. More...
|
| |
| void | setScrollingDeltaX (float v) |
| | set the scrolling x-delta. More...
|
| |
| float | getScrollingDeltaX () const |
| | get the scrolling x-delta. More...
|
| |
| void | setScrollingDeltaY (float v) |
| | set the scrolling y-delta. More...
|
| |
| float | getScrollingDeltaY () const |
| | get the scrolling y-delta. More...
|
| |
| void | setPenPressure (float pressure) |
| | set the tablet pen pressure (range 0..1). More...
|
| |
| float | getPenPressure () const |
| | get the tablet pen pressure (range 0..1). More...
|
| |
| void | setPenTiltX (float tiltX) |
| | set the tablet pen tiltX in degrees. More...
|
| |
| float | getPenTiltX () const |
| | get the tablet pen tiltX in degrees. More...
|
| |
| void | setPenTiltY (float tiltY) |
| | set the tablet pen tiltY in degrees. More...
|
| |
| float | getPenTiltY () const |
| | get the tablet pen tiltY in degrees. More...
|
| |
| void | setPenRotation (float rotation) |
| | set the tablet pen rotation around the Z-axis in degrees. More...
|
| |
| float | getPenRotation () const |
| | get the tablet pen rotation around the Z-axis in degrees. More...
|
| |
| void | setTabletPointerType (TabletPointerType pt) |
| | set the tablet pointer type. More...
|
| |
| TabletPointerType | getTabletPointerType () const |
| | get the tablet pointer type. More...
|
| |
| const osg::Matrix | getPenOrientation () const |
| | set the orientation from a tablet input device as a matrix. More...
|
| |
| void | addTouchPoint (unsigned int id, TouchPhase phase, float x, float y, unsigned int tapCount=0) |
| |
| void | setTouchData (TouchData *td) |
| |
| TouchData * | getTouchData () const |
| |
| bool | isMultiTouchEvent () const |
| |
| float | getTouchPointNormalizedX (unsigned int ndx) const |
| |
| float | getTouchPointNormalizedY (unsigned int ndx) const |
| |
| void | setPointerDataList (const PointerDataList &pdl) |
| |
| PointerDataList & | getPointerDataList () |
| |
| const PointerDataList & | getPointerDataList () const |
| |
| unsigned int | getNumPointerData () const |
| |
| PointerData * | getPointerData (unsigned int i) |
| |
| const PointerData * | getPointerData (unsigned int i) const |
| |
| PointerData * | getPointerData (osg::Object *obj) |
| |
| const PointerData * | getPointerData (osg::Object *obj) const |
| |
| void | addPointerData (PointerData *pd) |
| |
| void | copyPointerDataFrom (const osgGA::GUIEventAdapter &sourceEvent) |
| |
| | Event () |
| |
| | Event (const Event &rhs, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) |
| |
| | META_Object (osgGA, Event) |
| |
| void | setHandled (bool handled) const |
| | Set whether this event has been handled by an event handler or not. More...
|
| |
| bool | getHandled () const |
| | Get whether this event has been handled by an event handler or not. More...
|
| |
| void | setTime (double time) |
| | set time in seconds of event. More...
|
| |
| double | getTime () const |
| | get time in seconds of event. More...
|
| |
| | Object () |
| | Construct an object. More...
|
| |
| | Object (bool threadSafeRefUnref) |
| |
| | Object (const Object &, const CopyOp ©op=CopyOp::SHALLOW_COPY) |
| | Copy constructor, optional CopyOp object can be used to control shallow vs deep copying of dynamic data. More...
|
| |
| virtual Object * | cloneType () const =0 |
| | Clone the type of an object, with Object* return type. More...
|
| |
| virtual Object * | clone (const CopyOp &) const =0 |
| | Clone an object, with Object* return type. More...
|
| |
| virtual bool | isSameKindAs (const Object *) const |
| |
| virtual const char * | libraryName () const =0 |
| | return the name of the object's library. More...
|
| |
| virtual const char * | className () const =0 |
| | return the name of the object's class type. More...
|
| |
| std::string | getCompoundClassName () const |
| | return the compound class name that combines the library name and class name. More...
|
| |
| virtual Node * | asNode () |
| | Convert 'this' into a Node pointer if Object is a Node, otherwise return 0. More...
|
| |
| virtual const Node * | asNode () const |
| | convert 'const this' into a const Node pointer if Object is a Node, otherwise return 0. More...
|
| |
| virtual NodeVisitor * | asNodeVisitor () |
| | Convert 'this' into a NodeVisitor pointer if Object is a NodeVisitor, otherwise return 0. More...
|
| |
| virtual const NodeVisitor * | asNodeVisitor () const |
| | convert 'const this' into a const NodeVisitor pointer if Object is a NodeVisitor, otherwise return 0. More...
|
| |
| virtual StateSet * | asStateSet () |
| | Convert 'this' into a StateSet pointer if Object is a StateSet, otherwise return 0. More...
|
| |
| virtual const StateSet * | asStateSet () const |
| | convert 'const this' into a const StateSet pointer if Object is a StateSet, otherwise return 0. More...
|
| |
| virtual StateAttribute * | asStateAttribute () |
| | Convert 'this' into a StateAttribute pointer if Object is a StateAttribute, otherwise return 0. More...
|
| |
| virtual const StateAttribute * | asStateAttribute () const |
| | convert 'const this' into a const StateAttribute pointer if Object is a StateAttribute, otherwise return 0. More...
|
| |
| virtual Uniform * | asUniform () |
| | Convert 'this' into a Uniform pointer if Object is a Uniform, otherwise return 0. More...
|
| |
| virtual const UniformBase * | asUniformBase () const |
| | convert 'const this' into a const Uniform pointer if Object is a Uniform, otherwise return 0. More...
|
| |
| virtual UniformBase * | asUniformBase () |
| | Convert 'this' into a Uniform pointer if Object is a Uniform, otherwise return 0. More...
|
| |
| virtual const Uniform * | asUniform () const |
| | convert 'const this' into a const Uniform pointer if Object is a Uniform, otherwise return 0. More...
|
| |
| virtual Camera * | asCamera () |
| | Convert 'this' into a Camera pointer if Node is a Camera, otherwise return 0. More...
|
| |
| virtual const Camera * | asCamera () const |
| | convert 'const this' into a const Camera pointer if Node is a Camera, otherwise return 0. More...
|
| |
| virtual Drawable * | asDrawable () |
| | Convert 'this' into a Drawable pointer if Object is a Drawable, otherwise return 0. More...
|
| |
| virtual const Drawable * | asDrawable () const |
| | convert 'const this' into a const Drawable pointer if Object is a Drawable, otherwise return 0. More...
|
| |
| virtual Callback * | asCallback () |
| | Convert 'this' into a Callback pointer if Object is a Callback, otherwise return 0. More...
|
| |
| virtual const Callback * | asCallback () const |
| | convert 'const this' into a const Callback pointer if Object is a Callback, otherwise return 0. More...
|
| |
| virtual CallbackObject * | asCallbackObject () |
| | Convert 'this' into a CallbackObject pointer if Object is a CallbackObject, otherwise return 0. More...
|
| |
| virtual const CallbackObject * | asCallbackObject () const |
| | convert 'const this' into a const CallbackObject pointer if Object is a CallbackObject, otherwise return 0. More...
|
| |
| virtual UserDataContainer * | asUserDataContainer () |
| | Convert 'this' into a UserDataContainer pointer if Object is a UserDataContainer, otherwise return 0. More...
|
| |
| virtual const UserDataContainer * | asUserDataContainer () const |
| | convert 'const this' into a const UserDataContainer pointer if Object is a UserDataContainer, otherwise return 0. More...
|
| |
| virtual ValueObject * | asValueObject () |
| | Convert 'this' into a ValueObject pointer if Object is a ValueObject, otherwise return 0. More...
|
| |
| virtual const ValueObject * | asValueObject () const |
| | Convert 'this' into a ValueObject pointer if Object is a ValueObject, otherwise return 0. More...
|
| |
| virtual Image * | asImage () |
| | Convert 'this' into a Image pointer if Object is a Image, otherwise return 0. More...
|
| |
| virtual const Image * | asImage () const |
| | Convert 'this' into a Image pointer if Object is a Image, otherwise return 0. More...
|
| |
| virtual void | setThreadSafeRefUnref (bool threadSafe) |
| | Set whether to use a mutex to ensure ref() and unref() are thread safe. More...
|
| |
| virtual void | setName (const std::string &name) |
| | Set the name of object using C++ style string. More...
|
| |
| void | setName (const char *name) |
| | Set the name of object using a C style string. More...
|
| |
| const std::string & | getName () const |
| | Get the name of object. More...
|
| |
| void | setDataVariance (DataVariance dv) |
| | Set the data variance of this object. More...
|
| |
| DataVariance | getDataVariance () const |
| | Get the data variance of this object. More...
|
| |
| virtual void | computeDataVariance () |
| | Compute the DataVariance based on an assessment of callback etc. More...
|
| |
| void | setUserDataContainer (osg::UserDataContainer *udc) |
| | set the UserDataContainer object. More...
|
| |
| template<class T > |
| void | setUserDataContainer (const ref_ptr< T > &udc) |
| |
| osg::UserDataContainer * | getUserDataContainer () |
| | get the UserDataContainer attached to this object. More...
|
| |
| const osg::UserDataContainer * | getUserDataContainer () const |
| | get the const UserDataContainer attached to this object. More...
|
| |
| osg::UserDataContainer * | getOrCreateUserDataContainer () |
| | Convenience method that returns the UserDataContainer, and if one doesn't already exist creates and assigns a DefaultUserDataContainer to the Object and then return this new UserDataContainer. More...
|
| |
| virtual void | setUserData (Referenced *obj) |
| | Set user data, data must be subclassed from Referenced to allow automatic memory handling. More...
|
| |
| template<class T > |
| void | setUserData (const ref_ptr< T > &ud) |
| |
| virtual Referenced * | getUserData () |
| | Get user data. More...
|
| |
| virtual const Referenced * | getUserData () const |
| | Get const user data. More...
|
| |
| template<typename T > |
| bool | getUserValue (const std::string &name, T &value) const |
| | Convenience method that casts the named UserObject to osg::TemplateValueObject<T> and gets the value. More...
|
| |
| template<typename T > |
| void | setUserValue (const std::string &name, const T &value) |
| | Convenience method that creates the osg::TemplateValueObject<T> to store the specified value and adds it as a named UserObject. More...
|
| |
| virtual void | resizeGLObjectBuffers (unsigned int) |
| | Resize any per context GLObject buffers to specified size. More...
|
| |
| virtual void | releaseGLObjects (osg::State *=0) const |
| | If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. More...
|
| |
| template<typename T > |
| BoolValueObject UCharValueObject UShortValueObject UIntValueObject DoubleValueObject Vec3fValueObject Vec2dValueObject Vec4dValueObject PlaneValueObject MatrixdValueObject BoundingBoxdValueObject BoundingSpheredValueObject bool | getUserValue (const std::string &name, T &value) const |
| | provide implementation of osg::Object::getUserValue(..) template More...
|
| |
| | Referenced () |
| |
| | Referenced (bool threadSafeRefUnref) |
| | Deprecated, Referenced is now always uses thread safe ref/unref, use default Referenced() constructor instead. More...
|
| |
| | Referenced (const Referenced &) |
| |
| Referenced & | operator= (const Referenced &) |
| |
| bool | getThreadSafeRefUnref () const |
| | Get whether a mutex is used to ensure ref() and unref() are thread safe. More...
|
| |
| OpenThreads::Mutex * | getRefMutex () const |
| | Get the mutex used to ensure thread safety of ref()/unref(). More...
|
| |
| int | ref () const |
| | Increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
|
| |
| int | unref () const |
| | Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
|
| |
| int | unref_nodelete () const |
| | Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
|
| |
| int | referenceCount () const |
| | Return the number of pointers currently referencing this object. More...
|
| |
| ObserverSet * | getObserverSet () const |
| | Get the ObserverSet if one is attached, otherwise return NULL. More...
|
| |
| ObserverSet * | getOrCreateObserverSet () const |
| | Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet. More...
|
| |
| void | addObserver (Observer *observer) const |
| | Add a Observer that is observing this object, notify the Observer when this object gets deleted. More...
|
| |
| void | removeObserver (Observer *observer) const |
| | Remove Observer that is observing this object. More...
|
| |