Utility function for creation of a child property node using a relative path. More...
Namespaces | |
| namespace | props |
Property value types. | |
Classes | |
| class | BVHSubTreeCollector |
| Visitor to subcollect parts of an existing bounding volume tree. More... | |
| class | InitializeWhenAdded |
| Object to be initialized at some point after an effect -- and its containing effect geode -- are hooked into the scene graph. More... | |
| class | EffectBuilder |
| Builder that returns an object, probably an OSG object. More... | |
| struct | PropPredicate |
| Merge two property trees, producing a new tree. More... | |
| class | SGModelLib |
| Class for loading and managing models with XML wrappers. More... | |
| class | SGModelData |
| Abstract class for adding data to the scene graph. More... | |
| class | TileEntry |
| A class to encapsulate everything we need to know about a scenery tile. More... | |
| class | NodeAndDrawableVisitor |
| A node visitor that descends into Drawables too. More... | |
| class | VariableExpression |
| Access a variable definition. More... | |
| class | GeneralNaryExpression |
| An n-ary expression where the types of the argument aren't the same as the return type. More... | |
| class | PredicateExpression |
| A predicate that wraps, for example the STL template predicate expressions like std::equal_to. More... | |
| class | ConvertExpression |
| Convert an operand from OpType to T. More... | |
| class | Singleton |
| Class that supplies the address of a singleton instance. More... | |
Functions | |
| template<typename T > | |
| T | parseString (const std::string &str) |
| Parse a string as an object of a given type. | |
| const SGPropertyNode * | getEffectPropertyNode (Effect *effect, const SGPropertyNode *prop) |
| Given a property node from a pass, get its value either from it or from the effect parameters. | |
| const SGPropertyNode * | getEffectPropertyChild (Effect *effect, const SGPropertyNode *prop, const char *name) |
| Get a named child property from pass parameters or effect parameters. | |
| string | getGlobalProperty (const SGPropertyNode *prop) |
| Get the name of a node mentioned in a <use> clause from the global property tree. | |
| ref_ptr< Node > | instantiateEffects (osg::Node *model, PropertyList &effectProps, const osgDB::ReaderWriter::Options *options) |
| Transform an OSG subgraph by substituting Effects and EffectGeodes for osg::Geodes with osg::StateSets. | |
| osg::ref_ptr< osg::Node > | instantiateEffects (osg::Node *model, const osgDB::ReaderWriter::Options *options) |
| Transform an OSG subgraph by substituting the Effects and EffectGeodes for osg::Geodes with osg::StateSets, inheriting from the default model effect. | |
| SGPropertyNode * | getPropertyRoot () |
| Get the property root for the simulation. | |
| Primitive | getPrimitive (osg::Drawable *drawable, unsigned primitiveIndex) |
| Given a drawable and a primitive index (as returned from OSG intersection queries), get the coordinates of the primitives vertices. | |
| const std::string * | intern (const std::string &str) |
| Return a pointer to a single string object for a given string. | |
Utility function for creation of a child property node using a relative path.
Expression tree implementation.
Support classes for parsing effects.
| std::string simgear::getGlobalProperty | ( | const SGPropertyNode * | prop | ) |
Get the name of a node mentioned in a <use> clause from the global property tree.
| osg::ref_ptr<osg::Node> simgear::instantiateEffects | ( | osg::Node * | model, | |
| const osgDB::ReaderWriter::Options * | options | |||
| ) | [inline] |
Transform an OSG subgraph by substituting the Effects and EffectGeodes for osg::Geodes with osg::StateSets, inheriting from the default model effect.
This is only guaranteed to work for models prouced by the .ac loader.
returns a copy if any nodes are changed
| osg::ref_ptr< osg::Node > simgear::instantiateEffects | ( | osg::Node * | model, | |
| PropertyList & | effectProps, | |||
| const osgDB::ReaderWriter::Options * | options | |||
| ) |
Transform an OSG subgraph by substituting Effects and EffectGeodes for osg::Geodes with osg::StateSets.
This is only guaranteed to work for models prouced by the .ac loader.
returns a copy if any nodes are changed
1.6.1