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_COMPILEDVRSHADERINST
00055
00056 #include <stdlib.h>
00057 #include <stdio.h>
00058
00059 #include <OSGConfig.h>
00060
00061 #include "OSGDVRShaderBase.h"
00062 #include "OSGDVRShader.h"
00063
00064
00065 OSG_USING_NAMESPACE
00066
00067 const OSG::BitVector DVRShaderBase::MTInfluenceMask =
00068 (Inherited::MTInfluenceMask) |
00069 (static_cast<BitVector>(0x0) << Inherited::NextFieldId);
00070
00071
00072
00073 FieldContainerType DVRShaderBase::_type(
00074 "DVRShader",
00075 "FieldContainer",
00076 NULL,
00077 NULL,
00078 DVRShader::initMethod,
00079 NULL,
00080 0);
00081
00082
00083
00084
00085
00086 FieldContainerType &DVRShaderBase::getType(void)
00087 {
00088 return _type;
00089 }
00090
00091 const FieldContainerType &DVRShaderBase::getType(void) const
00092 {
00093 return _type;
00094 }
00095
00096
00097 UInt32 DVRShaderBase::getContainerSize(void) const
00098 {
00099 return sizeof(DVRShader);
00100 }
00101
00102
00103 #if !defined(OSG_FIXED_MFIELDSYNC)
00104 void DVRShaderBase::executeSync( FieldContainer &other,
00105 const BitVector &whichField)
00106 {
00107 this->executeSyncImpl((DVRShaderBase *) &other, whichField);
00108 }
00109 #else
00110 void DVRShaderBase::executeSync( FieldContainer &other,
00111 const BitVector &whichField, const SyncInfo &sInfo )
00112 {
00113 this->executeSyncImpl((DVRShaderBase *) &other, whichField, sInfo);
00114 }
00115 void DVRShaderBase::execBeginEdit(const BitVector &whichField,
00116 UInt32 uiAspect,
00117 UInt32 uiContainerSize)
00118 {
00119 this->execBeginEditImpl(whichField, uiAspect, uiContainerSize);
00120 }
00121
00122 void DVRShaderBase::onDestroyAspect(UInt32 uiId, UInt32 uiAspect)
00123 {
00124 Inherited::onDestroyAspect(uiId, uiAspect);
00125
00126 }
00127 #endif
00128
00129
00130
00131 #ifdef OSG_WIN32_ICL
00132 #pragma warning (disable : 383)
00133 #endif
00134
00135 DVRShaderBase::DVRShaderBase(void) :
00136 Inherited()
00137 {
00138 }
00139
00140 #ifdef OSG_WIN32_ICL
00141 #pragma warning (default : 383)
00142 #endif
00143
00144 DVRShaderBase::DVRShaderBase(const DVRShaderBase &source) :
00145 Inherited (source)
00146 {
00147 }
00148
00149
00150
00151 DVRShaderBase::~DVRShaderBase(void)
00152 {
00153 }
00154
00155
00156
00157 UInt32 DVRShaderBase::getBinSize(const BitVector &whichField)
00158 {
00159 UInt32 returnValue = Inherited::getBinSize(whichField);
00160
00161
00162 return returnValue;
00163 }
00164
00165 void DVRShaderBase::copyToBin( BinaryDataHandler &pMem,
00166 const BitVector &whichField)
00167 {
00168 Inherited::copyToBin(pMem, whichField);
00169
00170
00171 }
00172
00173 void DVRShaderBase::copyFromBin( BinaryDataHandler &pMem,
00174 const BitVector &whichField)
00175 {
00176 Inherited::copyFromBin(pMem, whichField);
00177
00178
00179 }
00180
00181 #if !defined(OSG_FIXED_MFIELDSYNC)
00182 void DVRShaderBase::executeSyncImpl( DVRShaderBase *pOther,
00183 const BitVector &whichField)
00184 {
00185
00186 Inherited::executeSyncImpl(pOther, whichField);
00187
00188
00189 }
00190 #else
00191 void DVRShaderBase::executeSyncImpl( DVRShaderBase *pOther,
00192 const BitVector &whichField,
00193 const SyncInfo &sInfo )
00194 {
00195
00196 Inherited::executeSyncImpl(pOther, whichField, sInfo);
00197
00198
00199
00200 }
00201
00202 void DVRShaderBase::execBeginEditImpl (const BitVector &whichField,
00203 UInt32 uiAspect,
00204 UInt32 uiContainerSize)
00205 {
00206 Inherited::execBeginEditImpl(whichField, uiAspect, uiContainerSize);
00207
00208 }
00209 #endif
00210
00211
00212
00213 #include <OSGSFieldTypeDef.inl>
00214
00215 OSG_BEGIN_NAMESPACE
00216
00217 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
00218 DataType FieldDataTraits<DVRShaderPtr>::_type("DVRShaderPtr", "FieldContainerPtr");
00219 #endif
00220
00221 OSG_DLLEXPORT_SFIELD_DEF1(DVRShaderPtr, OSG_SYSTEMLIB_DLLTMPLMAPPING);
00222
00223 OSG_END_NAMESPACE
00224
00225
00226
00227
00228
00229 #ifdef OSG_SGI_CC
00230 #pragma set woff 1174
00231 #endif
00232
00233 #ifdef OSG_LINUX_ICC
00234 #pragma warning( disable : 177 )
00235 #endif
00236
00237 namespace
00238 {
00239 static Char8 cvsid_cpp [] = "@(#)$Id: FCBaseTemplate_cpp.h,v 1.45 2005/07/20 00:10:14 vossg Exp $";
00240 static Char8 cvsid_hpp [] = OSGDVRSHADERBASE_HEADER_CVSID;
00241 static Char8 cvsid_inl [] = OSGDVRSHADERBASE_INLINE_CVSID;
00242
00243 static Char8 cvsid_fields_hpp[] = OSGDVRSHADERFIELDS_HEADER_CVSID;
00244 }
00245