Panda3D
mayaEggGroupUserData.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file mayaEggGroupUserData.h
10  * @author drose
11  * @date 2003-06-03
12  */
13 
14 #ifndef MAYAEGGGROUPUSERDATA_H
15 #define MAYAEGGGROUPUSERDATA_H
16 
17 #include "pandatoolbase.h"
18 #include "eggUserData.h"
19 
20 /**
21  * This class contains extra user data which is piggybacked onto EggGroup
22  * objects for the purpose of the maya converter.
23  */
25 public:
26  INLINE MayaEggGroupUserData();
27  INLINE MayaEggGroupUserData(const MayaEggGroupUserData &copy);
28  INLINE void operator = (const MayaEggGroupUserData &copy);
29 
30  bool _vertex_color;
31  bool _double_sided;
32 
33 public:
34  static TypeHandle get_class_type() {
35  return _type_handle;
36  }
37  static void init_type() {
38  EggUserData::init_type();
39  register_type(_type_handle, "MayaEggGroupUserData",
40  EggUserData::get_class_type());
41  }
42  virtual TypeHandle get_type() const {
43  return get_class_type();
44  }
45  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
46 
47 private:
48  static TypeHandle _type_handle;
49 };
50 
51 #include "mayaEggGroupUserData.I"
52 
53 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition: register_type.I:22
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
This is a base class for a user-defined data type to extend egg structures in processing code.
Definition: eggUserData.h:29
This class contains extra user data which is piggybacked onto EggGroup objects for the purpose of the...