Eclipse SUMO - Simulation of Urban MObility
|
#include <config.h>
#include <string>
#include <utils/geom/GeomHelper.h>
#include <utils/gui/images/GUITexturesHelper.h>
#include <utils/gui/globjects/GUIGlObject.h>
#include <utils/gui/div/GUIParameterTableWindow.h>
#include <utils/gui/globjects/GUIGLObjectPopupMenu.h>
#include <utils/gui/settings/GUIVisualizationSettings.h>
#include <utils/gui/div/GUIGlobalSelection.h>
#include <utils/gui/div/GLHelper.h>
#include <utils/gui/div/GUIDesigns.h>
#include "GUIPolygon.h"
Go to the source code of this file.
Macros | |
#define | CALLBACK |
#define | MAX_COMBINE_INDEX 1024 |
Functions | |
void CALLBACK | beginCallback (GLenum which) |
void CALLBACK | combineCallback (GLdouble coords[3], GLdouble *vertex_data[4], GLfloat weight[4], GLdouble **dataOut) |
void CALLBACK | endCallback (void) |
void CALLBACK | errorCallback (GLenum errorCode) |
void CALLBACK | vertexCallback (GLvoid *vertex) |
Variables | |
static const GLdouble | INV_POLY_TEX_DIM = 1.0 / 256.0 |
int | myCombineIndex = 0 |
GLdouble | myCombineVertices [MAX_COMBINE_INDEX][3] |
std::vector< Position > | myCurrentPoints |
const TesselatedPolygon * | myCurrentTesselated = nullptr |
GLenum | myCurrentType = 0 |
static const GLdouble | xPlane [] = {INV_POLY_TEX_DIM, 0.0, 0.0, 0.0} |
static const GLdouble | yPlane [] = {0.0, INV_POLY_TEX_DIM, 0.0, 0.0} |
Definition in file GUIPolygon.cpp.
#define CALLBACK |
Definition at line 39 of file GUIPolygon.cpp.
#define MAX_COMBINE_INDEX 1024 |
Definition at line 48 of file GUIPolygon.cpp.
void CALLBACK beginCallback | ( | GLenum | which | ) |
Definition at line 61 of file GUIPolygon.cpp.
References myCurrentPoints, and myCurrentType.
Referenced by TesselatedPolygon::drawTesselation().
void CALLBACK combineCallback | ( | GLdouble | coords[3], |
GLdouble * | vertex_data[4], | ||
GLfloat | weight[4], | ||
GLdouble ** | dataOut | ||
) |
Definition at line 84 of file GUIPolygon.cpp.
References MAX_COMBINE_INDEX, myCombineIndex, myCombineVertices, and UNUSED_PARAMETER.
Referenced by TesselatedPolygon::drawTesselation().
void CALLBACK endCallback | ( | void | ) |
Definition at line 68 of file GUIPolygon.cpp.
References myCurrentPoints, myCurrentTesselated, myCurrentType, TesselatedPolygon::myTesselation, GLPrimitive::type, and GLPrimitive::vert.
Referenced by TesselatedPolygon::drawTesselation().
void CALLBACK errorCallback | ( | GLenum | errorCode | ) |
Definition at line 96 of file GUIPolygon.cpp.
void CALLBACK vertexCallback | ( | GLvoid * | vertex | ) |
Definition at line 77 of file GUIPolygon.cpp.
References myCurrentPoints.
Referenced by TesselatedPolygon::drawTesselation().
|
static |
Definition at line 106 of file GUIPolygon.cpp.
int myCombineIndex = 0 |
Definition at line 52 of file GUIPolygon.cpp.
Referenced by combineCallback().
GLdouble myCombineVertices[MAX_COMBINE_INDEX][3] |
Definition at line 50 of file GUIPolygon.cpp.
Referenced by combineCallback().
std::vector<Position> myCurrentPoints |
Definition at line 54 of file GUIPolygon.cpp.
Referenced by beginCallback(), endCallback(), and vertexCallback().
const TesselatedPolygon* myCurrentTesselated = nullptr |
Definition at line 55 of file GUIPolygon.cpp.
Referenced by TesselatedPolygon::drawTesselation(), and endCallback().
GLenum myCurrentType = 0 |
Definition at line 53 of file GUIPolygon.cpp.
Referenced by beginCallback(), endCallback(), GNETypeFrame::TypeSelector::getCurrentType(), GNETypeFrame::TypeSelector::onCmdSelectItem(), GNETypeFrame::TypeSelector::refreshTypeSelector(), GNETypeFrame::TypeSelector::setCurrentType(), and GNETypeFrame::TypeSelector::TypeSelector().
|
static |
Definition at line 107 of file GUIPolygon.cpp.
Referenced by GUIPolygon::drawInnerPolygon().
|
static |
Definition at line 108 of file GUIPolygon.cpp.
Referenced by GUIPolygon::drawInnerPolygon().