27 #ifndef GLVIEWER_BASEOBJECTS_H
28 #define GLVIEWER_BASEOBJECTS_H
35 #include <TColStd_SequenceOfInteger.hxx>
38 #pragma warning( disable:4251 )
49 GLViewer_MarkerSet(
int number = 1,
float size = 5.0,
const QString& toolTip =
"GLMarker" );
57 virtual GLboolean
highlight( GLfloat x, GLfloat y, GLfloat tol = 15.0, GLboolean isCircle = GL_FALSE );
59 virtual GLboolean
select( GLfloat x, GLfloat y, GLfloat tol,
GLViewer_Rect rect, GLboolean isFull = GL_FALSE,
60 GLboolean isCircle = GL_FALSE, GLboolean isShift = GL_FALSE );
65 virtual void moveObject(
float,
float,
bool fromGroup =
false );
78 void setXCoord( GLfloat* xCoord,
int size );
80 void setYCoord( GLfloat* yCoord,
int size );
87 void setNumMarkers( GLint );
102 bool addOrRemoveSelected(
int index );
104 void addSelected(
const TColStd_SequenceOfInteger& );
106 void setSelected(
const TColStd_SequenceOfInteger& );
129 GLViewer_Polyline(
int number = 1,
float size = 5.0,
const QString& toolTip =
"GLPolyline" );
136 virtual GLboolean
highlight( GLfloat x, GLfloat y, GLfloat tol = 15.0, GLboolean isCircle = GL_FALSE );
138 virtual GLboolean
select( GLfloat x, GLfloat y, GLfloat tol,
GLViewer_Rect rect, GLboolean isFull = GL_FALSE,
139 GLboolean isCircle = GL_FALSE, GLboolean isShift = GL_FALSE );
144 virtual void moveObject(
float,
float,
bool fromGroup =
false );
157 void setXCoord( GLfloat* xCoord,
int size );
159 void setYCoord( GLfloat* yCoord,
int size );
166 void setNumber( GLint );
171 void setClosed( GLboolean closed ) { myIsClosed = closed; }
213 const QColor&
color = QColor( 0, 255, 0 ),
const QString& toolTip =
"GLText" );
221 virtual GLboolean
highlight( GLfloat x, GLfloat y, GLfloat tol, GLboolean isCircle = GL_FALSE );
223 virtual GLboolean
select( GLfloat x, GLfloat y, GLfloat tol,
GLViewer_Rect rect, GLboolean isFull = GL_FALSE,
224 GLboolean isCircle = GL_FALSE, GLboolean isShift = GL_FALSE );
229 virtual void moveObject(
float,
float,
bool fromGroup =
false );
253 #pragma warning ( default:4251 )