/****************************************************************************** libx42.net - skinned vertex animation library (.NET API) Copyright (C) 2007 HermitWorks Entertainment Corporation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program 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 General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA. ******************************************************************************/ #pragma once #include "ModelItemCollection.h" namespace Libx42 { ref class Model; ref class Group; ref class GroupCollection; public ref class Lod { public: [ComponentModel::EditorBrowsable( ComponentModel::EditorBrowsableState::Advanced )] property const x42lodRange_t& RawLod { const x42lodRange_t& get( void ); } property Model^ Owner { Model^ get( void ) { return owner; } } property int Index { int get( void ) { return index; } } property int NameIndex { int get( void ) { return RawLod.lodName; } } property GroupCollection^ Groups { GroupCollection^ get( void ) { return groups; } } internal: Lod( Model ^owner, int index ); private: Model ^owner; int index; GroupCollection ^groups; }; public ref class LodCollection : public ModelItemCollection< Lod^ > { public: internal: LodCollection( Model ^owner ); }; };