* Copy constructor.
*/
SGPropertyNode::SGPropertyNode (const SGPropertyNode &node)
- : _index(node._index),
+ : SGReferenced(node),
+ _index(node._index),
_name(node._name),
_parent(0), // don't copy the parent
_type(node._type),
}
Effect::Effect(const Effect& rhs, const CopyOp& copyop)
- : root(rhs.root), parametersProp(rhs.parametersProp), _cache(0),
+ : osg::Object(rhs,copyop), root(rhs.root), parametersProp(rhs.parametersProp), _cache(0),
_isRealized(rhs._isRealized)
{
typedef vector<ref_ptr<Technique> > TechniqueList;
}
EffectCullVisitor::EffectCullVisitor(const EffectCullVisitor& rhs) :
+ osg::Referenced(rhs),
CullVisitor(rhs)
{
}
}
Technique::Technique(const Technique& rhs, const osg::CopyOp& copyop) :
+ osg::Object(rhs,copyop),
_contextMap(rhs._contextMap), _alwaysValid(rhs._alwaysValid),
_shadowingStateSet(copyop(rhs._shadowingStateSet.get())),
_validExpression(rhs._validExpression),
struct ContextInfo : public osg::Referenced
{
ContextInfo() : valid(UNKNOWN) {}
- ContextInfo(const ContextInfo& rhs) : valid(rhs.valid()) {}
+ ContextInfo(const ContextInfo& rhs) : osg::Referenced(rhs), valid(rhs.valid()) {}
ContextInfo& operator=(const ContextInfo& rhs)
{
valid = rhs.valid;
SGSceneUserData() {}
SGSceneUserData(const SGSceneUserData& rhs,
const osg::CopyOp& copyOp = osg::CopyOp::SHALLOW_COPY)
- : _bvhNode(rhs._bvhNode), _velocity(rhs._velocity),
+ : osg::Object(rhs,copyOp),
+ _bvhNode(rhs._bvhNode), _velocity(rhs._velocity),
_pickCallbacks(rhs._pickCallbacks)
{
}