BALL
1.4.79
|
#include <BALL/VIEW/PRIMITIVES/mesh.h>
Public Member Functions | |
Constructors | |
Mesh () | |
Mesh (const Mesh &mesh) | |
Destructors | |
virtual | ~Mesh () |
virtual void | clear () |
Assignment methods | |
void | set (const Mesh &mesh) |
const Mesh & | operator= (const Mesh &mesh) |
void | swap (Mesh &mesh) |
debuggers and diagnostics | |
virtual bool | isValid () const |
virtual void | dump (std::ostream &s=std::cout, Size depth=0) const |
bool | binaryWrite (const String &filename) |
bool | binaryRead (const String &filename) |
virtual void | getVertices (vector< Vector3 > &vertices) const |
Public Member Functions inherited from BALL::VIEW::GeometricObject | |
GeometricObject () | |
GeometricObject (const GeometricObject &object) | |
virtual | ~GeometricObject () |
void | set (const GeometricObject &object) |
GeometricObject & | operator= (const GeometricObject &object) |
void | swap (GeometricObject &object) |
void | setComposite (const Composite *composite) |
const Composite * | getComposite () const |
void | setColor (const ColorRGBA &color) |
void | setColor (const ColorUnit &red, const ColorUnit &green, const ColorUnit &blue, const ColorUnit &alpha=(float) 1) |
const ColorRGBA & | getColor () const |
ColorRGBA & | getColor () |
void | getColor (ColorUnit &red, ColorUnit &green, ColorUnit &blue, ColorUnit &alpha) const |
void | getColors (HashSet< String > &colors) |
Insert the colors of this object into the hashset. More... | |
bool | operator== (const GeometricObject &object) const |
Needed for MSVC. More... | |
bool | operator< (const GeometricObject &object) const |
Needed for MSVC. More... | |
Public Member Functions inherited from BALL::TSurface< float > | |
TSurface () | |
TSurface (const TSurface &surface) | |
virtual | ~TSurface () |
void | set (const TSurface &surface) |
TSurface & | operator= (const TSurface &surface) |
void | get (TSurface &surface) const |
void | clear () |
void | readMSMSFile (const String &vert_filename, const String &face_filename) |
float | getArea () const |
Size | getNumberOfTriangles () const |
Return the number of triangles. More... | |
Size | getNumberOfVertices () const |
Return the number of vertices. More... | |
Size | getNumberOfNormals () const |
Return the number of normals. More... | |
Triangle & | getTriangle (Position index) |
Return a triangle with a given index. More... | |
const Triangle & | getTriangle (Position index) const |
Return a triangle with a given index. More... | |
void | clearTriangles () |
Clear all triangles. More... | |
void | resizeTriangles (Size size) |
Resize the triangle array. More... | |
void | pushBackTriangle (const Triangle &triangle) |
Add a triangle. More... | |
Vertex & | getVertex (Position index) |
Return the position of a vertex. More... | |
const Vertex & | getVertex (Position index) const |
Return the position of a vertex. More... | |
void | clearVertices () |
Clear all vertices. More... | |
void | resizeVertices (Size size) |
Resize the vertex array. More... | |
void | pushBackVertex (const Vertex &vertex) |
Add a vertex. More... | |
Normal & | getNormal (Position index) |
Return the position of a normal. More... | |
const Normal & | getNormal (Position index) const |
Return the position of a normal. More... | |
void | clearNormals () |
Clear all normals. More... | |
void | resizeNormals (Size size) |
Resize the normal array. More... | |
void | pushBackNormal (const Normal &n) |
Add a normal. More... | |
bool | operator== (const TSurface &surface) const |
bool | operator!= (const TSurface &surface) const |
Public Member Functions inherited from BALL::VIEW::MultiColorExtension | |
MultiColorExtension () | |
MultiColorExtension (const MultiColorExtension &color_extension) | |
virtual | ~MultiColorExtension () |
void | set (const MultiColorExtension &color_extension) |
const MultiColorExtension & | operator= (const MultiColorExtension &color_extension) |
void | swap (MultiColorExtension &color_extension) |
void | setColors (const vector< ColorRGBA > &colors) |
vector< ColorRGBA > & | getColors () |
const vector< ColorRGBA > & | getColors () const |
void | setAlphas (Size alpha) |
Set the alpha values for all colors. More... | |
Additional Inherited Members | |
Public Types inherited from BALL::TSurface< float > | |
typedef TVector3< float > | Vertex |
A vertex. More... | |
typedef TVector3< float > | Normal |
A normal. More... | |
Public Attributes inherited from BALL::TSurface< float > | |
vector< Vertex > | vertex |
the vertices More... | |
vector< Normal > | normal |
the normals for each vertex More... | |
vector< Triangle > | triangle |
the triangles More... | |
Public Attributes inherited from BALL::VIEW::MultiColorExtension | |
vector< ColorRGBA > | colors |
Mesh class. An instance of Mesh represents an instance of the geometric representation "mesh".
BALL::VIEW::Mesh::Mesh | ( | ) |
Default Constructor.
BALL::VIEW::Mesh::Mesh | ( | const Mesh & | mesh | ) |
Copy constructor
|
virtual |
Destructor.
|
virtual |
Explicit default initialization. Calls GeometricObject::clear
Reimplemented from BALL::VIEW::MultiColorExtension.
|
virtual |
Internal value dump. Dump the current value of this mesh to the output ostream s with dumping depth depth. Calls GeometricObject::dump.
s | output stream where to output the value of this mesh |
depth | the dumping depth |
Reimplemented from BALL::VIEW::MultiColorExtension.
|
virtual |
Reimplemented from BALL::VIEW::GeometricObject.
|
virtual |
Internal state and consistency self-validation. Calls GeometricObject::isValid.
Reimplemented from BALL::VIEW::GeometricObject.
void BALL::VIEW::Mesh::set | ( | const Mesh & | mesh | ) |
Assignment.
void BALL::VIEW::Mesh::swap | ( | Mesh & | mesh | ) |
Swapping of mesh's. Swap the value of this mesh with the mesh mesh.
mesh | the mesh being swapped with this mesh |