Tulip
4.6.0
Better Visualization Through Research
|
00001 /* 00002 * 00003 * This file is part of Tulip (www.tulip-software.org) 00004 * 00005 * Authors: David Auber and the Tulip development Team 00006 * from LaBRI, University of Bordeaux 00007 * 00008 * Tulip is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU Lesser General Public License 00010 * as published by the Free Software Foundation, either version 3 00011 * of the License, or (at your option) any later version. 00012 * 00013 * Tulip is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 * See the GNU General Public License for more details. 00017 * 00018 */ 00019 00020 #ifndef GLTRIANGLE_H 00021 #define GLTRIANGLE_H 00022 00023 #include <tulip/GlRegularPolygon.h> 00024 00025 namespace tlp { 00026 00027 /** 00028 * @ingroup OpenGL 00029 * @brief Class to create a triangle 00030 */ 00031 class TLP_GL_SCOPE GlTriangle : public GlRegularPolygon { 00032 public: 00033 /** 00034 * @brief Constructor 00035 */ 00036 GlTriangle(const Coord &position, 00037 const Size &size, 00038 const Color &outlineColor = Color(255, 0 , 0 , 255), 00039 const Color &fillColor = Color (0, 0, 255,255), 00040 bool filled = true, 00041 bool outlined =true, 00042 const std::string &textureName="", 00043 float outlineSize=1.); 00044 /** 00045 * @brief Default empty destructor 00046 * 00047 * @warning Don't use this constructor 00048 */ 00049 virtual ~GlTriangle(); 00050 00051 }; 00052 00053 } 00054 #endif