Moved the set/getName() support from osg::Node etc into the osg::Obejct

base class
This commit is contained in:
Robert Osfield
2005-06-08 13:16:19 +00:00
parent 69cd27e37f
commit 27c4c6a956
19 changed files with 135 additions and 122 deletions

View File

@@ -29,13 +29,6 @@ bool Node_readLocalData(Object& obj, Input& fr)
Node& node = static_cast<Node&>(obj);
if (fr.matchSequence("name %s"))
{
node.setName(fr[1].getStr());
fr+=2;
iteratorAdvanced = true;
}
unsigned int mask = node.getNodeMask();
if (fr[0].matchWord("nodeMask") && fr[1].getUInt(mask))
{
@@ -190,8 +183,6 @@ bool Node_writeLocalData(const Object& obj, Output& fw)
{
const Node& node = static_cast<const Node&>(obj);
if (!node.getName().empty()) fw.indent() << "name "<<fw.wrapString(node.getName())<< std::endl;
fw.indent() << "nodeMask 0x" << hex << node.getNodeMask() << dec << std::endl;
fw.indent() << "cullingActive ";