21 #ifndef GLABSTRACTPOLYGON_H
22 #define GLABSTRACTPOLYGON_H
26 #include <tulip/Color.h>
27 #include <tulip/Coord.h>
28 #include <tulip/tulipconf.h>
30 #include <tulip/GlSimpleEntity.h>
31 #include <tulip/GlTools.h>
54 enum PolygonMode {POLYGON = 0, QUAD_STRIP = 1};
59 PolygonMode getPolygonMode();
64 void setPolygonMode(PolygonMode mode);
74 void setFillMode(
const bool);
79 bool getOutlineMode();
84 void setOutlineMode(
const bool);
89 bool getLightingMode();
94 void setLightingMode(
const bool);
99 Color getFillColor(
unsigned int i);
104 void setFillColor(
unsigned int i,
const Color &color);
111 void setFillColor(
const Color &color);
118 Color getOutlineColor(
unsigned int i);
123 void setOutlineColor(
unsigned int i,
const Color &color);
130 void setOutlineColor(
const Color &color);
135 std::string getTextureName();
140 void setTextureName(
const std::string &name);
145 float getOutlineSize();
150 void setOutlineSize(
float size);
157 float getHideOutlineLod();
162 void setHideOutlineLod(
float lod);
167 virtual void draw(
float lod,
Camera *camera);
172 virtual void translate(
const Coord& mouvement);
177 virtual void getXML(std::string &outString);
182 virtual void getXMLOnlyData(std::string &outString);
187 virtual void setWithXML(
const std::string &outString,
unsigned int ¤tPosition);
198 virtual void setPoints(
const std::vector<Coord> &points);
203 virtual void setPoint(
unsigned int index,
const Coord &point);
208 virtual void setFillColors(
const std::vector<Color> &colors);
213 virtual void setOutlineColors(
const std::vector<Color> &colors);
218 virtual void recomputeBoundingBox();
223 virtual void clearGenerated();
227 PolygonMode polygonMode;
228 std::vector<Coord> points;
229 std::vector<Color> fillColors;
230 std::vector<Color> outlineColors;
235 std::string textureName;
237 float hideOutlineLod;
239 std::vector<Coord> normalArray;