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/Material/Base/OSGSimpleMaterialBase.cpp

    r1098 r1197  
    658658    SimpleMaterialTransitPtr fc; 
    659659 
    660     if(getClassType().getPrototype() != NullFC
     660    if(getClassType().getPrototype() != NULL
    661661    { 
    662662        FieldContainerTransitPtr tmpPtr = 
     
    674674    SimpleMaterialTransitPtr fc; 
    675675 
    676     if(getClassType().getPrototype() != NullFC
     676    if(getClassType().getPrototype() != NULL
    677677    { 
    678678        FieldContainerTransitPtr tmpPtr = 
     
    686686 
    687687//! create an empty new instance of the class, do not copy the prototype 
    688 SimpleMaterialPtr SimpleMaterialBase::createEmpty(void) 
    689 { 
    690     SimpleMaterialPtr returnValue; 
     688SimpleMaterial *SimpleMaterialBase::createEmpty(void) 
     689{ 
     690    SimpleMaterial *returnValue; 
    691691 
    692692    newPtr<SimpleMaterial>(returnValue, Thread::getCurrentLocalFlags()); 
     
    698698} 
    699699 
    700 SimpleMaterialPtr SimpleMaterialBase::createEmptyLocal(BitVector bFlags) 
    701 { 
    702     SimpleMaterialPtr returnValue; 
     700SimpleMaterial *SimpleMaterialBase::createEmptyLocal(BitVector bFlags) 
     701{ 
     702    SimpleMaterial *returnValue; 
    703703 
    704704    newPtr<SimpleMaterial>(returnValue, bFlags); 
     
    711711FieldContainerTransitPtr SimpleMaterialBase::shallowCopy(void) const 
    712712{ 
    713     SimpleMaterialPtr tmpPtr; 
     713    SimpleMaterial *tmpPtr; 
    714714 
    715715    newPtr(tmpPtr,  
     
    727727    BitVector bFlags) const 
    728728{ 
    729     SimpleMaterialPtr tmpPtr; 
     729    SimpleMaterial *tmpPtr; 
    730730 
    731731    newPtr(tmpPtr, dynamic_cast<const SimpleMaterial *>(this), bFlags); 
     
    970970 
    971971#ifdef OSG_MT_CPTR_ASPECT 
    972 FieldContainerPtr SimpleMaterialBase::createAspectCopy(void) const 
    973 { 
    974     SimpleMaterialPtr returnValue; 
     972FieldContainer *SimpleMaterialBase::createAspectCopy(void) const 
     973{ 
     974    SimpleMaterial *returnValue; 
    975975 
    976976    newAspectCopy(returnValue, 
     
    990990 
    991991#if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV) 
    992 DataType FieldTraits<SimpleMaterialPtr>::_type("SimpleMaterialPtr", "ChunkMaterialPtr"); 
     992DataType FieldTraits<SimpleMaterial *>::_type("SimpleMaterialPtr", "ChunkMaterialPtr"); 
    993993#endif 
    994994