Changeset 1173
- Timestamp:
- 04/16/08 21:05:11 (1 month ago)
- Files:
-
- trunk/Source/System/Action/RenderAction/OSGRenderAction.cpp (modified) (1 diff)
- trunk/Source/System/FieldContainer/Base/OSGFieldContainerFactory.cpp (modified) (1 diff)
- trunk/Source/System/FieldContainer/Base/OSGFieldContainerFactory.h (modified) (1 diff)
- trunk/Source/System/FieldContainer/Base/OSGParentContainer.h (deleted)
- trunk/Source/System/FieldContainer/Base/OSGRefCountPolicies.h (modified) (1 diff)
- trunk/Source/System/FileIO/3DS/OSG3DSSceneFileType.cpp (modified) (1 diff)
- trunk/Source/System/FileIO/OBJ/OSGOBJSceneFileType.cpp (modified) (1 diff)
- trunk/Source/System/FileIO/OSB/OSGOSBDriver.cpp (modified) (1 diff)
- trunk/Source/System/FileIO/OSB/OSGOSBGeometryElement.cpp (modified) (4 diffs)
- trunk/Source/System/FileIO/OSB/OSGOSBGeometryElement.h (modified) (1 diff)
- trunk/Source/System/FileIO/ScanParseSkel/OSGScanParseFieldTypeMapper.h (modified) (1 diff)
- trunk/Source/System/GraphOp/OSGMaterialMergeGraphOp.cpp (modified) (3 diffs)
- trunk/Source/System/GraphOp/OSGMergeGraphOp.cpp (modified) (1 diff)
- trunk/Source/System/GraphOp/OSGMergeGraphOp.h (modified) (1 diff)
- trunk/Source/System/GraphOp/OSGSharePtrGraphOp.cpp (modified) (3 diffs)
- trunk/Source/System/GraphOp/OSGSharePtrGraphOp.h (modified) (1 diff)
- trunk/Source/System/GraphOp/OSGSplitGraphOp.cpp (modified) (2 diffs)
- trunk/Source/System/GraphOp/OSGSplitGraphOp.h (modified) (1 diff)
- trunk/Source/System/GraphOp/OSGVerifyGraphOp.cpp (modified) (1 diff)
- trunk/Source/System/GraphOp/OSGVerifyGraphOp.h (modified) (1 diff)
- trunk/Source/System/Material/Base/OSGMaterial.cpp (modified) (2 diffs)
- trunk/Source/System/Material/Base/OSGSwitchMaterial.cpp (modified) (1 diff)
- trunk/Source/System/Material/Simple/OSGSimpleTexturedMaterial.cpp (modified) (1 diff)
- trunk/Source/System/NodeCores/Drawables/Geometry/Base/OSGGeoImmediatePumpGroup.cpp (modified) (3 diffs)
- trunk/Source/System/NodeCores/Drawables/Geometry/Base/OSGGeoVertexArrayPumpGroup.cpp (modified) (3 diffs)
- trunk/Source/System/NodeCores/Drawables/Geometry/Properties/OSGTypedGeoIntegralProperty.inl (modified) (1 diff)
- trunk/Source/System/NodeCores/Drawables/Geometry/Util/OSGSimpleGeometry.cpp (modified) (21 diffs)
- trunk/Source/System/NodeCores/Drawables/Particles/OSGParticleBSP.h (modified) (1 diff)
- trunk/Source/System/NodeCores/Drawables/Particles/OSGParticles.cpp (modified) (2 diffs)
- trunk/Source/System/NodeCores/Groups/Stage/OSGRenderFunctorFieldTraits.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/System/Action/RenderAction/OSGRenderAction.cpp
r1160 r1173 485 485 else if(! _useNewList) // new list is empty, but not used? 486 486 { 487 MFUnrecChildNodePtr::const_iterator it; 488 489 for( it = node->getMFChildren()->begin(); 490 it != node->getMFChildren()->end(); 491 ++it) 487 MFUnrecChildNodePtr::const_iterator cIt = 488 node->getMFChildren()->begin(); 489 490 MFUnrecChildNodePtr::const_iterator cEnd = 491 node->getMFChildren()->end(); 492 493 for( ; cIt != cEnd; ++cIt) 492 494 { 493 result = recurse(* it);495 result = recurse(*cIt); 494 496 495 497 if(result != Continue) trunk/Source/System/FieldContainer/Base/OSGFieldContainerFactory.cpp
r955 r1173 140 140 141 141 this->_bInitialized = false; 142 143 #ifdef OSG_DEBUG 144 ContainerStoreIt sI = _vContainerStore.begin(); 145 ContainerStoreIt sE = _vContainerStore.end (); 146 147 for(UInt32 i = 0; sI != sE; ++sI, ++i) 148 { 149 if((*sI) != NULL) 150 { 151 FWARNING(("FieldContainerFactoryBase::terminate: " 152 "Entry [%d] is not NULL ([%p]). \n", i, *sI)); 153 154 for(UInt32 j = 0; j < (*sI)->getNumAspects(); ++j) 155 { 156 if((*sI)->getPtr(j) != NULL) 157 { 158 FWARNING((" [%d] [%p] [%s] [%d %d]\n", 159 j, 160 (*sI)->getPtr(j), 161 (*sI)->getPtr(j)->getType().getCName(), 162 (*sI)->getPtr(j)->getRefCount(), 163 (*sI)->getPtr(j)->getWeakRefCount() )); 164 } 165 else 166 { 167 FWARNING((" [%d] [%p] [] [N/A N/A]\n", 168 j, 169 (*sI)->getPtr(j))); 170 } 171 } 172 } 173 } 174 #endif // OSG_DEBUG 175 142 176 143 177 return returnValue; trunk/Source/System/FieldContainer/Base/OSGFieldContainerFactory.h
r1097 r1173 63 63 typedef FieldContainerTransitPtr ContainerTransitPtr; 64 64 65 static Char8 *getContainerFactoryLockName(void)65 static const Char8 *getContainerFactoryLockName(void) 66 66 { 67 67 return "ContainerFactory::cflock"; trunk/Source/System/FieldContainer/Base/OSGRefCountPolicies.h
r1126 r1173 98 98 static T *validate (T *pObject) 99 99 { 100 convertToCurrentAspect(pObject);100 return convertToCurrentAspect(pObject); 101 101 } 102 102 trunk/Source/System/FileIO/3DS/OSG3DSSceneFileType.cpp
r1097 r1173 374 374 } 375 375 376 _materials.insert(std::pair<UInt32, MaterialPtr>(id, cmat)); 376 _materials.insert(std::pair<UInt32, MaterialUnrecPtr>( 377 id, MaterialUnrecPtr(cmat))); 377 378 378 379 return MaterialTransitPtr(cmat); trunk/Source/System/FileIO/OBJ/OSGOBJSceneFileType.cpp
r1160 r1173 794 794 std::map<std::string, MaterialElem>::const_iterator elemI; 795 795 MaterialElem mtlElem; 796 std::map<std::string, OSG::Image Ptr> imageMap;797 std::map<std::string, OSG::Image Ptr>::iterator iI;796 std::map<std::string, OSG::ImageUnrecPtr> imageMap; 797 std::map<std::string, OSG::ImageUnrecPtr>::iterator iI; 798 798 ImageUnrecPtr image = NullFC; 799 799 bool constDiffuse = false, constAmbient = false, constSpecular = false; trunk/Source/System/FileIO/OSB/OSGOSBDriver.cpp
r1140 r1173 107 107 root->terminateWrite(); 108 108 109 OSBElementFactory::the()->release(root); 110 109 111 return true; 110 112 } trunk/Source/System/FileIO/OSB/OSGOSBGeometryElement.cpp
r1142 r1173 636 636 { 637 637 GeoUInt16PropertyPtr ui16Indices = 638 dynamic_ cast<GeoUInt16PropertyPtr>(_indices);638 dynamic_pointer_cast<GeoUInt16Property>(_indices); 639 639 640 640 gh.splitMultiIndex<GeoUInt16PropertyPtr>( … … 644 644 { 645 645 GeoUInt32PropertyPtr ui32Indices = 646 dynamic_ cast<GeoUInt32PropertyPtr>(_indices);646 dynamic_pointer_cast<GeoUInt32Property>(_indices); 647 647 648 648 gh.splitMultiIndex<GeoUInt32PropertyPtr>( … … 673 673 { 674 674 GeoUInt16PropertyPtr ui16Indices = 675 dynamic_ cast<GeoUInt16PropertyPtr>(_indices);675 dynamic_pointer_cast<GeoUInt16Property>(_indices); 676 676 677 677 gh.splitMultiIndex<GeoUInt16PropertyPtr>( … … 681 681 { 682 682 GeoUInt32PropertyPtr ui32Indices = 683 dynamic_ cast<GeoUInt32PropertyPtr>(_indices);683 dynamic_pointer_cast<GeoUInt32Property>(_indices); 684 684 685 685 gh.splitMultiIndex<GeoUInt32PropertyPtr>( trunk/Source/System/FileIO/OSB/OSGOSBGeometryElement.h
r582 r1173 134 134 static OSBElementRegistrationHelper<OSBGeometryElement> _regHelper; 135 135 136 std::vector<UInt16> _indexMapping;137 UInt32 _indicesId;138 GeoIntegralProperty Ptr _indices;139 bool _indices16Bit;140 bool _indicesPacked;136 std::vector<UInt16> _indexMapping; 137 UInt32 _indicesId; 138 GeoIntegralPropertyUnrecPtr _indices; 139 bool _indices16Bit; 140 bool _indicesPacked; 141 141 142 UInt16 _version;142 UInt16 _version; 143 143 }; 144 144 trunk/Source/System/FileIO/ScanParseSkel/OSGScanParseFieldTypeMapper.h
r785 r1173 49 49 50 50 //! FieldTypeMapper, provides functions to map from system to scanner types 51 //! \ingroup GrpSystemDrawablesGeometry metryLoaderLib51 //! \ingroup GrpSystemDrawablesGeometryLoaderLib 52 52 53 53 template <class BaseT> trunk/Source/System/GraphOp/OSGMaterialMergeGraphOp.cpp
r1097 r1173 47 47 #include "OSGGraphOpFactory.h" 48 48 49 OSG_ USING_NAMESPACE49 OSG_BEGIN_NAMESPACE 50 50 51 51 /***************************************************************************\ … … 92 92 93 93 94 bool isEqual(const OSG::FieldContainerPtr& a, const OSG::FieldContainerPtr&b)94 bool isEqual(const FieldContainerPtr a, const FieldContainerPtr b) 95 95 { 96 96 // Compare the pointers. … … 326 326 _materialObjects[mat].push_back(m); 327 327 } 328 329 OSG_END_NAMESPACE trunk/Source/System/GraphOp/OSGMergeGraphOp.cpp
r1160 r1173 203 203 } 204 204 205 void MergeGraphOp::makeExcludeList(NodePtr &node)205 void MergeGraphOp::makeExcludeList(NodePtr node) 206 206 { 207 207 /* trunk/Source/System/GraphOp/OSGMergeGraphOp.h
r1097 r1173 113 113 bool mergeOnce(NodePtr node); 114 114 115 void makeExcludeList (NodePtr &node);115 void makeExcludeList (NodePtr node); 116 116 void processGroups (NodePtrConst node); 117 117 void processTransformations (NodePtrConst node); trunk/Source/System/GraphOp/OSGSharePtrGraphOp.cpp
r1097 r1173 230 230 231 231 bool SharePtrGraphOp::isInList(const std::vector<std::string> &tlist, 232 const FieldContainerPtr &fc)232 const FieldContainerPtr fc) 233 233 { 234 234 for(UInt32 k=0;k<tlist.size();++k) … … 249 249 } 250 250 251 FieldContainerPtr SharePtrGraphOp::compareFCs(const FieldContainerPtr &fc)251 FieldContainerPtr SharePtrGraphOp::compareFCs(const FieldContainerPtr fc) 252 252 { 253 253 if(fc == NullFC) … … 440 440 * \return true if equal. 441 441 */ 442 bool SharePtrGraphOp::isEqual(const OSG::FieldContainerPtr &a,443 const OSG::FieldContainerPtr &b)442 bool SharePtrGraphOp::isEqual(const FieldContainerPtr a, 443 const FieldContainerPtr b) 444 444 { 445 445 #if 0 trunk/Source/System/GraphOp/OSGSharePtrGraphOp.h
r1097 r1173 113 113 114 114 bool isInList(const std::vector<std::string> &tlist, 115 const FieldContainerPtr &fc);116 FieldContainerPtr compareFCs(const FieldContainerPtr &fc);117 static bool isEqual(const OSG::FieldContainerPtr &a,118 const OSG::FieldContainerPtr &b);115 const FieldContainerPtr fc); 116 FieldContainerPtr compareFCs(const FieldContainerPtr fc); 117 static bool isEqual(const FieldContainerPtr a, 118 const FieldContainerPtr b); 119 119 120 120 //static Action::ResultE clearAttachmentParent(NodePtr &node); trunk/Source/System/GraphOp/OSGSplitGraphOp.cpp
r1160 r1173 280 280 MFUnrecChildNodePtr::const_iterator mfen = node->getMFChildren()->end (); 281 281 282 std::vector<Node Ptr> toAdd;283 std::vector<NodePtr > toSub;282 std::vector<NodeUnrecPtr> toAdd; 283 std::vector<NodePtr > toSub; 284 284 285 285 for ( ; mfit != mfen; ++mfit ) … … 295 295 } 296 296 297 std::vector<Node Ptr>::const_iterator vit = toAdd.begin();298 std::vector<Node Ptr>::const_iterator ven = toAdd.end ();299 300 for ( ; v it != ven; ++vit )301 { 302 node->addChild(*v it);303 } 304 305 vit = toSub.begin();306 ven = toSub.end ();307 308 for ( ; v it != ven; ++vit )297 std::vector<NodeUnrecPtr>::const_iterator vait = toAdd.begin(); 298 std::vector<NodeUnrecPtr>::const_iterator vaen = toAdd.end (); 299 300 for ( ; vait != vaen; ++vait ) 301 { 302 node->addChild(*vait); 303 } 304 305 std::vector<NodePtr>::const_iterator vsit = toSub.begin(); 306 std::vector<NodePtr>::const_iterator vsen = toSub.end (); 307 308 for ( ; vsit != vsen; ++vsit ) 309 309 { 310 310 // OSG::addRefX(*vit); 311 node->subChild(*v it);311 node->subChild(*vsit); 312 312 } 313 313 return res; 314 314 } 315 315 316 bool SplitGraphOp::splitNode(const NodePtr & node, std::vector<NodePtr> &split)316 bool SplitGraphOp::splitNode(const NodePtr node, std::vector<NodeUnrecPtr> &split) 317 317 { 318 318 // PORTME trunk/Source/System/GraphOp/OSGSplitGraphOp.h
r1097 r1173 108 108 bool isLeaf (NodePtrConst node); 109 109 bool isGroup (NodePtrConst node); 110 bool splitNode (const NodePtr & node, std::vector<NodePtr> &split);110 bool splitNode (const NodePtr node, std::vector<NodeUnrecPtr> &split); 111 111 112 112 Action::ResultE traverseEnter(NodePtrConstArg node); trunk/Source/System/GraphOp/OSGVerifyGraphOp.cpp
r1097 r1173 340 340 341 341 342 bool VerifyGraphOp::verifyIndexMap(GeometryPtr &geo, bool &repair)342 bool VerifyGraphOp::verifyIndexMap(GeometryPtr geo, bool &repair) 343 343 { 344 344 repair = false; trunk/Source/System/GraphOp/OSGVerifyGraphOp.h
r1097 r1173 107 107 108 108 OSG::Action::ResultE verifyGeometry(NodePtrConst node); 109 bool verifyIndexMap(GeometryPtr &geo, bool &repair);109 bool verifyIndexMap(GeometryPtr geo, bool &repair); 110 110 bool repairGeometry(void); 111 111 trunk/Source/System/Material/Base/OSGMaterial.cpp
r1168 r1173 226 226 Stores the default material used by the Simple Geometry. 227 227 */ 228 static SimpleMaterial RecPtr _defaultMaterial;228 static SimpleMaterialMTRecPtr _defaultMaterial; 229 229 230 230 /*! \ingroup GrpSystemDrawablesGeometrySimpleGeometry … … 257 257 Stores the default unlit material. 258 258 */ 259 static SimpleMaterial RecPtr _defaultUnlitMaterial;259 static SimpleMaterialMTRecPtr _defaultUnlitMaterial; 260 260 261 261 /*! \ingroup GrpSystemDrawablesGeometrySimpleGeometry trunk/Source/System/Material/Base/OSGSwitchMaterial.cpp
r852 r1173 96 96 // subRefCP wuerde dann nochmal mit dem gleichen ungueltigen pointer 97 97 // fuer das SwitchMaterial aufgerufen werden und 98 // das kracht nat ΓΌrlich, deswegen wird er jetzt einfach auf NullFC gesetzt!98 // das kracht natuerlich, deswegen wird er jetzt einfach auf NullFC gesetzt! 99 99 100 100 _pState = NullFC; trunk/Source/System/Material/Simple/OSGSimpleTexturedMaterial.cpp
r1099 r1173 100 100 101 101 _textureChunk = NullFC; 102 _tex tureChunk= NullFC;103 _tex tureChunk= NullFC;102 _texGenChunk = NullFC; 103 _texEnvChunk = NullFC; 104 104 105 105 // subRefLocalVarX(_textureChunk); trunk/Source/System/NodeCores/Drawables/Geometry/Base/OSGGeoImmediatePumpGroup.cpp
r785 r1173 119 119 static const int numFormats = GL_DOUBLE - GL_BYTE + 1; 120 120 121 static c har *formatNames[] =121 static const char *formatNames[] = 122 122 { "GL_BYTE", "GL_UNSIGNED_BYTE", "GL_SHORT", "GL_UNSIGNED_SHORT", 123 123 "GL_INT", "GL_UNSIGNED_INT", "GL_FLOAT", "GL_2_BYTES", … … 133 133 public: 134 134 135 glextFuncInit(c har *name, UInt32 format, UInt32 dim,135 glextFuncInit(const char *name, UInt32 format, UInt32 dim, 136 136 bool normalizing = false) : 137 137 _name(name), _format(format), _dim(dim), … … 146 146 private: 147 147 148 c har *_name;149 UInt32 _format;150 UInt32 _dim;151 bool _normalizing;148 const char *_name; 149 UInt32 _format; 150 UInt32 _dim; 151 bool _normalizing; 152 152 }; 153 153 trunk/Source/System/NodeCores/Drawables/Geometry/Base/OSGGeoVertexArrayPumpGroup.cpp
r785 r1173 132 132 static const int numFormats = GL_DOUBLE - GL_BYTE + 1; 133 133 134 static c har *formatNames[] =134 static const char *formatNames[] = 135 135 { "GL_BYTE", "GL_UNSIGNED_BYTE", "GL_SHORT", "GL_UNSIGNED_SHORT", 136 136 "GL_INT", "GL_UNSIGNED_INT", "GL_FLOAT", "GL_2_BYTES", … … 146 146 public: 147 147 148 glextFuncInit(c har *name, UInt32 format, UInt32 dim,148 glextFuncInit(const char *name, UInt32 format, UInt32 dim, 149 149 bool normalizing = false) : 150 150 _name(name), _format(format), _dim(dim), … … 159 159 private: 160 160 161 c har *_name;162 UInt32 _format;163 UInt32 _dim;164 bool _normalizing;161 const char *_name; 162 UInt32 _format; 163 UInt32 _dim; 164 bool _normalizing; 165 165 }; 166 166 trunk/Source/System/NodeCores/Drawables/Geometry/Properties/OSGTypedGeoIntegralProperty.inl
r1110 r1173 108 108 void TypedGeoIntegralProperty<GeoPropertyDesc>::resolveLinks(void) 109 109 { 110 Inherited::resolveLinks(); 111 110 112 AspectOffsetStore oOffsets; 111 113 trunk/Source/System/NodeCores/Drawables/Geometry/Util/OSGSimpleGeometry.cpp
r1097 r1173 75 75 \param[in] hor Number of quads in x direction. 76 76 \param[in] vert Number of quads in y direction. 77 \return Node Ptr to a newly created Node with a Geometry core.77 \return NodeTransitPtr to a newly created Node with a Geometry core. 78 78 79 79 \ingroup GrpSystemDrawablesGeometrySimpleGeometry … … 101 101 \param[in] hor Number of quads in x direction. 102 102 \param[in] vert Number of quads in y direction. 103 \return Geometry Ptr to a newly created Geometry core.103 \return GeometryTransitPtr to a newly created Geometry core. 104 104 105 105 \sa OSG::makePlane … … 189 189 \param[in] doSide If true side faces are created. 190 190 \param[in] doBttom If true bottom faces are created. 191 \return Node Ptr to a newly created Node with a Geometry core.191 \return NodeTransitPtr to a newly created Node with a Geometry core. 192 192 193 193 \ingroup GrpSystemDrawablesGeometrySimpleGeometry … … 215 215 \param[in] doSide If true side faces are created. 216 216 \param[in] doBttom If true bottom faces are created. 217 \return Geometry Ptr to a newly created Geometry core.217 \return GeometryTransitPtr to a newly created Geometry core. 218 218 219 219 \sa OSG::makeCone … … 249 249 \param[in] doTop If true, top cap faces are created. 250 250 \param[in] doBttom If true, bottom cap faces are created. 251 \return Node Ptr to a newly created Node with a Geometry core.251 \return NodeTransitPtr to a newly created Node with a Geometry core. 252 252 253 253 \ingroup GrpSystemDrawablesGeometrySimpleGeometry … … 277 277 \param[in] doTop If true, top cap faces are created. 278 278 \param[in] doBttom If true, bottom cap faces are created. 279 \return Geometry Ptr to a newly created Geometry core.279 \return GeometryTransitPtr to a newly created Geometry core. 280 280 281 281 \sa OSG::makeCylinder … … 315 315 \param[in] doTop If true, top cap faces are created. 316 316 \param[in] doBttom If true, bottom cap faces are created. 317 \return Node Ptr to a newly created Node with a Geometry core.317 \return NodeTransitPtr to a newly created Node with a Geometry core. 318 318 319 319 \ingroup GrpSystemDrawablesGeometrySimpleGeometry … … 356 356 \param[in] doTop If true, top cap faces are created. 357 357 \param[in] doBttom If true, bottom cap faces are created. 358 \return Geometry Ptr to a newly created Geometry core.358 \return GeometryTransitPtr to a newly created Geometry core. 359 359 360 360 \ingroup GrpSystemDrawablesGeometrySimpleGeometry … … 513 513 \param[in] sides Number of subdivisions along the inner radius. 514 514 \param[in] rings Number of subdivisions along the outer radius. 515 \return Node Ptr to a newly created Node with a Geometry core.515 \return NodeTransitPtr to a newly created Node with a Geometry core. 516 516 517 517 \ingroup GrpSystemDrawablesGeometrySimpleGeometry … … 545 545 \param[in] sides Number of subdivisions along the inner radius. 546 546 \param[in] rings Number of subdivisions along the outer radius. 547 \return Geometry Ptr to a newly created Geometry core.547 \return GeometryTransitPtr to a newly created Geometry core. 548 548 549 549 \sa OSG::makeTorus … … 785 785 \param[in] depth Number of recursive subdivisions to perform. 786 786 \param[in] radius Radius of sphere. 787 \return Geometry Ptr to a newly created Geometry core.787 \return GeometryTransitPtr to a newly created Geometry core. 788 788 789 789 \sa OSG::makeSphere … … 962 962 \param[in] longres Number of subdivisions along longitudes. 963 963 \param[in] radius Radius of sphere. 964 \return Node Ptr to a newly created Node with a Geometry core.964 \return NodeTransitPtr to a newly created Node with a Geometry core. 965 965 966 966 \ingroup GrpSystemDrawablesGeometrySimpleGeometry … … 987 987 \param[in] longres Number of subdivisions along longitudes. 988 988 \param[in] radius Radius of sphere. 989 \return Geometry Ptr to a newly created Geometry core.989 \return GeometryTransitPtr to a newly created Geometry core. 990 990 991 991 \sa OSG::makeLatLongSphere … … 1094 1094 \param[in] longres Number of subdivisions along longitudes. 1095 1095 \param[in] radius Radius of sphere. 1096 \return Node Ptr to a newly created Node with a Geometry core.1096 \return NodeTransitPtr to a newly created Node with a Geometry core. 1097 1097 1098 1098 \ingroup GrpSystemDrawablesGeometrySimpleGeometry … … 1125 1125 \param[in] longres Number of subdivisions along longitudes. 1126 1126 \param[in] radius Radius of sphere. 1127 \return Geometry Ptr to a newly created Geometry core.1127 \return GeometryTransitPtr to a newly created Geometry core. 1128 1128 1129 1129 \sa OSG::makeLatLongSphere … … 1246 1246 \param[in] longres Number of subdivisions along longitudes. 1247 1247 \param[in] radius Radius of sphere. 1248 \return Node Ptr to a newly created Node with a Geometry core.1248 \return NodeTransitPtr to a newly created Node with a Geometry core. 1249 1249 1250 1250 \ingroup GrpSystemDrawablesGeometrySimpleGeometry … … 1286 1286 \param[in] longres Number of subdivisions along longitudes. 1287 1287 \param[in] radius Radius of sphere. 1288 \return Geometry Ptr to a newly created Geometry core.1288 \return GeometryTransitPtr to a newly created Geometry core. 1289 1289 1290 1290 \sa OSG::makeLatLongSphere … … 1563 1563 \param[in] vert Number of quads along the y axis. 1564 1564 \param[in] depth Number of quads along the z axis. 1565 \return Node Ptr to a newly created Node with a Geometry core.1565 \return NodeTransitPtr to a newly created Node with a Geometry core. 1566 1566 1567 1567 \ingroup GrpSystemDrawablesGeometrySimpleGeometry … … 1592 1592 \param[in] vert Number of quads along the y axis. 1593 1593 \param[in] depth Number of quads along the z axis. 1594 \return Geometry Ptr to a newly created Geometry core.1594 \return GeometryTransitPtr to a newly created Geometry core. 1595 1595 1596 1596 \sa OSG::makeBox … … 1701 1701 1702 1702 \param[in] depth Subdivision depth. 1703 \return Node Ptr to a newly created Node with a Geometry core.1703 \return NodeTransitPtr to a newly created Node with a Geometry core. 1704 1704 1705 1705 \ingroup GrpSystemDrawablesGeometrySimpleGeometry … … 2180 2180 2181 2181 \param[in] depth Subdivision depth. 2182 \return Geometry Ptr to a newly created Geometry core.2182 \return GeometryTransitPtr to a newly created Geometry core. 2183 2183 2184 2184 \sa OSG::makeTeapot trunk/Source/System/NodeCores/Drawables/Particles/OSGParticleBSP.h
r882 r1173 269 269 DataType &getType (void); 270 270 271 static Char8*getSName (void) { return "SFParticleBSPTree"; }272 static Char8*getMName (void) { return "MFParticleBSPTree"; }271 static const Char8 *getSName (void) { return "SFParticleBSPTree"; } 272 static const Char8 *getMName (void) { return "MFParticleBSPTree"; } 273 273 274 274 static ParticleBSPTree getDefault (void) { return ParticleBSPTree(); } trunk/Source/System/NodeCores/Drawables/Particles/OSGParticles.cpp
r997 r1173 273 273 enum { numFormats = GL_DOUBLE - GL_BYTE + 1 }; 274 274 275 static c har *formatNames[];275 static const char *formatNames[]; 276 276 277 277 static pumpFunc ColorFuncs[numFormats][4]; … … 284 284 /*! A map from the OpenGL data type to the corresponding name 285 285 */ 286 c har *ColTraitBase::formatNames[] =286 const char *ColTraitBase::formatNames[] = 287 287 { "GL_BYTE", "GL_UNSIGNED_BYTE", "GL_SHORT", "GL_UNSIGNED_SHORT", 288 288 "GL_INT", "GL_UNSIGNED_INT", "GL_FLOAT", "GL_2_BYTES", trunk/Source/System/NodeCores/Groups/Stage/OSGRenderFunctorFieldTraits.h
r900 r1173 126 126 else 127 127 { 128 containerId = getContainerId(pObject);128 containerId = pObject->getId(); 129 129 } 130 130
