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 _OSGBACKGROUND_H_ 00041 #define _OSGBACKGROUND_H_ 00042 #ifdef __sgi 00043 #pragma once 00044 #endif 00045 00046 00047 #include <OSGConfig.h> 00048 00049 #include <OSGBackgroundBase.h> 00050 00051 OSG_BEGIN_NAMESPACE 00052 00053 class DrawActionBase; 00054 class Viewport; 00055 00060 class OSG_SYSTEMLIB_DLLMAPPING Background : public BackgroundBase 00061 { 00062 00063 /*========================== PUBLIC =================================*/ 00064 public: 00065 00066 /*---------------------------------------------------------------------*/ 00070 static const Char8 *getClassname(void) { return "Background"; }; 00071 00072 00074 /*---------------------------------------------------------------------*/ 00078 virtual void clear( DrawActionBase * action, Viewport * port ) = 0; 00079 00080 00082 /*---------------------------------------------------------------------*/ 00086 virtual void changed(BitVector whichField, 00087 UInt32 origin ); 00088 00090 /*---------------------------------------------------------------------*/ 00094 virtual void dump( UInt32 uiIndent = 0, 00095 const BitVector bvFlags = 0) const; 00096 00098 /*========================= PROTECTED ===============================*/ 00099 protected: 00100 00101 /*---------------------------------------------------------------------*/ 00105 Background(void); 00106 Background(const Background &source); 00107 00109 /*---------------------------------------------------------------------*/ 00113 virtual ~Background(void); 00114 00116 /*========================= PRIVATE ===============================*/ 00117 private: 00118 00119 00120 typedef BackgroundBase Inherited; 00121 00122 friend class FieldContainer; 00123 friend class BackgroundBase; 00124 00125 static void initMethod( void ); 00126 00127 void operator =(const Background &source); 00128 }; 00129 00130 //--------------------------------------------------------------------------- 00131 // Exported Types 00132 //--------------------------------------------------------------------------- 00133 00134 typedef Background *BackgroundP; 00135 00136 OSG_END_NAMESPACE 00137 00138 #include <OSGBackgroundBase.inl> 00139 #include <OSGBackground.inl> 00140 00141 #define OSGBACKGROUND_HEADER_CVSID "@(#)$Id: FCTemplate_h.h,v 1.15 2002/06/01 10:37:25 vossg Exp $" 00142 00143 #endif /* _OSGBACKGROUND_H_ */
1.4.3