Changeset 701 in Sophya for trunk/SophyaLib/Samba/spheregorski.cc
- Timestamp:
- Jan 4, 2000, 3:27:29 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/spheregorski.cc
r697 r701 219 219 //-- 220 220 { 221 cout << " constructeur de recopie " << endl;222 221 if(s.mInfo_) mInfo_= new DVList(*s.mInfo_); 223 222 … … 1116 1115 { 1117 1116 dobj= new SphereGorski<T>; 1118 dobj-> DataBlock().SetTemp(true);1117 dobj->pixels_.SetTemp(true); 1119 1118 ownobj= true; 1120 1119 Read(filename); … … 1125 1124 { 1126 1125 dobj= new SphereGorski<T>(obj, true); 1127 dobj-> DataBlock().SetTemp(true);1126 dobj->pixels_.SetTemp(true); 1128 1127 ownobj= true; 1129 1128 } … … 1155 1154 { 1156 1155 dobj= new SphereGorski<T>; 1157 dobj-> DataBlock().SetTemp(true);1156 dobj->pixels_.SetTemp(true); 1158 1157 ownobj= true; 1159 1158 } 1160 1159 1161 1160 // Let's Read the SphereCoordSys object -- ATTENTIOn - $CHECK$ 1162 SphereCoordSys* cs = dynamic_cast<SphereCoordSys*>(is.ReadObject()); 1163 dobj->SetCoordSys(cs); 1164 1161 FIO_SphereCoordSys fio_scs( dobj->GetCoordSys()); 1162 fio_scs.Read(is); 1165 1163 // Pour savoir s'il y avait un DVList Info associe 1166 1164 char strg[256]; … … 1175 1173 int_4 nSide; 1176 1174 is.GetI4(nSide); 1177 dobj->setSizeIndex(nSide);1178 1179 1175 int_4 nPix; 1180 1176 is.GetI4(nPix); 1181 dobj->setNbPixels(nPix);1182 1183 1177 double Omega; 1184 1178 is.GetR8(Omega); 1185 dobj->setP ixSolAngle(Omega);1179 dobj->setParameters(nSide,nPix, Omega); 1186 1180 1187 1181 // On lit le DataBlock; 1188 is >> dobj->DataBlock(); 1182 FIO_NDataBlock<T> fio_nd(&dobj->pixels_); 1183 fio_nd.Read(is); 1189 1184 } 1190 1185 … … 1192 1187 void FIO_SphereGorski<T>::WriteSelf(POutPersist& os) const 1193 1188 { 1194 1195 1189 if(dobj == NULL) 1196 1190 { … … 1200 1194 1201 1195 // Let's write the SphereCoordSys object 1202 dobj->GetCoordSys()->Write(os); 1196 FIO_SphereCoordSys fio_scs( dobj->GetCoordSys()); 1197 fio_scs.Write(os); 1203 1198 1204 1199 char strg[256]; … … 1220 1215 os.PutI4(nSide); 1221 1216 os.PutI4(nPix); 1222 os.PutR8(dobj->PixSolAngle( 0));1217 os.PutR8(dobj->PixSolAngle()); 1223 1218 // On ecrit le dataBlock 1224 os << dobj->DataBlock(); 1219 FIO_NDataBlock<T> fio_nd(&dobj->pixels_); 1220 fio_nd.Write(os); 1225 1221 } 1226 1222
Note:
See TracChangeset
for help on using the changeset viewer.