# EggVertexUV

from pandac.PandaModules import EggVertexUV

Class : EggVertexUV
Description : The set of UV's that may or may not be assigned to a vertex. To support multitexturing, there may be multiple sets of UV's on a particular vertex, each with its own name.

## Inheritance:

EggVertexUV: EggNamedObject
EggNamedObject: EggObject Namable
EggObject: TypedReferenceCount
TypedReferenceCount: TypedObject ReferenceCount
TypedObject:
ReferenceCount:
Namable:

## Methods of EggVertexUV:

clearBinormal
clearTangent
compareTo
getBinormal
getClassType
getNumDimensions
getTangent
getUv
getUvw
hasBinormal
hasTangent
hasW
operator =
setBinormal
setName
setTangent
setUv
setUvw
transform
write

## Methods of EggNamedObject:

getClassType
operator =
output

## Methods of EggObject:

clearUserData
getClassType
getUserData
hasUserData
operator =
setUserData

## Methods of TypedReferenceCount:

getClassType

## Methods of TypedObject:

getClassType
getType
getTypeIndex
isExactType
isOfType

## Methods of ReferenceCount:

getClassType
getRefCount
ref
testRefCountIntegrity
testRefCountNonzero
unref

## Methods of Namable:

clearName
getClassType
getName
hasName
operator =
output
setName

clearBinormal void EggVertexUV::clear_binormal(void); Description:

clearTangent void EggVertexUV::clear_tangent(void); Description:

compareTo int EggVertexUV::compare_to(EggVertexUV const &other) const; Description: An ordering operator to compare two vertices for sorting order. This imposes an arbitrary ordering useful to identify unique vertices.

getBinormal LVector3d const &EggVertexUV::get_binormal(void) const; Description:

getClassType static TypeHandle EggVertexUV::get_class_type(void); Undocumented function.

getNumDimensions int EggVertexUV::get_num_dimensions(void) const; Description: Returns the number of components of the texture coordinate set. This is either 2 (the normal case) or 3 (for a 3-d texture coordinate).

getTangent LVector3d const &EggVertexUV::get_tangent(void) const; Description:

getUv LPoint2d EggVertexUV::get_uv(void) const; Description: Returns the texture coordinate pair, if get_num_dimensions() is 2.

getUvw LPoint3d const &EggVertexUV::get_uvw(void) const; Description: Returns the texture coordinate triple, if get_num_dimensions() is 3. This is also legal to call if get_num_dimensions() is 2 (but the last dimension will be zero).

hasBinormal bool EggVertexUV::has_binormal(void) const; Description:

hasTangent bool EggVertexUV::has_tangent(void) const; Description:

hasW bool EggVertexUV::has_w(void) const; Description: Returns true if the texture coordinate has a third, w component, false if it is just a normal 2-d texture coordinate.

operator = EggVertexUV &EggVertexUV::operator =(EggVertexUV const &copy); Description:

setBinormal void EggVertexUV::set_binormal(LVector3d const &binormal); Description:

setName void EggVertexUV::set_name(string const &name); Filename: eggVertexUV.I Created by: drose (20Jul04) PANDA 3D SOFTWARE Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved All use of this software is subject to the terms of the Panda 3d Software license. You should have received a copy of this license along with this source code; you will also find a current copy of the license at http://etc.cmu.edu/panda3d/docs/license/ . To contact the maintainers of this program write to panda3d-general@lists.sourceforge.net . Description:

setTangent void EggVertexUV::set_tangent(LVector3d const &tangent); Description:

setUv void EggVertexUV::set_uv(LPoint2d const &texCoord); Description: Sets the texture coordinate pair. This makes the texture coordinate a 2-d texture coordinate, which is the usual case.

setUvw void EggVertexUV::set_uvw(LPoint3d const &texCoord); Description: Sets the texture coordinate triple. This makes the texture coordinate a 3-d texture coordinate.

transform void EggVertexUV::transform(LMatrix4d const &mat); Description: Applies the indicated transformation matrix to the UV's tangent and/or binormal. This does nothing if there is no tangent or binormal.

write void EggVertexUV::write(ostream &out, int indent_level) const; Description:

getClassType static TypeHandle EggNamedObject::get_class_type(void); Undocumented function.

operator = EggNamedObject &EggNamedObject::operator =(EggNamedObject const &copy); Description:

output void EggNamedObject::output(ostream &out) const; Description:

clearUserData void EggObject::clear_user_data(void); Description: Removes *all* user data pointers from the node. Description: Removes the user data pointer of the indicated type.

getClassType static TypeHandle EggObject::get_class_type(void); Undocumented function.

getUserData EggUserData *EggObject::get_user_data(void) const; Description: Returns the user data pointer most recently stored on this object, or NULL if nothing was previously stored. Description: Returns the user data pointer of the indicated type, if it exists, or NULL if it does not.

hasUserData bool EggObject::has_user_data(void) const; Description: Returns true if a generic user data pointer has recently been set and not yet cleared, false otherwise. Description: Returns true if the user data pointer of the indicated type has been set, false otherwise.

operator = EggObject &EggObject::operator =(EggObject const &copy); Description:

setUserData void EggObject::set_user_data(EggUserData *user_data); Description: 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.

getClassType static TypeHandle TypedReferenceCount::get_class_type(void); Undocumented function.

getClassType static TypeHandle TypedObject::get_class_type(void); Undocumented function.

getType virtual TypeHandle TypedObject::get_type(void) const = 0; Derived classes should override this function to return get_class_type().

getTypeIndex int TypedObject::get_type_index(void) const; Description: 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().

isExactType bool TypedObject::is_exact_type(TypeHandle handle) const; Description: Returns true if the current object is the indicated type exactly.

isOfType bool TypedObject::is_of_type(TypeHandle handle) const; Description: Returns true if the current object is or derives from the indicated type.

getClassType static TypeHandle ReferenceCount::get_class_type(void); Undocumented function.

getRefCount int ReferenceCount::get_ref_count(void) const; Description: Returns the current reference count.

ref void ReferenceCount::ref(void) const; Description: 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.

testRefCountIntegrity bool ReferenceCount::test_ref_count_integrity(void) const; Description: Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise.

testRefCountNonzero bool ReferenceCount::test_ref_count_nonzero(void) const; Description: Does some easy checks to make sure that the reference count isn't zero, or completely bogus. Returns true if ok, false otherwise.

unref bool ReferenceCount::unref(void) const; Description: 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 true if the new reference count is nonzero, false if it is zero.

clearName void Namable::clear_name(void); Description: Resets the Namable's name to empty.

getClassType static TypeHandle Namable::get_class_type(void); Undocumented function.

getName string const &Namable::get_name(void) const; Description:

hasName bool Namable::has_name(void) const; Description: Returns true if the Namable has a nonempty name set, false if the name is empty.

operator = Namable &Namable::operator =(Namable const &other); Description:

output void Namable::output(ostream &out) const; In the absence of any definition to the contrary, outputting a Namable will write out its name. Description: Outputs the Namable. This function simply writes the name to the output stream; most Namable derivatives will probably redefine this.

setName void Namable::set_name(string const &name); Description: