SoWx
0.1.0
Coin3D GUI toolkit binding
|
The SoWxObject class is the common superclass for all SoWx component classes. More...
#include <Inventor/Wx/SoWxObject.h>
Public Member Functions | |
virtual SoType | getTypeId (void) const =0 |
SbBool | isOfType (SoType type) const |
Static Public Member Functions | |
static SoType | getClassTypeId (void) |
static void | init (void) |
static void | initClass (void) |
The SoWxObject class is the common superclass for all SoWx component classes.
The purpose of making this class the superclass of all SoWx device, component and viewer classes is to be able to do runtime type checking of the SoWx objects.
You can place the macro SOWX_OBJECT_HEADER(classname,parentname) within a class definition header for SoWx extension components to automatically provide the necessary definitions for setting up a runtime type system for your extension classes:
Then put the SOWX_OBJECT_SOURCE(classname) macro within the actual implementation source code file to include the necessary code for the runtime type system:
See also the documentation of the SoType class in Coin or Inventor.
|
static |
This static method returns the SoType object associated with objects of this class.
|
pure virtual |
Returns the type identification of an object derived from a class inheriting SoWxObject. This is used for runtime type checking and "downward" casting.
Usage example:
|
static |
Initialize the type system of SoWxObject, all SoWx device classes and all SoWx components (including viewers).
|
static |
Sets up initialization for data common to all instances of this class, submitting necessary information to the internal SoWx type system.
SbBool SoWxObject::isOfType | ( | SoType | type | ) | const |
Returns TRUE
if the type of this object is either of the same type or inherited from type.