Panda3D

softEggGroupUserData.h

00001 // Filename: softEggGroupUserData.h
00002 // Created by:  masad (25Sep03)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef SOFTEGGGROUPUSERDATA_H
00016 #define SOFTEGGGROUPUSERDATA_H
00017 
00018 #include "pandatoolbase.h"
00019 #include "eggUserData.h"
00020 
00021 ////////////////////////////////////////////////////////////////////
00022 //       Class : SoftEggGroupUserData
00023 // Description : This class contains extra user data which is
00024 //               piggybacked onto EggGroup objects for the purpose of
00025 //               the softimage converter.
00026 ////////////////////////////////////////////////////////////////////
00027 class SoftEggGroupUserData : public EggUserData {
00028 public:
00029   INLINE SoftEggGroupUserData();
00030   INLINE SoftEggGroupUserData(const SoftEggGroupUserData &copy);
00031   INLINE void operator = (const SoftEggGroupUserData &copy);
00032 
00033   bool _vertex_color;
00034   bool _double_sided;
00035 
00036 public:
00037   static TypeHandle get_class_type() {
00038     return _type_handle;
00039   }
00040   static void init_type() {
00041     EggUserData::init_type();
00042     register_type(_type_handle, "SoftEggGroupUserData",
00043                   EggUserData::get_class_type());
00044   }
00045   virtual TypeHandle get_type() const {
00046     return get_class_type();
00047   }
00048   virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
00049 
00050 private:
00051   static TypeHandle _type_handle;
00052 };
00053 
00054 #include "softEggGroupUserData.I"
00055 
00056 #endif
 All Classes Functions Variables Enumerations