parent
76b33139e2
commit
359ee113a7
@ -0,0 +1,111 @@
|
||||
/**
|
||||
* \file root_node.cpp
|
||||
* \brief CRootNode
|
||||
* \date 2012-08-22 19:45GMT
|
||||
* \author Jan Boon (Kaetemi)
|
||||
* CRootNode
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2012 by authors
|
||||
*
|
||||
* This file is part of RYZOM CORE PIPELINE.
|
||||
* RYZOM CORE PIPELINE is free software: you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Affero General Public
|
||||
* License as published by the Free Software Foundation, either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* RYZOM CORE PIPELINE is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public
|
||||
* License along with RYZOM CORE PIPELINE. If not, see
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <nel/misc/types_nl.h>
|
||||
#include "root_node.h"
|
||||
|
||||
// STL includes
|
||||
|
||||
// NeL includes
|
||||
// #include <nel/misc/debug.h>
|
||||
|
||||
// Project includes
|
||||
|
||||
using namespace std;
|
||||
// using namespace NLMISC;
|
||||
|
||||
namespace PIPELINE {
|
||||
namespace MAX {
|
||||
namespace BUILTIN {
|
||||
|
||||
CRootNode::CRootNode(CScene *scene) : INode(scene)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
CRootNode::~CRootNode()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
const ucstring CRootNode::DisplayName = ucstring("RootNode");
|
||||
const char *CRootNode::InternalName = "RootNode";
|
||||
const NLMISC::CClassId CRootNode::ClassId = NLMISC::CClassId(0x00000002, 0x00000000);
|
||||
const TSClassId CRootNode::SuperClassId = INode::SuperClassId;
|
||||
const CRootNodeClassDesc RootNodeClassDesc(&DllPluginDescBuiltin);
|
||||
|
||||
void CRootNode::parse(uint16 version)
|
||||
{
|
||||
INode::parse(version);
|
||||
}
|
||||
|
||||
void CRootNode::clean()
|
||||
{
|
||||
INode::clean();
|
||||
}
|
||||
|
||||
void CRootNode::build(uint16 version)
|
||||
{
|
||||
INode::build(version);
|
||||
}
|
||||
|
||||
void CRootNode::disown()
|
||||
{
|
||||
INode::disown();
|
||||
}
|
||||
|
||||
void CRootNode::init()
|
||||
{
|
||||
INode::init();
|
||||
}
|
||||
|
||||
bool CRootNode::inherits(const NLMISC::CClassId classId) const
|
||||
{
|
||||
if (classId == classDesc()->classId()) return true;
|
||||
return INode::inherits(classId);
|
||||
}
|
||||
|
||||
const ISceneClassDesc *CRootNode::classDesc() const
|
||||
{
|
||||
return &RootNodeClassDesc;
|
||||
}
|
||||
|
||||
void CRootNode::toStringLocal(std::ostream &ostream, const std::string &pad) const
|
||||
{
|
||||
INode::toStringLocal(ostream, pad);
|
||||
}
|
||||
|
||||
IStorageObject *CRootNode::createChunkById(uint16 id, bool container)
|
||||
{
|
||||
return INode::createChunkById(id, container);
|
||||
}
|
||||
|
||||
} /* namespace BUILTIN */
|
||||
} /* namespace MAX */
|
||||
} /* namespace PIPELINE */
|
||||
|
||||
/* end of file */
|
@ -0,0 +1,86 @@
|
||||
/**
|
||||
* \file root_node.h
|
||||
* \brief CRootNode
|
||||
* \date 2012-08-22 19:45GMT
|
||||
* \author Jan Boon (Kaetemi)
|
||||
* CRootNode
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2012 by authors
|
||||
*
|
||||
* This file is part of RYZOM CORE PIPELINE.
|
||||
* RYZOM CORE PIPELINE is free software: you can redistribute it
|
||||
* and/or modify it under the terms of the GNU Affero General Public
|
||||
* License as published by the Free Software Foundation, either
|
||||
* version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* RYZOM CORE PIPELINE is distributed in the hope that it will be
|
||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
|
||||
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public
|
||||
* License along with RYZOM CORE PIPELINE. If not, see
|
||||
* <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef PIPELINE_ROOT_NODE_H
|
||||
#define PIPELINE_ROOT_NODE_H
|
||||
#include <nel/misc/types_nl.h>
|
||||
|
||||
// STL includes
|
||||
|
||||
// NeL includes
|
||||
|
||||
// Project includes
|
||||
#include "i_node.h"
|
||||
|
||||
namespace PIPELINE {
|
||||
namespace MAX {
|
||||
namespace BUILTIN {
|
||||
|
||||
/**
|
||||
* \brief CRootNode
|
||||
* \date 2012-08-22 20:01GMT
|
||||
* \author Jan Boon (Kaetemi)
|
||||
* CRootNode
|
||||
*/
|
||||
class CRootNode : public INode
|
||||
{
|
||||
public:
|
||||
CRootNode(CScene *scene);
|
||||
virtual ~CRootNode();
|
||||
|
||||
// class desc
|
||||
static const ucstring DisplayName;
|
||||
static const char *InternalName;
|
||||
static const NLMISC::CClassId ClassId;
|
||||
static const TSClassId SuperClassId;
|
||||
|
||||
// inherited
|
||||
virtual void parse(uint16 version);
|
||||
virtual void clean();
|
||||
virtual void build(uint16 version);
|
||||
virtual void disown();
|
||||
virtual void init();
|
||||
virtual bool inherits(const NLMISC::CClassId classId) const;
|
||||
virtual const ISceneClassDesc *classDesc() const;
|
||||
virtual void toStringLocal(std::ostream &ostream, const std::string &pad = "") const;
|
||||
|
||||
protected:
|
||||
// inherited
|
||||
virtual IStorageObject *createChunkById(uint16 id, bool container);
|
||||
|
||||
}; /* class CRootNode */
|
||||
|
||||
typedef CSceneClassDesc<CRootNode> CRootNodeClassDesc;
|
||||
extern const CRootNodeClassDesc RootNodeClassDesc;
|
||||
|
||||
} /* namespace BUILTIN */
|
||||
} /* namespace MAX */
|
||||
} /* namespace PIPELINE */
|
||||
|
||||
#endif /* #ifndef PIPELINE_ROOT_NODE_H */
|
||||
|
||||
/* end of file */
|
Loading…
Reference in New Issue