#include <TriangleEntity.h>
Inheritance diagram for TriangleEntity:


Public Member Functions | |
| void | deserialize (XMLNode *from) |
| Read entity properties and set its in object. | |
| void | setTransformMatrix (TransformMatrix *matrix) |
| Set transofrmation matrix. | |
| void | divide (float size) |
| Perform patch division. | |
| PatchSequenceEnumerator * | createPatchSequenceEnumerator () |
| Create enumerator for entity's patches. | |
| TriangleSetExt * | computeVertexColors () |
| Compute per-vertex colors using simple interpolation. | |
| XMLNode | serialize () |
| Entity serialization to XMLNode. | |
| void | setName (XMLNode *from, const char *implicit="entity") |
| All entities in input file can have explicit name. And this method set it. | |
| void | setName (std::string name) |
| Set entity name. | |
| std::string & | getName () |
| Get name of entity. | |
Static Public Member Functions | |
| static Entity * | create (XMLNode *from) |
| Create a instantiate of special entity class. | |
| static bool | colorFromXMLNode (XMLNode *from, XMLCSTR attName, Color &to, int wlevel=2) |
| Read color value from attribute of XMLNode and create its object representation. | |
| static void | setColors (XMLNode *from, Color &em, Color &refl, Color &rad) |
| Read three colors from XMLnode from specified attributs and ctore its valeus. | |
Protected Member Functions | |
| void | addTriangle (Triangle *triangle) |
| Add triangle to entity using tranformation matrix. | |
Definition at line 19 of file TriangleEntity.h.
| void TriangleEntity::deserialize | ( | XMLNode * | from | ) | [virtual] |
Read entity properties and set its in object.
| from | XMLNode which has tagname triangleset |
Reimplemented from Entity.
| static Entity* Entity::create | ( | XMLNode * | from | ) | [static, inherited] |
Create a instantiate of special entity class.
| from | XMLNode containing entity declaration. |
| void Entity::setTransformMatrix | ( | TransformMatrix * | matrix | ) | [inherited] |
Set transofrmation matrix.
| matrix | Transformation matrix to set. There is no need to keep it in memory after call of this method. |
| void Entity::divide | ( | float | size | ) | [inherited] |
Perform patch division.
| size | Size of the largest acceptable patch. |
| PatchSequenceEnumerator* Entity::createPatchSequenceEnumerator | ( | ) | [inherited] |
Create enumerator for entity's patches.
| TriangleSetExt* Entity::computeVertexColors | ( | ) | [inherited] |
Compute per-vertex colors using simple interpolation.
| XMLNode Entity::serialize | ( | ) | [inherited] |
| void Entity::setName | ( | XMLNode * | from, | |
| const char * | implicit = "entity" | |||
| ) | [inherited] |
All entities in input file can have explicit name. And this method set it.
| from | XMLNode wich contains entity declaration. | |
| implicit | name when in xml doesn't exist |
| void Entity::setName | ( | std::string | name | ) | [inline, inherited] |
| std::string& Entity::getName | ( | ) | [inline, inherited] |
| static bool Entity::colorFromXMLNode | ( | XMLNode * | from, | |
| XMLCSTR | attName, | |||
| Color & | to, | |||
| int | wlevel = 2 | |||
| ) | [static, inherited] |
Read color value from attribute of XMLNode and create its object representation.
| from | XMLnode with attribute contains color value | |
| attName | name of attribute with color | |
| to | reference of object to store value | |
| wlevel | is warnings level |
| static void Entity::setColors | ( | XMLNode * | from, | |
| Color & | em, | |||
| Color & | refl, | |||
| Color & | rad | |||
| ) | [static, inherited] |
Read three colors from XMLnode from specified attributs and ctore its valeus.
| from | XMLNode containing entity declaration. | |
| em | Emmision color value | |
| refl | Reflectiovity color value | |
| rad | Radiosity color value |
| void Entity::addTriangle | ( | Triangle * | triangle | ) | [protected, inherited] |
1.5.2