#include <eggVertexPool.h>
Inheritance diagram for EggVertexPool:
Public Types | |
typedef second_of_pair_iterator< IndexVertices::const_iterator > | iterator |
typedef iterator | const_iterator |
typedef IndexVertices::size_type | size_type |
Public Member Functions | |
EggVertexPool (const string &name) | |
EggVertexPool (const EggVertexPool ©) | |
Copying a vertex pool is of questionable value, since it will copy all of the vertices and assign new pointers to them all. | |
~EggVertexPool () | |
EggVertex * | get_vertex (int index) const |
Returns the vertex in the pool with the indicated index number, or NULL if no vertices have that index number. | |
EggVertex * | operator[] (int index) const |
Returns the vertex in the pool with the indicated index number, or NULL if no vertices have that index number. | |
int | get_highest_index () const |
Returns the highest index number used by any vertex in the pool. | |
iterator | begin () const |
Returns an iterator that can be used to traverse through all the vertices in the pool. | |
iterator | end () const |
Returns an iterator that can be used to traverse through all the vertices in the pool. | |
bool | empty () const |
Returns true if the pool is empty. | |
size_type | size () const |
Returns the number of vertices in the pool. | |
void | add_vertex (EggVertex *vertex, int index=-1) |
Adds the indicated vertex to the pool. | |
EggVertex * | make_new_vertex () |
Allocates and returns a new vertex from the pool. | |
EggVertex * | make_new_vertex (double pos) |
Allocates and returns a new vertex from the pool. | |
EggVertex * | make_new_vertex (const LPoint2d &pos) |
Allocates and returns a new vertex from the pool. | |
EggVertex * | make_new_vertex (const LPoint3d &pos) |
Allocates and returns a new vertex from the pool. | |
EggVertex * | make_new_vertex (const LPoint4d &pos) |
Allocates and returns a new vertex from the pool. | |
EggVertex * | create_unique_vertex (const EggVertex ©) |
Creates a new vertex in the pool that is a copy of the indicated one and returns it. | |
void | remove_vertex (EggVertex *vertex) |
Removes the vertex from the pool. | |
int | remove_unused_vertices () |
Removes all vertices from the pool that are not referenced by at least one primitive. | |
void | transform (const LMatrix4d &mat) |
Applies the indicated transformation matrix to all the vertices. | |
void | write (ostream &out, int indent_level) const |
Writes the vertex pool to the indicated output stream in Egg format. | |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
EggGroupNode * | get_parent () const |
int | get_depth () const |
Returns the number of nodes above this node in the egg hierarchy. | |
bool | is_under_instance () const |
Returns true if there is an node somewhere in the egg tree at or above this node, false otherwise. | |
bool | is_under_transform () const |
Returns true if there is a entry somewhere in the egg tree at or above this node, false otherwise. | |
bool | is_local_coord () const |
Returns true if this node's vertices are not in the global coordinate space. | |
const LMatrix4d & | get_vertex_frame () const |
Returns the coordinate frame of the vertices referenced by primitives at or under this node. | |
const LMatrix4d & | get_node_frame () const |
Returns the coordinate frame of the node itself. | |
const LMatrix4d & | get_vertex_frame_inv () const |
Returns the inverse of the matrix returned by get_vertex_frame(). | |
const LMatrix4d & | get_node_frame_inv () const |
Returns the inverse of the matrix returned by get_node_frame(). | |
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_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. | |
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. | |
void | flatten_transforms () |
Removes any transform and instance records from this node in the scene graph and below. | |
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 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_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_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_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 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. | |
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 | 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 | write_header (ostream &out, int indent_level, const char *egg_keyword) const |
Writes the first line of the egg object, e.g. | |
int | get_type_index () const |
Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. | |
bool | is_of_type (TypeHandle handle) const |
Returns true if the current object is or derives from the indicated type. | |
bool | is_exact_type (TypeHandle handle) const |
Returns true if the current object is the indicated type exactly. | |
int | get_ref_count () const |
Returns the current reference count. | |
int | ref () const |
Explicitly increments the reference count. | |
int | unref () const |
Explicitly decrements the reference count. | |
void | test_ref_count_integrity () const |
Does some easy checks to make sure that the reference count isn't completely bogus. | |
void | set_name (const string &name) |
void | clear_name () |
Resets the Namable's name to empty. | |
bool | has_name () const |
Returns true if the Namable has a nonempty name set, false if the name is empty. | |
const string & | get_name () const |
void | output (ostream &out) const |
Outputs the Namable. | |
Static Public Member Functions | |
TypeHandle | get_class_type () |
void | init_type () |
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 | r_transform (const LMatrix4d &mat, const LMatrix4d &inv, CoordinateSystem to_cs) |
This is called from within the egg code by transform(). | |
virtual void | r_transform_vertices (const LMatrix4d &mat) |
This is called from within the egg code by transform_vertices_only()(). | |
virtual bool | egg_start_parse_body () |
This function is called within parse_egg(). | |
virtual void | update_under (int depth_offset) |
This function is called from within EggGroupNode whenever the parentage of the node has changed. | |
virtual void | adjust_under () |
This is called within update_under() after all the various under settings have been inherited directly from the parent node. | |
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_flatten_transforms () |
The recursive implementation of flatten_transforms(). | |
virtual void | r_apply_texmats (EggTextureCollection &textures) |
The recursive implementation of apply_texmats(). | |
Protected Attributes | |
EggGroupNode * | _parent |
int | _depth |
int | _under_flags |
PointerTo< MatrixFrame > | _vertex_frame |
PointerTo< MatrixFrame > | _node_frame |
PointerTo< MatrixFrame > | _vertex_frame_inv |
PointerTo< MatrixFrame > | _node_frame_inv |
PointerTo< MatrixFrame > | _vertex_to_node |
PointerTo< MatrixFrame > | _node_to_vertex |
Private Types | |
typedef pmap< int, PT_EggVertex > | IndexVertices |
typedef pmultiset< EggVertex *, UniqueEggVertices > | UniqueVertices |
Private Attributes | |
UniqueVertices | _unique_vertices |
IndexVertices | _index_vertices |
Static Private Attributes | |
TypeHandle | _type_handle |
Friends | |
class | EggVertex |
There may be any number of vertex pools in a single egg structure. The vertices in a single pool need not necessarily have any connection to each other, but it is necessary that any one primitive (e.g. a polygon) must pull all its vertices from the same pool.
An EggVertexPool is an STL-style container of pointers to EggVertex's. Functions add_vertex() and remove_vertex() are provided to manipulate the list. The list may also be operated on (read-only) via iterators and begin()/end().
Definition at line 66 of file eggVertexPool.h.
|
Definition at line 87 of file eggVertexPool.h. |
|
Definition at line 76 of file eggVertexPool.h. |
|
Definition at line 86 of file eggVertexPool.h. Referenced by EggVertexPool(), get_highest_index(), and IsLocalVertexSplitter::operator()(). |
|
Definition at line 118 of file eggNode.h. Referenced by EggGroup::string_collide_flags(). |
|
Definition at line 88 of file eggVertexPool.h. Referenced by begin(). |
|
Definition at line 83 of file eggVertexPool.h. |
|
|
|
Definition at line 38 of file eggVertexPool.cxx. References add_vertex(), EggVertex, and iterator. |
|
Copying a vertex pool is of questionable value, since it will copy all of the vertices and assign new pointers to them all. There will be no polygons referring to the new vertices. Definition at line 56 of file eggVertexPool.cxx. References _index_vertices, _unique_vertices, begin(), end(), get_vertex(), iterator, nassertv, and NULL. |
|
Definition at line 72 of file eggVertexPool.cxx. |
|
Adds the indicated vertex to the pool. It is an error if the vertex is already a member of this or any other pool. The vertex must have been allocated from the free store; its pointer will now be owned by the vertex pool. If the index number is supplied, tries to assign that index number; it is an error if the index number is already in use. Definition at line 216 of file eggVertexPool.cxx. References EggVertex::_index, _index_vertices, EggVertex::_pool, _unique_vertices, get_vertex(), and nassertv. Referenced by EggVertexPool(), operator[](), size(), and split_vertex(). |
|
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 node will force the UF_under_instance bit on. Reimplemented in EggGroup. Definition at line 361 of file eggNode.cxx. Referenced by EggNode::test_under_integrity(). |
|
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 49 of file eggNode.cxx. References EggNode::_parent, EggNode::determine_alpha_mode(), and NULL. |
|
Returns an iterator that can be used to traverse through all the vertices in the pool.
Definition at line 147 of file eggVertexPool.cxx. References _index_vertices, _unique_vertices, nassertr, and size_type. Referenced by EggVertexPool(). |
|
Resets the Namable's name to empty.
Definition at line 82 of file namable.I. References Namable::_name, and INLINE. |
|
Creates a new vertex in the pool that is a copy of the indicated one and returns it. If there is already a vertex in the pool like the indicated one, simply returns that one. Definition at line 252 of file eggVertexPool.cxx. References NULL. |
|
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 72 of file eggNode.cxx. References EggNode::_parent, EggNode::determine_depth_write_mode(), and NULL. Referenced by EggNode::apply_texmats(). |
|
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 172 of file eggNode.cxx. References EggNode::_depth, EggNode::_parent, EggNode::_under_flags, EggGroupNode::begin(), EggGroupNode::end(), EggGroupNode::iterator, nassertv, NULL, and ReferenceCount::test_ref_count_integrity(). Referenced by EggNode::determine_depth_test_mode(), and EggGroup::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_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 122 of file eggNode.cxx. References EggNode::_parent, EggNode::determine_bin(), and NULL. Referenced by EggGroup::determine_alpha_mode(), and EggPrimitive::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. Returns a valid EggRenderMode pointer if one is found, or NULL otherwise. Reimplemented in EggGroup, and EggPrimitive. Definition at line 97 of file eggNode.cxx. Referenced by EggNode::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 a draw_order specified. Returns a valid EggRenderMode pointer if one is found, or NULL otherwise. Reimplemented in EggGroup, and EggPrimitive. Definition at line 147 of file eggNode.cxx. References DCAST_INTO_R, egg_cleanup_parser(), egg_error_count(), egg_init_parser(), EggNode::egg_start_parse_body(), eggyyparse(), EggGroupNode::get_class_type(), EggNode::get_parent(), and TypedObject::is_of_type(). Referenced by EggPrimitive::determine_depth_test_mode(). |
|
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 282 of file eggNode.cxx. Referenced by EggNode::determine_draw_order(). |
|
Returns true if the pool is empty.
Definition at line 177 of file eggVertexPool.cxx. |
|
Returns an iterator that can be used to traverse through all the vertices in the pool.
Definition at line 164 of file eggVertexPool.cxx. References EggVertex::_pool, get_highest_index(), nassertv, and NULL. Referenced by EggVertexPool(). |
|
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. |
|
Reimplemented from EggNode. Definition at line 157 of file eggVertexPool.h. |
|
Reimplemented from EggNode. Definition at line 146 of file eggVertexPool.h. Referenced by EggPoolUniquifier::EggPoolUniquifier(). |
|
Returns the number of nodes above this node in the egg hierarchy.
|
|
Returns the highest index number used by any vertex in the pool.
Definition at line 127 of file eggVertexPool.cxx. References _index_vertices, and iterator. Referenced by end(). |
|
|
Returns the coordinate frame of the node itself. This is simply the net product of all transformations up to the root. Definition at line 210 of file eggNode.I. Referenced by EggGroup::string_collide_flags(). |
|
Returns the inverse of the matrix returned by get_node_frame(). See get_node_frame(). Definition at line 249 of file eggNode.I. Referenced by EggGroup::string_collide_flags(). |
|
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: |
|
Definition at line 75 of file eggNode.I. References EggNode::_depth. Referenced by EggNode::determine_draw_order(), and CharacterMaker::make_dynamic_primitive(). |
|
Returns the current reference count.
Definition at line 183 of file referenceCount.I. Referenced by RenderState::determine_bin_index(), RenderEffects::determine_show_bounds(), FontPool::ns_garbage_collect(), TexturePool::ns_garbage_collect(), MaterialPool::ns_get_material(), and TexturePool::ns_release_texture(). |
|
Reimplemented from EggNode. Definition at line 154 of file eggVertexPool.h. |
|
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 71 of file typedObject.I. References TypeHandle::get_name(), TypedObject::get_type(), and INLINE. |
|
Returns the vertex in the pool with the indicated index number, or NULL if no vertices have that index number.
Definition at line 106 of file eggVertexPool.cxx. References _index_vertices. Referenced by add_vertex(), and EggVertexPool(). |
|
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 entry reference their vertices in the coordinate system under effect at the time of the . Thus, nodes under an 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 188 of file eggNode.I. References EggNode::_node_frame_inv, and NULL. Referenced by EggGroup::string_collide_flags(). |
|
Returns the inverse of the matrix returned by get_vertex_frame(). See get_vertex_frame(). Definition at line 229 of file eggNode.I. Referenced by EggGroup::string_collide_flags(). |
|
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 278 of file eggNode.I. References INLINE, EggNode::r_flatten_transforms(), and EggNode::update_under(). Referenced by EggLoader::find_collision_geometry(). |
|
Returns true if the Namable has a nonempty name set, false if the name is empty.
Definition at line 97 of file namable.I. References Namable::get_name(), and INLINE. Referenced by EggGroupUniquifier::EggGroupUniquifier(), Texture::read(), and Texture::Texture(). |
|
Reimplemented from EggNode. Definition at line 149 of file eggVertexPool.h. |
|
Returns true if the current object is the indicated type exactly.
Definition at line 101 of file typedObject.I. Referenced by PT(), and CollisionNode::xform(). |
|
Returns true if this node's vertices are not in the global coordinate space. This will be the case if there was an node under a transform at or above this node. Definition at line 144 of file eggNode.I. Referenced by EggVertex::sorts_less_than(). |
|
|
Returns true if there is an node somewhere in the egg tree at or above this node, false otherwise.
Definition at line 108 of file eggNode.I. References EggNode::_under_flags, INLINE, and EggNode::UF_local_coord. Referenced by EggGroupNode::find_textures(). |
|
Returns true if there is a entry somewhere in the egg tree at or above this node, false otherwise.
Definition at line 125 of file eggNode.I. References EggNode::_vertex_frame, INLINE, and NULL. |
|
Allocates and returns a new vertex from the pool. This is one of three ways to add new vertices to a vertex pool. This flavor of make_new_vertex() explicitly sets the vertex position as it is allocated. It does not attempt to share vertices. Definition at line 161 of file eggVertexPool.I. |
|
Allocates and returns a new vertex from the pool. This is one of three ways to add new vertices to a vertex pool. This flavor of make_new_vertex() explicitly sets the vertex position as it is allocated. It does not attempt to share vertices. Definition at line 134 of file eggVertexPool.I. |
|
Allocates and returns a new vertex from the pool. This is one of three ways to add new vertices to a vertex pool. This flavor of make_new_vertex() explicitly sets the vertex position as it is allocated. It does not attempt to share vertices. Definition at line 107 of file eggVertexPool.I. References INLINE, make_new_vertex(), and EggVertex::set_pos(). |
|
Allocates and returns a new vertex from the pool. This is one of three ways to add new vertices to a vertex pool. This flavor of make_new_vertex() explicitly sets the vertex position as it is allocated. It does not attempt to share vertices. Definition at line 80 of file eggVertexPool.I. |
|
Allocates and returns a new vertex from the pool. This is one of three ways to add new vertices to a vertex pool. Definition at line 53 of file eggVertexPool.I. References INLINE, and EggVertex::set_pos(). Referenced by make_new_vertex(). |
|
Returns the vertex in the pool with the indicated index number, or NULL if no vertices have that index number.
Definition at line 36 of file eggVertexPool.I. References add_vertex(), INLINE, and PT. |
|
Outputs the Namable. This function simply writes the name to the output stream; most Namable derivatives will probably redefine this. Reimplemented in BuilderBucket, AnimBundle, AnimChannelBase, AnimChannelFixed< SwitchType >, AnimGroup, PartBundle, CollisionNode, ButtonNode, HermiteCurve, RopeNode, Fog, GeomNode, LensNode, LightLensNode, LightNode, LODNode, PandaNode, PlaneNode, MouseWatcher, and MouseWatcherRegion. |
|
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 200 of file eggNode.cxx. References EggNode::_parent. |
|
The recursive implementation of apply_texmats().
Reimplemented in EggGroupNode, EggNurbsSurface, and EggPrimitive. Definition at line 454 of file eggNode.cxx. |
|
The recursive implementation of flatten_transforms().
Reimplemented in EggGroup, EggGroupNode, and EggPrimitive. Definition at line 442 of file eggNode.cxx. Referenced by EggNode::get_vertex_to_node(). |
|
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 in EggGroupNode, EggXfmAnimData, and EggXfmSAnim. Definition at line 430 of file eggNode.cxx. |
|
This is called from within the egg code by transform(). It applies a transformation matrix to the current node in some sensible way, then continues down the tree. The first matrix is the transformation to apply; the second is its inverse. The third parameter is the coordinate system we are changing to, or CS_default if we are not changing coordinate systems. Reimplemented from EggNode. Definition at line 504 of file eggVertexPool.cxx. |
|
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 from EggNode. Definition at line 525 of file eggVertexPool.cxx. |
|
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. The return value is the new reference count. Definition at line 225 of file referenceCount.I. Referenced by ClientDevice::ClientDevice(), EggGroupNode::find_textures(), EggGroupNode::r_apply_texmats(), EggGroupNode::r_flatten_transforms(), and EggGroupNode::reverse_vertex_ordering(). |
|
Removes all vertices from the pool that are not referenced by at least one primitive. Also renumbers all vertices after the operation so their indices are consecutive, beginning at zero. Returns the number of vertices removed. Definition at line 327 of file eggVertexPool.cxx. |
|
Removes the vertex from the pool. It is an error if the vertex is not already a member of the pool. Definition at line 279 of file eggVertexPool.cxx. |
|
Definition at line 69 of file namable.I. References Namable::_name. Referenced by BuilderBucket::BuilderBucket(), SceneGraphReducer::do_flatten_siblings(), Texture::read(), PandaNode::reparent(), and Texture::Texture(). |
|
Returns the number of vertices in the pool.
Definition at line 190 of file eggVertexPool.cxx. References _unique_vertices, add_vertex(), and EggVertex. |
|
Does some easy checks to make sure that the reference count isn't completely bogus.
Definition at line 328 of file referenceCount.I. References INLINE. Referenced by EggNode::determine_bin(), and ReferenceCount::~ReferenceCount(). |
|
Recursively checks the integrity of the _under_flags, _parent, and _depth members of this node and all of its ancestors.
Definition at line 235 of file eggNode.cxx. References EggNode::_depth, EggNode::_node_frame, EggNode::_node_frame_inv, EggNode::_node_to_vertex, EggNode::_parent, EggNode::_under_flags, EggNode::_vertex_frame, EggNode::_vertex_frame_inv, EggNode::_vertex_to_node, EggNode::adjust_under(), and NULL. |
|
Applies the indicated transformation matrix to all the vertices. However, vertices that are attached to primitives that believe their vertices are in a local coordinate system are transformed only by the scale and rotation component. If a vertex happens to be attached both to a local and a global primitive, and the transformation includes a translation component, the vertex will be split. Reimplemented from EggNode. Definition at line 391 of file eggVertexPool.cxx. |
|
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. |
|
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; plus, we don't have a virtual destructor anyway.) 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 the new reference count. Definition at line 293 of file referenceCount.I. References INLINE. Referenced by RenderState::determine_bin_index(), and RenderEffects::determine_show_bounds(). |
|
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 311 of file eggNode.cxx. Referenced by EggNode::EggNode(), EggNode::get_vertex_to_node(), and EggGroupNode::triangulate_polygons(). |
|
Writes the vertex pool to the indicated output stream in Egg format.
Implements EggNode. Definition at line 466 of file eggVertexPool.cxx. |
|
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 46 of file eggNamedObject.cxx. Referenced by EggPoint::cleanup(), EggNurbsSurface::is_closed_u(), and EggExternalReference::operator=(). |
|
Definition at line 162 of file eggVertexPool.h. Referenced by EggVertexPool(), and size(). |
|
Definition at line 115 of file eggNode.h. Referenced by EggNode::determine_bin(), EggNode::EggNode(), EggNode::get_parent(), and EggNode::test_under_integrity(). |
|
Definition at line 141 of file eggVertexPool.h. Referenced by add_vertex(), begin(), EggVertexPool(), get_highest_index(), and get_vertex(). |
|
Definition at line 121 of file eggNode.h. Referenced by EggGroup::string_collide_flags(), and EggNode::test_under_integrity(). |
|
Definition at line 123 of file eggNode.h. Referenced by EggNode::get_vertex_frame(), EggGroup::string_collide_flags(), and EggNode::test_under_integrity(). |
|
Definition at line 125 of file eggNode.h. Referenced by EggGroup::string_collide_flags(), and EggNode::test_under_integrity(). |
|
Definition at line 114 of file eggNode.h. Referenced by EggNode::apply_texmats(), EggNode::determine_alpha_mode(), EggNode::determine_bin(), EggNode::determine_depth_test_mode(), EggNode::EggNode(), EggNode::operator=(), EggNode::parse_egg(), and EggNode::test_under_integrity(). |
|
Reimplemented from EggNode. Definition at line 28 of file eggVertexPool.cxx. |
|
Definition at line 116 of file eggNode.h. Referenced by EggNode::determine_bin(), EggNode::EggNode(), EggNode::is_under_instance(), EggGroup::string_collide_flags(), and EggNode::test_under_integrity(). |
|
Definition at line 140 of file eggVertexPool.h. Referenced by add_vertex(), begin(), EggVertexPool(), and size(). |
|
Definition at line 120 of file eggNode.h. Referenced by EggNode::is_under_transform(), and EggNode::test_under_integrity(). |
|
Definition at line 122 of file eggNode.h. Referenced by EggNode::test_under_integrity(). |
|
Definition at line 124 of file eggNode.h. Referenced by EggGroup::string_collide_flags(), and EggNode::test_under_integrity(). |