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));
103 void addQuadEdge(
const Coord &edgeStart,
const Coord &edgeEnd,
const Color &edgeColor);
108 void draw(
float lod, Camera *camera)
override;
113 void setColor(
const Color &color);
118 void setOutlineColor(
const Color &color) {
119 outlineColor = color;
125 void setOutlined(
const bool outline) {
132 void setOutlineWidth(
const int width) {
133 outlineWidth = width;
139 void translate(
const Coord &move)
override;
144 void getXML(std::string &outString)
override;
149 void setWithXML(
const std::string &inString,
unsigned int ¤tPosition)
override;
152 std::vector<Coord> polyQuadEdges;
154 std::vector<Color> polyQuadEdgesColors;
155 std::string textureName;