Show
Ignore:
Timestamp:
05/05/08 07:12:19 (5 months ago)
Author:
vossg
Message:

changed: interface cleanup, removed ptr typedefs, nullfc

these will be needed for the 1.x compat stuff

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/Contrib/Manipulators/OSGSimpleGeometryExt.cpp

    r1168 r1198  
    272272 
    273273 
    274 NodeTransitPtr makeSelection(NodePtr geoN) 
     274NodeTransitPtr makeSelection(Node *geoN) 
    275275{ 
    276276    NodeTransitPtr             transN = Node::create(); 
     
    288288} 
    289289 
    290 GeometryTransitPtr makeSelectionGeo(NodePtr geoN) 
     290GeometryTransitPtr makeSelectionGeo(Node *geoN) 
    291291{ 
    292292    Pnt3f min, max; 
     
    304304    LineChunkUnrecPtr       lineChunk = LineChunk::create(); 
    305305 
    306     GeometryPtr selGeoC = dynamic_cast<GeometryPtr>(geoN->getCore()); 
    307     if( selGeoC != NullFC
    308     { 
    309          GeoPnt3fPropertyPtr pnts = dynamic_cast<GeoPnt3fPropertyPtr>(selGeoC->getPositions()); 
     306    Geometry *selGeoC = dynamic_cast<Geometry *>(geoN->getCore()); 
     307    if( selGeoC != NULL
     308    { 
     309         GeoPnt3fProperty *pnts = dynamic_cast<GeoPnt3fProperty *>(selGeoC->getPositions()); 
    310310//        GeoPositions3f::StoredFieldType     *p = pnts->getFieldPtr(); 
    311311 
     
    350350PolygonChunkUnrecPtr _gayaPolygonChunk; 
    351351 
    352 PolygonChunkPtr getPolygonChunk(const UInt16 faces, 
    353                                 const UInt16 mode ) 
    354 { 
    355     if( _gayaPolygonChunk == NullFC
     352PolygonChunk *getPolygonChunk(const UInt16 faces, 
     353                              const UInt16 mode ) 
     354{ 
     355    if( _gayaPolygonChunk == NULL
    356356    { 
    357357        _gayaPolygonChunk = PolygonChunk::create(); 
     
    372372MaterialChunkRecPtr _gayaMaterialChunk; 
    373373 
    374 MaterialChunkPtr getMaterialChunk(const Color4f &ambientColor, 
    375                                   const Color4f &diffuseColor, 
    376                                   const Color4f &specularColor, 
    377                                   const bool     lit          ) 
    378 { 
    379     if( _gayaMaterialChunk == NullFC
     374MaterialChunk *getMaterialChunk(const Color4f &ambientColor, 
     375                                const Color4f &diffuseColor, 
     376                                const Color4f &specularColor, 
     377                                const bool     lit          ) 
     378{ 
     379    if( _gayaMaterialChunk == NULL
    380380    { 
    381381        _gayaMaterialChunk = MaterialChunk::create(); 
     
    393393ChunkMaterialRecPtr _gayaSelectionMaterial; 
    394394 
    395 ChunkMaterialPtr getSelectionMaterial() 
    396 { 
    397     if( _gayaSelectionMaterial == NullFC
     395ChunkMaterial *getSelectionMaterial() 
     396{ 
     397    if( _gayaSelectionMaterial == NULL
    398398    { 
    399399        _gayaSelectionMaterial = ChunkMaterial::create();