Linux multi-monitor fullscreen support
[ryzomcore.git] / nel / tools / 3d / pipeline_max / builtin / base_object.cpp
blob2dfa30fbddbfbbf7511e33ea5dba7bb6e26cfc25
1 /**
2 * \file base_object.cpp
3 * \brief CBaseObject
4 * \date 2012-08-22 08:53GMT
5 * \author Jan Boon (Kaetemi)
6 * CBaseObject
7 */
9 /*
10 * Copyright (C) 2012 by authors
12 * This file is part of RYZOM CORE PIPELINE.
13 * RYZOM CORE PIPELINE is free software: you can redistribute it
14 * and/or modify it under the terms of the GNU Affero General Public
15 * License as published by the Free Software Foundation, either
16 * version 3 of the License, or (at your option) any later version.
18 * RYZOM CORE PIPELINE is distributed in the hope that it will be
19 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
20 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Affero General Public License for more details.
23 * You should have received a copy of the GNU Affero General Public
24 * License along with RYZOM CORE PIPELINE. If not, see
25 * <http://www.gnu.org/licenses/>.
28 #include <nel/misc/types_nl.h>
29 #include "base_object.h"
31 // STL includes
33 // NeL includes
34 // #include <nel/misc/debug.h>
36 // Project includes
38 using namespace std;
39 // using namespace NLMISC;
41 namespace PIPELINE {
42 namespace MAX {
43 namespace BUILTIN {
45 CBaseObject::CBaseObject(CScene *scene) : CReferenceTarget(scene)
50 CBaseObject::~CBaseObject()
55 const ucstring CBaseObject::DisplayName = ucstring("BaseObject");
56 const char *CBaseObject::InternalName = "BaseObject";
57 // const char *CBaseObject::InternalNameUnknown = "BaseObjectUnknown";
58 const NLMISC::CClassId CBaseObject::ClassId = NLMISC::CClassId(0x71c8167a, 0x5a9f57b2); /* Not official, please correct */
59 const TSClassId CBaseObject::SuperClassId = CReferenceTarget::SuperClassId;
60 const CBaseObjectClassDesc BaseObjectClassDesc(&DllPluginDescBuiltin);
61 // const CBaseObjectSuperClassDesc BaseObjectSuperClassDesc(&BaseObjectClassDesc);
63 void CBaseObject::parse(uint16 version, uint filter)
65 CReferenceTarget::parse(version);
68 void CBaseObject::clean()
70 CReferenceTarget::clean();
73 void CBaseObject::build(uint16 version, uint filter)
75 CReferenceTarget::build(version);
78 void CBaseObject::disown()
80 CReferenceTarget::disown();
83 void CBaseObject::init()
85 CReferenceTarget::init();
88 bool CBaseObject::inherits(const NLMISC::CClassId classId) const
90 if (classId == classDesc()->classId()) return true;
91 return CReferenceTarget::inherits(classId);
94 const ISceneClassDesc *CBaseObject::classDesc() const
96 return &BaseObjectClassDesc;
99 void CBaseObject::toStringLocal(std::ostream &ostream, const std::string &pad, uint filter) const
101 CReferenceTarget::toStringLocal(ostream, pad);
104 IStorageObject *CBaseObject::createChunkById(uint16 id, bool container)
106 return CReferenceTarget::createChunkById(id, container);
109 } /* namespace BUILTIN */
110 } /* namespace MAX */
111 } /* namespace PIPELINE */
113 /* end of file */