00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 #ifndef VRS_POLYGONSETBUILDER_H
00050 #define VRS_POLYGONSETBUILDER_H
00051
00052 #include <vrs/sharedobj.h>
00053
00054 namespace VRS {
00055
00056 class Engine;
00057 class Box;
00058 class Cone;
00059 class Cylinder;
00060 class Disc;
00061 class Hyperboloid;
00062 class Knot;
00063 class Mesh;
00064 class Paraboloid;
00065 class PolygonSet;
00066 class Sphere;
00067 class SuperQuad;
00068 class Torus;
00069 class VertexAttributeGenerator;
00070 class VertexAttributeMap;
00071
00072 class VRS_CORE_API PolygonSetBuilder {
00073
00074 public:
00075 static Mesh* createMesh(VertexAttributeGenerator*, const VertexAttributeMap*);
00079 static Mesh* createTransformedMesh(VertexAttributeGenerator*, const VertexAttributeMap*);
00084 static Mesh* createMesh(Engine*, VertexAttributeGenerator*);
00086
00087 static PolygonSet* create(const Box*, unsigned int nx = 16, unsigned int ny = 16, const VertexAttributeMap* = 0);
00089
00093 static Mesh* create(const Cone*, unsigned int nx = 16, unsigned int ny = 16, const VertexAttributeMap* = 0);
00095
00099 static Mesh* create(const Cylinder*, unsigned int nx = 16, unsigned int ny = 16, const VertexAttributeMap* = 0);
00101
00102 static Mesh* create(const Disc*, unsigned int nx = 16, unsigned int ny = 16, const VertexAttributeMap* = 0);
00104
00105 static Mesh* create(const Hyperboloid*, unsigned int nx = 16, unsigned int ny = 16, const VertexAttributeMap* = 0);
00107
00108 static Mesh* create(const Knot*, unsigned int nx = 16, unsigned int ny = 16, const VertexAttributeMap* = 0);
00110
00111 static Mesh* create(const Paraboloid*, unsigned int nx = 16, unsigned int ny = 16, const VertexAttributeMap* = 0);
00113
00114 static Mesh* create(const Sphere*, unsigned int nx = 16, unsigned int ny = 16, const VertexAttributeMap* = 0);
00116
00117 static Mesh* create(const SuperQuad*, unsigned int nx = 16, unsigned int ny = 16, const VertexAttributeMap* = 0);
00119
00120 static Mesh* create(const Torus*, unsigned int nx = 16, unsigned int ny = 16, const VertexAttributeMap* = 0);
00122
00123 };
00124
00125 }
00126
00127 #endif // VRS_POLYGONSETBUILDER_H
00128
00129