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 _OSGGRADIENTBACKGROUND_H_ 00041 #define _OSGGRADIENTBACKGROUND_H_ 00042 #ifdef __sgi 00043 #pragma once 00044 #endif 00045 00046 #include <OSGConfig.h> 00047 00048 #include <OSGGradientBackgroundBase.h> 00049 00050 OSG_BEGIN_NAMESPACE 00051 00052 class DrawActionBase; 00053 class Viewport; 00054 00059 class OSG_SYSTEMLIB_DLLMAPPING GradientBackground : 00060 public GradientBackgroundBase 00061 { 00062 /*========================== PUBLIC =================================*/ 00063 public: 00064 00065 static const OSG::BitVector LineFieldMask; 00066 00067 /*---------------------------------------------------------------------*/ 00071 static const char *getClassname(void) { return "GradientBackground"; }; 00072 00074 /*---------------------------------------------------------------------*/ 00078 void clear( DrawActionBase *, Viewport *); 00079 00080 void addLine(Color3f color, Real32 position); 00081 00082 void clearLines(void); 00083 00085 /*---------------------------------------------------------------------*/ 00089 virtual void changed(BitVector whichField, 00090 UInt32 origin ); 00091 00093 /*---------------------------------------------------------------------*/ 00097 virtual void dump( UInt32 uiIndent = 0, 00098 const BitVector bvFlags = 0) const; 00099 00101 /*========================= PROTECTED ===============================*/ 00102 protected: 00103 00104 00105 /*---------------------------------------------------------------------*/ 00109 GradientBackground(void); 00110 GradientBackground(const GradientBackground &source); 00111 00113 /*---------------------------------------------------------------------*/ 00117 virtual ~GradientBackground(void); 00118 00120 /*========================== PRIVATE ================================*/ 00121 private: 00122 00123 typedef GradientBackgroundBase Inherited; 00124 00125 friend class FieldContainer; 00126 friend class GradientBackgroundBase; 00127 00128 static void initMethod( void ); 00129 00130 void operator =(const GradientBackground &source); 00131 }; 00132 00133 //--------------------------------------------------------------------------- 00134 // Exported Types 00135 //--------------------------------------------------------------------------- 00136 00137 typedef GradientBackground *GradientBackgroundP; 00138 00139 OSG_END_NAMESPACE 00140 00141 #include <OSGGradientBackgroundBase.inl> 00142 #include <OSGGradientBackground.inl> 00143 00144 #define OSGGRADIENTBACKGROUND_HEADER_CVSID "@(#)$Id: FCTemplate_h.h,v 1.15 2002/06/01 10:37:25 vossg Exp $" 00145 00146 #endif /* _OSGGRADIENTBACKGROUND_H_ */
1.5.5