src/GLViewer/GLViewer_Defs.h

Go to the documentation of this file.
00001 //  Copyright (C) 2005 OPEN CASCADE
00002 //
00003 //  This library is free software; you can redistribute it and/or
00004 //  modify it under the terms of the GNU Lesser General Public
00005 //  License as published by the Free Software Foundation; either
00006 //  version 2.1 of the License.
00007 //
00008 //  This library is distributed in the hope that it will be useful,
00009 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 //  Lesser General Public License for more details.
00012 //
00013 //  You should have received a copy of the GNU Lesser General Public
00014 //  License along with this library; if not, write to the Free Software
00015 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 //  Author : OPEN CASCADE
00020 //
00021 
00022 // File:      GLViewer_Defs.h
00023 // Created:   March, 2005
00024 
00025 #ifndef GLVIEWER_DEFS_H
00026 #define GLVIEWER_DEFS_H
00027 
00028 #include <qmap.h>
00029 #include <qvaluelist.h>
00030 
00031 class GLViewer_Object;
00032 //Selection staus 
00033 enum SelectionChangeStatus
00034 {
00035     SCS_Invalid,
00036     SCS_Local,
00037     SCS_Global
00038 };
00039 
00041 static const int      SELECTION_RECT_GAP = 50;
00042 
00044 enum DisplayTextFormat
00045 {
00046   DTF_TEXTURE          = 0,
00047   DTF_TEXTURE_SCALABLE = 1,
00048   DTF_BITMAP           = 2
00049 };
00050 
00051 enum SelectionStatus
00052 {
00053     SS_Invalid,
00054     SS_LocalChanged,
00055     SS_GlobalChanged,
00056     SS_NoChanged
00057 };
00058 
00059 typedef QMap<GLViewer_Object*,int> ObjectMap;
00060 typedef QValueList<GLViewer_Object*> ObjList;
00061 
00062 #define SEGMENTS   32
00063 #define PI         3.14159265359
00064 #define STEP       ( float )( 2 * PI / SEGMENTS )
00065 
00066 #endif// GLVIEWER_DEFS_H