18 #ifndef __otbVectorDataGlComponent_h
19 #define __otbVectorDataGlComponent_h
25 # include <OpenGL/glu.h>
33 #if defined(_WINDOWS) || defined(__CYGWIN__)
34 #define CALLBACK __stdcall
51 template <
class TVectorData>
76 typedef typename DataNodeType::LineType
LineType;
93 itkGetConstReferenceMacro(Spacing,
VectorType);
97 itkGetConstReferenceMacro(Origin,
PointType);
105 itkGetConstReferenceMacro(Color,
ColorType);
108 itkSetMacro(LineWidth,
double);
109 itkGetMacro(LineWidth,
double);
112 itkSetMacro(CrossWidth,
double);
113 itkGetMacro(CrossWidth,
double);
116 itkSetMacro(RenderPolygonBoundariesOnly,
bool);
117 itkGetMacro(RenderPolygonBoundariesOnly,
bool);
118 itkBooleanMacro(RenderPolygonBoundariesOnly);
164 GLdouble * vertex =
new GLdouble[3];
165 vertex[0] = coords[0];
166 vertex[1] = coords[1];
167 vertex[2] = coords[2];
174 const GLubyte * estring = gluErrorString(errorCode);
194 glVertex3dv((GLdouble*) data);
224 #ifndef OTB_MANUAL_INSTANTIATION