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 _OSGIMAGEFORGROUND_H_ 00041 #define _OSGIMAGEFORGROUND_H_ 00042 #ifdef __sgi 00043 #pragma once 00044 #endif 00045 00046 #include <OSGConfig.h> 00047 00048 #include <OSGImageForegroundBase.h> 00049 00050 OSG_BEGIN_NAMESPACE 00051 00056 class OSG_SYSTEMLIB_DLLMAPPING ImageForeground : public ImageForegroundBase 00057 { 00058 /*========================== PRIVATE ================================*/ 00059 private: 00060 00061 typedef ImageForegroundBase Inherited; 00062 00063 /*========================== PUBLIC =================================*/ 00064 public: 00065 00066 /*---------------------------------------------------------------------*/ 00070 static const char *getClassname(void) { return "ImageForeground"; }; 00071 00073 /*---------------------------------------------------------------------*/ 00077 virtual void changed(BitVector whichField, 00078 UInt32 origin ); 00079 00081 /*---------------------------------------------------------------------*/ 00085 virtual void dump( UInt32 uiIndent = 0, 00086 const BitVector bvFlags = 0) const; 00087 00089 /*---------------------------------------------------------------------*/ 00093 inline void addImage(ImagePtr image, Pnt2f position); 00094 00096 /*---------------------------------------------------------------------*/ 00100 virtual void draw( DrawActionBase *, Viewport *); 00101 00103 /*========================= PROTECTED ===============================*/ 00104 protected: 00105 00106 /*---------------------------------------------------------------------*/ 00110 ImageForeground(void); 00111 ImageForeground(const ImageForeground &source); 00112 00114 /*---------------------------------------------------------------------*/ 00118 virtual ~ImageForeground(void); 00119 00121 /*========================== PRIVATE ================================*/ 00122 private: 00123 00124 friend class FieldContainer; 00125 friend class ImageForegroundBase; 00126 00127 static void initMethod( void ); 00128 00129 void operator =(const ImageForeground &source); 00130 }; 00131 00132 //--------------------------------------------------------------------------- 00133 // Exported Types 00134 //--------------------------------------------------------------------------- 00135 00136 00139 typedef ImageForeground *ImageForegroundP; 00140 00141 OSG_END_NAMESPACE 00142 00143 #include <OSGImageForegroundBase.inl> 00144 #include <OSGImageForeground.inl> 00145 00146 #define OSGIMAGEFOREGROUND_HEADER_CVSID "@(#)$Id: $" 00147 00148 #endif /* _OSGIMAGEFORGROUND_H_ */ 00149 00150
1.5.5