Show
Ignore:
Timestamp:
05/05/08 06:58:23 (4 months ago)
Author:
vossg
Message:

changed: base rebuild interface clean up (removal ptr typedef / NullFC)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/System/Depreciated/State/OSGTextureChunkBase.cpp

    r1193 r1197  
    141141\***************************************************************************/ 
    142142 
    143 /*! \var ImagePtr        TextureChunkBase::_sfImage 
     143/*! \var Image *         TextureChunkBase::_sfImage 
    144144    The texture image. 
    145145*/ 
     
    35273527    TextureChunkTransitPtr fc; 
    35283528 
    3529     if(getClassType().getPrototype() != NullFC
     3529    if(getClassType().getPrototype() != NULL
    35303530    { 
    35313531        FieldContainerTransitPtr tmpPtr = 
     
    35433543    TextureChunkTransitPtr fc; 
    35443544 
    3545     if(getClassType().getPrototype() != NullFC
     3545    if(getClassType().getPrototype() != NULL
    35463546    { 
    35473547        FieldContainerTransitPtr tmpPtr = 
     
    35553555 
    35563556//! create an empty new instance of the class, do not copy the prototype 
    3557 TextureChunkPtr TextureChunkBase::createEmpty(void) 
    3558 { 
    3559     TextureChunkPtr returnValue; 
     3557TextureChunk *TextureChunkBase::createEmpty(void) 
     3558{ 
     3559    TextureChunk *returnValue; 
    35603560 
    35613561    newPtr<TextureChunk>(returnValue, Thread::getCurrentLocalFlags()); 
     
    35673567} 
    35683568 
    3569 TextureChunkPtr TextureChunkBase::createEmptyLocal(BitVector bFlags) 
    3570 { 
    3571     TextureChunkPtr returnValue; 
     3569TextureChunk *TextureChunkBase::createEmptyLocal(BitVector bFlags) 
     3570{ 
     3571    TextureChunk *returnValue; 
    35723572 
    35733573    newPtr<TextureChunk>(returnValue, bFlags); 
     
    35803580FieldContainerTransitPtr TextureChunkBase::shallowCopy(void) const 
    35813581{ 
    3582     TextureChunkPtr tmpPtr; 
     3582    TextureChunk *tmpPtr; 
    35833583 
    35843584    newPtr(tmpPtr,  
     
    35963596    BitVector bFlags) const 
    35973597{ 
    3598     TextureChunkPtr tmpPtr; 
     3598    TextureChunk *tmpPtr; 
    35993599 
    36003600    newPtr(tmpPtr, dynamic_cast<const TextureChunk *>(this), bFlags); 
     
    36133613TextureChunkBase::TextureChunkBase(void) : 
    36143614    Inherited(), 
    3615     _sfImage                  (NullFC), 
     3615    _sfImage                  (NULL), 
    36163616    _sfInternalFormat         (GLenum(GL_NONE)), 
    36173617    _sfExternalFormat         (GLenum(GL_NONE)), 
     
    36733673TextureChunkBase::TextureChunkBase(const TextureChunkBase &source) : 
    36743674    Inherited(source), 
    3675     _sfImage                  (NullFC), 
     3675    _sfImage                  (NULL), 
    36763676    _sfInternalFormat         (source._sfInternalFormat         ), 
    36773677    _sfExternalFormat         (source._sfExternalFormat         ), 
     
    49814981 
    49824982#ifdef OSG_MT_CPTR_ASPECT 
    4983 FieldContainerPtr TextureChunkBase::createAspectCopy(void) const 
    4984 { 
    4985     TextureChunkPtr returnValue; 
     4983FieldContainer *TextureChunkBase::createAspectCopy(void) const 
     4984{ 
     4985    TextureChunk *returnValue; 
    49864986 
    49874987    newAspectCopy(returnValue, 
     
    49964996    Inherited::resolveLinks(); 
    49974997 
    4998     static_cast<TextureChunk *>(this)->setImage(NullFC); 
     4998    static_cast<TextureChunk *>(this)->setImage(NULL); 
    49994999 
    50005000#ifdef OSG_MT_CPTR_ASPECT 
     
    50125012 
    50135013#if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV) 
    5014 DataType FieldTraits<TextureChunkPtr>::_type("TextureChunkPtr", "TextureBaseChunkPtr"); 
    5015 #endif 
    5016  
    5017 OSG_FIELDTRAITS_GETTYPE(TextureChunkPtr
     5014DataType FieldTraits<TextureChunk *>::_type("TextureChunkPtr", "TextureBaseChunkPtr"); 
     5015#endif 
     5016 
     5017OSG_FIELDTRAITS_GETTYPE(TextureChunk *
    50185018 
    50195019OSG_EXPORT_PTR_SFIELD_FULL(PointerSField,  
    5020                            TextureChunkPtr,  
     5020                           TextureChunk *,  
    50215021                           0); 
    50225022 
    50235023OSG_EXPORT_PTR_MFIELD_FULL(PointerMField,  
    5024                            TextureChunkPtr,  
     5024                           TextureChunk *,  
    50255025                           0); 
    50265026