25 #include <tulip/tulipconf.h>
26 #include <tulip/Coord.h>
27 #include <tulip/Color.h>
28 #include <tulip/Size.h>
29 #include <tulip/GlSimpleEntity.h>
42 class TLP_GL_SCOPE GlPolyQuad :
public GlSimpleEntity {
54 GlPolyQuad(
const std::string &textureName =
"",
const bool outlined =
false,
const int outlineWidth = 1,
const Color &outlineColor = Color(0,0,0));
75 GlPolyQuad(
const std::vector<Coord> &polyQuadEdges,
const std::vector<Color> &polyQuadEdgesColor,
const std::string &textureName =
"",
76 const bool outlined =
false,
const int outlineWidth = 1,
const Color &outlineColor = Color(0,0,0));
85 GlPolyQuad(
const std::vector<Coord> &polyQuadEdges,
const Color &polyQuadColor,
const std::string &textureName =
"",
86 const bool outlined =
false,
const int outlineWidth = 1,
const Color &outlineColor = Color(0,0,0));
96 void addQuadEdge(
const Coord &edgeStart,
const Coord &edgeEnd,
const Color &edgeColor);
101 void draw(
float lod,Camera *camera);
106 void setColor(
const Color &color);
111 void setOutlineColor(
const Color &color) {
112 outlineColor = color;
118 void setOutlined(
const bool outline) {
125 void setOutlineWidth(
const int width) {
126 outlineWidth = width;
132 void translate(
const Coord &move);
137 void getXML(std::string &outString);
142 void setWithXML(
const std::string &inString,
unsigned int ¤tPosition);
145 std::vector<Coord> polyQuadEdges;
146 std::vector<Color> polyQuadEdgesColors;
147 std::string textureName;