- Timestamp:
- 02/27/08 09:30:29 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork2/Source/System/FileIO/OBJ/OSGOBJSceneFileType.cpp
r1039 r1063 136 136 NodeTransitPtr OBJSceneFileType::read(std::istream &is, const Char8 *) const 137 137 { 138 Node RefPtr rootPtr, nodePtr;138 NodeInternalRefPtr rootPtr, nodePtr; 139 139 std::string elem; 140 140 std::map<std::string, DataElem>::const_iterator elemI; … … 143 143 Vec2r vec2r; 144 144 Real32 x,y,z; 145 GeoPnt3rProperty::Obj RefPtr coordPtr = GeoPnt3rProperty::create();146 GeoVec2rProperty::Obj RefPtr texCoordPtr = GeoVec2rProperty::create();147 GeoVec3rProperty::Obj RefPtr normalPtr = GeoVec3rProperty::create();148 Geometry::Obj RefPtr geoPtr;149 GeoIntegralProperty::Obj RefPtr posIndexPtr, texIndexPtr, normalIndexPtr;150 GeoIntegralProperty::Obj RefPtr lensPtr;151 GeoIntegralProperty::Obj RefPtr typePtr;145 GeoPnt3rProperty::ObjInternalRefPtr coordPtr = GeoPnt3rProperty::create(); 146 GeoVec2rProperty::ObjInternalRefPtr texCoordPtr = GeoVec2rProperty::create(); 147 GeoVec3rProperty::ObjInternalRefPtr normalPtr = GeoVec3rProperty::create(); 148 Geometry::ObjInternalRefPtr geoPtr; 149 GeoIntegralProperty::ObjInternalRefPtr posIndexPtr, texIndexPtr, normalIndexPtr; 150 GeoIntegralProperty::ObjInternalRefPtr lensPtr; 151 GeoIntegralProperty::ObjInternalRefPtr typePtr; 152 152 DataElem dataElem; 153 153 Char8 strBuf[8192], *token, *nextToken; … … 156 156 Int32 i,j,n,primCount[3]; 157 157 std::list<Mesh> meshList; 158 std::map<std::string, SimpleTexturedMaterial RefPtr> mtlMap;159 std::map<std::string, SimpleTexturedMaterial RefPtr>::iterator mtlI;158 std::map<std::string, SimpleTexturedMaterialInternalRefPtr> mtlMap; 159 std::map<std::string, SimpleTexturedMaterialInternalRefPtr>::iterator mtlI; 160 160 Mesh emptyMesh; 161 161 Face emptyFace; … … 461 461 { 462 462 rootPtr = Node::create(); 463 rootPtr->setCore (Group RefPtr(Group::create()));463 rootPtr->setCore (GroupInternalRefPtr(Group::create())); 464 464 rootPtr->addChild(nodePtr); 465 465 } … … 761 761 762 762 Int32 OBJSceneFileType::readMTL ( const Char8 *fileName, 763 std::map<std::string, SimpleTexturedMaterial RefPtr> & mtlMap )763 std::map<std::string, SimpleTexturedMaterialInternalRefPtr> & mtlMap ) 764 764 const 765 765 { … … 787 787 788 788 std::ifstream in(fullFilePath.c_str()); 789 SimpleTexturedMaterial RefPtr mtlPtr;789 SimpleTexturedMaterialInternalRefPtr mtlPtr; 790 790 Real32 a,b,c; 791 791 std::string elem; 792 792 std::map<std::string, MaterialElem>::const_iterator elemI; 793 793 MaterialElem mtlElem; 794 std::map<std::string, OSG::Image RefPtr> imageMap;795 std::map<std::string, OSG::Image RefPtr>::iterator iI;796 Image RefPtr image;794 std::map<std::string, OSG::ImageInternalRefPtr> imageMap; 795 std::map<std::string, OSG::ImageInternalRefPtr>::iterator iI; 796 ImageInternalRefPtr image; 797 797 bool constDiffuse = false, constAmbient = false, constSpecular = false; 798 798
