Panda3D
|
Corresponding to an <Xfm$Anim> entry, this stores a two-dimensional table with up to nine columns, one for each component of a transformation. More...
#include "eggXfmAnimData.h"
Public Member Functions | |
EggXfmAnimData (const string &name="", CoordinateSystem cs=CS_default) | |
EggXfmAnimData (const EggXfmSAnim &convert_from) | |
Converts the newer-style XfmSAnim table to the older-style XfmAnim table. | |
EggXfmAnimData (const EggXfmAnimData ©) | |
void | add_data (double value) |
Adds a single element to the table. | |
void | apply_texmats () |
Applies the texture matrices to the UV's of the vertices that reference them, and then removes the texture matrices from the textures themselves. | |
virtual EggTransform * | as_transform () |
Returns this object cross-cast to an EggTransform pointer, if it inherits from EggTransform, or NULL if it does not. | |
TypedObject * | as_typed_object () |
Returns the object, upcast (if necessary) to a TypedObject pointer. | |
const TypedObject * | as_typed_object () const |
Returns the object, upcast (if necessary) to a TypedObject pointer. | |
void | clear_contents () |
void | clear_data () |
Removes all data and empties the table. | |
void | clear_fps () |
void | clear_name () |
Resets the Namable's name to empty. | |
void | clear_order () |
void | clear_user_data () |
Removes *all* user data pointers from the node. | |
void | clear_user_data (TypeHandle type) |
Removes the user data pointer of the indicated type. | |
virtual EggRenderMode * | determine_alpha_mode () |
Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has an alpha_mode other than AM_unspecified. | |
virtual EggRenderMode * | determine_bin () |
Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a bin specified. | |
virtual bool | determine_decal () |
Walks back up the hierarchy, looking for an EggGroup at this level or above that has the "decal" flag set. | |
virtual EggRenderMode * | determine_depth_offset () |
Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a depth_offset specified. | |
virtual EggRenderMode * | determine_depth_test_mode () |
Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a depth_test_mode other than DTM_unspecified. | |
virtual EggRenderMode * | determine_depth_write_mode () |
Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a depth_write_mode other than DWM_unspecified. | |
virtual EggRenderMode * | determine_draw_order () |
Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a draw_order specified. | |
virtual bool | determine_indexed () |
Walks back up the hierarchy, looking for an EggGroup at this level or above that has the "indexed" scalar set. | |
virtual EggRenderMode * | determine_visibility_mode () |
Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a visibility_mode other than VM_unspecified. | |
void | flatten_transforms () |
Removes any transform and instance records from this node in the scene graph and below. | |
virtual TypeHandle | force_init_type () |
int | get_best_parent_from_Set (const std::set< int > &) const |
const string & | get_contents () const |
CoordinateSystem | get_coordinate_system () const |
Returns the coordinate system this table believes it is defined within. | |
PTA_double | get_data () const |
Returns the entire table of data. | |
int | get_depth () const |
Returns the number of nodes above this node in the egg hierarchy. | |
double | get_fps () const |
This is only valid if has_fps() returns true. | |
const string & | get_name () const |
const LMatrix4d & | get_node_frame () const |
Returns the coordinate frame of the node itself. | |
const LMatrix4d & | get_node_frame_inv () const |
Returns the inverse of the matrix returned by get_node_frame(). | |
const LMatrix4d * | get_node_frame_inv_ptr () const |
Returns either a NULL pointer or a unique pointer shared by nodes with the same get_node_frame_inv() matrix. | |
const LMatrix4d * | get_node_frame_ptr () const |
Returns either a NULL pointer or a unique pointer shared by nodes with the same get_node_frame() matrix. | |
const LMatrix4d & | get_node_to_vertex () const |
Returns the transformation matrix suitable for converting vertices in the coordinate space of the node to the appropriate coordinate space for storing in the egg file. | |
const LMatrix4d * | get_node_to_vertex_ptr () const |
Returns either a NULL pointer or a unique pointer shared by nodes with the same get_node_to_vertex() matrix. | |
int | get_num_cols () const |
Returns the number of columns in the table. | |
int | get_num_rows () const |
Returns the number of rows in the table. | |
const string & | get_order () const |
EggGroupNode * | get_parent () const |
int | get_ref_count () const |
Returns the current reference count. | |
int | get_size () const |
Returns the number of elements in the table. | |
virtual TypeHandle | get_type () const |
int | get_type_index () const |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. | |
EggUserData * | get_user_data () const |
Returns the user data pointer most recently stored on this object, or NULL if nothing was previously stored. | |
EggUserData * | get_user_data (TypeHandle type) const |
Returns the user data pointer of the indicated type, if it exists, or NULL if it does not. | |
double | get_value (int row, int col) const |
Returns the value at the indicated row. | |
void | get_value (int row, LMatrix4d &mat) const |
Returns the value of the aggregate row of the table as a matrix. | |
const LMatrix4d & | get_vertex_frame () const |
Returns the coordinate frame of the vertices referenced by primitives at or under this node. | |
const LMatrix4d & | get_vertex_frame_inv () const |
Returns the inverse of the matrix returned by get_vertex_frame(). | |
const LMatrix4d * | get_vertex_frame_inv_ptr () const |
Returns either a NULL pointer or a unique pointer shared by nodes with the same get_vertex_frame_inv() matrix. | |
const LMatrix4d * | get_vertex_frame_ptr () const |
Returns either a NULL pointer or a unique pointer shared by nodes with the same get_vertex_frame() matrix. | |
const LMatrix4d & | get_vertex_to_node () const |
Returns the transformation matrix suitable for converting the vertices as read from the egg file into the coordinate space of the node. | |
const LMatrix4d * | get_vertex_to_node_ptr () const |
Returns either a NULL pointer or a unique pointer shared by nodes with the same get_vertex_to_node() matrix. | |
WeakReferenceList * | get_weak_list () const |
Returns the WeakReferenceList associated with this ReferenceCount object. | |
bool | has_contents () const |
bool | has_fps () const |
bool | has_name () const |
Returns true if the Namable has a nonempty name set, false if the name is empty. | |
bool | has_order () const |
bool | has_user_data () const |
Returns true if a generic user data pointer has recently been set and not yet cleared, false otherwise. | |
bool | has_user_data (TypeHandle type) const |
Returns true if the user data pointer of the indicated type has been set, false otherwise. | |
bool | has_weak_list () const |
Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise. | |
virtual bool | is_anim_matrix () const |
Returns true if this node represents a table of animation transformation data, false otherwise. | |
bool | is_exact_type (TypeHandle handle) const |
Returns true if the current object is the indicated type exactly. | |
virtual bool | is_joint () const |
Returns true if this particular node represents a <Joint> entry or not. | |
bool | is_local_coord () const |
Returns true if this node's vertices are not in the global coordinate space. | |
bool | is_of_type (TypeHandle handle) const |
Returns true if the current object is or derives from the indicated type. | |
bool | is_under_instance () const |
Returns true if there is an <Instance> node somewhere in the egg tree at or above this node, false otherwise. | |
bool | is_under_transform () const |
Returns true if there is a <Transform> entry somewhere in the egg tree at or above this node, false otherwise. | |
void | local_object () |
This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *, void *) |
void * | operator new (size_t size) |
void * | operator new (size_t size) |
void * | operator new (size_t size, void *ptr) |
void * | operator new (size_t size, void *ptr) |
void * | operator new[] (size_t size) |
void * | operator new[] (size_t size, void *ptr) |
void * | operator new[] (size_t size, void *ptr) |
void * | operator new[] (size_t size) |
EggXfmAnimData & | operator= (const EggXfmAnimData ©) |
void | output (ostream &out) const |
Outputs the Namable. | |
bool | parse_egg (const string &egg_syntax) |
Parses the egg syntax given in the indicate string as if it had been read from the egg file within this object's definition. | |
void | quantize (double quantum) |
Rounds each element of the table to the nearest multiple of quantum. | |
void | ref () const |
Explicitly increments the reference count. | |
int | rename_node (vector_string strip_prefix) |
Rename by stripping out the prefix. | |
void | set_contents (const string &contents) |
void | set_data (const PTA_double &data) |
Replaces the entire table of data. | |
void | set_fps (double type) |
void | set_name (const string &name) |
void | set_order (const string &order) |
void | set_user_data (EggUserData *user_data) |
Sets the user data associated with this object. | |
bool | test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
bool | test_ref_count_nonzero () const |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus. | |
void | test_under_integrity () const |
Recursively checks the integrity of the _under_flags, _parent, and _depth members of this node and all of its ancestors. | |
void | transform (const LMatrix4d &mat) |
Applies the indicated transformation to the node and all of its descendants. | |
void | transform_vertices_only (const LMatrix4d &mat) |
Applies the indicated transformation only to vertices that appear in global space within vertex pools at this node and below. | |
virtual bool | unref () const |
Explicitly decrements the reference count. | |
void | weak_ref (WeakPointerToVoid *ptv) |
Adds the indicated PointerToVoid as a weak reference to this object. | |
void | weak_unref (WeakPointerToVoid *ptv) |
Removes the indicated PointerToVoid as a weak reference to this object. | |
virtual void | write (ostream &out, int indent_level) const |
Writes the data to the indicated output stream in Egg format. | |
void | write_header (ostream &out, int indent_level, const char *egg_keyword) const |
Writes the first line of the egg object, e.g. | |
Static Public Member Functions | |
static TypeHandle | get_class_type () |
static const string & | get_standard_order () |
Returns the standard order of matrix component composition. | |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Protected Types | |
typedef RefCountObj< LMatrix4d > | MatrixFrame |
enum | UnderFlags { UF_under_instance = 0x001, UF_under_transform = 0x002, UF_local_coord = 0x004 } |
Protected Member Functions | |
virtual void | adjust_under () |
This is called within update_under() after all the various under settings have been inherited directly from the parent node. | |
bool | do_test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
bool | do_test_ref_count_nonzero () const |
Returns true if the reference count is nonzero, false otherwise. | |
virtual bool | egg_start_parse_body () |
This function is called within parse_egg(). | |
virtual bool | has_normals () const |
Returns true if any of the primitives (e.g. | |
virtual bool | has_primitives () const |
Returns true if there are any primitives (e.g. | |
virtual bool | joint_has_primitives () const |
Returns true if there are any primitives (e.g. | |
PT (MatrixFrame) _node_frame | |
PT (MatrixFrame) _node_to_vertex | |
PT (MatrixFrame) _vertex_to_node | |
PT (MatrixFrame) _vertex_frame_inv | |
PT (MatrixFrame) _vertex_frame | |
PT (MatrixFrame) _node_frame_inv | |
virtual void | r_apply_texmats (EggTextureCollection &textures) |
The recursive implementation of apply_texmats(). | |
virtual void | r_flatten_transforms () |
The recursive implementation of flatten_transforms(). | |
virtual void | r_mark_coordsys (CoordinateSystem cs) |
This is only called immediately after loading an egg file from disk, to propagate the value found in the CoordinateSystem entry (or the default Y-up coordinate system) to all nodes that care about what the coordinate system is. | |
virtual void | r_transform (const LMatrix4d &mat, const LMatrix4d &inv, CoordinateSystem to_cs) |
Applies the indicated transform to all the rows of the table. | |
virtual void | r_transform_vertices (const LMatrix4d &mat) |
This is called from within the egg code by transform_vertices_only()(). | |
virtual void | update_under (int depth_offset) |
This function is called from within EggGroupNode whenever the parentage of the node has changed. | |
Protected Attributes | |
PTA_double | _data |
int | _depth |
EggGroupNode * | _parent |
int | _under_flags |
Corresponding to an <Xfm$Anim> entry, this stores a two-dimensional table with up to nine columns, one for each component of a transformation.
This is an older syntax of egg anim table, not often used currently--it's replaced by EggXfmSAnim.
Definition at line 32 of file eggXfmAnimData.h.
EggXfmAnimData::EggXfmAnimData | ( | const EggXfmSAnim & | convert_from | ) |
Converts the newer-style XfmSAnim table to the older-style XfmAnim table.
Definition at line 37 of file eggXfmAnimData.cxx.
References EggAnimData::add_data(), EggXfmSAnim::get_coordinate_system(), EggXfmSAnim::get_fps(), get_num_rows(), EggXfmSAnim::get_num_rows(), EggSAnimData::get_num_rows(), and EggSAnimData::get_value().
void EggAnimData::add_data | ( | double | value | ) | [inline, inherited] |
Adds a single element to the table.
Definition at line 116 of file eggAnimData.I.
Referenced by EggXfmSAnim::add_component_data(), EggXfmAnimData(), EggXfmSAnim::EggXfmSAnim(), SoftNodeDesc::make_linear_morph_table(), and SoftNodeDesc::make_weighted_morph_table().
void EggNode::adjust_under | ( | ) | [protected, virtual, inherited] |
This is called within update_under() after all the various under settings have been inherited directly from the parent node.
It is responsible for adjusting these settings to reflect states local to the current node; for instance, an <Instance> node will force the UF_under_instance bit on.
Reimplemented in EggGroup.
Definition at line 401 of file eggNode.cxx.
Referenced by EggNode::update_under().
void EggNode::apply_texmats | ( | ) | [inherited] |
Applies the texture matrices to the UV's of the vertices that reference them, and then removes the texture matrices from the textures themselves.
Definition at line 58 of file eggNode.cxx.
References EggTextureCollection::find_used_textures(), and EggNode::r_apply_texmats().
EggTransform * EggObject::as_transform | ( | ) | [virtual, inherited] |
Returns this object cross-cast to an EggTransform pointer, if it inherits from EggTransform, or NULL if it does not.
Reimplemented in EggGroup, and EggTexture.
Definition at line 183 of file eggObject.cxx.
TypedObject * TypedObject::as_typed_object | ( | ) | [inline, inherited] |
Returns the object, upcast (if necessary) to a TypedObject pointer.
Definition at line 99 of file typedObject.I.
const TypedObject * TypedObject::as_typed_object | ( | ) | const [inline, inherited] |
Returns the object, upcast (if necessary) to a TypedObject pointer.
Definition at line 110 of file typedObject.I.
void EggAnimData::clear_data | ( | ) | [inline, inherited] |
Removes all data and empties the table.
Definition at line 106 of file eggAnimData.I.
void Namable::clear_name | ( | ) | [inline, inherited] |
void EggObject::clear_user_data | ( | ) | [inherited] |
Removes *all* user data pointers from the node.
Definition at line 153 of file eggObject.cxx.
void EggObject::clear_user_data | ( | TypeHandle | type | ) | [inherited] |
Removes the user data pointer of the indicated type.
Definition at line 164 of file eggObject.cxx.
EggRenderMode * EggNode::determine_alpha_mode | ( | ) | [virtual, inherited] |
Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has an alpha_mode other than AM_unspecified.
Returns a valid EggRenderMode pointer if one is found, or NULL otherwise.
Reimplemented in EggGroup, and EggPrimitive.
Definition at line 99 of file eggNode.cxx.
References EggNode::determine_alpha_mode().
Referenced by EggNode::determine_alpha_mode().
EggRenderMode * EggNode::determine_bin | ( | ) | [virtual, inherited] |
Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a bin specified.
Returns a valid EggRenderMode pointer if one is found, or NULL otherwise.
Reimplemented in EggGroup, and EggPrimitive.
Definition at line 207 of file eggNode.cxx.
References EggNode::determine_bin().
Referenced by EggNode::determine_bin().
bool EggNode::determine_decal | ( | ) | [virtual, inherited] |
Walks back up the hierarchy, looking for an EggGroup at this level or above that has the "decal" flag set.
Returns the value of the decal flag if it is found, or false if it is not.
In other words, returns true if the "decal" flag is in effect for the indicated node, false otherwise.
Reimplemented in EggGroup.
Definition at line 247 of file eggNode.cxx.
References EggNode::determine_decal().
Referenced by EggNode::determine_decal().
EggRenderMode * EggNode::determine_depth_offset | ( | ) | [virtual, inherited] |
Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a depth_offset specified.
Returns a valid EggRenderMode pointer if one is found, or NULL otherwise.
Reimplemented in EggGroup, and EggPrimitive.
Definition at line 171 of file eggNode.cxx.
References EggNode::determine_depth_offset().
Referenced by EggNode::determine_depth_offset().
EggRenderMode * EggNode::determine_depth_test_mode | ( | ) | [virtual, inherited] |
Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a depth_test_mode other than DTM_unspecified.
Returns a valid EggRenderMode pointer if one is found, or NULL otherwise.
Reimplemented in EggGroup, and EggPrimitive.
Definition at line 135 of file eggNode.cxx.
References EggNode::determine_depth_test_mode().
Referenced by EggNode::determine_depth_test_mode().
EggRenderMode * EggNode::determine_depth_write_mode | ( | ) | [virtual, inherited] |
Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a depth_write_mode other than DWM_unspecified.
Returns a valid EggRenderMode pointer if one is found, or NULL otherwise.
Reimplemented in EggGroup, and EggPrimitive.
Definition at line 117 of file eggNode.cxx.
References EggNode::determine_depth_write_mode().
Referenced by EggNode::determine_depth_write_mode().
EggRenderMode * EggNode::determine_draw_order | ( | ) | [virtual, inherited] |
Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a draw_order specified.
Returns a valid EggRenderMode pointer if one is found, or NULL otherwise.
Reimplemented in EggGroup, and EggPrimitive.
Definition at line 189 of file eggNode.cxx.
References EggNode::determine_draw_order().
Referenced by EggNode::determine_draw_order().
bool EggNode::determine_indexed | ( | ) | [virtual, inherited] |
Walks back up the hierarchy, looking for an EggGroup at this level or above that has the "indexed" scalar set.
Returns the value of the indexed scalar if it is found, or false if it is not.
In other words, returns true if the "indexed" flag is in effect for the indicated node, false otherwise.
Reimplemented in EggGroup.
Definition at line 227 of file eggNode.cxx.
References EggNode::determine_indexed().
Referenced by EggNode::determine_indexed().
EggRenderMode * EggNode::determine_visibility_mode | ( | ) | [virtual, inherited] |
Walks back up the hierarchy, looking for an EggGroup or EggPrimitive or some such object at this level or above this node that has a visibility_mode other than VM_unspecified.
Returns a valid EggRenderMode pointer if one is found, or NULL otherwise.
Reimplemented in EggGroup, and EggPrimitive.
Definition at line 153 of file eggNode.cxx.
References EggNode::determine_visibility_mode().
Referenced by EggNode::determine_visibility_mode().
bool ReferenceCount::do_test_ref_count_integrity | ( | ) | const [protected, inherited] |
Does some easy checks to make sure that the reference count isn't completely bogus.
Returns true if ok, false otherwise.
Reimplemented in NodeReferenceCount, CachedTypedWritableReferenceCount, and NodeCachedReferenceCount.
Definition at line 29 of file referenceCount.cxx.
Referenced by ReferenceCount::do_test_ref_count_nonzero(), and ReferenceCount::test_ref_count_integrity().
bool ReferenceCount::do_test_ref_count_nonzero | ( | ) | const [protected, inherited] |
Returns true if the reference count is nonzero, false otherwise.
Definition at line 56 of file referenceCount.cxx.
References ReferenceCount::do_test_ref_count_integrity().
Referenced by ReferenceCount::test_ref_count_nonzero().
bool EggNode::egg_start_parse_body | ( | ) | [protected, virtual, inherited] |
This function is called within parse_egg().
It should call the appropriate function on the lexer to initialize the parser into the state associated with this object. If the object cannot be parsed into directly, it should return false.
Reimplemented in EggGroup, EggPrimitive, and EggTexture.
Definition at line 340 of file eggNode.cxx.
Referenced by EggNode::parse_egg().
void EggNode::flatten_transforms | ( | ) | [inline, inherited] |
Removes any transform and instance records from this node in the scene graph and below.
If an instance node is encountered, removes the instance and applies the transform to its vertices, duplicating vertices if necessary.
Since this function may result in duplicated vertices, it may be a good idea to call remove_unused_vertices() after calling this.
Definition at line 351 of file eggNode.I.
References EggNode::r_flatten_transforms(), and EggNode::update_under().
CoordinateSystem EggXfmAnimData::get_coordinate_system | ( | ) | const [inline] |
Returns the coordinate system this table believes it is defined within.
This should always match the coordinate system of the EggData structure that owns it. It is necessary to store it here because the meaning of the h, p, and r columns depends on the coordinate system.
Definition at line 166 of file eggXfmAnimData.I.
Referenced by EggXfmSAnim::EggXfmSAnim().
PTA_double EggAnimData::get_data | ( | ) | const [inline, inherited] |
Returns the entire table of data.
Definition at line 139 of file eggAnimData.I.
int EggNode::get_depth | ( | ) | const [inline, inherited] |
double EggAnimData::get_fps | ( | ) | const [inline, inherited] |
This is only valid if has_fps() returns true.
Definition at line 94 of file eggAnimData.I.
Referenced by EggXfmSAnim::EggXfmSAnim(), r_transform(), EggSAnimData::write(), and write().
const LMatrix4d & EggNode::get_node_frame | ( | ) | const [inline, inherited] |
Returns the coordinate frame of the node itself.
This is simply the net product of all transformations up to the root.
Definition at line 152 of file eggNode.I.
References LMatrix4d::ident_mat().
Referenced by EggGroup::adjust_under().
const LMatrix4d & EggNode::get_node_frame_inv | ( | ) | const [inline, inherited] |
Returns the inverse of the matrix returned by get_node_frame().
See get_node_frame().
Definition at line 183 of file eggNode.I.
References LMatrix4d::ident_mat().
Referenced by EggGroup::adjust_under().
const LMatrix4d * EggNode::get_node_frame_inv_ptr | ( | ) | const [inline, inherited] |
Returns either a NULL pointer or a unique pointer shared by nodes with the same get_node_frame_inv() matrix.
const LMatrix4d * EggNode::get_node_frame_ptr | ( | ) | const [inline, inherited] |
Returns either a NULL pointer or a unique pointer shared by nodes with the same get_node_frame() matrix.
const LMatrix4d & EggNode::get_node_to_vertex | ( | ) | const [inline, inherited] |
Returns the transformation matrix suitable for converting vertices in the coordinate space of the node to the appropriate coordinate space for storing in the egg file.
This is the same thing as:
get_node_frame() * get_vertex_frame_inv()
Definition at line 223 of file eggNode.I.
References LMatrix4d::ident_mat().
Referenced by XFileMesh::create_polygons().
const LMatrix4d * EggNode::get_node_to_vertex_ptr | ( | ) | const [inline, inherited] |
Returns either a NULL pointer or a unique pointer shared by nodes with the same get_node_to_vertex() matrix.
int EggXfmAnimData::get_num_cols | ( | ) | const [inline] |
Returns the number of columns in the table.
This is set according to the "contents" string, which defines the meaning of each column.
Definition at line 192 of file eggXfmAnimData.I.
Referenced by EggXfmSAnim::EggXfmSAnim(), get_num_rows(), and get_value().
int EggXfmAnimData::get_num_rows | ( | ) | const [inline] |
Returns the number of rows in the table.
Definition at line 177 of file eggXfmAnimData.I.
References get_num_cols(), and EggAnimData::get_size().
Referenced by EggXfmAnimData(), EggXfmSAnim::EggXfmSAnim(), get_value(), and r_transform().
int ReferenceCount::get_ref_count | ( | ) | const [inline, inherited] |
Returns the current reference count.
Definition at line 155 of file referenceCount.I.
References ReferenceCount::test_ref_count_integrity().
Referenced by TransformState::clear_cache(), RenderState::clear_cache(), RenderState::finalize(), RenderEffects::finalize(), RenderEffect::finalize(), RenderAttrib::finalize(), InternalName::finalize(), TransformState::get_num_unused_states(), RenderState::get_num_unused_states(), TransformState::list_cycles(), RenderState::list_cycles(), GeomVertexFormat::remove_column(), TransformState::unref(), RenderState::unref(), RenderState::~RenderState(), and TransformState::~TransformState().
int EggAnimData::get_size | ( | ) | const [inline, inherited] |
Returns the number of elements in the table.
Definition at line 128 of file eggAnimData.I.
Referenced by get_num_rows(), and EggSAnimData::get_num_rows().
const string & EggXfmAnimData::get_standard_order | ( | ) | [inline, static] |
Returns the standard order of matrix component composition.
This is what the order string must be set to in order to use set_value() or add_data() successfully.
Definition at line 110 of file eggXfmAnimData.I.
Referenced by r_transform().
int TypedObject::get_type_index | ( | ) | const [inline, inherited] |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.
This is equivalent to get_type().get_index().
Definition at line 52 of file typedObject.I.
References TypeHandle::get_index().
EggUserData * EggObject::get_user_data | ( | ) | const [inherited] |
Returns the user data pointer most recently stored on this object, or NULL if nothing was previously stored.
Definition at line 102 of file eggObject.cxx.
Referenced by MayaNodeTree::get_egg_group(), and EggBinner::sorts_less().
EggUserData * EggObject::get_user_data | ( | TypeHandle | type | ) | const [inherited] |
Returns the user data pointer of the indicated type, if it exists, or NULL if it does not.
Definition at line 113 of file eggObject.cxx.
double EggXfmAnimData::get_value | ( | int | row, |
int | col | ||
) | const [inline] |
Returns the value at the indicated row.
Row must be in the range 0 <= row < get_num_rows(); col must be in the range 0 <= col < get_num_cols().
Definition at line 205 of file eggXfmAnimData.I.
References get_num_cols(), and get_num_rows().
Referenced by EggXfmSAnim::EggXfmSAnim(), get_value(), and r_transform().
void EggXfmAnimData::get_value | ( | int | row, |
LMatrix4d & | mat | ||
) | const |
Returns the value of the aggregate row of the table as a matrix.
This is a convenience function that treats the 2-d table as if it were a single table of matrices.
Definition at line 92 of file eggXfmAnimData.cxx.
References EggXfmSAnim::compose_with_order(), get_num_cols(), and get_value().
const LMatrix4d & EggNode::get_vertex_frame | ( | ) | const [inline, inherited] |
Returns the coordinate frame of the vertices referenced by primitives at or under this node.
This is not the same as get_node_frame().
Generally, vertices in an egg file are stored in the global coordinate space, regardless of the transforms defined at each node. Thus, get_vertex_frame() will usually return the identity transform (global coordinate space). However, primitives under an <Instance> entry reference their vertices in the coordinate system under effect at the time of the <Instance>. Thus, nodes under an <Instance> entry may return this non-identity matrix.
Specifically, this may return a non-identity matrix only if is_local_coord() is true.
Definition at line 135 of file eggNode.I.
References LMatrix4d::ident_mat().
Referenced by EggGroup::adjust_under(), EggPrimitive::r_flatten_transforms(), EggGroup::r_flatten_transforms(), XFileVertex::set_from_egg(), XFileNormal::set_from_egg(), EggToDXFLayer::write_3d_face(), and EggToDXFLayer::write_polyline().
const LMatrix4d & EggNode::get_vertex_frame_inv | ( | ) | const [inline, inherited] |
Returns the inverse of the matrix returned by get_vertex_frame().
See get_vertex_frame().
Definition at line 167 of file eggNode.I.
References LMatrix4d::ident_mat().
Referenced by EggGroup::adjust_under().
const LMatrix4d * EggNode::get_vertex_frame_inv_ptr | ( | ) | const [inline, inherited] |
Returns either a NULL pointer or a unique pointer shared by nodes with the same get_vertex_frame_inv() matrix.
const LMatrix4d * EggNode::get_vertex_frame_ptr | ( | ) | const [inline, inherited] |
Returns either a NULL pointer or a unique pointer shared by nodes with the same get_vertex_frame() matrix.
const LMatrix4d & EggNode::get_vertex_to_node | ( | ) | const [inline, inherited] |
Returns the transformation matrix suitable for converting the vertices as read from the egg file into the coordinate space of the node.
This is the same thing as:
get_vertex_frame() * get_node_frame_inv()
Definition at line 203 of file eggNode.I.
References LMatrix4d::ident_mat().
Referenced by EggLoader::make_polyset(), XFileVertex::set_from_egg(), and XFileNormal::set_from_egg().
const LMatrix4d * EggNode::get_vertex_to_node_ptr | ( | ) | const [inline, inherited] |
Returns either a NULL pointer or a unique pointer shared by nodes with the same get_vertex_to_node() matrix.
WeakReferenceList * ReferenceCount::get_weak_list | ( | ) | const [inline, inherited] |
Returns the WeakReferenceList associated with this ReferenceCount object.
If there has never been a WeakReferenceList associated with this object, creates one now.
Definition at line 307 of file referenceCount.I.
Referenced by ReferenceCount::weak_ref().
bool Namable::has_name | ( | ) | const [inline, inherited] |
Returns true if the Namable has a nonempty name set, false if the name is empty.
Definition at line 75 of file namable.I.
Referenced by XFileNode::add_child(), EggComponentData::add_name(), Texture::do_read_dds_file(), Texture::do_read_one(), Character::fillin(), EggGroupUniquifier::get_category(), EggXfmSAnim::optimize(), NodePathComponent::output(), AsyncTask::output(), EggNamedObject::output(), EggSAnimData::write(), EggPrimitive::write_body(), ParametricCurveCollection::write_egg(), ParametricCurve::write_egg(), EggNamedObject::write_header(), XFileDataNodeTemplate::write_text(), and XFileDataDef::write_text().
bool EggNode::has_normals | ( | ) | const [protected, virtual, inherited] |
Returns true if any of the primitives (e.g.
polygons) defined within this group or below have either face or vertex normals defined, false otherwise.
Reimplemented in EggGroupNode, EggPrimitive, and EggVertexPool.
Definition at line 436 of file eggNode.cxx.
bool EggNode::has_primitives | ( | ) | const [protected, virtual, inherited] |
Returns true if there are any primitives (e.g.
polygons) defined within this group or below, false otherwise.
Reimplemented in EggGroupNode, and EggPrimitive.
Definition at line 412 of file eggNode.cxx.
bool EggObject::has_user_data | ( | ) | const [inherited] |
Returns true if a generic user data pointer has recently been set and not yet cleared, false otherwise.
Definition at line 130 of file eggObject.cxx.
Referenced by MayaNodeTree::get_egg_group().
bool EggObject::has_user_data | ( | TypeHandle | type | ) | const [inherited] |
Returns true if the user data pointer of the indicated type has been set, false otherwise.
Definition at line 141 of file eggObject.cxx.
bool ReferenceCount::has_weak_list | ( | ) | const [inline, inherited] |
Returns true if this particular ReferenceCount object has a WeakReferenceList created, false otherwise.
In general, this will be true if there was ever a WeakPointerTo created for this object (even if there is not any for it now).
Definition at line 294 of file referenceCount.I.
Referenced by ReferenceCount::weak_unref().
static void EggXfmAnimData::init_type | ( | ) | [inline, static] |
This function is declared non-inline to work around a compiler bug in g++ 2.96.
Making it inline seems to cause problems in the optimizer.
Reimplemented from EggAnimData.
Definition at line 78 of file eggXfmAnimData.h.
References EggAnimData::init_type().
bool EggXfmAnimData::is_anim_matrix | ( | ) | const [virtual] |
Returns true if this node represents a table of animation transformation data, false otherwise.
Reimplemented from EggNode.
Definition at line 168 of file eggXfmAnimData.cxx.
bool TypedObject::is_exact_type | ( | TypeHandle | handle | ) | const [inline, inherited] |
Returns true if the current object is the indicated type exactly.
Definition at line 74 of file typedObject.I.
References TypeHandle::get_name().
Referenced by GraphicsStateGuardian::async_reload_texture(), PortalNode::combine_with(), PandaNode::combine_with(), GeomNode::combine_with(), CollisionNode::combine_with(), Character::combine_with(), PGItem::cull_callback(), FactoryParams::get_param_of_type(), CollisionHandlerPusher::handle_entries(), SceneGraphReducer::r_flatten(), ConnectionWriter::send(), FltToEggLevelState::set_transform(), and VirtualFileSystem::unmount().
bool EggNode::is_joint | ( | ) | const [virtual, inherited] |
Returns true if this particular node represents a <Joint> entry or not.
This is a handy thing to know since Joints are sorted to the end of their sibling list when writing an egg file. See EggGroupNode::write().
Reimplemented in EggGroup.
Definition at line 74 of file eggNode.cxx.
Referenced by EggGroupNode::joint_has_primitives().
bool EggNode::is_local_coord | ( | ) | const [inline, inherited] |
Returns true if this node's vertices are not in the global coordinate space.
This will be the case if there was an <Instance> node under a transform at or above this node.
Definition at line 109 of file eggNode.I.
Referenced by EggVertex::get_num_global_coord(), EggVertex::get_num_local_coord(), EggPrimitive::r_flatten_transforms(), and EggGroup::r_flatten_transforms().
bool TypedObject::is_of_type | ( | TypeHandle | handle | ) | const [inline, inherited] |
Returns true if the current object is or derives from the indicated type.
Definition at line 63 of file typedObject.I.
References TypeHandle::is_derived_from().
Referenced by EggSliderData::add_back_pointer(), EggJointData::add_back_pointer(), CIntervalManager::add_c_interval(), XFileNode::add_child(), CollisionTraverser::add_collider(), CollisionHandlerPhysical::add_collider(), EggXfmSAnim::add_data(), CharacterJointBundle::add_node(), NonlinearImager::add_screen(), EggGroupNode::apply_first_attribute(), EggGroupNode::apply_last_attribute(), DeferredNodeProperty::apply_to_node(), RecorderController::begin_playback(), NodePath::clear_clip_plane(), EggGroupNode::clear_connected_shading(), NodePath::clear_light(), EggBase::convert_paths(), NodePath::decode_from_bam_stream(), VrpnClient::disconnect_device(), PhysicsManager::do_physics(), GraphicsStateGuardian::fetch_specified_part(), EggRenderState::fill_state(), AnimBundleNode::find_anim_bundle(), EggGroupNode::find_coordsys_entry(), XFile::find_data_object(), Character::find_joint(), EggGroupNode::find_materials(), Character::find_slider(), XFile::find_template(), EggGroupNode::find_textures(), EggMaterialCollection::find_used_materials(), EggTextureCollection::find_used_textures(), EggGroupNode::force_filenames(), EggJointData::force_initial_rest_frame(), WindowFramework::get_aspect_2d(), EggPoolUniquifier::get_category(), EggGroupUniquifier::get_category(), EggGroupNode::get_connected_shading(), PandaFramework::get_mouse(), FactoryParams::get_param_of_type(), EggGroupNode::has_absolute_pathnames(), NodePath::has_clip_plane(), NodePath::has_clip_plane_off(), NodePath::has_light(), PandaFramework::hide_collision_solids(), x11GraphicsWindow::open_window(), eglGraphicsWindow::open_window(), EggNode::parse_egg(), CharacterMaker::part_to_node(), EggGroupNode::post_apply_flat_attribute(), EggBinner::prepare_node(), PortalClipper::prepare_portal(), NodePath::project_texture(), EggMatrixTablePointer::quantize_channels(), ParametricCurveCollection::r_add_curves(), SceneGraphReducer::r_collect_vertex_data(), EggGroupNode::r_load_externals(), EggGroupNode::rebuild_vertex_pools(), EggGroupNode::recompute_polygon_normals(), EggGroupNode::remove_invalid_primitives(), EggGroupNode::remove_unused_vertices(), EggLoader::reparent_decals(), EggMaterialCollection::replace_materials(), EggTextureCollection::replace_textures(), EggGroupNode::resolve_filenames(), EggGroupNode::reverse_vertex_ordering(), NodePath::set_clip_plane(), NodePath::set_clip_plane_off(), NodePath::set_light(), ProjectionScreen::set_projector(), NonlinearImager::set_source_camera(), EggXfmSAnim::set_value(), NonlinearImager::set_viewer_camera(), PandaFramework::show_collision_solids(), BamCache::store(), XFileToEggConverter::strip_nodes(), EggGroupNode::strip_normals(), DataGraphTraverser::traverse(), DataGraphTraverser::traverse_below(), EggGroupNode::triangulate_polygons(), EggGroupNode::unify_attributes(), EggNameUniquifier::uniquify(), NodeCullCallbackData::upcall(), PhysicsCollisionHandler::validate_target(), EggXfmSAnim::write(), EggGroup::write(), EggToDXFLayer::write_3d_face(), and EggToDXFLayer::write_entities().
bool EggNode::is_under_instance | ( | ) | const [inline, inherited] |
bool EggNode::is_under_transform | ( | ) | const [inline, inherited] |
bool EggNode::joint_has_primitives | ( | ) | const [protected, virtual, inherited] |
Returns true if there are any primitives (e.g.
polygons) defined within this group or below, but the search does not include nested joints.
Reimplemented in EggGroupNode, and EggPrimitive.
Definition at line 424 of file eggNode.cxx.
Referenced by EggGroupNode::joint_has_primitives().
void ReferenceCount::local_object | ( | ) | [inline, inherited] |
This function should be called, once, immediately after creating a new instance of some ReferenceCount-derived object on the stack.
This allows the object to be passed to functions that will increment and decrement the object's reference count temporarily, and it will prevent the object from being deleted (inappropriately), when the reference count returns to zero. It actually achieves this by setting a large positive value in the reference count field.
Definition at line 276 of file referenceCount.I.
Referenced by PGTop::cull_callback(), BoundingSphere::extend_by_hexahedron(), AsyncTaskManager::find_task(), AsyncTaskManager::find_tasks(), and AsyncTaskManager::find_tasks_matching().
void EggNamedObject::output | ( | ostream & | out | ) | const [inherited] |
Outputs the Namable.
This function simply writes the name to the output stream; most Namable derivatives will probably redefine this.
Reimplemented from Namable.
Definition at line 28 of file eggNamedObject.cxx.
References Namable::has_name().
bool EggNode::parse_egg | ( | const string & | egg_syntax | ) | [inherited] |
Parses the egg syntax given in the indicate string as if it had been read from the egg file within this object's definition.
Updates the object accordingly. Returns true if successful, false if there was some parse error or if the object does not support this functionality.
Definition at line 267 of file eggNode.cxx.
References EggNode::egg_start_parse_body(), and TypedObject::is_of_type().
void EggAnimData::quantize | ( | double | quantum | ) | [inherited] |
Rounds each element of the table to the nearest multiple of quantum.
Definition at line 26 of file eggAnimData.cxx.
Referenced by EggMatrixTablePointer::quantize_channels().
void EggNode::r_apply_texmats | ( | EggTextureCollection & | textures | ) | [protected, virtual, inherited] |
The recursive implementation of apply_texmats().
Reimplemented in EggGroupNode, EggNurbsSurface, and EggPrimitive.
Definition at line 499 of file eggNode.cxx.
Referenced by EggNode::apply_texmats().
void EggNode::r_flatten_transforms | ( | ) | [protected, virtual, inherited] |
The recursive implementation of flatten_transforms().
Reimplemented in EggGroup, EggGroupNode, and EggPrimitive.
Definition at line 490 of file eggNode.cxx.
Referenced by EggNode::flatten_transforms().
void EggXfmAnimData::r_mark_coordsys | ( | CoordinateSystem | cs | ) | [protected, virtual] |
This is only called immediately after loading an egg file from disk, to propagate the value found in the CoordinateSystem entry (or the default Y-up coordinate system) to all nodes that care about what the coordinate system is.
Reimplemented from EggNode.
Definition at line 290 of file eggXfmAnimData.cxx.
void EggXfmAnimData::r_transform | ( | const LMatrix4d & | mat, |
const LMatrix4d & | inv, | ||
CoordinateSystem | to_cs | ||
) | [protected, virtual] |
Applies the indicated transform to all the rows of the table.
This actually forces the generation of a totally new set of rows.
Reimplemented from EggNode.
Definition at line 212 of file eggXfmAnimData.cxx.
References EggXfmSAnim::add_data(), EggAnimData::get_fps(), get_num_rows(), get_standard_order(), get_value(), EggXfmSAnim::optimize(), and LMatrix4d::set_row().
void EggNode::r_transform_vertices | ( | const LMatrix4d & | mat | ) | [protected, virtual, inherited] |
This is called from within the egg code by transform_vertices_only()().
It applies a transformation matrix to the current node in some sensible way (if the current node is a vertex pool with vertices), then continues down the tree.
Reimplemented in EggGroupNode, and EggVertexPool.
Definition at line 468 of file eggNode.cxx.
Referenced by EggNode::transform(), and EggNode::transform_vertices_only().
void ReferenceCount::ref | ( | ) | const [inline, inherited] |
Explicitly increments the reference count.
User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically.
This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it.
Definition at line 179 of file referenceCount.I.
References ReferenceCount::test_ref_count_integrity().
Referenced by CachedTypedWritableReferenceCount::cache_ref(), TypedWritable::decode_raw_from_bam_stream(), NodeCachedReferenceCount::node_ref(), NodeReferenceCount::node_ref(), BamCacheRecord::set_data(), CullableObject::set_draw_callback(), and ModelRoot::set_reference().
int EggNode::rename_node | ( | vector_string | strip_prefix | ) | [inherited] |
Rename by stripping out the prefix.
Definition at line 36 of file eggNode.cxx.
Referenced by EggGroupNode::rename_nodes().
void EggAnimData::set_data | ( | const PTA_double & | data | ) | [inline, inherited] |
Replaces the entire table of data.
Definition at line 150 of file eggAnimData.I.
void EggObject::set_user_data | ( | EggUserData * | user_data | ) | [inherited] |
Sets the user data associated with this object.
This may be any EggUserData-derived object. The egg library will do nothing with this pointer, except to hold its reference count and return the pointer on request.
The EggObject maintains multiple different EggUserData pointers, one for each unique type (as reported by get_type()). If you know that only one type of EggUserData object will be added in your application, you may use the query functions that accept no parameters, but it is recommended that in general you pass in the type of your particular user data, to allow multiple applications to coexist in the same egg data.
This pointer is also copied by the copy assignment operator and copy constructor.
Definition at line 89 of file eggObject.cxx.
Referenced by MayaNodeTree::get_egg_group(), and EggBinner::prepare_node().
bool ReferenceCount::test_ref_count_integrity | ( | ) | const [inline, inherited] |
Does some easy checks to make sure that the reference count isn't completely bogus.
Returns true if ok, false otherwise.
Reimplemented in NodeReferenceCount, CachedTypedWritableReferenceCount, and NodeCachedReferenceCount.
Definition at line 236 of file referenceCount.I.
References ReferenceCount::do_test_ref_count_integrity().
Referenced by EggGroupNode::add_child(), InternalName::find_ancestor(), InternalName::get_ancestor(), ReferenceCount::get_ref_count(), InternalName::get_top(), ReferenceCount::ref(), EggVertex::test_gref_integrity(), EggVertex::test_pref_integrity(), EggNode::test_under_integrity(), EggPrimitive::test_vref_integrity(), EggGroup::test_vref_integrity(), MouseWatcher::throw_event_pattern(), ReferenceCount::unref(), and EggNode::update_under().
bool ReferenceCount::test_ref_count_nonzero | ( | ) | const [inline, inherited] |
Does some easy checks to make sure that the reference count isn't zero, or completely bogus.
Returns true if ok, false otherwise.
Definition at line 252 of file referenceCount.I.
References ReferenceCount::do_test_ref_count_nonzero().
Referenced by CopyOnWritePointer::test_ref_count_nonzero().
void EggNode::test_under_integrity | ( | ) | const [inherited] |
Recursively checks the integrity of the _under_flags, _parent, and _depth members of this node and all of its ancestors.
Definition at line 300 of file eggNode.cxx.
References ReferenceCount::test_ref_count_integrity(), and EggNode::test_under_integrity().
Referenced by EggNode::test_under_integrity(), EggGroup::write(), EggAnimPreload::write(), EggTable::write(), and EggXfmSAnim::write().
void EggNode::transform | ( | const LMatrix4d & | mat | ) | [inline, inherited] |
Applies the indicated transformation to the node and all of its descendants.
Reimplemented in EggVertexPool.
Definition at line 313 of file eggNode.I.
References EggNode::r_transform(), EggNode::r_transform_vertices(), and EggNode::update_under().
Referenced by SomethingToEgg::apply_units_scale(), EggToSomething::apply_units_scale(), and EggGroup::set_default_pose().
void EggNode::transform_vertices_only | ( | const LMatrix4d & | mat | ) | [inline, inherited] |
Applies the indicated transformation only to vertices that appear in global space within vertex pools at this node and below.
Joints and other transforms are not affected, nor are local vertices.
Definition at line 333 of file eggNode.I.
References EggNode::r_transform_vertices().
Referenced by EggTopstrip::strip_anim_vertices().
bool ReferenceCount::unref | ( | ) | const [inline, virtual, inherited] |
Explicitly decrements the reference count.
Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic.) However, see the helper function unref_delete().
User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically.
This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it.
The return value is true if the new reference count is nonzero, false if it is zero.
Reimplemented in GeomVertexArrayFormat, GeomVertexFormat, InternalName, RenderAttrib, RenderEffects, RenderState, and TransformState.
Definition at line 214 of file referenceCount.I.
References ReferenceCount::test_ref_count_integrity().
Referenced by CachedTypedWritableReferenceCount::cache_unref(), TypedWritable::decode_raw_from_bam_stream(), RenderEffect::finalize(), NodeCachedReferenceCount::node_unref(), NodeReferenceCount::node_unref(), TransformState::unref(), RenderState::unref(), RenderEffects::unref(), RenderAttrib::unref(), InternalName::unref(), GeomVertexFormat::unref(), and GeomVertexArrayFormat::unref().
void EggNode::update_under | ( | int | depth_offset | ) | [protected, virtual, inherited] |
This function is called from within EggGroupNode whenever the parentage of the node has changed.
It should update the depth and under_instance flags accordingly.
depth_offset is the difference between the old depth value and the new value. It should be consistent with the supplied depth value. If it is not, we have some error.
Reimplemented in EggGroupNode.
Definition at line 358 of file eggNode.cxx.
References EggNode::adjust_under(), and ReferenceCount::test_ref_count_integrity().
Referenced by EggNode::flatten_transforms(), and EggNode::transform().
void ReferenceCount::weak_ref | ( | WeakPointerToVoid * | ptv | ) | [inline, inherited] |
Adds the indicated PointerToVoid as a weak reference to this object.
Definition at line 321 of file referenceCount.I.
References WeakReferenceList::add_reference(), and ReferenceCount::get_weak_list().
void ReferenceCount::weak_unref | ( | WeakPointerToVoid * | ptv | ) | [inline, inherited] |
Removes the indicated PointerToVoid as a weak reference to this object.
It must have previously been added via a call to weak_ref().
Definition at line 334 of file referenceCount.I.
References WeakReferenceList::clear_reference(), and ReferenceCount::has_weak_list().
void EggXfmAnimData::write | ( | ostream & | out, |
int | indent_level | ||
) | const [virtual] |
Writes the data to the indicated output stream in Egg format.
Implements EggNode.
Definition at line 179 of file eggXfmAnimData.cxx.
References EggAnimData::get_fps(), and EggNamedObject::write_header().
void EggNamedObject::write_header | ( | ostream & | out, |
int | indent_level, | ||
const char * | egg_keyword | ||
) | const [inherited] |
Writes the first line of the egg object, e.g.
"<Group> group_name {" or some such. It automatically enquotes the name if it contains any special characters. egg_keyword is the keyword that begins the line, e.g. "<Group>".
Definition at line 45 of file eggNamedObject.cxx.
References Namable::has_name().
Referenced by EggXfmSAnim::write(), write(), EggVertexPool::write(), EggTriangleStrip::write(), EggTriangleFan::write(), EggTexture::write(), EggTable::write(), EggSAnimData::write(), EggPoint::write(), EggNurbsSurface::write(), EggNurbsCurve::write(), EggMaterial::write(), EggLine::write(), EggGroup::write(), EggExternalReference::write(), EggComment::write(), and EggAnimPreload::write().