27 #ifndef GLVIEWER_OBJECT_H
28 #define GLVIEWER_OBJECT_H
38 #include <OpenGL/gl.h>
48 #pragma warning( disable:4251 )
73 virtual void compute() = 0;
89 virtual GLboolean highlight( GLfloat x,
92 GLboolean isCircle = GL_FALSE ) = 0;
94 virtual GLboolean unhighlight() = 0;
106 virtual GLboolean select( GLfloat x,
110 GLboolean isFull = GL_FALSE,
111 GLboolean isCircle = GL_FALSE,
112 GLboolean isShift = GL_FALSE ) = 0;
114 virtual GLboolean unselect() = 0;
131 myRect->left(), myRect->right(), myRect->top(), myRect->bottom() ); }
142 virtual void setScale( GLfloat xScale, GLfloat yScale ) { myXScale = xScale; myYScale = yScale; }
144 virtual void getScale( GLfloat& xScale, GLfloat& yScale )
const { xScale = myXScale; yScale = myYScale;}
147 virtual GLboolean setZoom( GLfloat zoom,
bool recompute,
bool fromGroup =
false );
149 virtual GLfloat
getZoom()
const {
return myZoom; }
151 virtual GLboolean updateZoom(
bool zoomIn );
180 virtual int getPriority()
const;
188 virtual void moveObject(
float dx,
float dy,
bool fromGroup =
false ) = 0;
195 virtual void setVisible(
bool theStatus ) { myIsVisible = theStatus; }
209 virtual QByteArray getByteCopy();
212 virtual bool initializeFromByteCopy( QByteArray );
312 #pragma warning ( default:4251 )