source: trunk/UPV/GTGeometry/include/GeoMeshStripifier.h @ 138

Revision 138, 1.8 KB checked in by hidalgo, 19 years ago (diff)

Uploaded WP4 Dummy code(Geometry)

Line 
1#ifndef __GEO_STRIPIFIER__
2#define __GEO_STRIPIFIER__
3
4#include <string>
5#include <vector>
6
7#include "GeoBase.h"
8#include "GeoSerializable.h"
9#include "GeoMesh.h"
10
11
12namespace Geometry {
13        /// Stripifier interface class.
14        /** This module implements methods that extract triangle strips from triangle meshes.
15                \n
16
17Inputs:\n
18        - This module receives a pointer to a Geometry::Mesh object containing the model to be stripified.
19        .
20
21Outputs:\n
22        - The stripified mesh, contained also in a Geometry::Mesh object.
23        .
24
25        */
26        class MeshStripifier
27        {
28        public:
29                /// Class constructor, receives as a parameter a const pointer to the object that describes a mesh.
30                MeshStripifier (const Geometry::Mesh *);
31
32                /// virtual class destructor.
33                virtual ~MeshStripifier (void);
34
35                /// Copy constructor
36                //MeshStripifier(const MeshStripifier&);
37
38                /// Assignment operator
39                //MeshStripifier& operator =(const MeshStripifier&);
40
41                /// Starts the stripification process. This is a pure virtual method and must be overloaded in a derived class that implements a stripification algorithm.
42                virtual void Stripify()=0;
43
44                /// Returns the stripified mesh.
45                Mesh *GetMesh ();
46        };
47
48        class CustomStripifier : public MeshStripifier
49        {
50        public:
51                /// Class constructor, receives as a parameter a const pointer to the object that describes a mesh.
52                CustomStripifier (const Geometry::Mesh *);
53
54                /// Class destructor.
55                virtual ~CustomStripifier (void);
56
57                /// Copy constructor
58                //CustomStripifier(const CustomStripifier&);
59
60                /// Assignment operator
61                //CustomStripifier& operator =(const CustomStripifier&);
62
63                /// Starts the stripification process. This is a custom stripification method.
64                void Stripify();
65
66                /// Returns the stripified mesh.
67                Mesh *GetMesh ();
68        };
69
70}
71
72#endif
Note: See TracBrowser for help on using the repository browser.