Generic CAM 0.1-PreAlpha

Geometry Class Reference

Contains geometric data. More...

#include <Geometry.h>

Inheritance diagram for Geometry:
Collaboration diagram for Geometry:

List of all members.

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.

Detailed Description

Contains geometric data.

Geometric data is stored in this class.


Constructor & Destructor Documentation

Geometry::Geometry ( )
Geometry::~Geometry ( ) [virtual]

Member Function Documentation

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::AddTriangle ( const Vector3 a,
const Vector3 b,
const Vector3 c 
)
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)

Reimplemented in ToolPath.

void Geometry::ApplyTransformation ( void  )

Reimplemented in ToolPath.

void Geometry::CalculateNormals ( void  )
void Geometry::Clear ( void  )

Reimplemented in ToolPath.

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)

Member Data Documentation

Transformation of the data.

Reimplemented in ToolPath.

ArrayOfTriangle Geometry::triangles

The storage of the geometric data.


The documentation for this class was generated from the following files: