Replace a texture in the airplane model with another.
More...
Inherits osg::NodeVisitor.
|
| ReplaceStaticTextureVisitor (const char *name, osg::Texture2D *new_texture) |
|
| ReplaceStaticTextureVisitor (SGPropertyNode *placement, osg::Texture2D *new_texture, osg::NodeCallback *cull_callback=0, const simgear::canvas::CanvasWeakPtr &canvas=simgear::canvas::CanvasWeakPtr()) |
|
simgear::canvas::Placements & | getPlacements () |
| Get a list of groups which have been inserted into the scene graph to replace the given texture.
|
|
virtual void | apply (osg::Geode &node) |
|
void | modify_groups () |
|
|
const std::string & | getNodeName (const osg::Node &node) const |
|
Replace a texture in the airplane model with another.
Definition at line 34 of file texture_replace.cxx.
◆ GroupList
◆ GroupPtr
◆ MaterialPtr
◆ ReplaceStaticTextureVisitor() [1/2]
canvas::ReplaceStaticTextureVisitor::ReplaceStaticTextureVisitor |
( |
const char * | name, |
|
|
osg::Texture2D * | new_texture ) |
|
inline |
◆ ReplaceStaticTextureVisitor() [2/2]
canvas::ReplaceStaticTextureVisitor::ReplaceStaticTextureVisitor |
( |
SGPropertyNode * | placement, |
|
|
osg::Texture2D * | new_texture, |
|
|
osg::NodeCallback * | cull_callback = 0, |
|
|
const simgear::canvas::CanvasWeakPtr & | canvas = simgear::canvas::CanvasWeakPtr() ) |
|
inline |
◆ apply()
virtual void canvas::ReplaceStaticTextureVisitor::apply |
( |
osg::Geode & | node | ) |
|
|
inlinevirtual |
◆ getNodeName()
const std::string & canvas::ReplaceStaticTextureVisitor::getNodeName |
( |
const osg::Node & | node | ) |
const |
|
inlineprotected |
◆ getPlacements()
simgear::canvas::Placements & canvas::ReplaceStaticTextureVisitor::getPlacements |
( |
| ) |
|
|
inline |
Get a list of groups which have been inserted into the scene graph to replace the given texture.
Definition at line 79 of file texture_replace.cxx.
◆ modify_groups()
void canvas::ReplaceStaticTextureVisitor::modify_groups |
( |
| ) |
|
|
inline |
◆ _canvas
simgear::canvas::CanvasWeakPtr canvas::ReplaceStaticTextureVisitor::_canvas |
|
protected |
◆ _cull_callback
osg::NodeCallback* canvas::ReplaceStaticTextureVisitor::_cull_callback |
|
protected |
◆ _new_texture
osg::Texture2D* canvas::ReplaceStaticTextureVisitor::_new_texture |
|
protected |
◆ _node
SGPropertyNode_ptr canvas::ReplaceStaticTextureVisitor::_node |
|
protected |
◆ _node_name
std::string canvas::ReplaceStaticTextureVisitor::_node_name |
|
protected |
◆ _parent_name
std::string canvas::ReplaceStaticTextureVisitor::_parent_name |
|
protected |
!
Only replace if any parent node matches given name (all the tree upwards)
Definition at line 192 of file texture_replace.cxx.
◆ _placements
simgear::canvas::Placements canvas::ReplaceStaticTextureVisitor::_placements |
|
protected |
◆ _tex_name
std::string canvas::ReplaceStaticTextureVisitor::_tex_name |
|
protected |
!
PBR texture name to be replaced (base-color, normalmap, orm, etc.). This is not the actual texture filename
Definition at line 188 of file texture_replace.cxx.
◆ groups_to_modify
GroupList canvas::ReplaceStaticTextureVisitor::groups_to_modify |
|
protected |
The documentation for this class was generated from the following file: