]> Creatis software - creaVtk.git/blob - bbtk_creaVtk_PKG/src/bbcreaVtkReadMHDPlane.cxx
#3209 creaVtk Feature New Normal branch vtk7itk4wx3-mingw
[creaVtk.git] / bbtk_creaVtk_PKG / src / bbcreaVtkReadMHDPlane.cxx
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #include "bbcreaVtkReadMHDPlane.h"
5 #include "bbcreaVtkPackage.h"
6
7 #include "stdio.h"
8
9
10 #define _LARGEFILE64_SOURCE
11
12 #include <stdio.h>
13 #include <sys/types.h>
14
15 #if defined(_WIN32)
16         #include <share.h> 
17 #else
18         #include <unistd.h>
19 #endif // defined(_WIN32)
20
21 #include <stdlib.h>
22 #include <errno.h>
23 #include <string.h>
24 #include <sys/stat.h>
25 #include <fcntl.h>
26
27 namespace bbcreaVtk
28 {
29
30 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaVtk,ReadMHDPlane)
31 BBTK_BLACK_BOX_IMPLEMENTATION(ReadMHDPlane,bbtk::AtomicBlackBox);
32 //===== 
33 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
34 //===== 
35
36
37 vtkImageData* ReadMHDPlane::CreateDefaultImage()
38 {
39         int i;
40         int sizeX, sizeY, sizeZ;
41         sizeX = 200;
42         sizeY = sizeX;
43         sizeZ = 1;
44         vtkImageData *newImage = vtkImageData::New();
45         newImage->Initialize();
46         newImage->SetSpacing( 1,1,1 );
47         newImage->SetDimensions(  sizeX,sizeY,sizeZ );
48         newImage->SetExtent(0,  sizeX-1,0,sizeY-1,0,sizeZ-1 );
49
50 //EED 2017-01-01 Migration VTK7
51 #if VTK_MAJOR_VERSION <= 5
52         newImage->SetWholeExtent(0,  sizeX-1,0,sizeY-1,0,sizeZ-1 );
53         newImage->SetScalarTypeToUnsignedChar();
54         newImage->SetNumberOfScalarComponents(1);
55         newImage->AllocateScalars();
56         newImage->Update();
57 #else
58         newImage->AllocateScalars(VTK_UNSIGNED_CHAR,1);
59 #endif
60
61         memset ( (void*)newImage->GetScalarPointer(), 0, sizeX*sizeY*1 );
62         for (i=0; i<sizeX; i++)
63         {
64                 newImage->SetScalarComponentFromDouble(i,i,0, 0, 255 );
65                 newImage->SetScalarComponentFromDouble(i,sizeY-1-i,0, 0, 255 );
66         } // for i
67         return newImage;
68
69
70
71 void ReadMHDPlane::ReadNormalMHD()
72 {
73 // THE MAIN PROCESSING METHOD BODY
74 //   Here we simply set the input 'In' value to the output 'Out'
75 //   And print out the output value
76 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
77 //    void bbSet{Input|Output}NAME(const TYPE&)
78 //    const TYPE& bbGet{Input|Output}NAME() const 
79 //    Where :
80 //    * NAME is the name of the input/output
81 //      (the one provided in the attribute 'name' of the tag 'input')
82 //    * TYPE is the C++ type of the input/output
83 //      (the one provided in the attribute 'type' of the tag 'input')
84
85 //    bbSetOutputOut( bbGetInputIn() );
86 //    std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
87
88         std::string inputfilename;
89         int slice;
90         int width;
91         long long dataSize;
92
93
94         if (bbGetInputDirectionPlane()=="XY")
95         {
96                 inputfilename=bbGetInputFileName();
97         } // if XY
98
99
100         if ((bbGetInputDirectionPlane()=="YZ") || (bbGetInputDirectionPlane()=="ZX"))
101         {
102                 //-- Split FileName
103                 std::size_t found               =       bbGetInputFileName().find_last_of("/\\");
104                 std::string path                =       bbGetInputFileName().substr(0,found+1);
105                 std::string filename    =       bbGetInputFileName().substr(found+1);
106 #ifdef _WIN32
107                 path=path+"YZ_ZX\\";
108 #else
109                 path=path+"YZ_ZX/";
110 #endif
111                 if (bbGetInputDirectionPlane()=="YZ") 
112                 { 
113                         inputfilename = path+filename+"_YZ.mhd";  
114                 } // if YZ
115
116                 if (bbGetInputDirectionPlane()=="ZX")
117                 {
118                         inputfilename = path+filename+"_ZX.mhd";
119                 } // XZ
120         } // if YZ || XZ
121
122         width = bbGetInputWidth();
123         if (width<=0 ) { width=1; }
124
125         slice = bbGetInputSlice();
126         if (slice<0 ) { slice=0; }
127
128         vtkImageData *newImage;
129         long long newHeaderSize;
130     std::string newFileName=inputfilename+"-OneSlice";
131
132     int sx,sy,sz;
133     char mystring[250];
134     char strTmp[20];
135         bool ok=true;
136     FILE *ffIn  = fopen(inputfilename.c_str(),"r");
137         if (ffIn!=NULL)
138         {
139             FILE *ffOut = fopen(newFileName.c_str(),"w");
140
141         while(!feof(ffIn))
142         {
143             strcpy(mystring,"\n");
144                         fgets(mystring,250,ffIn);
145                 if (strncmp("NDims",mystring,5)==0) 
146                         {
147                                 if (width==1) 
148                                 { 
149                                         strcpy(mystring,"NDims = 2\n"); 
150                                 } else {
151                                         strcpy(mystring,"NDims = 3\n"); 
152                                 }
153                         }
154                 if (strncmp("DimSize",mystring,6)==0) 
155                         {
156                                 sscanf(mystring,"%s %s %d %d %d",strTmp, strTmp, &sx, &sy,&sz);
157
158                                 if (width==1) 
159                                 { 
160                                         sprintf(mystring,"DimSize = %d %d\n",sx,sy);
161                                 } else {
162                                         sprintf(mystring,"DimSize = %d %d %d\n",sx,sy,width);
163                                 }
164
165                         newHeaderSize = (long long int)sx*(long long int)sy*(long long int)slice;
166                                 if (bbGetInputSlice()>=sz) {ok=false;}
167                         } // if
168                 if (strncmp("ElementType = MET_CHAR",mystring,22)==0)                   { dataSize=sizeof(char);                        }
169                 if (strncmp("ElementType = VTK_CHAR",mystring,22)==0)                   { dataSize=sizeof(char);                        }
170                 if (strncmp("ElementType = MET_UCHAR",mystring,23)==0)                  { dataSize=sizeof(unsigned char);       }
171                 if (strncmp("ElementType = VTK_UNSIGNED_CHAR",mystring,31)==0)  { dataSize=sizeof(unsigned char);       }
172                 if (strncmp("ElementType = MET_USHORT",mystring,24)==0)                 { dataSize=sizeof(unsigned short);      }
173                 if (strncmp("ElementType = VTK_UNSIGNED_SHORT",mystring,32)==0) { dataSize=sizeof(unsigned short);      }
174                 if (strncmp("ElementType = MET_SHORT",mystring,23)==0)                  { dataSize=sizeof(short);                       }
175                 if (strncmp("ElementType = VTK_SHORT",mystring,23)==0)                  { dataSize=sizeof(short);                       }
176                 if (strncmp("ElementType = MET_UINT",mystring,22)==0)                   { dataSize=sizeof(unsigned int);        }
177                 if (strncmp("ElementType = VTK_UNSIGNED_INT",mystring,30)==0)   { dataSize=sizeof(unsigned int);        }
178                 if (strncmp("ElementType = MET_INT",mystring,21)==0)                    { dataSize=sizeof(int);                         }
179                 if (strncmp("ElementType = VTK_INT",mystring,21)==0)                    { dataSize=sizeof(int);                         }
180                 if (strncmp("ElementType = MET_FLOAT",mystring,23)==0)                  { dataSize=sizeof(float);                       }
181                 if (strncmp("ElementType = VTK_FLOAT",mystring,23)==0)                  { dataSize=sizeof(float);                       }
182                 if (strncmp("ElementType = MET_LONG",mystring,22)==0)                   { dataSize=sizeof(long);                        }
183                 if (strncmp("ElementType = VTK_LONG",mystring,22)==0)                   { dataSize=sizeof(long);                        }
184                 if (strncmp("ElementType = MET_DOUBLE",mystring,24)==0)                 { dataSize=sizeof(double);                      }
185                 if (strncmp("ElementType = VTK_DOUBLE",mystring,24)==0)                 { dataSize=sizeof(double);                      }
186                         newHeaderSize=newHeaderSize*dataSize;
187
188                 if (strncmp("Offset",mystring,6)==0) {strcpy(mystring,"Offset = 0 0 0\n");}
189                 if (strncmp("HeaderSize",mystring,10)==0) {strcpy(mystring,"");}
190                 if (strncmp("ElementDataFile",mystring,15)==0) 
191                         {
192                                 fprintf(ffOut,"HeaderSize = %lld\n\n", newHeaderSize );
193                         } // if
194                 fprintf(ffOut,mystring); 
195         } // while
196                 fclose(ffIn);
197                 fclose(ffOut);
198
199                 if (ok==true)
200                 {
201                         vtkMetaImageReader * reader = vtkMetaImageReader::New();
202                         reader->SetFileName( newFileName.c_str() );
203                         reader->Update();
204                         newImage = reader->GetOutput();
205                 } // if ok
206         } else {
207                 ok=false;
208                 printf("EED ERROR: Problem openin:%s\n", inputfilename.c_str() );
209         }
210
211         if (ok==false)
212         {
213                 newImage=CreateDefaultImage();
214         } // if ok
215
216         bbSetOutputOut( newImage );
217 }
218
219
220
221
222
223 void ReadMHDPlane::Read64lseek()
224 {
225         int             slice;
226         int             width;
227
228         width = bbGetInputWidth();
229         if (width<=0 ) { width=1; }
230
231         slice = bbGetInputSlice();
232         if (slice<0 ) { slice=0; }
233
234         int             dimX=-1,dimY=-1,dimZ=-1;
235         int             dim=-1;
236         std::string formattype("VOID");
237         std::string elementdatafile("VOID");
238         float           spcX=-1,spcY=-1,spcZ=-1;
239         float           ox=-1,oy=-1,oz=-1;
240         long int        headersize=0;
241
242         vtkImageData *newImage=NULL;
243         int imageType;
244
245         char mystring[250];
246         char strTmp[30];
247         char strTmp2[30];
248         FILE *ffIn      = fopen(bbGetInputFileName().c_str(),"r");
249         long long dataSize;
250
251         if (ffIn!=NULL)
252         {
253                 newImage = vtkImageData::New();
254
255                 while(!feof(ffIn))
256                 {
257             strcpy(mystring,"\n");
258                         fgets(mystring,250,ffIn);
259                 if (strncmp("NDims",mystring,5)==0)                     { sscanf(mystring,"%s %s %d"            ,strTmp, strTmp, &dim);                                 }
260                 if (strncmp("DimSize",mystring,6)==0)                   { sscanf(mystring,"%s %s %d %d %d"      ,strTmp, strTmp, &dimX, &dimY,&dimZ);   } 
261                         if (strncmp("ElementType",mystring,11)==0)              { sscanf(mystring,"%s %s %s"            ,strTmp, strTmp, strTmp2); formattype=strTmp2;                  }
262                         if (strncmp("ElementSpacing",mystring,14)==0)   { sscanf(mystring,"%s %s %f %f %f"      ,strTmp, strTmp, &spcX,&spcY,&spcZ);    }
263                         if (strncmp("ElementSize",mystring,11)==0)              { sscanf(mystring,"%s %s %f %f %f"      ,strTmp, strTmp, &spcX,&spcY,&spcZ);    }
264                 if (strncmp("Offset",mystring,6)==0)                    { sscanf(mystring,"%s %s %f %f %f"      ,strTmp, strTmp, &ox, &oy, &oz);                }
265                 if (strncmp("HeaderSize",mystring,10)==0)               { sscanf(mystring,"%s %s %ld"           ,strTmp, strTmp, &headersize);                  }
266                         if (strncmp("ElementDataFile",mystring,15)==0)  { sscanf(mystring,"%s %s %s"            ,strTmp, strTmp, strTmp2); elementdatafile=strTmp2;             }
267
268
269
270                         if (strncmp("ElementType = MET_CHAR",mystring,22)==0)                   { imageType =VTK_CHAR;                   dataSize=sizeof(char);                  }
271                         if (strncmp("ElementType = VTK_CHAR",mystring,22)==0)                   { imageType =VTK_CHAR;                   dataSize=sizeof(char);                  }
272                         if (strncmp("ElementType = MET_UCHAR",mystring,23)==0)                  { imageType =VTK_UNSIGNED_CHAR;  dataSize=sizeof(unsigned char); }
273                         if (strncmp("ElementType = VTK_UNSIGNED_CHAR",mystring,31)==0)  { imageType =VTK_UNSIGNED_CHAR;  dataSize=sizeof(unsigned char); }
274                         if (strncmp("ElementType = MET_USHORT",mystring,24)==0)                 { imageType =VTK_UNSIGNED_SHORT; dataSize=sizeof(unsigned short);}
275                         if (strncmp("ElementType = VTK_UNSIGNED_SHORT",mystring,32)==0) { imageType =VTK_UNSIGNED_SHORT; dataSize=sizeof(unsigned short);}
276                         if (strncmp("ElementType = MET_SHORT",mystring,23)==0)                  { imageType =VTK_SHORT;                  dataSize=sizeof(short);                 }
277                         if (strncmp("ElementType = VTK_SHORT",mystring,23)==0)                  { imageType =VTK_SHORT;                  dataSize=sizeof(short);                 }
278                         if (strncmp("ElementType = MET_UINT",mystring,22)==0)                   { imageType =VTK_UNSIGNED_INT;   dataSize=sizeof(unsigned int);  }
279                         if (strncmp("ElementType = VTK_UNSIGNED_INT",mystring,30)==0)   { imageType =VTK_UNSIGNED_INT;   dataSize=sizeof(unsigned int);  }
280                         if (strncmp("ElementType = MET_INT",mystring,21)==0)                    { imageType =VTK_INT;                    dataSize=sizeof(int);                   }
281                         if (strncmp("ElementType = VTK_INT",mystring,21)==0)                    { imageType =VTK_INT;                    dataSize=sizeof(int);                   }
282                         if (strncmp("ElementType = MET_FLOAT",mystring,23)==0)                  { imageType =VTK_FLOAT;                  dataSize=sizeof(float);                 }
283                         if (strncmp("ElementType = VTK_FLOAT",mystring,23)==0)                  { imageType =VTK_FLOAT;                  dataSize=sizeof(float);                 }
284                         if (strncmp("ElementType = MET_LONG",mystring,22)==0)                   { imageType =VTK_LONG;                   dataSize=sizeof(long);                  }
285                         if (strncmp("ElementType = VTK_LONG",mystring,22)==0)                   { imageType =VTK_LONG;                   dataSize=sizeof(long);                  }
286                         if (strncmp("ElementType = MET_DOUBLE",mystring,24)==0)                 { imageType =VTK_DOUBLE;                 dataSize=sizeof(double);                }
287                         if (strncmp("ElementType = VTK_DOUBLE",mystring,24)==0)                 { imageType =VTK_DOUBLE;                 dataSize=sizeof(double);                }
288
289         } // while
290                 fclose(ffIn);
291
292                 newImage->Initialize();
293
294
295                 int             fd;
296                 long long       ret;
297                 std::size_t found;
298                 std::string filename;
299                 found                                   = bbGetInputFileName().find_last_of("/\\");
300                 filename                                = bbGetInputFileName().substr(0,found+1) + elementdatafile ;
301                 long long       pos;
302
303                 long long lsize                 = dimX*dimY*width *dataSize;
304
305
306 #if defined(_WIN32)
307                    _sopen_s( &fd, filename.c_str(), _O_RDONLY, _SH_DENYNO, 0 );
308 #else
309                 fd = open ( filename.c_str() ,  O_RDONLY|O_LARGEFILE );
310 #endif // defined(_WIN32)
311
312
313                 if (fd < 0)
314                 {
315                         printf("EED ReadMHDPlane::Read64lseek   WARNNING! raw file not exist\n");
316                         fprintf(stderr, "%s\n", strerror(errno));
317                         newImage=CreateDefaultImage();
318 //                      exit(1);
319                 }       
320                 
321
322                 if ((bbGetInputDirectionPlane()=="XY") && (fd>=0)) 
323                 { 
324                         newImage->SetSpacing( spcX,spcY,spcZ );
325                         newImage->SetDimensions(  dimX,dimY,width );
326                         newImage->SetExtent(0,  dimX-1,0,dimY-1,0,width-1 );
327
328 //EED 2017-01-01 Migration VTK7
329 #if VTK_MAJOR_VERSION <= 5
330                         newImage->SetWholeExtent(0,  dimX-1,0,dimY-1,0,width-1 );
331                         newImage->SetNumberOfScalarComponents(1);
332                         newImage->SetScalarType(imageType);
333                         newImage->AllocateScalars();
334                         newImage->Update();
335 #else
336                         newImage->AllocateScalars( imageType,1 );
337 #endif
338
339
340                         pos = dimX*dimY*(long long)slice*dataSize;
341 #if defined(_WIN32)
342                         if (_lseeki64( fd, pos, SEEK_SET ) < 0)
343 #else
344                         if (lseek64(fd, pos, SEEK_SET) < 0) 
345 #endif // defined(_WIN32)
346                         {
347                                 printf("EED ReadMHDPlane::Read64lseek \n");
348                                 fprintf(stderr, "Failed seeking to %lld, %s\n", pos, strerror(errno));
349                                 exit(1);
350                         }
351
352                         if ((ret = read(fd, newImage->GetScalarPointer() , lsize)) < 0) 
353                         {
354                                 fprintf(stderr, "Failed reading: %s\n", strerror(errno));
355                                 exit(1);
356                         }
357                 }  // if PLANE XY
358
359                 if ((bbGetInputDirectionPlane()=="XZ") && (fd>=0))
360                 { 
361                         newImage->SetSpacing( spcX,spcZ,spcY );
362                         newImage->SetDimensions(  dimX,dimZ,width );
363                         newImage->SetExtent(0,  dimX-1,0,dimZ-1,0,width-1 );
364 //EED 2017-01-01 Migration VTK7
365 #if VTK_MAJOR_VERSION <= 5
366                         newImage->SetWholeExtent(0,  dimX-1,0,dimZ-1,0,width-1 );
367                         newImage->SetNumberOfScalarComponents(1);
368                         newImage->SetScalarType(imageType);
369                         newImage->AllocateScalars();
370                         newImage->Update();
371 #else
372                         newImage->AllocateScalars( imageType, 1);
373 #endif
374
375                         int iWidth;
376                         for (iWidth=0;iWidth<width;iWidth++)
377                         {
378                                 copy_XZ_plane(fd,newImage,slice+iWidth,iWidth,dimX,dimY,dimZ,dataSize);
379                         }
380                 }  // if PLANE XZ
381
382                 if ((bbGetInputDirectionPlane()=="YZ") && (fd>=0))
383                 { 
384                         newImage->SetSpacing( spcY,spcZ,spcX );
385                         newImage->SetDimensions(  dimY,dimZ,width );
386                         newImage->SetExtent(0,  dimY-1,0,dimZ-1,0,width-1 );
387 //EED 2017-01-01 Migration VTK7
388 #if VTK_MAJOR_VERSION <= 5
389                         newImage->SetWholeExtent(0,  dimY-1,0,dimZ-1,0,width-1 );
390                         newImage->SetNumberOfScalarComponents(1);
391                         newImage->SetScalarType(imageType);
392                         newImage->AllocateScalars();
393                         newImage->Update();
394 #else
395                         newImage->AllocateScalars( imageType ,1 );
396 #endif
397
398                         int iWidth;
399                         for (iWidth=0;iWidth<width;iWidth++)
400                         {
401                                 copy_YZ_plane(fd,newImage,slice+iWidth,iWidth,dimX,dimY,dimZ,dataSize);
402                         }
403
404                 }  // if PLANE YZ       
405 #if defined(_WIN32)
406                 _close (fd);
407 #else
408                 close (fd);
409 #endif // defined(_WIN32)
410         } else {
411                 newImage=CreateDefaultImage();
412         } // if  ffIn
413
414         bbSetOutputOut( newImage );
415 }
416
417
418 void ReadMHDPlane::copy_YZ_plane(int fd,vtkImageData *newImage,int slice,int iWidth,int dimX,int dimY,int dimZ,int dataSize)
419 {
420         long long int j;
421         long long int i;
422         long long       ret;
423         long long       pos;
424         long long sizeBytesPlane = dimX*dimY*dataSize;
425         char *pImage;
426         for (j=0;j<dimZ;j++)
427         {
428                 for (i=0;i<dimY;i++)
429                 {
430                         pos = ((long long int)slice+iWidth + i*dimX + j*dimX*dimY)*dataSize ;
431 #if defined(_WIN32)
432                         if (_lseeki64( fd, pos , SEEK_SET ) < 0)
433 #else
434                         if (lseek64(fd, pos , SEEK_SET) < 0) 
435 #endif // defined(_WIN32)
436                         {
437                                 printf("EED ReadMHDPlane::Read64lseek \n");
438                                 fprintf(stderr, "Failed seeking to %lld, %s\n", pos, strerror(errno));
439                                 exit(1);
440                         }
441
442                         pImage=(char*)(newImage->GetScalarPointer(i, dimZ-1-j,iWidth ));
443                         if ((ret = read(fd, pImage , dataSize)) < 0) 
444                         {
445                                 fprintf(stderr, "Failed reading: %s\n", strerror(errno));
446                                 exit(1);
447                         }
448                         } // for i
449                 } // for j
450 }
451
452
453 void ReadMHDPlane::copy_XZ_plane(int fd,vtkImageData *newImage,int slice,int iWidth,int dimX,int dimY,int dimZ,int dataSize)
454 {
455         long long int j;
456         long long       ret;
457         long long       pos;
458         pos = dimX*(long long int)slice*dataSize;
459         long long sizeBytesPlane = dimX*dimY*dataSize;
460         char *pImage = (char*)( newImage->GetScalarPointer(0,0,iWidth) );
461         for (j=dimZ-1;j>=0;j--)
462         {
463 #if defined(_WIN32)
464                 if (_lseeki64( fd, pos + j*sizeBytesPlane , SEEK_SET ) < 0)
465 #else
466                 if (lseek64(fd, pos + j*sizeBytesPlane , SEEK_SET) < 0) 
467 #endif // defined(_WIN32)
468                 {
469                         printf("EED ReadMHDPlane::Read64lseek \n");
470                         fprintf(stderr, "Failed seeking to %lld, %s\n", pos, strerror(errno));
471                         exit(1);
472                 }
473
474                 if ((ret = read(fd, pImage , dimX*dataSize)) < 0) 
475                 {
476                         fprintf(stderr, "Failed reading: %s\n", strerror(errno));
477                         exit(1);
478                 }
479                 pImage = pImage+dimX*dataSize;
480         } // for j
481 }
482
483
484
485 void ReadMHDPlane::Process()
486 {
487         if (bbGetInputType()==0)
488         {
489                 ReadNormalMHD();
490         }       
491
492         if (bbGetInputType()==1)
493         {
494                 Read64lseek();
495         }       
496
497 }
498 //===== 
499 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
500 //===== 
501 void ReadMHDPlane::bbUserSetDefaultValues()
502 {
503
504 //  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
505 //    Here we initialize the input 'In' to 0
506    bbSetInputFileName("");
507    bbSetInputSlice(0);
508    bbSetInputType(1);
509    bbSetInputWidth(1);
510    bbSetInputDirectionPlane("XY");
511   
512 }
513 //===== 
514 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
515 //===== 
516 void ReadMHDPlane::bbUserInitializeProcessing()
517 {
518
519 //  THE INITIALIZATION METHOD BODY :
520 //    Here does nothing 
521 //    but this is where you should allocate the internal/output pointers 
522 //    if any 
523
524   
525 }
526 //===== 
527 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
528 //===== 
529 void ReadMHDPlane::bbUserFinalizeProcessing()
530 {
531
532 //  THE FINALIZATION METHOD BODY :
533 //    Here does nothing 
534 //    but this is where you should desallocate the internal/output pointers 
535 //    if any
536   
537 }
538 }
539 // EO namespace bbcreaVtk
540
541