Added: #1440 Pointer to CScene storage
--HG-- branch : build_pipeline_v3hg/feature/build_pipeline_v3
parent
1f49f906ba
commit
72d587fb51
@ -1,59 +0,0 @@
|
|||||||
/**
|
|
||||||
* \file node.cpp
|
|
||||||
* \brief CNode
|
|
||||||
* \date 2012-08-22 08:57GMT
|
|
||||||
* \author Jan Boon (Kaetemi)
|
|
||||||
* CNode
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 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 "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 {
|
|
||||||
|
|
||||||
CNode::CNode()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
CNode::~CNode()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
} /* namespace BUILTIN */
|
|
||||||
} /* namespace MAX */
|
|
||||||
} /* namespace PIPELINE */
|
|
||||||
|
|
||||||
/* end of file */
|
|
@ -1,63 +0,0 @@
|
|||||||
/**
|
|
||||||
* \file node.h
|
|
||||||
* \brief CNode
|
|
||||||
* \date 2012-08-22 08:57GMT
|
|
||||||
* \author Jan Boon (Kaetemi)
|
|
||||||
* CNode
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* 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_NODE_H
|
|
||||||
#define PIPELINE_NODE_H
|
|
||||||
#include <nel/misc/types_nl.h>
|
|
||||||
|
|
||||||
// STL includes
|
|
||||||
|
|
||||||
// NeL includes
|
|
||||||
|
|
||||||
// Project includes
|
|
||||||
#include "reference_target.h"
|
|
||||||
|
|
||||||
namespace PIPELINE {
|
|
||||||
namespace MAX {
|
|
||||||
namespace BUILTIN {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* \brief CNode
|
|
||||||
* \date 2012-08-22 08:57GMT
|
|
||||||
* \author Jan Boon (Kaetemi)
|
|
||||||
* CNode
|
|
||||||
*/
|
|
||||||
class CNode : public CReferenceTarget
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
CNode();
|
|
||||||
virtual ~CNode();
|
|
||||||
|
|
||||||
}; /* class CNode */
|
|
||||||
|
|
||||||
} /* namespace BUILTIN */
|
|
||||||
} /* namespace MAX */
|
|
||||||
} /* namespace PIPELINE */
|
|
||||||
|
|
||||||
#endif /* #ifndef PIPELINE_NODE_H */
|
|
||||||
|
|
||||||
/* end of file */
|
|
@ -0,0 +1,111 @@
|
|||||||
|
/**
|
||||||
|
* \file node_impl.cpp
|
||||||
|
* \brief CNodeImpl
|
||||||
|
* \date 2012-08-22 20:01GMT
|
||||||
|
* \author Jan Boon (Kaetemi)
|
||||||
|
* CNodeImpl
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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 "node_impl.h"
|
||||||
|
|
||||||
|
// STL includes
|
||||||
|
|
||||||
|
// NeL includes
|
||||||
|
// #include <nel/misc/debug.h>
|
||||||
|
|
||||||
|
// Project includes
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
// using namespace NLMISC;
|
||||||
|
|
||||||
|
namespace PIPELINE {
|
||||||
|
namespace MAX {
|
||||||
|
namespace BUILTIN {
|
||||||
|
|
||||||
|
CNodeImpl::CNodeImpl(CScene *scene) : INode(scene)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
CNodeImpl::~CNodeImpl()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
const ucstring CNodeImpl::DisplayName = ucstring("Node");
|
||||||
|
const char *CNodeImpl::InternalName = "NodeImpl";
|
||||||
|
const NLMISC::CClassId CNodeImpl::ClassId = NLMISC::CClassId(0x00000001, 0x00000000);
|
||||||
|
const TSClassId CNodeImpl::SuperClassId = INode::SuperClassId;
|
||||||
|
const CNodeImplClassDesc NodeImplClassDesc(&DllPluginDescBuiltin);
|
||||||
|
|
||||||
|
void CNodeImpl::parse(uint16 version, TParseLevel level)
|
||||||
|
{
|
||||||
|
INode::parse(version, level);
|
||||||
|
}
|
||||||
|
|
||||||
|
void CNodeImpl::clean()
|
||||||
|
{
|
||||||
|
INode::clean();
|
||||||
|
}
|
||||||
|
|
||||||
|
void CNodeImpl::build(uint16 version)
|
||||||
|
{
|
||||||
|
INode::build(version);
|
||||||
|
}
|
||||||
|
|
||||||
|
void CNodeImpl::disown()
|
||||||
|
{
|
||||||
|
INode::disown();
|
||||||
|
}
|
||||||
|
|
||||||
|
void CNodeImpl::init()
|
||||||
|
{
|
||||||
|
INode::init();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool CNodeImpl::inherits(const NLMISC::CClassId classId) const
|
||||||
|
{
|
||||||
|
if (classId == classDesc()->classId()) return true;
|
||||||
|
return INode::inherits(classId);
|
||||||
|
}
|
||||||
|
|
||||||
|
const ISceneClassDesc *CNodeImpl::classDesc() const
|
||||||
|
{
|
||||||
|
return &NodeImplClassDesc;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CNodeImpl::toStringLocal(std::ostream &ostream, const std::string &pad) const
|
||||||
|
{
|
||||||
|
INode::toStringLocal(ostream, pad);
|
||||||
|
}
|
||||||
|
|
||||||
|
IStorageObject *CNodeImpl::createChunkById(uint16 id, bool container)
|
||||||
|
{
|
||||||
|
return INode::createChunkById(id, container);
|
||||||
|
}
|
||||||
|
|
||||||
|
} /* namespace BUILTIN */
|
||||||
|
} /* namespace MAX */
|
||||||
|
} /* namespace PIPELINE */
|
||||||
|
|
||||||
|
/* end of file */
|
@ -0,0 +1,86 @@
|
|||||||
|
/**
|
||||||
|
* \file node_impl.h
|
||||||
|
* \brief CNodeImpl
|
||||||
|
* \date 2012-08-22 20:01GMT
|
||||||
|
* \author Jan Boon (Kaetemi)
|
||||||
|
* CNodeImpl
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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_NODE_IMPL_H
|
||||||
|
#define PIPELINE_NODE_IMPL_H
|
||||||
|
#include <nel/misc/types_nl.h>
|
||||||
|
|
||||||
|
// STL includes
|
||||||
|
|
||||||
|
// NeL includes
|
||||||
|
|
||||||
|
// Project includes
|
||||||
|
#include "i_node.h"
|
||||||
|
|
||||||
|
namespace PIPELINE {
|
||||||
|
namespace MAX {
|
||||||
|
namespace BUILTIN {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief CNodeImpl
|
||||||
|
* \date 2012-08-22 20:01GMT
|
||||||
|
* \author Jan Boon (Kaetemi)
|
||||||
|
* CNodeImpl
|
||||||
|
*/
|
||||||
|
class CNodeImpl : public INode
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CNodeImpl(CScene *scene);
|
||||||
|
virtual ~CNodeImpl();
|
||||||
|
|
||||||
|
// 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, TParseLevel level);
|
||||||
|
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 CNodeImpl */
|
||||||
|
|
||||||
|
typedef CSceneClassDesc<CNodeImpl> CNodeImplClassDesc;
|
||||||
|
extern const CNodeImplClassDesc NodeImplClassDesc;
|
||||||
|
|
||||||
|
} /* namespace BUILTIN */
|
||||||
|
} /* namespace MAX */
|
||||||
|
} /* namespace PIPELINE */
|
||||||
|
|
||||||
|
#endif /* #ifndef PIPELINE_NODE_IMPL_H */
|
||||||
|
|
||||||
|
/* end of file */
|
Loading…
Reference in New Issue