Crevaya 0.1-PreAlpha
|
Contains geometric data. More...
#include <Geometry.h>
Public Member Functions | |
Geometry () | |
virtual | ~Geometry () |
void | ToXml (wxXmlNode *parentNode) |
bool | FromXml (wxXmlNode *node) |
void | Paint (void) const |
void | Clear (void) |
void | CopyFrom (const Geometry &geometry) |
void | CopyTrianglesFrom (const Geometry &geometry) |
void | CalculateNormals (void) |
void | FlipNormals (void) |
void | ApplyTransformation (const AffineTransformMatrix &matrix) |
void | ApplyTransformation (void) |
void | AddTriangle (const Vector3 &a, const Vector3 &b, const Vector3 &c) |
void | AddTriangleTransform (const Vector3 &a, const Vector3 &b, const Vector3 &c, const AffineTransformMatrix &transformMatrix) |
void | AddTriangleWithNormals (const Vector3 &a, const Vector3 &b, const Vector3 &c, const Vector3 &na, const Vector3 &nb, const Vector3 &nc) |
void | AddQuad (const Vector3 &a, const Vector3 &b, const Vector3 &c, const Vector3 &d) |
void | AddQuadTransform (const Vector3 &a, const Vector3 &b, const Vector3 &c, const Vector3 &d, const AffineTransformMatrix &transformMatrix) |
Public Attributes | |
wxString | objectName |
Vector3 | color |
bool | visible |
AffineTransformMatrix | matrix |
Transformation of the data. | |
ArrayOfTriangle | triangles |
The storage of the geometric data. |
Contains geometric data.
Geometric data is stored in this class.
Geometry::Geometry | ( | ) |
Geometry::~Geometry | ( | ) | [virtual] |
void Geometry::AddQuad | ( | const Vector3 & | a, |
const Vector3 & | b, | ||
const Vector3 & | c, | ||
const Vector3 & | d | ||
) |
void Geometry::AddQuadTransform | ( | const Vector3 & | a, |
const Vector3 & | b, | ||
const Vector3 & | c, | ||
const Vector3 & | d, | ||
const AffineTransformMatrix & | transformMatrix | ||
) |
void Geometry::AddTriangleTransform | ( | const Vector3 & | a, |
const Vector3 & | b, | ||
const Vector3 & | c, | ||
const AffineTransformMatrix & | transformMatrix | ||
) |
void Geometry::AddTriangleWithNormals | ( | const Vector3 & | a, |
const Vector3 & | b, | ||
const Vector3 & | c, | ||
const Vector3 & | na, | ||
const Vector3 & | nb, | ||
const Vector3 & | nc | ||
) |
void Geometry::ApplyTransformation | ( | const AffineTransformMatrix & | matrix | ) |
void Geometry::ApplyTransformation | ( | void | ) |
void Geometry::CalculateNormals | ( | void | ) |
void Geometry::Clear | ( | void | ) |
void Geometry::CopyFrom | ( | const Geometry & | geometry | ) |
void Geometry::CopyTrianglesFrom | ( | const Geometry & | geometry | ) |
void Geometry::FlipNormals | ( | void | ) |
bool Geometry::FromXml | ( | wxXmlNode * | node | ) |
void Geometry::Paint | ( | void | ) | const |
void Geometry::ToXml | ( | wxXmlNode * | parentNode | ) |
Transformation of the data.
wxString Geometry::objectName |
ArrayOfTriangle Geometry::triangles |
The storage of the geometric data.
bool Geometry::visible |