Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
The SoWinObject class is the common superclass for all SoWin component classes. More...
#include <Inventor/Win/SoWinObject.h>
Public Member Functions | |
virtual SoType | getTypeId (void) const =0 |
SbBool | isOfType (SoType type) const |
Static Public Member Functions | |
static void | initClass (void) |
static SoType | getClassTypeId (void) |
static void | init (void) |
The SoWinObject class is the common superclass for all SoWin component classes.
The purpose of making this class the superclass of all SoWin device, component and viewer classes is to be able to do run-time type checking of the SoWin objects.
You can place the macro SOWIN_OBJECT_HEADER(classname,parentname) within a class definition header for SoWin extension components to automatically make the necessary definitions for setting up a run-time type system for your extension classes:
Then put the SOWIN_OBJECT_SOURCE(classname) macro within the actual implementation sourcecode file to include the necessary code for the run-time type system:
See also the documentation of the SoType class in Coin or Inventor.
|
static |
Sets up initialization for data common to all instances of this class, submitting necessary information to the internal SoWin type system.
|
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 SoWinObject. This is used for run-time type checking and "downward" casting.
Usage example:
SbBool SoWinObject::isOfType | ( | SoType | type | ) | const |
Returns TRUE
if the type of this object is either of the same type or inherited from type.
|
static |
Initialize the type system of SoWinObject, all SoWin device classes and all SoWin components (including viewers).