#include <ContourWorkspace.h>
Public Member Functions | |
ContourWorkspace (OutlineModelManager *parent) | |
~ContourWorkspace () | |
virtual bool | executeCommand (CommandObject *theCommand, bool fromRegistration=false) |
virtual bool | executeCommandsQueue (std::deque< CommandObject * > &executionQueue, bool fromRegistration) |
void | spreadInDepth () |
void | setWorkingGroup (int theWorkingGroupKey, OutlineGroup *theGroup) |
int | getWorkingGroupKey () |
void | callOutline_Union_Of (std::vector< std::string > outlinesNamesToCall) |
void | callOutline_Intersection_Of (std::vector< std::string > outlinesNamesToCall) |
void | callOutline_Combination_Of (std::vector< std::string > outlinesNamesToCall) |
void | callOutline_Fragmentation_Of (std::vector< std::string > outlinesNamesToCall) |
void | callOutline_Agrupation_Of (std::vector< std::string > outlinesNamesToCall) |
bool | callREDO () |
bool | callUNDO () |
void | callRegisterCommand (CommandObject *doCommand, CommandObject *unDoCommand) |
CommandsHandler * | getCommandHandler () |
void | setCommandHandler (CommandsHandler *aCommHandler) |
Private Attributes | |
std::vector< std::string > | selectedOutlineskNames |
std::string | actualOutlinekName |
int | workingGroupKey |
OutlineModelManager * | theModelBoss |
CommandsHandler * | commHandler |
OutlineGroup * | actualGroup |
Definition at line 21 of file ContourWorkspace.h.
ContourWorkspace::ContourWorkspace | ( | OutlineModelManager * | parent | ) |
Definition at line 21 of file ContourWorkspace.cxx.
References commHandler, CommandsHandler::setModelBoss(), and theModelBoss.
00022 { 00023 theModelBoss = parent; 00024 commHandler = new CommandsHandler(); 00025 commHandler->setModelBoss(this); 00026 }
ContourWorkspace::~ContourWorkspace | ( | ) |
void ContourWorkspace::callOutline_Agrupation_Of | ( | std::vector< std::string > | outlinesNamesToCall | ) |
void ContourWorkspace::callOutline_Combination_Of | ( | std::vector< std::string > | outlinesNamesToCall | ) |
void ContourWorkspace::callOutline_Fragmentation_Of | ( | std::vector< std::string > | outlinesNamesToCall | ) |
void ContourWorkspace::callOutline_Intersection_Of | ( | std::vector< std::string > | outlinesNamesToCall | ) |
void ContourWorkspace::callOutline_Union_Of | ( | std::vector< std::string > | outlinesNamesToCall | ) |
bool ContourWorkspace::callREDO | ( | ) |
Definition at line 150 of file ContourWorkspace.cxx.
References commHandler, and CommandsHandler::redo().
00151 { 00152 return commHandler->redo(); 00153 }
void ContourWorkspace::callRegisterCommand | ( | CommandObject * | doCommand, | |
CommandObject * | unDoCommand | |||
) |
Definition at line 170 of file ContourWorkspace.cxx.
References commHandler, and CommandsHandler::registerCommand().
Referenced by OutlineModelManager::executeCommand_OutlineModel().
00171 { 00172 commHandler->registerCommand( doCommand, unDoCommand ); 00173 }
bool ContourWorkspace::callUNDO | ( | ) |
Definition at line 159 of file ContourWorkspace.cxx.
References commHandler, and CommandsHandler::undo().
00160 { 00161 return commHandler->undo(); 00162 }
bool ContourWorkspace::executeCommand | ( | CommandObject * | theCommand, | |
bool | fromRegistration = false | |||
) | [virtual] |
Implements ICommandsUser.
Definition at line 45 of file ContourWorkspace.cxx.
References OutlineModelManager::executeCommand(), and theModelBoss.
00046 { 00047 return theModelBoss->executeCommand(theCommand, fromRegistration); 00048 }
bool ContourWorkspace::executeCommandsQueue | ( | std::deque< CommandObject * > & | executionQueue, | |
bool | fromRegistration | |||
) | [virtual] |
Implements ICommandsUser.
Definition at line 55 of file ContourWorkspace.cxx.
References OutlineModelManager::executeCommandsQueue(), and theModelBoss.
00056 { 00057 return theModelBoss->executeCommandsQueue(executionQueue, fromRegistration); 00058 }
CommandsHandler * ContourWorkspace::getCommandHandler | ( | ) |
Definition at line 178 of file ContourWorkspace.cxx.
References commHandler.
00179 { 00180 return commHandler; 00181 }
int ContourWorkspace::getWorkingGroupKey | ( | ) |
Definition at line 94 of file ContourWorkspace.cxx.
References workingGroupKey.
00095 { 00096 return workingGroupKey; 00097 }
void ContourWorkspace::setCommandHandler | ( | CommandsHandler * | aCommHandler | ) |
Definition at line 183 of file ContourWorkspace.cxx.
References commHandler.
00184 { 00185 commHandler = aCommHandler; 00186 }
void ContourWorkspace::setWorkingGroup | ( | int | theWorkingGroupKey, | |
OutlineGroup * | theGroup | |||
) |
Definition at line 84 of file ContourWorkspace.cxx.
References actualGroup, and workingGroupKey.
00085 { 00086 workingGroupKey = theWorkingGroupKey; 00087 actualGroup = theGroup; 00088 }
void ContourWorkspace::spreadInDepth | ( | ) |
Method that propagates an outline over the deep concept of the axe
Definition at line 63 of file ContourWorkspace.cxx.
00064 { 00065 //Getting the vector of the actual instant 00066 00067 //Getting the basic object name and patter to create the spreaded outlines 00068 00069 //Variating (i) the depth in the current axe, previously getting the axe size as maxmimum value conditioned by the imageSource deep in the axe direction 00070 00071 //Calling the creation of the section or plane and including it in the correspondig enviroment using the outlineManager for that 00072 00073 //Creating the (i-th) outline and including it in the correspondig enviroment using the outlineManager for that 00074 00075 //Including the (i-th) outline in a new propagation group calling the outlineManager 00076 00077 }
OutlineGroup* ContourWorkspace::actualGroup [private] |
std::string ContourWorkspace::actualOutlinekName [private] |
Definition at line 148 of file ContourWorkspace.h.
CommandsHandler* ContourWorkspace::commHandler [private] |
Definition at line 154 of file ContourWorkspace.h.
Referenced by callREDO(), callRegisterCommand(), callUNDO(), ContourWorkspace(), getCommandHandler(), and setCommandHandler().
std::vector<std::string> ContourWorkspace::selectedOutlineskNames [private] |
Definition at line 146 of file ContourWorkspace.h.
Definition at line 152 of file ContourWorkspace.h.
Referenced by ContourWorkspace(), executeCommand(), and executeCommandsQueue().
int ContourWorkspace::workingGroupKey [private] |
Definition at line 150 of file ContourWorkspace.h.
Referenced by getWorkingGroupKey(), and setWorkingGroup().