00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright (C) 2000-2002 by the OpenSG Forum * 00006 * * 00007 * www.opensg.org * 00008 * * 00009 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de * 00010 * * 00011 \*---------------------------------------------------------------------------*/ 00012 /*---------------------------------------------------------------------------*\ 00013 * License * 00014 * * 00015 * This library is free software; you can redistribute it and/or modify it * 00016 * under the terms of the GNU Library General Public License as published * 00017 * by the Free Software Foundation, version 2. * 00018 * * 00019 * This library is distributed in the hope that it will be useful, but * 00020 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00022 * Library General Public License for more details. * 00023 * * 00024 * You should have received a copy of the GNU Library General Public * 00025 * License along with this library; if not, write to the Free Software * 00026 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00027 * * 00028 \*---------------------------------------------------------------------------*/ 00029 /*---------------------------------------------------------------------------*\ 00030 * Changes * 00031 * * 00032 * * 00033 * * 00034 * * 00035 * * 00036 * * 00037 \*---------------------------------------------------------------------------*/ 00038 00039 00040 #ifndef _OSGFOREGROUND_H_ 00041 #define _OSGFOREGROUND_H_ 00042 #ifdef __sgi 00043 #pragma once 00044 #endif 00045 00046 #include <OSGConfig.h> 00047 00048 #include <OSGForegroundBase.h> 00049 00050 OSG_BEGIN_NAMESPACE 00051 00052 class DrawActionBase; 00053 class Viewport; 00054 00059 class OSG_SYSTEMLIB_DLLMAPPING Foreground : public ForegroundBase 00060 { 00061 00062 /*========================== PRIVATE =================================*/ 00063 private: 00064 00065 typedef ForegroundBase Inherited; 00066 00067 /*========================== PUBLIC =================================*/ 00068 public: 00069 00070 00071 /*---------------------------------------------------------------------*/ 00074 static const char *getClassname(void) { return "Foreground"; }; 00075 00077 /*---------------------------------------------------------------------*/ 00081 virtual void changed(BitVector whichField, 00082 UInt32 origin ); 00083 00085 /*---------------------------------------------------------------------*/ 00089 virtual void dump( UInt32 uiIndent = 0, 00090 const BitVector bvFlags = 0) const; 00091 00093 /*---------------------------------------------------------------------*/ 00097 virtual void draw( DrawActionBase * action, Viewport * port ) = 0; 00098 00100 /*========================= PROTECTED ===============================*/ 00101 protected: 00102 00103 00104 /*---------------------------------------------------------------------*/ 00108 Foreground(void); 00109 Foreground(const Foreground &source); 00110 00112 /*---------------------------------------------------------------------*/ 00116 virtual ~Foreground(void); 00117 00119 /*========================== PRIVATE ================================*/ 00120 private: 00121 00122 friend class FieldContainer; 00123 friend class ForegroundBase; 00124 00125 static void initMethod( void ); 00126 00127 void operator =(const Foreground &source); 00128 }; 00129 00130 //--------------------------------------------------------------------------- 00131 // Exported Types 00132 //--------------------------------------------------------------------------- 00133 00134 typedef Foreground *ForegroundP; 00135 00136 OSG_END_NAMESPACE 00137 00138 #include <OSGForegroundBase.inl> 00139 #include <OSGForeground.inl> 00140 00141 #define OSGFOREGROUND_HEADER_CVSID "@(#)$Id: FCTemplate_h.h,v 1.15 2002/06/01 10:37:25 vossg Exp $" 00142 00143 #endif /* _OSGFOREGROUND_H_ */ 00144
1.5.5