Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OSGDefine.H

Go to the documentation of this file.
00001 /*!@file GUI/OSGDefine.H Open Scene Graph Namespace and Defines */
00002 
00003 // //////////////////////////////////////////////////////////////////// //
00004 // The iLab Neuromorphic Vision C++ Toolkit - Copyright (C) 2000-2003   //
00005 // by the University of Southern California (USC) and the iLab at USC.  //
00006 // See http://iLab.usc.edu for information about this project.          //
00007 // //////////////////////////////////////////////////////////////////// //
00008 // Major portions of the iLab Neuromorphic Vision Toolkit are protected //
00009 // under the U.S. patent ``Computation of Intrinsic Perceptual Saliency //
00010 // in Visual Environments, and Applications'' by Christof Koch and      //
00011 // Laurent Itti, California Institute of Technology, 2001 (patent       //
00012 // pending; application number 09/912,225 filed July 23, 2001; see      //
00013 // http://pair.uspto.gov/cgi-bin/final/home.pl for current status).     //
00014 // //////////////////////////////////////////////////////////////////// //
00015 // This file is part of the iLab Neuromorphic Vision C++ Toolkit.       //
00016 //                                                                      //
00017 // The iLab Neuromorphic Vision C++ Toolkit is free software; you can   //
00018 // redistribute it and/or modify it under the terms of the GNU General  //
00019 // Public License as published by the Free Software Foundation; either  //
00020 // version 2 of the License, or (at your option) any later version.     //
00021 //                                                                      //
00022 // The iLab Neuromorphic Vision C++ Toolkit is distributed in the hope  //
00023 // that it will be useful, but WITHOUT ANY WARRANTY; without even the   //
00024 // implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      //
00025 // PURPOSE.  See the GNU General Public License for more details.       //
00026 //                                                                      //
00027 // You should have received a copy of the GNU General Public License    //
00028 // along with the iLab Neuromorphic Vision C++ Toolkit; if not, write   //
00029 // to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,   //
00030 // Boston, MA 02111-1307 USA.                                           //
00031 // //////////////////////////////////////////////////////////////////// //
00032 //
00033 // Primary maintainer for this file: T. Nathan Mundhenk <mundhenk@usc.edu>
00034 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/GUI/OSGDefine.H $
00035 // $Id: OSGDefine.H 10794 2009-02-08 06:21:09Z itti $
00036 //
00037 
00038 #ifndef OSGDEFINE_H_DEFINED
00039 #define OSGDEFINE_H_DEFINED
00040 /*
00041 #include "extra/URGENT/LabelGroundTruth/BaseComponent.h"
00042 #include "extra/URGENT/LabelGroundTruth/config.h"
00043 #include "extra/URGENT/LabelGroundTruth/RecolorPts.h"
00044 #include "extra/URGENT/LabelGroundTruth/RenderPts.h"
00045 #include "extra/URGENT/LabelGroundTruth/ronKeyboard.h"
00046 #include "extra/URGENT/LabelGroundTruth/ronTrackball.h"
00047 #include "extra/URGENT/LabelGroundTruth/SnapShot.h"
00048 #include "extra/URGENT/LabelGroundTruth/Terrain.h"
00049 */
00050 //! Name space to contain the various enum's used in INVT Open Scene Graph
00051 namespace OSGenum
00052 {
00053   // ######################################################################
00054   //! Supported direction of text layout
00055   enum TextLayout
00056   {
00057     LEFT_TO_RIGHT,
00058     RIGHT_TO_LEFT,
00059     VERTICAL
00060   };
00061 
00062   // ######################################################################
00063   //! Supported fonts
00064   enum Fonts
00065   {
00066     ARIAL,
00067     TIMES,
00068     DIRTYDOZ,
00069     FUDD,
00070     BLUEHIGB,
00071     BLUEHIGC,
00072     BLUEHIGH
00073   };
00074 
00075   // ######################################################################
00076   //! Supported axis for 3D text
00077   enum TextAxis
00078   {
00079     DEFAULT_AXIS,
00080     XY_PLANE,
00081     REVERSED_XY_PLANE,
00082     YZ_PLANE,
00083     REVERSED_YZ_PLANE,
00084     XZ_PLANE,
00085     REVERSED_XZ_PLANE,
00086     SCREEN
00087   };
00088 
00089   // ######################################################################
00090   //! Supported alignment for text
00091   enum TextAlign
00092   {
00093     DEFAULT_ALIGN,
00094     LEFT_TOP,
00095     LEFT_CENTER,
00096     LEFT_BOTTOM,
00097     CENTER_TOP,
00098     CENTER_CENTER,
00099     CENTER_BOTTOM,
00100     RIGHT_TOP,
00101     RIGHT_CENTER,
00102     RIGHT_BOTTOM,
00103     LEFT_BASE_LINE,
00104     CENTER_BASE_LINE,
00105     RIGHT_BASE_LINE,
00106     LEFT_BOTTOM_BASE_LINE,
00107     CENTER_BOTTOM_BASE_LINE,
00108     RIGHT_BOTTOM_BASE_LINE
00109   };
00110 
00111   // ######################################################################
00112   //! Enumeration of OSG errors for use in error reporting and returning
00113   enum Error
00114   {
00115     OSG_INVALID_DEPTH_TYPE,
00116     OSG_NO_CONFIG_FILE,
00117     OSG_FILE_READ,
00118     OSG_NO_POINT_CLOUD,
00119     OSG_BASIC_EXCEPTION,
00120     OSG_BAD_CONTEXT,
00121   };
00122 
00123   // ######################################################################
00124   //! Enumeration of depth method to use in OSG
00125   enum DepthType
00126   {
00127     DEPTH_NONE,
00128     DEPTH_ZBUFFER,
00129     DEPTH_ANGULAR
00130   };
00131 
00132 };
00133 
00134 #define RET_WINDOW_X_SIZE 1280
00135 #define RET_WINDOW_Y_SIZE 960
00136 #define RET_WINDOW_HFOV   40
00137 #define RET_WINDOW_FX     RET_WINDOW_X_SIZE/2
00138 #define RET_WINDOW_FY     RET_WINDOW_Y_SIZE/2
00139 
00140 #endif

Generated on Mon Nov 23 15:45:49 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4