00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright (C) 2000-2002 by the OpenSG Forum * 00006 * * 00007 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de * 00008 * * 00009 \*---------------------------------------------------------------------------*/ 00010 /*---------------------------------------------------------------------------*\ 00011 * License * 00012 * * 00013 * This library is free software; you can redistribute it and/or modify it * 00014 * under the terms of the GNU Library General Public License as published * 00015 * by the Free Software Foundation, version 2. * 00016 * * 00017 * This library is distributed in the hope that it will be useful, but * 00018 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00020 * Library General Public License for more details. * 00021 * * 00022 * You should have received a copy of the GNU Library General Public * 00023 * License along with this library; if not, write to the Free Software * 00024 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00025 * * 00026 \*---------------------------------------------------------------------------*/ 00027 /*---------------------------------------------------------------------------*\ 00028 * Changes * 00029 * * 00030 * * 00031 * * 00032 * * 00033 * * 00034 * * 00035 \*---------------------------------------------------------------------------*/ 00036 00037 /*****************************************************************************\ 00038 ***************************************************************************** 00039 ** ** 00040 ** This file is automatically generated. ** 00041 ** ** 00042 ** Any changes made to this file WILL be lost when it is ** 00043 ** regenerated, which can become necessary at any time. ** 00044 ** ** 00045 ** Do not change this file, changes should be done in the derived ** 00046 ** class ImageBackground! 00047 ** ** 00048 ***************************************************************************** 00049 \*****************************************************************************/ 00050 00051 #include <OSGConfig.h> 00052 00053 OSG_BEGIN_NAMESPACE 00054 00055 00057 inline 00058 OSG::FieldContainerType &ImageBackgroundBase::getClassType(void) 00059 { 00060 return _type; 00061 } 00062 00064 inline 00065 OSG::UInt32 ImageBackgroundBase::getClassTypeId(void) 00066 { 00067 return _type.getId(); 00068 } 00069 00071 inline 00072 ImageBackgroundPtr ImageBackgroundBase::create(void) 00073 { 00074 ImageBackgroundPtr fc; 00075 00076 if(getClassType().getPrototype() != OSG::NullFC) 00077 { 00078 fc = ImageBackgroundPtr::dcast( 00079 getClassType().getPrototype()-> shallowCopy()); 00080 } 00081 00082 return fc; 00083 } 00084 00086 inline 00087 ImageBackgroundPtr ImageBackgroundBase::createEmpty(void) 00088 { 00089 ImageBackgroundPtr returnValue; 00090 00091 newPtr(returnValue); 00092 00093 return returnValue; 00094 } 00095 00096 00097 /*------------------------------ get -----------------------------------*/ 00098 00100 inline 00101 const SFColor3f *ImageBackgroundBase::getSFColor(void) const 00102 { 00103 return &_sfColor; 00104 } 00105 00107 inline 00108 SFColor3f *ImageBackgroundBase::editSFColor(void) 00109 { 00110 return &_sfColor; 00111 } 00112 00113 #ifndef OSG_2_PREP 00115 inline 00116 SFColor3f *ImageBackgroundBase::getSFColor(void) 00117 { 00118 return &_sfColor; 00119 } 00120 #endif 00121 00123 inline 00124 const SFImagePtr *ImageBackgroundBase::getSFImage(void) const 00125 { 00126 return &_sfImage; 00127 } 00128 00130 inline 00131 SFImagePtr *ImageBackgroundBase::editSFImage(void) 00132 { 00133 return &_sfImage; 00134 } 00135 00136 #ifndef OSG_2_PREP 00138 inline 00139 SFImagePtr *ImageBackgroundBase::getSFImage(void) 00140 { 00141 return &_sfImage; 00142 } 00143 #endif 00144 00146 inline 00147 const SFBool *ImageBackgroundBase::getSFScale(void) const 00148 { 00149 return &_sfScale; 00150 } 00151 00153 inline 00154 SFBool *ImageBackgroundBase::editSFScale(void) 00155 { 00156 return &_sfScale; 00157 } 00158 00159 #ifndef OSG_2_PREP 00161 inline 00162 SFBool *ImageBackgroundBase::getSFScale(void) 00163 { 00164 return &_sfScale; 00165 } 00166 #endif 00167 00168 00170 inline 00171 Color3f &ImageBackgroundBase::editColor(void) 00172 { 00173 return _sfColor.getValue(); 00174 } 00175 00177 inline 00178 const Color3f &ImageBackgroundBase::getColor(void) const 00179 { 00180 return _sfColor.getValue(); 00181 } 00182 00183 #ifndef OSG_2_PREP 00185 inline 00186 Color3f &ImageBackgroundBase::getColor(void) 00187 { 00188 return _sfColor.getValue(); 00189 } 00190 #endif 00191 00193 inline 00194 void ImageBackgroundBase::setColor(const Color3f &value) 00195 { 00196 _sfColor.setValue(value); 00197 } 00198 00200 inline 00201 ImagePtr &ImageBackgroundBase::editImage(void) 00202 { 00203 return _sfImage.getValue(); 00204 } 00205 00207 inline 00208 const ImagePtr &ImageBackgroundBase::getImage(void) const 00209 { 00210 return _sfImage.getValue(); 00211 } 00212 00213 #ifndef OSG_2_PREP 00215 inline 00216 ImagePtr &ImageBackgroundBase::getImage(void) 00217 { 00218 return _sfImage.getValue(); 00219 } 00220 #endif 00221 00223 inline 00224 void ImageBackgroundBase::setImage(const ImagePtr &value) 00225 { 00226 _sfImage.setValue(value); 00227 } 00228 00230 inline 00231 bool &ImageBackgroundBase::editScale(void) 00232 { 00233 return _sfScale.getValue(); 00234 } 00235 00237 inline 00238 const bool &ImageBackgroundBase::getScale(void) const 00239 { 00240 return _sfScale.getValue(); 00241 } 00242 00243 #ifndef OSG_2_PREP 00245 inline 00246 bool &ImageBackgroundBase::getScale(void) 00247 { 00248 return _sfScale.getValue(); 00249 } 00250 #endif 00251 00253 inline 00254 void ImageBackgroundBase::setScale(const bool &value) 00255 { 00256 _sfScale.setValue(value); 00257 } 00258 00259 00260 OSG_END_NAMESPACE 00261 00262 #define OSGIMAGEBACKGROUNDBASE_INLINE_CVSID "@(#)$Id: FCBaseTemplate_inl.h,v 1.21 2008/06/09 07:30:44 vossg Exp $" 00263
1.6.1