Eclipse SUMO - Simulation of Urban MObility
GUIPolygon.cpp File Reference
Include dependency graph for GUIPolygon.cpp:

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< PositionmyCurrentPoints
 
const TesselatedPolygonmyCurrentTesselated = 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}
 

Detailed Description

Author
Daniel Krajzewicz
Jakob Erdmann
Michael Behrisch
Laura Bieker
Date
June 2006

Definition in file GUIPolygon.cpp.

Macro Definition Documentation

◆ CALLBACK

#define CALLBACK

Definition at line 39 of file GUIPolygon.cpp.

◆ MAX_COMBINE_INDEX

#define MAX_COMBINE_INDEX   1024

Definition at line 48 of file GUIPolygon.cpp.

Function Documentation

◆ beginCallback()

void CALLBACK beginCallback ( GLenum  which)

Definition at line 61 of file GUIPolygon.cpp.

References myCurrentPoints, and myCurrentType.

Referenced by TesselatedPolygon::drawTesselation().

Here is the caller graph for this function:

◆ combineCallback()

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().

Here is the caller graph for this function:

◆ endCallback()

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().

Here is the caller graph for this function:

◆ errorCallback()

void CALLBACK errorCallback ( GLenum  errorCode)

Definition at line 96 of file GUIPolygon.cpp.

◆ vertexCallback()

void CALLBACK vertexCallback ( GLvoid *  vertex)

Definition at line 77 of file GUIPolygon.cpp.

References myCurrentPoints.

Referenced by TesselatedPolygon::drawTesselation().

Here is the caller graph for this function:

Variable Documentation

◆ INV_POLY_TEX_DIM

const GLdouble INV_POLY_TEX_DIM = 1.0 / 256.0
static

Definition at line 106 of file GUIPolygon.cpp.

◆ myCombineIndex

int myCombineIndex = 0

Definition at line 52 of file GUIPolygon.cpp.

Referenced by combineCallback().

◆ myCombineVertices

GLdouble myCombineVertices[MAX_COMBINE_INDEX][3]

Definition at line 50 of file GUIPolygon.cpp.

Referenced by combineCallback().

◆ myCurrentPoints

std::vector<Position> myCurrentPoints

Definition at line 54 of file GUIPolygon.cpp.

Referenced by beginCallback(), endCallback(), and vertexCallback().

◆ myCurrentTesselated

const TesselatedPolygon* myCurrentTesselated = nullptr

Definition at line 55 of file GUIPolygon.cpp.

Referenced by TesselatedPolygon::drawTesselation(), and endCallback().

◆ myCurrentType

◆ xPlane

const GLdouble xPlane[] = {INV_POLY_TEX_DIM, 0.0, 0.0, 0.0}
static

Definition at line 107 of file GUIPolygon.cpp.

Referenced by GUIPolygon::drawInnerPolygon().

◆ yPlane

const GLdouble yPlane[] = {0.0, INV_POLY_TEX_DIM, 0.0, 0.0}
static

Definition at line 108 of file GUIPolygon.cpp.

Referenced by GUIPolygon::drawInnerPolygon().