Commit dc330043 authored by Jan Möbius's avatar Jan Möbius
Browse files

Removed warning about overloaded hidden virtual functions.

The BaseObjectData init function has been renamed to initializeScenegraphNodes and is now private, as
it is not used externally. It was never called by the derived classes except implicitly by the constructor
of the base class.



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14481 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ac5a0fae
......@@ -75,8 +75,8 @@ BaseObjectData::BaseObjectData(const BaseObjectData& _object)
boundingBoxNode_(0),
stencilRefNode_(0)
{
// We have to create our own visualization nodes as we are a new object
init();
/// We have to create our own visualization nodes as we are a new object
initializeScenegraphNodes();
}
BaseObjectData::BaseObjectData() :
......@@ -90,7 +90,7 @@ BaseObjectData::BaseObjectData() :
boundingBoxNode_(0),
stencilRefNode_(0)
{
init();
initializeScenegraphNodes();
}
BaseObjectData::~BaseObjectData() {
......@@ -117,10 +117,10 @@ void BaseObjectData::cleanup() {
BaseObject::cleanup();
BaseObjectData::init();
initializeScenegraphNodes();
}
void BaseObjectData::init() {
void BaseObjectData::initializeScenegraphNodes() {
// Create seperatorNode for Object only if it does not exist.
if ( separatorNode_ == 0 )
separatorNode_ = new SeparatorNode((BaseNode*)rootNode_,"NEW Object");
......
......@@ -113,9 +113,9 @@ class DLLEXPORT BaseObjectData : public BaseObject
///destructor
virtual ~BaseObjectData();
protected:
/** This function creates the scenegraph nodes */
virtual void init();
private:
/** This function creates the basic scenegraph nodes */
void initializeScenegraphNodes();
/** @} */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment