Linux multi-monitor fullscreen support
[ryzomcore.git] / nel / tools / 3d / pipeline_max / builtin / patch_object.cpp
blobfecba76407ccb6cbd73d9df14a27aed4f34e8412
1 /**
2 * \file patch_object.cpp
3 * \brief CPatchObject
4 * \date 2012-08-22 08:58GMT
5 * \author Jan Boon (Kaetemi)
6 * CPatchObject
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 "patch_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 CPatchObject::CPatchObject(CScene *scene) : CGeomObject(scene)
50 CPatchObject::~CPatchObject()
55 const ucstring CPatchObject::DisplayName = ucstring("PatchObject");
56 const char *CPatchObject::InternalName = "PatchObject";
57 const NLMISC::CClassId CPatchObject::ClassId = NLMISC::CClassId(0xd0a6b36, 0x7dce4b64); /* Not official, please correct */
58 const TSClassId CPatchObject::SuperClassId = CGeomObject::SuperClassId;
59 const CPatchObjectClassDesc PatchObjectClassDesc(&DllPluginDescBuiltin);
61 void CPatchObject::parse(uint16 version, uint filter)
63 CGeomObject::parse(version);
66 void CPatchObject::clean()
68 CGeomObject::clean();
71 void CPatchObject::build(uint16 version, uint filter)
73 CGeomObject::build(version);
76 void CPatchObject::disown()
78 CGeomObject::disown();
81 void CPatchObject::init()
83 CGeomObject::init();
86 bool CPatchObject::inherits(const NLMISC::CClassId classId) const
88 if (classId == classDesc()->classId()) return true;
89 return CGeomObject::inherits(classId);
92 const ISceneClassDesc *CPatchObject::classDesc() const
94 return &PatchObjectClassDesc;
97 void CPatchObject::toStringLocal(std::ostream &ostream, const std::string &pad, uint filter) const
99 CGeomObject::toStringLocal(ostream, pad);
102 IStorageObject *CPatchObject::createChunkById(uint16 id, bool container)
104 return CGeomObject::createChunkById(id, container);
107 } /* namespace BUILTIN */
108 } /* namespace MAX */
109 } /* namespace PIPELINE */
111 /* end of file */