Panda3D
eggOptcharUserData.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 eggOptcharUserData.h
10  * @author drose
11  * @date 2003-07-18
12  */
13 
14 #ifndef EGGOPTCHARUSERDATA_H
15 #define EGGOPTCHARUSERDATA_H
16 
17 #include "pandatoolbase.h"
18 #include "eggUserData.h"
19 #include "luse.h"
20 
21 /**
22  * This class contains extra user data which is piggybacked onto EggGroup
23  * objects for the purpose of the maya converter.
24  */
26 public:
27  INLINE EggOptcharUserData();
28  INLINE EggOptcharUserData(const EggOptcharUserData &copy);
29  INLINE void operator = (const EggOptcharUserData &copy);
30 
31  INLINE bool is_static() const;
32  INLINE bool is_identity() const;
33  INLINE bool is_empty() const;
34  INLINE bool is_top() const;
35 
36  enum Flags {
37  F_static = 0x0001,
38  F_identity = 0x0002,
39  F_empty = 0x0004,
40  F_top = 0x0008,
41  F_remove = 0x0010,
42  F_expose = 0x0020,
43  F_suppress = 0x0040,
44  };
45  int _flags;
46  LMatrix4d _static_mat;
47  double _static_value;
48 
49 public:
50  static TypeHandle get_class_type() {
51  return _type_handle;
52  }
53  static void init_type() {
54  EggUserData::init_type();
55  register_type(_type_handle, "EggOptcharUserData",
56  EggUserData::get_class_type());
57  }
58  virtual TypeHandle get_type() const {
59  return get_class_type();
60  }
61  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
62 
63 private:
64  static TypeHandle _type_handle;
65 };
66 
67 #include "eggOptcharUserData.I"
68 
69 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
This class contains extra user data which is piggybacked onto EggGroup objects for the purpose of the...
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