27 #ifndef GLVIEWER_CONTEXT_H 
   28 #define GLVIEWER_CONTEXT_H 
   39 #include <Quantity_NameOfColor.hxx> 
   40 #include <Quantity_Color.hxx> 
   43 #include <OpenGL/gl.h> 
   51 #pragma warning( disable:4251 ) 
   77   int                   MoveTo( 
int x, 
int y, 
bool byCircle = 
false );
 
   82   int                   Select( 
bool Append = 
false, 
bool byCircle = 
false );
 
   88   int                   SelectByRect( 
const QRect& theRect, 
bool Append = 
false );
 
   91   void                  SetHighlightColor( Quantity_NameOfColor aCol );
 
   93   void                  SetSelectionColor( Quantity_NameOfColor aCol );
 
  119   int                   insertObject( 
GLViewer_Object* theObject, 
bool display = 
false, 
bool isActive = 
true );
 
  126   void                  updateScales( GLfloat theX, GLfloat theY );
 
  134   const ObjList&        getObjects( 
bool isActive = 
true )
 
  135                         { 
return isActive ? myActiveObjects : myInactiveObjects; }
 
  141   void                  clearHighlighted( 
bool updateViewer );
 
  143   void                  clearSelected( 
bool updateViewer );
 
  155   void                  eraseObject( 
GLViewer_Object* theObject, 
bool updateViewer = 
true );
 
  157   void                  deleteObject( 
GLViewer_Object* theObject, 
bool updateViewer = 
true );
 
  208 #pragma warning ( default:4251 )