Public Member Functions | |
| Chip * | getChip (unsigned int value) |
| Chip * | getChip (const std::string &name) |
| bool | unserialize (struct _xmlDoc *doc, osgDB::Registry *registry) |
| bool | unserialize (const std::string &fileName, osgDB::Registry *registry) |
Static Public Member Functions | |
| ChipBank * | instance () |
Repository of osgchips::ChipBank::Chip objects that define the type of chip displayed by a given osgchips::Stack instance. osgchips::ChipBank is designed to have a single instance which is created and filled by reading a osgchips XML element (either from a file or from an in-memory XML document).
A chip is defined by
|
|
Return the chip whose symbolic name equals value.
|
|
|
Return the chip whose numerical value equals value.
|
|
|
Get the osgchips::ChipBank singleton. It is created if necessary.
|
|
||||||||||||
|
Parse the fileName and interpret any osgchips XML element to fill the osgchips::ChipBank singleton. The registry can be obtained by the osgDB::Registry::instance() static method. See the other prototype for more information.
|
|
||||||||||||
|
Look for an osgchips XML element and fill the osgchips::ChipBank singleton. The registry can be obtained by the osgDB::Registry::instance() static method. It is not mandatory for the XML document to contain an osgchips element. The XML document may contain more than one osgchips element. Each element will add content to the osgchips::ChipBank singleton.
|
1.3.9.1