creaContours_lib
|
#include <OutlineModelManager.h>
Public Member Functions | |
OutlineModelManager (SomeEnvironment< ImageSourceThing * > *imSourceEnv, SomeEnvironment< ImageSectionThing * > *imSectionEnv, SomeEnvironment< AxeThing * > *axesEnv, SomeEnvironment< ContourThing * > *contourEnv) | |
~OutlineModelManager () | |
ContourWorkspace * | createWorkSpace () |
void | setWorkSpace (ContourWorkspace *aWorkSpace) |
bool | executeCommand_OutlineModel (std::string outKName, CommandObject *theCommand, bool fromRegistration) |
bool | executeCommand (CommandObject *theCommand, bool fromRegistration=false) |
bool | executeCommandsQueue (std::deque< CommandObject * > executionQueue, bool fromRegistration=false) |
bool | setUserConcepts (std::string conceptsScript) |
bool | addUserConcept (std::string theConceptName, int conceptSize) |
std::vector< NameWrapper * > | getActualInstantOutlines () |
std::vector< ContourThing ** > | getOutlinesAtInstant (Instant *anInstant, bool ifAnnotate=true) |
std::vector< std::string > | GetLstNameThings () |
std::vector< std::string > | GetLstNameThingsStatic () |
std::vector< ContourThing * > | getOutlinesFromGroup (std::string aGroupName) |
bool | addOutlinesGroup (std::string theOutlineName, OutlineGroup *theGroup) |
ContourThing * | getOutlineByKeyName (std::string outKName) |
ImageSourceThing * | getImageSourceThingByKeyName (std::string iSeourceKName) |
ImageSectionThing * | getImageSectionThingByKeyName (std::string iSectionName) |
std::string | createOutline (manualBaseModel *model, std::vector< int > theInstantData, std::string aName="") |
bool | createAxe (std::string aDescription, Instant *theInstantData) |
bool | createImageSource (std::string aSource, Instant *theInstantData) |
bool | createImageSection (std::string aSecImageData, Instant *theInstantData) |
std::string | addOutline (ContourThing *theOutline, Instant *theInstantData) |
void | removeOutline (std::string ss) |
bool | addAxe (AxeThing *thaAxe, Instant *theInstantData) |
bool | addImageSource (ImageSourceThing *imageSource, Instant *theInstantData) |
bool | addImageSection (ImageSectionThing *imageSection, Instant *theInstantData) |
void | annotateOutlineWrap (std::string kOutlineName, std::string theRealName) |
void | annotateOutlinesWrap (std::vector< std::string > keyNames, std::vector< ContourThing ** > theOutlinesVector) |
void | annotateActualOutlineWrap (std::string actualKeyOutline, std::string theRealName) |
void | annotateActualAxeWrap (std::string actualKeyAxe, std::string theRealName) |
void | annotateActualSectionImageWrap (std::string actualKeyImage, std::string theRealName) |
void | annotateActualSourceImageWrap (std::string actualKeyImage, std::string theRealName) |
void | setInstant (Instant *newActualInstantData) |
AxeThing * | getAxeByKeyName (std::string axeKName) |
std::vector< Instant * > | getOutlineInstantsByName (std::string thekName) |
std::vector< Instant * > | getOutlineInstants () |
bool | includeOutlineInstant (std::string outKName, Instant *anInstantData) |
bool | includeAxeInstant (std::string axeKName, Instant *anInstantData) |
bool | includeImageSectionInstant (std::string imaKName, Instant *anInstantData) |
bool | includeImageSourceInstant (std::string imaKName, Instant *anInstantData) |
void | getConceptsInformation (std::vector< std::string > &conceptNameVect, std::vector< int > &conceptSizeVect) |
ContourWorkspace * | getContourWorkspace () |
int | getGroupsCount () |
void | clean () |
void | removeAllOutlines () |
std::string | createCopyContourOf (std::string anExistingKName, std::vector< int > &instantNoTouchData) |
void | SaveThingName (FILE *pFile, FILE *pFileData, std::string nameThing) |
void | ChangeContourOfList (std::string keyName, Instant *instant) |
int | IsPartOfStaticList (std::string ss) |
Instant * | getInstant () |
Private Member Functions | |
void | updateToActualInstant () |
bool | setAutomaticConcepts () |
Private Attributes | |
std::string | actualGruopID |
SomeEnvironment< AxeThing * > * | axesEnvironment |
SomeEnvironment < ImageSectionThing * > * | imagesSectionEnvironment |
SomeEnvironment < ImageSourceThing * > * | imageSourceEnvironment |
SomeEnvironment< ContourThing * > * | outlinesEnvironment |
std::map< std::string, OutlineGroup * > | outlineGroups |
ContourWorkspace * | workSpace |
InstantMembersNameList * | actualInstantWrapping |
bool | changeSourceImage |
int | counterIdKey |
PrefixMaxKeyGenerator | keyGenerator |
std::string | axeConcept |
std::string | axeDepthConcept |
Instant * | actualInstant |
std::vector< ContourThing ** > | staticContourLst |
Definition at line 60 of file OutlineModelManager.h.
OutlineModelManager::OutlineModelManager | ( | SomeEnvironment< ImageSourceThing * > * | imSourceEnv, |
SomeEnvironment< ImageSectionThing * > * | imSectionEnv, | ||
SomeEnvironment< AxeThing * > * | axesEnv, | ||
SomeEnvironment< ContourThing * > * | contourEnv | ||
) |
Definition at line 43 of file OutlineModelManager.cxx.
References actualInstant, actualInstantWrapping, PrefixMaxKeyGenerator::addKeyThing(), axesEnvironment, changeSourceImage, counterIdKey, imageSourceEnvironment, imagesSectionEnvironment, keyGenerator, outlinesEnvironment, and workSpace.
OutlineModelManager::~OutlineModelManager | ( | ) |
Definition at line 68 of file OutlineModelManager.cxx.
References actualInstant, actualInstantWrapping, clean(), and workSpace.
bool OutlineModelManager::addAxe | ( | AxeThing * | thaAxe, |
Instant * | theInstantData | ||
) |
Definition at line 489 of file OutlineModelManager.cxx.
References axesEnvironment, PrefixMaxKeyGenerator::generateKeyOf(), and keyGenerator.
Referenced by createAxe().
bool OutlineModelManager::addImageSection | ( | ImageSectionThing * | imageSection, |
Instant * | theInstantData | ||
) |
Definition at line 517 of file OutlineModelManager.cxx.
References PrefixMaxKeyGenerator::generateKeyOf(), imagesSectionEnvironment, and keyGenerator.
bool OutlineModelManager::addImageSource | ( | ImageSourceThing * | imageSource, |
Instant * | theInstantData | ||
) |
Definition at line 503 of file OutlineModelManager.cxx.
References PrefixMaxKeyGenerator::generateKeyOf(), imageSourceEnvironment, and keyGenerator.
std::string OutlineModelManager::addOutline | ( | ContourThing * | theOutline, |
Instant * | theInstantData | ||
) |
Definition at line 418 of file OutlineModelManager.cxx.
References counterIdKey, PrefixMaxKeyGenerator::generateKeyOf(), ContourThing::getName(), keyGenerator, outlinesEnvironment, and ContourThing::setName().
Referenced by createOutline().
bool OutlineModelManager::addOutlinesGroup | ( | std::string | theOutlineName, |
OutlineGroup * | theGroup | ||
) |
Adds to storing at (outlineGroups) an outline group given its name and the group
theOutlineName | The name of the group containing the outlines names to add |
theGroup | The outlines group to add |
Gets the outlines at a specific form the outline's environment
aGroupName | The name of the group containing the outlines names to get |
Definition at line 321 of file OutlineModelManager.cxx.
References outlineGroups.
bool OutlineModelManager::addUserConcept | ( | std::string | theConceptName, |
int | conceptSize | ||
) |
Definition at line 202 of file OutlineModelManager.cxx.
References axesEnvironment, imageSourceEnvironment, imagesSectionEnvironment, and outlinesEnvironment.
Referenced by setUserConcepts().
void OutlineModelManager::annotateActualAxeWrap | ( | std::string | actualKeyAxe, |
std::string | theRealName | ||
) |
Definition at line 565 of file OutlineModelManager.cxx.
References actualInstantWrapping.
void OutlineModelManager::annotateActualOutlineWrap | ( | std::string | actualKeyOutline, |
std::string | theRealName | ||
) |
Definition at line 555 of file OutlineModelManager.cxx.
References actualInstantWrapping.
void OutlineModelManager::annotateActualSectionImageWrap | ( | std::string | actualKeyImage, |
std::string | theRealName | ||
) |
void OutlineModelManager::annotateActualSourceImageWrap | ( | std::string | actualKeyImage, |
std::string | theRealName | ||
) |
void OutlineModelManager::annotateOutlinesWrap | ( | std::vector< std::string > | keyNames, |
std::vector< ContourThing ** > | theOutlinesVector | ||
) |
Definition at line 540 of file OutlineModelManager.cxx.
References actualInstantWrapping, InstantMembersNameList::clean(), and ContourThing::getName().
Referenced by getOutlinesAtInstant().
void OutlineModelManager::annotateOutlineWrap | ( | std::string | kOutlineName, |
std::string | theRealName | ||
) |
Definition at line 530 of file OutlineModelManager.cxx.
References actualInstantWrapping.
void OutlineModelManager::ChangeContourOfList | ( | std::string | keyName, |
Instant * | instant | ||
) |
Definition at line 223 of file OutlineModelManager.cxx.
References IsPartOfStaticList(), outlinesEnvironment, and staticContourLst.
Referenced by KernelManagerContour::changeContourOfManager().
void OutlineModelManager::clean | ( | ) |
Definition at line 709 of file OutlineModelManager.cxx.
References actualInstantWrapping, InstantMembersNameList::clean(), PrefixMaxKeyGenerator::clear(), keyGenerator, and outlineGroups.
Referenced by ~OutlineModelManager().
bool OutlineModelManager::createAxe | ( | std::string | aDescription, |
Instant * | theInstantData | ||
) |
Definition at line 379 of file OutlineModelManager.cxx.
References addAxe(), and AxeThing::setDescription().
std::string OutlineModelManager::createCopyContourOf | ( | std::string | anExistingKName, |
std::vector< int > & | instantNoTouchData | ||
) |
Definition at line 790 of file OutlineModelManager.cxx.
References createOutline(), ContourThing::getModel(), and getOutlineByKeyName().
Referenced by KernelManagerContour::createCopyContourOf().
bool OutlineModelManager::createImageSection | ( | std::string | aSecImageData, |
Instant * | theInstantData | ||
) |
Definition at line 405 of file OutlineModelManager.cxx.
bool OutlineModelManager::createImageSource | ( | std::string | aSource, |
Instant * | theInstantData | ||
) |
Definition at line 392 of file OutlineModelManager.cxx.
std::string OutlineModelManager::createOutline | ( | manualBaseModel * | model, |
std::vector< int > | theInstantData, | ||
std::string | aName = "" |
||
) |
Definition at line 366 of file OutlineModelManager.cxx.
References addOutline(), and ContourThing::setName().
Referenced by createCopyContourOf(), KernelManagerContour::createOutline(), and KernelManagerContour::GetPoints().
ContourWorkspace * OutlineModelManager::createWorkSpace | ( | ) |
Definition at line 85 of file OutlineModelManager.cxx.
References workSpace.
bool OutlineModelManager::executeCommand | ( | CommandObject * | theCommand, |
bool | fromRegistration = false |
||
) |
Definition at line 123 of file OutlineModelManager.cxx.
Referenced by ContourWorkspace::executeCommand(), and executeCommandsQueue().
bool OutlineModelManager::executeCommand_OutlineModel | ( | std::string | outKName, |
CommandObject * | theCommand, | ||
bool | fromRegistration | ||
) |
Definition at line 107 of file OutlineModelManager.cxx.
References ContourWorkspace::callRegisterCommand(), ContourThing::executeCommand(), ContourThing::getUndoCommandOf(), outlinesEnvironment, and workSpace.
bool OutlineModelManager::executeCommandsQueue | ( | std::deque< CommandObject * > | executionQueue, |
bool | fromRegistration = false |
||
) |
Definition at line 141 of file OutlineModelManager.cxx.
References executeCommand().
Referenced by ContourWorkspace::executeCommandsQueue().
std::vector< NameWrapper * > OutlineModelManager::getActualInstantOutlines | ( | ) |
Gets the outlines at an instant form the wrapping reference
anInstant | The instant wondered to get outlines at |
ifAnnotate | Indicates if it is needed to annotate the searched outlines |
Gets the outlines at an instant form the outline's environment
anInstant | The instant wondered to get outlines at |
ifAnnotate | Indicates if it is needed to annotate the searched outlines |
Definition at line 217 of file OutlineModelManager.cxx.
References actualInstantWrapping, and InstantMembersNameList::getOutlinesNamesVector().
Referenced by KernelManagerContour::getActualInstantOutlines().
AxeThing * OutlineModelManager::getAxeByKeyName | ( | std::string | axeKName | ) |
Definition at line 611 of file OutlineModelManager.cxx.
References axesEnvironment.
void OutlineModelManager::getConceptsInformation | ( | std::vector< std::string > & | conceptNameVect, |
std::vector< int > & | conceptSizeVect | ||
) |
ContourWorkspace * OutlineModelManager::getContourWorkspace | ( | ) |
Definition at line 700 of file OutlineModelManager.cxx.
References workSpace.
int OutlineModelManager::getGroupsCount | ( | ) |
ImageSectionThing * OutlineModelManager::getImageSectionThingByKeyName | ( | std::string | iSectionName | ) |
Definition at line 355 of file OutlineModelManager.cxx.
References imagesSectionEnvironment.
ImageSourceThing * OutlineModelManager::getImageSourceThingByKeyName | ( | std::string | iSeourceKName | ) |
Definition at line 345 of file OutlineModelManager.cxx.
References imageSourceEnvironment.
Referenced by KernelManagerContour::initializeEnvironment().
Instant * OutlineModelManager::getInstant | ( | ) |
Definition at line 601 of file OutlineModelManager.cxx.
References actualInstant.
Referenced by KernelManagerContour::getCurrentInstant().
std::vector< std::string > OutlineModelManager::GetLstNameThings | ( | ) |
Gets the name of all outlines
Definition at line 279 of file OutlineModelManager.cxx.
References getOutlineInstants(), and outlinesEnvironment.
Referenced by KernelManagerContour::GetLstNameThings().
std::vector< std::string > OutlineModelManager::GetLstNameThingsStatic | ( | ) |
Definition at line 267 of file OutlineModelManager.cxx.
References staticContourLst.
Referenced by KernelManagerContour::GetLstNameThingsStatic().
ContourThing * OutlineModelManager::getOutlineByKeyName | ( | std::string | outKName | ) |
Definition at line 335 of file OutlineModelManager.cxx.
References outlinesEnvironment.
Referenced by createCopyContourOf(), KernelManagerContour::deleteCModel(), KernelManagerContour::getOutlineByKeyName(), and getOutlinesFromGroup().
std::vector< Instant * > OutlineModelManager::getOutlineInstants | ( | ) |
Definition at line 630 of file OutlineModelManager.cxx.
References outlinesEnvironment.
Referenced by GetLstNameThings().
std::vector< Instant * > OutlineModelManager::getOutlineInstantsByName | ( | std::string | thekName | ) |
Definition at line 621 of file OutlineModelManager.cxx.
References outlinesEnvironment.
std::vector< ContourThing ** > OutlineModelManager::getOutlinesAtInstant | ( | Instant * | anInstant, |
bool | ifAnnotate = true |
||
) |
Gets the outlines at an instant form the outline's environment
anInstant | The instant wondered to get outlines at |
ifAnnotate | Indicates if it is needed to annotate the searched outlines |
Definition at line 244 of file OutlineModelManager.cxx.
References annotateOutlinesWrap(), outlinesEnvironment, and staticContourLst.
Referenced by KernelManagerContour::getOutlinesAtInstant(), KernelManagerContour::getOutlinesNameAtInstant(), and updateToActualInstant().
std::vector< ContourThing * > OutlineModelManager::getOutlinesFromGroup | ( | std::string | aGroupName | ) |
Gets the outlines at a specific form the outline's environment
aGroupName | The name of the group containing the outlines names to get |
Gets the outlines at a specific form the outline's environment
aGroupName | The name of the group containing the outlines names to get |
Definition at line 300 of file OutlineModelManager.cxx.
References getOutlineByKeyName(), and outlineGroups.
bool OutlineModelManager::includeAxeInstant | ( | std::string | axeKName, |
Instant * | anInstantData | ||
) |
Definition at line 654 of file OutlineModelManager.cxx.
References axesEnvironment.
bool OutlineModelManager::includeImageSectionInstant | ( | std::string | imaKName, |
Instant * | anInstantData | ||
) |
Definition at line 665 of file OutlineModelManager.cxx.
References imagesSectionEnvironment.
bool OutlineModelManager::includeImageSourceInstant | ( | std::string | imaKName, |
Instant * | anInstantData | ||
) |
Definition at line 676 of file OutlineModelManager.cxx.
References imageSourceEnvironment.
bool OutlineModelManager::includeOutlineInstant | ( | std::string | outKName, |
Instant * | anInstantData | ||
) |
Definition at line 643 of file OutlineModelManager.cxx.
References outlinesEnvironment.
int OutlineModelManager::IsPartOfStaticList | ( | std::string | ss | ) |
Definition at line 440 of file OutlineModelManager.cxx.
References staticContourLst.
Referenced by ChangeContourOfList(), and KernelManagerContour::IsPartOfStaticList().
void OutlineModelManager::removeAllOutlines | ( | ) |
Definition at line 466 of file OutlineModelManager.cxx.
References outlinesEnvironment, removeOutline(), and staticContourLst.
Referenced by KernelManagerContour::removeAllOutlines().
void OutlineModelManager::removeOutline | ( | std::string | ss | ) |
Definition at line 460 of file OutlineModelManager.cxx.
References outlinesEnvironment.
Referenced by KernelManagerContour::deleteCModel(), and removeAllOutlines().
void OutlineModelManager::SaveThingName | ( | FILE * | pFile, |
FILE * | pFileData, | ||
std::string | nameThing | ||
) |
Definition at line 796 of file OutlineModelManager.cxx.
References ContourThing::getModel(), and outlinesEnvironment.
Referenced by KernelManagerContour::SaveThingName().
|
private |
Definition at line 767 of file OutlineModelManager.cxx.
References axeConcept, axeDepthConcept, axesEnvironment, imagesSectionEnvironment, and outlinesEnvironment.
void OutlineModelManager::setInstant | ( | Instant * | newActualInstantData | ) |
Definition at line 595 of file OutlineModelManager.cxx.
References actualInstant, and updateToActualInstant().
Referenced by KernelManagerContour::setInstant().
bool OutlineModelManager::setUserConcepts | ( | std::string | conceptsScript | ) |
Definition at line 159 of file OutlineModelManager.cxx.
References addUserConcept().
void OutlineModelManager::setWorkSpace | ( | ContourWorkspace * | aWorkSpace | ) |
Definition at line 95 of file OutlineModelManager.cxx.
References workSpace.
|
private |
Definition at line 724 of file OutlineModelManager.cxx.
References actualInstant, and getOutlinesAtInstant().
Referenced by setInstant().
|
private |
Definition at line 426 of file OutlineModelManager.h.
|
private |
Definition at line 495 of file OutlineModelManager.h.
Referenced by getInstant(), OutlineModelManager(), setInstant(), updateToActualInstant(), and ~OutlineModelManager().
|
private |
Definition at line 481 of file OutlineModelManager.h.
Referenced by annotateActualAxeWrap(), annotateActualOutlineWrap(), annotateActualSectionImageWrap(), annotateActualSourceImageWrap(), annotateOutlinesWrap(), annotateOutlineWrap(), clean(), getActualInstantOutlines(), OutlineModelManager(), and ~OutlineModelManager().
|
private |
Definition at line 492 of file OutlineModelManager.h.
Referenced by setAutomaticConcepts().
|
private |
Definition at line 493 of file OutlineModelManager.h.
Referenced by setAutomaticConcepts().
|
private |
Definition at line 436 of file OutlineModelManager.h.
Referenced by addAxe(), addUserConcept(), getAxeByKeyName(), includeAxeInstant(), OutlineModelManager(), and setAutomaticConcepts().
|
private |
Definition at line 486 of file OutlineModelManager.h.
Referenced by OutlineModelManager().
|
private |
Definition at line 488 of file OutlineModelManager.h.
Referenced by addOutline(), and OutlineModelManager().
|
private |
Definition at line 456 of file OutlineModelManager.h.
Referenced by addImageSource(), addUserConcept(), getImageSourceThingByKeyName(), includeImageSourceInstant(), and OutlineModelManager().
|
private |
Definition at line 446 of file OutlineModelManager.h.
Referenced by addImageSection(), addUserConcept(), getImageSectionThingByKeyName(), includeImageSectionInstant(), OutlineModelManager(), and setAutomaticConcepts().
|
private |
Definition at line 489 of file OutlineModelManager.h.
Referenced by addAxe(), addImageSection(), addImageSource(), addOutline(), clean(), and OutlineModelManager().
|
private |
Definition at line 471 of file OutlineModelManager.h.
Referenced by addOutlinesGroup(), clean(), and getOutlinesFromGroup().
|
private |
Definition at line 466 of file OutlineModelManager.h.
Referenced by addOutline(), addUserConcept(), ChangeContourOfList(), executeCommand_OutlineModel(), getConceptsInformation(), GetLstNameThings(), getOutlineByKeyName(), getOutlineInstants(), getOutlineInstantsByName(), getOutlinesAtInstant(), includeOutlineInstant(), OutlineModelManager(), removeAllOutlines(), removeOutline(), SaveThingName(), and setAutomaticConcepts().
|
private |
Definition at line 498 of file OutlineModelManager.h.
Referenced by ChangeContourOfList(), GetLstNameThingsStatic(), getOutlinesAtInstant(), IsPartOfStaticList(), and removeAllOutlines().
|
private |
Definition at line 476 of file OutlineModelManager.h.
Referenced by createWorkSpace(), executeCommand_OutlineModel(), getContourWorkspace(), OutlineModelManager(), setWorkSpace(), and ~OutlineModelManager().