00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 #define OSG_COMPILEFATBORDERCHUNKINST
00055
00056 #include <stdlib.h>
00057 #include <stdio.h>
00058
00059 #include <OSGConfig.h>
00060
00061 #include "OSGFatBorderChunkBase.h"
00062 #include "OSGFatBorderChunk.h"
00063
00064
00065 OSG_BEGIN_NAMESPACE
00066
00067 const OSG::BitVector FatBorderChunkBase::MTInfluenceMask =
00068 (Inherited::MTInfluenceMask) |
00069 (static_cast<BitVector>(0x0) << Inherited::NextFieldId);
00070
00071
00072
00073 FieldContainerType FatBorderChunkBase::_type(
00074 "FatBorderChunk",
00075 "VertexProgramChunk",
00076 NULL,
00077 reinterpret_cast<PrototypeCreateF>(&FatBorderChunkBase::createEmpty),
00078 FatBorderChunk::initMethod,
00079 NULL,
00080 0);
00081
00082
00083
00084
00085
00086 FieldContainerType &FatBorderChunkBase::getType(void)
00087 {
00088 return _type;
00089 }
00090
00091 const FieldContainerType &FatBorderChunkBase::getType(void) const
00092 {
00093 return _type;
00094 }
00095
00096
00097 FieldContainerPtr FatBorderChunkBase::shallowCopy(void) const
00098 {
00099 FatBorderChunkPtr returnValue;
00100
00101 newPtr(returnValue, dynamic_cast<const FatBorderChunk *>(this));
00102
00103 return returnValue;
00104 }
00105
00106 UInt32 FatBorderChunkBase::getContainerSize(void) const
00107 {
00108 return sizeof(FatBorderChunk);
00109 }
00110
00111
00112 #if !defined(OSG_FIXED_MFIELDSYNC)
00113 void FatBorderChunkBase::executeSync( FieldContainer &other,
00114 const BitVector &whichField)
00115 {
00116 this->executeSyncImpl(static_cast<FatBorderChunkBase *>(&other),
00117 whichField);
00118 }
00119 #else
00120 void FatBorderChunkBase::executeSync( FieldContainer &other,
00121 const BitVector &whichField, const SyncInfo &sInfo )
00122 {
00123 this->executeSyncImpl((FatBorderChunkBase *) &other, whichField, sInfo);
00124 }
00125 void FatBorderChunkBase::execBeginEdit(const BitVector &whichField,
00126 UInt32 uiAspect,
00127 UInt32 uiContainerSize)
00128 {
00129 this->execBeginEditImpl(whichField, uiAspect, uiContainerSize);
00130 }
00131
00132 void FatBorderChunkBase::onDestroyAspect(UInt32 uiId, UInt32 uiAspect)
00133 {
00134 Inherited::onDestroyAspect(uiId, uiAspect);
00135
00136 }
00137 #endif
00138
00139
00140
00141 #ifdef OSG_WIN32_ICL
00142 #pragma warning (disable : 383)
00143 #endif
00144
00145 FatBorderChunkBase::FatBorderChunkBase(void) :
00146 Inherited()
00147 {
00148 }
00149
00150 #ifdef OSG_WIN32_ICL
00151 #pragma warning (default : 383)
00152 #endif
00153
00154 FatBorderChunkBase::FatBorderChunkBase(const FatBorderChunkBase &source) :
00155 Inherited (source)
00156 {
00157 }
00158
00159
00160
00161 FatBorderChunkBase::~FatBorderChunkBase(void)
00162 {
00163 }
00164
00165
00166
00167 UInt32 FatBorderChunkBase::getBinSize(const BitVector &whichField)
00168 {
00169 UInt32 returnValue = Inherited::getBinSize(whichField);
00170
00171
00172 return returnValue;
00173 }
00174
00175 void FatBorderChunkBase::copyToBin( BinaryDataHandler &pMem,
00176 const BitVector &whichField)
00177 {
00178 Inherited::copyToBin(pMem, whichField);
00179
00180
00181 }
00182
00183 void FatBorderChunkBase::copyFromBin( BinaryDataHandler &pMem,
00184 const BitVector &whichField)
00185 {
00186 Inherited::copyFromBin(pMem, whichField);
00187
00188
00189 }
00190
00191 #if !defined(OSG_FIXED_MFIELDSYNC)
00192 void FatBorderChunkBase::executeSyncImpl( FatBorderChunkBase *pOther,
00193 const BitVector &whichField)
00194 {
00195
00196 Inherited::executeSyncImpl(pOther, whichField);
00197
00198
00199 }
00200 #else
00201 void FatBorderChunkBase::executeSyncImpl( FatBorderChunkBase *pOther,
00202 const BitVector &whichField,
00203 const SyncInfo &sInfo )
00204 {
00205
00206 Inherited::executeSyncImpl(pOther, whichField, sInfo);
00207
00208
00209
00210 }
00211
00212 void FatBorderChunkBase::execBeginEditImpl (const BitVector &whichField,
00213 UInt32 uiAspect,
00214 UInt32 uiContainerSize)
00215 {
00216 Inherited::execBeginEditImpl(whichField, uiAspect, uiContainerSize);
00217
00218 }
00219 #endif
00220
00221
00222
00223 OSG_END_NAMESPACE
00224
00225 #include <OSGSFieldTypeDef.inl>
00226 #include <OSGMFieldTypeDef.inl>
00227
00228 OSG_BEGIN_NAMESPACE
00229
00230 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
00231 DataType FieldDataTraits<FatBorderChunkPtr>::_type("FatBorderChunkPtr", "VertexProgramChunkPtr");
00232 #endif
00233
00234 OSG_DLLEXPORT_SFIELD_DEF1(FatBorderChunkPtr, OSG_SYSTEMLIB_DLLTMPLMAPPING);
00235 OSG_DLLEXPORT_MFIELD_DEF1(FatBorderChunkPtr, OSG_SYSTEMLIB_DLLTMPLMAPPING);
00236
00237
00238
00239
00240
00241 #ifdef OSG_SGI_CC
00242 #pragma set woff 1174
00243 #endif
00244
00245 #ifdef OSG_LINUX_ICC
00246 #pragma warning( disable : 177 )
00247 #endif
00248
00249 namespace
00250 {
00251 static Char8 cvsid_cpp [] = "@(#)$Id: FCBaseTemplate_cpp.h,v 1.49 2008/06/09 07:30:44 vossg Exp $";
00252 static Char8 cvsid_hpp [] = OSGFATBORDERCHUNKBASE_HEADER_CVSID;
00253 static Char8 cvsid_inl [] = OSGFATBORDERCHUNKBASE_INLINE_CVSID;
00254
00255 static Char8 cvsid_fields_hpp[] = OSGFATBORDERCHUNKFIELDS_HEADER_CVSID;
00256 }
00257
00258 OSG_END_NAMESPACE
00259