18 #include "pandabase.h" 20 #include "eggNamedObject.h" 22 #include "typedObject.h" 24 #include "pointerTo.h" 25 #include "referenceCount.h" 40 INLINE
EggNode(
const string &name =
"");
41 INLINE EggNode(
const EggNode ©);
42 INLINE EggNode &operator = (
const EggNode ©);
45 INLINE
int get_depth()
const;
46 INLINE
bool is_under_instance()
const;
47 INLINE
bool is_under_transform()
const;
48 INLINE
bool is_local_coord()
const;
50 INLINE
const LMatrix4d &get_vertex_frame()
const;
51 INLINE
const LMatrix4d &get_node_frame()
const;
52 INLINE
const LMatrix4d &get_vertex_frame_inv()
const;
53 INLINE
const LMatrix4d &get_node_frame_inv()
const;
54 INLINE
const LMatrix4d &get_vertex_to_node()
const;
55 INLINE
const LMatrix4d &get_node_to_vertex()
const;
57 INLINE
const LMatrix4d *get_vertex_frame_ptr()
const;
58 INLINE
const LMatrix4d *get_node_frame_ptr()
const;
59 INLINE
const LMatrix4d *get_vertex_frame_inv_ptr()
const;
60 INLINE
const LMatrix4d *get_node_frame_inv_ptr()
const;
61 INLINE
const LMatrix4d *get_vertex_to_node_ptr()
const;
62 INLINE
const LMatrix4d *get_node_to_vertex_ptr()
const;
64 INLINE
void transform(
const LMatrix4d &mat);
65 INLINE
void transform_vertices_only(
const LMatrix4d &mat);
66 INLINE
void flatten_transforms();
69 int rename_node(vector_string strip_prefix);
71 virtual bool is_joint()
const;
72 virtual bool is_anim_matrix()
const;
81 virtual bool determine_indexed();
82 virtual bool determine_decal();
84 virtual void write(ostream &out,
int indent_level)
const=0;
85 bool parse_egg(
const string &egg_syntax);
88 void test_under_integrity()
const;
90 void test_under_integrity()
const { }
96 UF_under_instance = 0x001,
97 UF_under_transform = 0x002,
98 UF_local_coord = 0x004,
101 virtual bool egg_start_parse_body();
103 virtual void update_under(
int depth_offset);
104 virtual void adjust_under();
105 virtual bool has_primitives()
const;
106 virtual bool joint_has_primitives()
const;
107 virtual bool has_normals()
const;
110 CoordinateSystem to_cs);
111 virtual void r_transform_vertices(
const LMatrix4d &mat);
112 virtual void r_mark_coordsys(CoordinateSystem cs);
113 virtual void r_flatten_transforms();
126 PT(MatrixFrame) _vertex_frame;
127 PT(MatrixFrame) _node_frame;
128 PT(MatrixFrame) _vertex_frame_inv;
129 PT(MatrixFrame) _node_frame_inv;
130 PT(MatrixFrame) _vertex_to_node;
131 PT(MatrixFrame) _node_to_vertex;
139 static void init_type() {
140 EggNamedObject::init_type();
141 register_type(_type_handle,
"EggNode",
142 EggNamedObject::get_class_type());
143 MatrixFrame::init_type();
146 return get_class_type();
148 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is a 4-by-4 transform matrix.
A base class for nodes in the hierarchy that are not leaf nodes.
This is a collection of textures by TRef name.
This class stores miscellaneous rendering properties that is associated with geometry, and which may be set on the geometry primitive level, on the group above it, or indirectly via a texture.
This is a fairly low-level base class–any egg object that has a name.
A base class for things that may be directly added into the egg hierarchy.
Another kind of proxy, similar to RefCountProxy.
TypeHandle is the identifier used to differentiate C++ class types.