// Constructors & Destructors
//------------------------------------------------------------------------------------------------------------
public:
-
/**
** With this constructor the setVectImages and initialize environment must be called
**/
**/
KernelManagerContour(std::vector<vtkImageData*> images,std::string datadir,std::string tmpdir);
~KernelManagerContour();
-
std::vector<vtkImageData*> getVectImages();
- void setVectImages(std::vector<vtkImageData*> vectimg);
-
+ void changeImage(int id, vtkImageData *img);
+ void setVectImages(std::vector<vtkImageData*> vectimg);
void GetSpacing(double *vecspc, int iImage);
-
-
/**
** This method returns the source of the image data selected by the user.
*/
vtkImageData* getSourceImage();
-
-
-
void initializeEnvironment(std::string datadir);
-
-
/**
** This methods connect the event in the class interfNewContourMenu with the world of the appli
**/
-
std::string createOutline(manualBaseModel * manModelContour,std::vector<int> instantVector);
/////////////////////////////////
-
std::string intToString(int num);
-
std::vector<std::string> GetLstNameThingsStatic();
-
void SaveThingName(FILE* pFile, FILE *pFileData, std::string name );
-
std::vector<std::string> GetLstNameThings();
-
bool IsPartOfStaticList(std::string keyName );
-
void deleteCModel(std::string theKeyName);
-
void removeAllOutlines();
-
//void setInstance(theInstant);
-
std::vector<NameWrapper *> getActualInstantOutlines();
-
int getNamesWrappingSize();
-
std::string getNameWrapping(int i);
-
void setInstant(Instant* theInstant);
void setInstant(std::vector<int> vectInstant);
std::string createCopyContourOf ( std::string anExistingKName, std::vector<int> &instantNoTouchData);
-
Instant * getCurrentInstant();
-
manualBaseModel* getOutlineByKeyName(std::string cloneName);
-
bool onRedo(std::string& filename);
-
bool onUndo(std::string& filename);
-
bool onUndoSaveFile(std::string& filename);
-
std::string saveState();
-
void changeContourOfManager(std::string keyName, Instant *instant);
-
void resetAppend();
-
std::string onSpreadAdd( std::vector<double> *vecX, std::vector<double> *vecY, std::vector<double> *vecZ, std::vector<int> instants);
-
void getMaxMinZ(double *minZ,double *maxZ);
-
manualBaseModel* GetPoints(int z,int type, std::vector<double>* vecCtrlPointX,std::vector<double>* vecCtrlPointY,std::vector<double>* vecCtrlPointZ, std::string& theName,int typeofcontour, std::vector<int> tempVector);
-
//
// Method which creates the model associated with the type in parameter. The possible contour types are:
// 0-spline
// @param typeContour - int
// @return manualBaseModel - Model created based on the type
manualBaseModel* factoryManualContourModel(int typeContour);
-
void CalculeSplinePropagation();
-
std::vector<std::string> getOutlinesNameAtInstant(std::vector<int> tempvector);
-
std::vector<ContourThing**> getOutlinesAtInstant(Instant* instant );
-
std::vector<manualBaseModel*> ExploseEachModel( std::vector<manualBaseModel*> lstManConMod );
-
-
void getConceptsInformation(std::vector<std::string>& conceptNameVect, std::vector<int>& conceptSizeVect);
-
vtkImageData* getImageAtInstant(std::vector<int> inst);
//------------------------------------------------------------------------------------------------------------
void setCurrentFileName(std::string filenam);
std::string getCurrentFileName();
-
std::string parseOsirixFile(std::string filename);
private:
//------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------
std::vector<vtkImageData*> vectimages;
std::vector<std::vector<double> > vectimagesSpacing;
-
ImageSourceThing *imageSource;
-
//Instant * _actualInstant;
//Temporary attribute should be removed
OutlineModelManager *modelManager;
-
std::string filename;
-
int inredo;
int inundo;
int _currentIndex;
std::string stundoredo;
std::string _datadir;
-
ContourPropagation *_contourPropagation;
-
OutlineModelManager *getOutlineModelManager();
};
#endif