Changeset 1198 for trunk/Source/Contrib/VTK/OSGVTKMapperBase.cpp
- Timestamp:
- 05/05/08 07:12:19 (3 months ago)
- Files:
-
- trunk/Source/Contrib/VTK/OSGVTKMapperBase.cpp (modified) (30 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/Contrib/VTK/OSGVTKMapperBase.cpp
r1193 r1198 92 92 \***************************************************************************/ 93 93 94 /*! \var Node PtrVTKMapperBase::_sfRoot94 /*! \var Node * VTKMapperBase::_sfRoot 95 95 96 96 */ 97 97 98 /*! \var Node PtrVTKMapperBase::_mfGeoRoots98 /*! \var Node * VTKMapperBase::_mfGeoRoots 99 99 100 100 */ 101 101 102 /*! \var Geometry PtrVTKMapperBase::_mfGeometries102 /*! \var Geometry * VTKMapperBase::_mfGeometries 103 103 104 104 */ 105 105 106 /*! \var ChunkMaterial PtrVTKMapperBase::_mfMaterials106 /*! \var ChunkMaterial * VTKMapperBase::_mfMaterials 107 107 108 108 */ 109 109 110 /*! \var MaterialChunk PtrVTKMapperBase::_mfMaterialChunks110 /*! \var MaterialChunk * VTKMapperBase::_mfMaterialChunks 111 111 112 112 */ 113 113 114 /*! \var GeoPnt3fProperty PtrVTKMapperBase::_mfPositions114 /*! \var GeoPnt3fProperty * VTKMapperBase::_mfPositions 115 115 116 116 */ 117 117 118 /*! \var GeoUInt32Property PtrVTKMapperBase::_mfLength118 /*! \var GeoUInt32Property * VTKMapperBase::_mfLength 119 119 120 120 */ 121 121 122 /*! \var GeoUInt8Property PtrVTKMapperBase::_mfTypes122 /*! \var GeoUInt8Property * VTKMapperBase::_mfTypes 123 123 124 124 */ 125 125 126 /*! \var GeoColor4fProperty PtrVTKMapperBase::_mfColors126 /*! \var GeoColor4fProperty * VTKMapperBase::_mfColors 127 127 128 128 */ 129 129 130 /*! \var GeoVec3fProperty PtrVTKMapperBase::_mfNormals130 /*! \var GeoVec3fProperty * VTKMapperBase::_mfNormals 131 131 132 132 */ … … 528 528 529 529 530 void VTKMapperBase::pushToGeoRoots( const NodePtrvalue)530 void VTKMapperBase::pushToGeoRoots(Node * const value) 531 531 { 532 532 editMField(GeoRootsFieldMask, _mfGeoRoots); … … 566 566 } 567 567 568 void VTKMapperBase::removeFromGeoRoots( const NodePtrvalue)568 void VTKMapperBase::removeFromGeoRoots(Node * const value) 569 569 { 570 570 Int32 iElemIdx = _mfGeoRoots.findIndex(value); … … 589 589 } 590 590 591 void VTKMapperBase::pushToGeometries( const GeometryPtrvalue)591 void VTKMapperBase::pushToGeometries(Geometry * const value) 592 592 { 593 593 editMField(GeometriesFieldMask, _mfGeometries); … … 627 627 } 628 628 629 void VTKMapperBase::removeFromGeometries( const GeometryPtrvalue)629 void VTKMapperBase::removeFromGeometries(Geometry * const value) 630 630 { 631 631 Int32 iElemIdx = _mfGeometries.findIndex(value); … … 650 650 } 651 651 652 void VTKMapperBase::pushToMaterials( const ChunkMaterialPtrvalue)652 void VTKMapperBase::pushToMaterials(ChunkMaterial * const value) 653 653 { 654 654 editMField(MaterialsFieldMask, _mfMaterials); … … 688 688 } 689 689 690 void VTKMapperBase::removeFromMaterials( const ChunkMaterialPtrvalue)690 void VTKMapperBase::removeFromMaterials(ChunkMaterial * const value) 691 691 { 692 692 Int32 iElemIdx = _mfMaterials.findIndex(value); … … 711 711 } 712 712 713 void VTKMapperBase::pushToMaterialChunks( const MaterialChunkPtrvalue)713 void VTKMapperBase::pushToMaterialChunks(MaterialChunk * const value) 714 714 { 715 715 editMField(MaterialChunksFieldMask, _mfMaterialChunks); … … 749 749 } 750 750 751 void VTKMapperBase::removeFromMaterialChunks( const MaterialChunkPtrvalue)751 void VTKMapperBase::removeFromMaterialChunks(MaterialChunk * const value) 752 752 { 753 753 Int32 iElemIdx = _mfMaterialChunks.findIndex(value); … … 772 772 } 773 773 774 void VTKMapperBase::pushToPositions( const GeoPnt3fPropertyPtrvalue)774 void VTKMapperBase::pushToPositions(GeoPnt3fProperty * const value) 775 775 { 776 776 editMField(PositionsFieldMask, _mfPositions); … … 810 810 } 811 811 812 void VTKMapperBase::removeFromPositions( const GeoPnt3fPropertyPtrvalue)812 void VTKMapperBase::removeFromPositions(GeoPnt3fProperty * const value) 813 813 { 814 814 Int32 iElemIdx = _mfPositions.findIndex(value); … … 833 833 } 834 834 835 void VTKMapperBase::pushToLength( const GeoUInt32PropertyPtrvalue)835 void VTKMapperBase::pushToLength(GeoUInt32Property * const value) 836 836 { 837 837 editMField(LengthFieldMask, _mfLength); … … 871 871 } 872 872 873 void VTKMapperBase::removeFromLength( const GeoUInt32PropertyPtrvalue)873 void VTKMapperBase::removeFromLength(GeoUInt32Property * const value) 874 874 { 875 875 Int32 iElemIdx = _mfLength.findIndex(value); … … 894 894 } 895 895 896 void VTKMapperBase::pushToTypes( const GeoUInt8PropertyPtrvalue)896 void VTKMapperBase::pushToTypes(GeoUInt8Property * const value) 897 897 { 898 898 editMField(TypesFieldMask, _mfTypes); … … 932 932 } 933 933 934 void VTKMapperBase::removeFromTypes( const GeoUInt8PropertyPtrvalue)934 void VTKMapperBase::removeFromTypes(GeoUInt8Property * const value) 935 935 { 936 936 Int32 iElemIdx = _mfTypes.findIndex(value); … … 955 955 } 956 956 957 void VTKMapperBase::pushToColors( const GeoColor4fPropertyPtrvalue)957 void VTKMapperBase::pushToColors(GeoColor4fProperty * const value) 958 958 { 959 959 editMField(ColorsFieldMask, _mfColors); … … 993 993 } 994 994 995 void VTKMapperBase::removeFromColors( const GeoColor4fPropertyPtrvalue)995 void VTKMapperBase::removeFromColors(GeoColor4fProperty * const value) 996 996 { 997 997 Int32 iElemIdx = _mfColors.findIndex(value); … … 1016 1016 } 1017 1017 1018 void VTKMapperBase::pushToNormals( const GeoVec3fPropertyPtrvalue)1018 void VTKMapperBase::pushToNormals(GeoVec3fProperty * const value) 1019 1019 { 1020 1020 editMField(NormalsFieldMask, _mfNormals); … … 1054 1054 } 1055 1055 1056 void VTKMapperBase::removeFromNormals( const GeoVec3fPropertyPtrvalue)1056 void VTKMapperBase::removeFromNormals(GeoVec3fProperty * const value) 1057 1057 { 1058 1058 Int32 iElemIdx = _mfNormals.findIndex(value); … … 1228 1228 VTKMapperTransitPtr fc; 1229 1229 1230 if(getClassType().getPrototype() != N ullFC)1230 if(getClassType().getPrototype() != NULL) 1231 1231 { 1232 1232 FieldContainerTransitPtr tmpPtr = … … 1244 1244 VTKMapperTransitPtr fc; 1245 1245 1246 if(getClassType().getPrototype() != N ullFC)1246 if(getClassType().getPrototype() != NULL) 1247 1247 { 1248 1248 FieldContainerTransitPtr tmpPtr = … … 1256 1256 1257 1257 //! create an empty new instance of the class, do not copy the prototype 1258 VTKMapper PtrVTKMapperBase::createEmpty(void)1259 { 1260 VTKMapper PtrreturnValue;1258 VTKMapper *VTKMapperBase::createEmpty(void) 1259 { 1260 VTKMapper *returnValue; 1261 1261 1262 1262 newPtr<VTKMapper>(returnValue, Thread::getCurrentLocalFlags()); … … 1268 1268 } 1269 1269 1270 VTKMapper PtrVTKMapperBase::createEmptyLocal(BitVector bFlags)1271 { 1272 VTKMapper PtrreturnValue;1270 VTKMapper *VTKMapperBase::createEmptyLocal(BitVector bFlags) 1271 { 1272 VTKMapper *returnValue; 1273 1273 1274 1274 newPtr<VTKMapper>(returnValue, bFlags); … … 1281 1281 FieldContainerTransitPtr VTKMapperBase::shallowCopy(void) const 1282 1282 { 1283 VTKMapper PtrtmpPtr;1283 VTKMapper *tmpPtr; 1284 1284 1285 1285 newPtr(tmpPtr, … … 1297 1297 BitVector bFlags) const 1298 1298 { 1299 VTKMapper PtrtmpPtr;1299 VTKMapper *tmpPtr; 1300 1300 1301 1301 newPtr(tmpPtr, dynamic_cast<const VTKMapper *>(this), bFlags); … … 1314 1314 VTKMapperBase::VTKMapperBase(void) : 1315 1315 Inherited(), 1316 _sfRoot (N ullFC),1316 _sfRoot (NULL), 1317 1317 _mfGeoRoots (), 1318 1318 _mfGeometries (), … … 1329 1329 VTKMapperBase::VTKMapperBase(const VTKMapperBase &source) : 1330 1330 Inherited(source), 1331 _sfRoot (N ullFC),1331 _sfRoot (NULL), 1332 1332 _mfGeoRoots (), 1333 1333 _mfGeometries (), … … 1737 1737 1738 1738 #ifdef OSG_MT_CPTR_ASPECT 1739 FieldContainer PtrVTKMapperBase::createAspectCopy(void) const1740 { 1741 VTKMapper PtrreturnValue;1739 FieldContainer *VTKMapperBase::createAspectCopy(void) const 1740 { 1741 VTKMapper *returnValue; 1742 1742 1743 1743 newAspectCopy(returnValue, … … 1752 1752 Inherited::resolveLinks(); 1753 1753 1754 static_cast<VTKMapper *>(this)->setRoot(N ullFC);1754 static_cast<VTKMapper *>(this)->setRoot(NULL); 1755 1755 1756 1756 … … 1768 1768 1769 1769 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV) 1770 DataType FieldTraits<VTKMapper Ptr>::_type("VTKMapperPtr", "GroupPtr");1770 DataType FieldTraits<VTKMapper *>::_type("VTKMapperPtr", "GroupPtr"); 1771 1771 #endif 1772 1772 1773 OSG_FIELDTRAITS_GETTYPE(VTKMapper Ptr)1773 OSG_FIELDTRAITS_GETTYPE(VTKMapper *) 1774 1774 1775 1775 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField, 1776 VTKMapper Ptr,1776 VTKMapper *, 1777 1777 0); 1778 1778 1779 1779 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField, 1780 VTKMapper Ptr,1780 VTKMapper *, 1781 1781 0); 1782 1782
