Blender V2.61 - r43446
|
#include <attribute.h>
Public Member Functions | |
AttributeSet (Mesh *mesh) | |
~AttributeSet () | |
Attribute * | add (ustring name, TypeDesc type, Attribute::Element element) |
Attribute * | find (ustring name) |
void | remove (ustring name) |
Attribute * | add (Attribute::Standard std, ustring name=ustring()) |
Attribute * | find (Attribute::Standard std) |
void | remove (Attribute::Standard std) |
Attribute * | find (AttributeRequest &req) |
void | reserve (int numverts, int numfaces) |
void | clear () |
Public Attributes | |
Mesh * | mesh |
list< Attribute > | attributes |
Definition at line 92 of file attribute.h.
AttributeSet::AttributeSet | ( | Mesh * | mesh | ) |
Definition at line 104 of file attribute.cpp.
References mesh.
AttributeSet::~AttributeSet | ( | ) |
Definition at line 109 of file attribute.cpp.
Attribute * AttributeSet::add | ( | ustring | name, |
TypeDesc | type, | ||
Attribute::Element | element | ||
) |
Definition at line 113 of file attribute.cpp.
References attributes, Attribute::CORNER, Attribute::element, Attribute::FACE, find(), mesh, Attribute::reserve(), Attribute::set(), Mesh::triangles, Attribute::type, Attribute::VERTEX, and Mesh::verts.
Referenced by add(), Mesh::add_face_normals(), Mesh::add_vertex_normals(), create_mesh(), MeshManager::device_update_attributes(), EdgeDice::EdgeDice(), and EdgeDice::reserve().
Attribute * AttributeSet::add | ( | Attribute::Standard | std, |
ustring | name = ustring() |
||
) |
Definition at line 166 of file attribute.cpp.
References add(), assert, Attribute::CORNER, Attribute::FACE, NULL, Attribute::standard_name(), Attribute::std, Attribute::STD_FACE_NORMAL, Attribute::STD_GENERATED, Attribute::STD_POSITION_UNDEFORMED, Attribute::STD_POSITION_UNDISPLACED, Attribute::STD_UV, Attribute::STD_VERTEX_NORMAL, and Attribute::VERTEX.
void AttributeSet::clear | ( | ) |
Attribute * AttributeSet::find | ( | ustring | name | ) |
Definition at line 141 of file attribute.cpp.
References attributes, Attribute::name, and NULL.
Referenced by add(), Mesh::add_face_normals(), Mesh::add_vertex_normals(), Object::apply_transform(), MeshManager::device_update_attributes(), find(), Mesh::pack_normals(), and remove().
Attribute * AttributeSet::find | ( | Attribute::Standard | std | ) |
Definition at line 193 of file attribute.cpp.
References attributes, NULL, and Attribute::std.
Attribute * AttributeSet::find | ( | AttributeRequest & | req | ) |
Definition at line 218 of file attribute.cpp.
References find(), AttributeRequest::name, AttributeRequest::std, and Attribute::STD_NONE.
void AttributeSet::remove | ( | Attribute::Standard | std | ) |
Definition at line 202 of file attribute.cpp.
References attributes, and find().
void AttributeSet::remove | ( | ustring | name | ) |
Definition at line 150 of file attribute.cpp.
References attributes, and find().
Referenced by MeshManager::displace(), xml_read_mesh(), and xml_read_patch().
void AttributeSet::reserve | ( | int | numverts, |
int | numfaces | ||
) |
Definition at line 226 of file attribute.cpp.
References attributes, and Attribute::reserve().
Referenced by Mesh::reserve().
Definition at line 94 of file attribute.h.
Referenced by add(), and AttributeSet().