**/
inredo = 0;
inundo = 0;
- stundoredo = "data/temp";
+
+ time_t seconds;
+ seconds = time (NULL);
+ int time = seconds;
+
+
+ stundoredo = "data/temp"+intToString(time);
_currentIndex = 0;
_contourPropagation = NULL;
**/
inredo = 0;
inundo = 0;
- stundoredo = "data/temp";
- _currentIndex = 0;
+ time_t seconds;
+ seconds = time (NULL);
+ int time = seconds;
+
+
+ stundoredo = "data/temp"+intToString(time);
+ _currentIndex = 0;
+
_contourPropagation = NULL;
#if(WIN32)
mkdir(stundoredo.c_str());
return vectimages;
}
void KernelManagerContour::setVectImages(std::vector<vtkImageData*> vectimg){
+
+ for(int i = 0; i < vectimg.size(); i++){
+ vtkImageData* img = vectimg[i];
+ vtkImageChangeInformation* change = vtkImageChangeInformation::New();
+ change->SetInformationInput(img);
+ change->SetInputConnection(img->GetProducerPort());
+
+ change->SetOutputSpacing(0.6,0.6,0.6);
+
+ change->Update();
+
+ vectimg[i] = change->GetOutput();
+ }
+
vectimages = vectimg;
}
return vectimages[index];
}
return NULL;
+}
+
+std::string KernelManagerContour::getCurrentFileName(){
+ return filename;
+}
+
+void KernelManagerContour::setCurrentFileName(std::string filenam){
+ this->filename = filenam;
}
\ No newline at end of file