Main Page | Namespace List | Class List | File List | Namespace Members | Class Members

Mesh Class Reference

Triangle mesh More...

#include <Mesh.h>

List of all members.

Public Member Functions

 Mesh ()
 ~Mesh ()
void write_XML (const QString &filename)
void write_XML (QTextStream &cout)
void add_triangle (Triangle *t)
void add_vertex (Vertex *p)
void remove_triangle (Triangle *t)
void remove_vertex (Vertex *p)
QDict< Triangle > & get_triangles ()
const QDict< Vertex > & get_vertices () const
Vertexfind_vertex (const QString &id)
void clear ()


Detailed Description

Triangle mesh

An object of this class stores objects of class Vertex and Triangle.

Date:
22 dec 2001
Version:
18 sep 2003
Author:
Jochen Hanff

Definition at line 49 of file Mesh.h.


Constructor & Destructor Documentation

Mesh::Mesh  ) 
 

Constructor

Definition at line 21 of file Mesh.cpp.

Mesh::~Mesh  )  [inline]
 

Destructor.

Does nothing.

Definition at line 68 of file Mesh.h.


Member Function Documentation

void Mesh::clear  ) 
 

Clear mesh.

Delete all vertices and triangles.

Date:
30 jun 2002
Version:
30 jun 2002

Definition at line 37 of file Mesh.cpp.

Vertex* Mesh::find_vertex const QString &  id  )  [inline]
 

Find vertex with identifier id

Definition at line 137 of file Mesh.h.

References find_vertex().

Referenced by find_vertex().

QDict<Triangle>& Mesh::get_triangles  )  [inline]
 

Get all triangles.

Version:
08 jul 2002
Date:
08 jul 2002

Definition at line 129 of file Mesh.h.

void Mesh::write_XML QTextStream &  cout  ) 
 

Write mesh to stream

Definition at line 103 of file Mesh.cpp.

References write_XML().

void Mesh::write_XML const QString &  filename  ) 
 

Write mesh to file filename. Data is stored in XML format.

Example of output data:

<?xml version="1.0" encoding="ISO-8859-1"?> <objects> <point id="p1" x="0.0" y="0.0"/> <point id="p2" x="1.0" y="0.0"/> <point id="p3" x="0.0" y="1.0"/> <point id="p4" x="1.5" y="1.0"/> <point id="p5" x="0.6" y="2.0"/> <triangle id="id_1"> <p1>p1</p1> <p2>p2</p2> <p3>p3</p3> </triangle> </objects>

Date:
22 dec 2001
Version:
02 jul 2002

Definition at line 92 of file Mesh.cpp.

References write_XML().

Referenced by write_XML().


The documentation for this class was generated from the following files:
Generated on Sun Sep 12 12:59:34 2004 for DelaunayMeshGenerator by doxygen 1.3.7