creaContours_lib
|
#include <KernelManagerContour.h>
Public Member Functions | |
KernelManagerContour () | |
KernelManagerContour (std::vector< vtkImageData * > images, std::string datadir, std::string tmpdir) | |
~KernelManagerContour () | |
std::vector< vtkImageData * > | getVectImages () |
void | setVectImages (std::vector< vtkImageData * > vectimg) |
void | GetSpacing (double *vecspc, int iImage) |
vtkImageData * | getSourceImage () |
void | initializeEnvironment (std::string datadir) |
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 () |
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) |
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 Member Functions | |
OutlineModelManager * | getOutlineModelManager () |
Private Attributes | |
std::vector< vtkImageData * > | vectimages |
std::vector< std::vector < double > > | vectimagesSpacing |
ImageSourceThing * | imageSource |
OutlineModelManager * | modelManager |
std::string | filename |
int | inredo |
int | inundo |
int | _currentIndex |
std::string | stundoredo |
std::string | _datadir |
ContourPropagation * | _contourPropagation |
Definition at line 54 of file KernelManagerContour.h.
KernelManagerContour::KernelManagerContour | ( | ) |
With this constructor the setVectImages and initialize environment must be called
THIS ALL SHOULD BE IN AN OTHER LIB CALLED PERSISTANCE
FINISH PERSISTANCE
Definition at line 33 of file KernelManagerContour.cxx.
References _contourPropagation, _currentIndex, inredo, intToString(), inundo, and stundoredo.
KernelManagerContour::KernelManagerContour | ( | std::vector< vtkImageData * > | images, |
std::string | datadir, | ||
std::string | tmpdir | ||
) |
If images are available before the construction of the kernelManager this method should be used it sets the vector images and initializes the environment
THIS ALL SHOULD BE IN AN OTHER LIB CALLED PERSISTANCE
FINISH PERSISTANCE
Definition at line 62 of file KernelManagerContour.cxx.
References _contourPropagation, _currentIndex, initializeEnvironment(), inredo, intToString(), inundo, setVectImages(), and stundoredo.
KernelManagerContour::~KernelManagerContour | ( | ) |
Definition at line 97 of file KernelManagerContour.cxx.
void KernelManagerContour::CalculeSplinePropagation | ( | ) |
Definition at line 364 of file KernelManagerContour.cxx.
References _contourPropagation.
Referenced by wxContourMainFrame::onSpreadGo().
void KernelManagerContour::changeContourOfManager | ( | std::string | keyName, |
Instant * | instant | ||
) |
Definition at line 318 of file KernelManagerContour.cxx.
References OutlineModelManager::ChangeContourOfList(), and modelManager.
Referenced by wxContourMainFrame::onRigidPressed(), and wxContourMainFrame::openContours().
std::string KernelManagerContour::createCopyContourOf | ( | std::string | anExistingKName, |
std::vector< int > & | instantNoTouchData | ||
) |
Definition at line 254 of file KernelManagerContour.cxx.
References OutlineModelManager::createCopyContourOf(), and modelManager.
Referenced by wxContourMainFrame::createCopyContourOf(), and wxContourMainFrame::createMirrorContourOf().
std::string KernelManagerContour::createOutline | ( | manualBaseModel * | manModelContour, |
std::vector< int > | instantVector | ||
) |
This methods connect the event in the class interfNewContourMenu with the world of the appli
Definition at line 181 of file KernelManagerContour.cxx.
References OutlineModelManager::createOutline(), and modelManager.
Referenced by wxContourMainFrame::createContour(), wxContourMainFrame::onCreateContourBullEye(), wxContourMainFrame::openContours(), wxContourMainFrame::SegmentationOneSlice(), and wxContourMainFrame::SegmentationOneSliceITK().
void KernelManagerContour::deleteCModel | ( | std::string | theKeyName | ) |
Definition at line 218 of file KernelManagerContour.cxx.
References ContourThing::getModel(), OutlineModelManager::getOutlineByKeyName(), modelManager, and OutlineModelManager::removeOutline().
Referenced by wxContourMainFrame::deleteContour().
std::vector< manualBaseModel * > KernelManagerContour::ExploseEachModel | ( | std::vector< manualBaseModel * > | lstManConMod | ) |
Definition at line 480 of file KernelManagerContour.cxx.
Referenced by wxContourMainFrame::getMaskValue(), wxContourMainFrame::onInformationContourLabels(), and wxContourMainFrame::SaveValuesXYZ().
manualBaseModel * KernelManagerContour::factoryManualContourModel | ( | int | typeContour | ) |
Definition at line 413 of file KernelManagerContour.cxx.
Referenced by wxContourMainFrame::createContour(), GetPoints(), wxContourMainFrame::openContours(), wxContourMainFrame::SegmentationOneSlice(), and wxContourMainFrame::SegmentationOneSliceITK().
std::vector< NameWrapper * > KernelManagerContour::getActualInstantOutlines | ( | ) |
Definition at line 229 of file KernelManagerContour.cxx.
References OutlineModelManager::getActualInstantOutlines(), and modelManager.
Referenced by getNamesWrappingSize(), and getNameWrapping().
void KernelManagerContour::getConceptsInformation | ( | std::vector< std::string > & | conceptNameVect, |
std::vector< int > & | conceptSizeVect | ||
) |
Definition at line 497 of file KernelManagerContour.cxx.
References modelManager.
Referenced by wxContourMainFrame::setVectImages().
std::string KernelManagerContour::getCurrentFileName | ( | ) |
Definition at line 512 of file KernelManagerContour.cxx.
References filename.
Referenced by wxContourMainFrame::saveFileWithContoursAutomatique().
Instant * KernelManagerContour::getCurrentInstant | ( | ) |
Definition at line 246 of file KernelManagerContour.cxx.
References OutlineModelManager::getInstant(), and modelManager.
vtkImageData * KernelManagerContour::getImageAtInstant | ( | std::vector< int > | inst | ) |
Definition at line 502 of file KernelManagerContour.cxx.
References _currentIndex, and vectimages.
Referenced by wxContourMainFrame::updateInstantImageData().
std::vector< std::string > KernelManagerContour::GetLstNameThings | ( | ) |
Definition at line 207 of file KernelManagerContour.cxx.
References OutlineModelManager::GetLstNameThings(), and modelManager.
Referenced by wxContourMainFrame::saveFileWithContours(), and wxContourMainFrame::SetZForAllContours().
std::vector< std::string > KernelManagerContour::GetLstNameThingsStatic | ( | ) |
Definition at line 200 of file KernelManagerContour.cxx.
References OutlineModelManager::GetLstNameThingsStatic(), and modelManager.
Referenced by wxContourMainFrame::saveFileWithContours(), and wxContourMainFrame::SetZForAllContours().
void KernelManagerContour::getMaxMinZ | ( | double * | minZ, |
double * | maxZ | ||
) |
Definition at line 355 of file KernelManagerContour.cxx.
References _contourPropagation.
Referenced by wxContourMainFrame::onSpreadGo().
int KernelManagerContour::getNamesWrappingSize | ( | ) |
Definition at line 233 of file KernelManagerContour.cxx.
References getActualInstantOutlines().
Referenced by wxContourMainFrame::getNamesWrappingSize().
std::string KernelManagerContour::getNameWrapping | ( | int | i | ) |
Definition at line 237 of file KernelManagerContour.cxx.
References getActualInstantOutlines().
Referenced by wxContourMainFrame::getNameWrapping().
manualBaseModel * KernelManagerContour::getOutlineByKeyName | ( | std::string | cloneName | ) |
Definition at line 259 of file KernelManagerContour.cxx.
References ContourThing::getModel(), OutlineModelManager::getOutlineByKeyName(), and modelManager.
Referenced by wxContourMainFrame::createCopyContourOf(), wxContourMainFrame::createMirrorContourOf(), wxContourMainFrame::getContour(), wxContourMainFrame::getContourSizeInPixels(), wxContourMainFrame::getType(), wxContourMainFrame::saveFileWithContours(), and wxContourMainFrame::SetZForAllContours().
|
private |
Definition at line 177 of file KernelManagerContour.cxx.
References modelManager.
std::vector< ContourThing ** > KernelManagerContour::getOutlinesAtInstant | ( | Instant * | instant | ) |
Definition at line 476 of file KernelManagerContour.cxx.
References OutlineModelManager::getOutlinesAtInstant(), and modelManager.
Referenced by wxContourMainFrame::getMaskValue(), wxContourMainFrame::onInformationContourLabels(), wxContourMainFrame::onSpreadAddAll(), and wxContourMainFrame::SaveValuesXYZ().
std::vector< std::string > KernelManagerContour::getOutlinesNameAtInstant | ( | std::vector< int > | tempvector | ) |
Definition at line 465 of file KernelManagerContour.cxx.
References OutlineModelManager::getOutlinesAtInstant(), and modelManager.
Referenced by wxContourMainFrame::getOutlinesName().
manualBaseModel * KernelManagerContour::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 | ||
) |
Definition at line 370 of file KernelManagerContour.cxx.
References _contourPropagation, OutlineModelManager::createOutline(), factoryManualContourModel(), and modelManager.
Referenced by wxContourMainFrame::onSpreadGo().
vtkImageData * KernelManagerContour::getSourceImage | ( | ) |
This method returns the source of the image data selected by the user.
Definition at line 174 of file KernelManagerContour.cxx.
References ImageSourceThing::getSourceImage(), and imageSource.
Referenced by parseOsirixFile(), and wxContourMainFrame::setVectImages().
void KernelManagerContour::GetSpacing | ( | double * | vecspc, |
int | iImage | ||
) |
Definition at line 134 of file KernelManagerContour.cxx.
References vectimagesSpacing.
Referenced by wxContourMainFrame::SaveImageResult().
std::vector< vtkImageData * > KernelManagerContour::getVectImages | ( | ) |
Definition at line 101 of file KernelManagerContour.cxx.
References vectimages.
Referenced by wxContourMainFrame::getVectImages().
void KernelManagerContour::initializeEnvironment | ( | std::string | datadir | ) |
Definition at line 142 of file KernelManagerContour.cxx.
References _datadir, OutlineModelBuilder::buildAxe_Envornment(), OutlineModelBuilder::buildCountour_Envornment(), OutlineModelBuilder::buildImageSection_Envornment(), OutlineModelBuilder::buildImageSource_Envornment(), OutlineModelBuilder::getAxesEnv(), OutlineModelBuilder::getContourEnv(), OutlineModelManager::getImageSourceThingByKeyName(), OutlineModelBuilder::getImSectionEnv(), OutlineModelBuilder::getImSourceEnv(), imageSource, intToString(), modelManager, and vectimages.
Referenced by KernelManagerContour().
std::string KernelManagerContour::intToString | ( | int | num | ) |
Definition at line 185 of file KernelManagerContour.cxx.
Referenced by initializeEnvironment(), KernelManagerContour(), onRedo(), onSpreadAdd(), wxContourMainFrame::onSpreadGo(), onUndo(), onUndoSaveFile(), saveState(), and wxContourMainFrame::SaveValuesXYZ().
bool KernelManagerContour::IsPartOfStaticList | ( | std::string | keyName | ) |
Definition at line 214 of file KernelManagerContour.cxx.
References OutlineModelManager::IsPartOfStaticList(), and modelManager.
Referenced by wxContourMainFrame::deleteContour().
bool KernelManagerContour::onRedo | ( | std::string & | filename | ) |
Definition at line 264 of file KernelManagerContour.cxx.
References inredo, intToString(), inundo, and stundoredo.
Referenced by wxContourMainFrame::onRedo().
std::string KernelManagerContour::onSpreadAdd | ( | std::vector< double > * | vecX, |
std::vector< double > * | vecY, | ||
std::vector< double > * | vecZ, | ||
std::vector< int > | instants | ||
) |
Definition at line 332 of file KernelManagerContour.cxx.
References _contourPropagation, and intToString().
Referenced by wxContourMainFrame::onSpreadAdd(), and wxContourMainFrame::onSpreadAddAll().
bool KernelManagerContour::onUndo | ( | std::string & | filename | ) |
Definition at line 276 of file KernelManagerContour.cxx.
References inredo, intToString(), inundo, and stundoredo.
Referenced by wxContourMainFrame::onUndo().
bool KernelManagerContour::onUndoSaveFile | ( | std::string & | filename | ) |
Definition at line 301 of file KernelManagerContour.cxx.
References inredo, intToString(), inundo, and stundoredo.
Referenced by wxContourMainFrame::onUndo().
std::string KernelManagerContour::parseOsirixFile | ( | std::string | filename | ) |
Definition at line 520 of file KernelManagerContour.cxx.
References _datadir, OsirixParser::getContoursFileName(), and getSourceImage().
Referenced by wxContourMainFrame::onImport().
void KernelManagerContour::removeAllOutlines | ( | ) |
Definition at line 225 of file KernelManagerContour.cxx.
References modelManager, and OutlineModelManager::removeAllOutlines().
Referenced by wxContourMainFrame::deleteAllContours().
void KernelManagerContour::resetAppend | ( | ) |
Definition at line 323 of file KernelManagerContour.cxx.
References _contourPropagation.
Referenced by wxContourMainFrame::resetAppend().
std::string KernelManagerContour::saveState | ( | ) |
Definition at line 293 of file KernelManagerContour.cxx.
References inredo, intToString(), inundo, and stundoredo.
Referenced by wxContourMainFrame::saveState().
void KernelManagerContour::SaveThingName | ( | FILE * | pFile, |
FILE * | pFileData, | ||
std::string | name | ||
) |
Definition at line 204 of file KernelManagerContour.cxx.
References modelManager, and OutlineModelManager::SaveThingName().
Referenced by wxContourMainFrame::saveFileWithContours().
void KernelManagerContour::setCurrentFileName | ( | std::string | filenam | ) |
Definition at line 516 of file KernelManagerContour.cxx.
References filename.
Referenced by wxContourMainFrame::onSave().
void KernelManagerContour::setInstant | ( | Instant * | theInstant | ) |
Definition at line 241 of file KernelManagerContour.cxx.
References modelManager, and OutlineModelManager::setInstant().
Referenced by wxContourMainFrame::changeInstant().
void KernelManagerContour::setInstant | ( | std::vector< int > | vectInstant | ) |
Definition at line 249 of file KernelManagerContour.cxx.
References modelManager, and OutlineModelManager::setInstant().
void KernelManagerContour::setVectImages | ( | std::vector< vtkImageData * > | vectimg | ) |
Definition at line 107 of file KernelManagerContour.cxx.
References vectimages, and vectimagesSpacing.
Referenced by KernelManagerContour().
|
private |
Definition at line 200 of file KernelManagerContour.h.
Referenced by CalculeSplinePropagation(), getMaxMinZ(), GetPoints(), KernelManagerContour(), onSpreadAdd(), and resetAppend().
|
private |
Definition at line 196 of file KernelManagerContour.h.
Referenced by getImageAtInstant(), and KernelManagerContour().
|
private |
Definition at line 198 of file KernelManagerContour.h.
Referenced by initializeEnvironment(), and parseOsirixFile().
|
private |
Definition at line 192 of file KernelManagerContour.h.
Referenced by getCurrentFileName(), and setCurrentFileName().
|
private |
Definition at line 186 of file KernelManagerContour.h.
Referenced by getSourceImage(), and initializeEnvironment().
|
private |
Definition at line 194 of file KernelManagerContour.h.
Referenced by KernelManagerContour(), onRedo(), onUndo(), onUndoSaveFile(), and saveState().
|
private |
Definition at line 195 of file KernelManagerContour.h.
Referenced by KernelManagerContour(), onRedo(), onUndo(), onUndoSaveFile(), and saveState().
|
private |
Definition at line 190 of file KernelManagerContour.h.
Referenced by changeContourOfManager(), createCopyContourOf(), createOutline(), deleteCModel(), getActualInstantOutlines(), getConceptsInformation(), getCurrentInstant(), GetLstNameThings(), GetLstNameThingsStatic(), getOutlineByKeyName(), getOutlineModelManager(), getOutlinesAtInstant(), getOutlinesNameAtInstant(), GetPoints(), initializeEnvironment(), IsPartOfStaticList(), removeAllOutlines(), SaveThingName(), and setInstant().
|
private |
Definition at line 197 of file KernelManagerContour.h.
Referenced by KernelManagerContour(), onRedo(), onUndo(), onUndoSaveFile(), and saveState().
|
private |
Definition at line 183 of file KernelManagerContour.h.
Referenced by getImageAtInstant(), getVectImages(), initializeEnvironment(), and setVectImages().
|
private |
Definition at line 184 of file KernelManagerContour.h.
Referenced by GetSpacing(), and setVectImages().