24 #include <tulip/tulipconf.h>
25 #include <tulip/Coord.h>
26 #include <tulip/Color.h>
27 #include <tulip/GlSimpleEntity.h>
42 class TLP_GL_SCOPE GlPolyQuad :
public GlSimpleEntity {
53 GlPolyQuad(
const std::string &textureName =
"",
const bool outlined =
false,
54 const int outlineWidth = 1,
const Color &outlineColor = Color(0, 0, 0));
79 GlPolyQuad(
const std::vector<Coord> &polyQuadEdges,
const std::vector<Color> &polyQuadEdgesColor,
80 const std::string &textureName =
"",
const bool outlined =
false,
81 const int outlineWidth = 1,
const Color &outlineColor = Color(0, 0, 0));
91 GlPolyQuad(
const std::vector<Coord> &polyQuadEdges,
const Color &polyQuadColor,
92 const std::string &textureName =
"",
const bool outlined =
false,
93 const int outlineWidth = 1,
const Color &outlineColor = Color(0, 0, 0));
104 void addQuadEdge(
const Coord &edgeStart,
const Coord &edgeEnd,
const Color &edgeColor,
105 bool noCheck =
false);
110 void draw(
float lod, Camera *camera)
override;
115 void setColor(
const Color &color);
120 void setOutlineColor(
const Color &color) {
121 outlineColor = color;
127 void setOutlined(
const bool outline) {
134 void setOutlineWidth(
const int width) {
135 outlineWidth = width;
141 void translate(
const Coord &move)
override;
146 void getXML(std::string &outString)
override;
151 void setWithXML(
const std::string &inString,
unsigned int ¤tPosition)
override;
154 std::vector<Coord> polyQuadEdges;
156 std::vector<Color> polyQuadEdgesColors;
157 std::string textureName;