creaContours_lib
ContourWorkspace Class Reference

#include <ContourWorkspace.h>

Inheritance diagram for ContourWorkspace:
Collaboration diagram for ContourWorkspace:

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)
 
CommandsHandlergetCommandHandler ()
 
void setCommandHandler (CommandsHandler *aCommHandler)
 

Private Attributes

std::vector< std::string > selectedOutlineskNames
 
std::string actualOutlinekName
 
int workingGroupKey
 
OutlineModelManagertheModelBoss
 
CommandsHandlercommHandler
 
OutlineGroupactualGroup
 

Detailed Description

Definition at line 46 of file ContourWorkspace.h.

Constructor & Destructor Documentation

ContourWorkspace::ContourWorkspace ( OutlineModelManager parent)

Definition at line 46 of file ContourWorkspace.cxx.

References commHandler, CommandsHandler::setModelBoss(), and theModelBoss.

47  {
48  theModelBoss = parent;
51  }

Here is the call graph for this function:

ContourWorkspace::~ContourWorkspace ( )

Definition at line 56 of file ContourWorkspace.cxx.

57  {
58 
59  }

Member Function Documentation

void ContourWorkspace::callOutline_Agrupation_Of ( std::vector< std::string >  outlinesNamesToCall)

Definition at line 166 of file ContourWorkspace.cxx.

167  {
168 
169  }
void ContourWorkspace::callOutline_Combination_Of ( std::vector< std::string >  outlinesNamesToCall)

Definition at line 147 of file ContourWorkspace.cxx.

148  {
149 
150  }
void ContourWorkspace::callOutline_Fragmentation_Of ( std::vector< std::string >  outlinesNamesToCall)

Definition at line 157 of file ContourWorkspace.cxx.

158  {
159 
160  }
void ContourWorkspace::callOutline_Intersection_Of ( std::vector< std::string >  outlinesNamesToCall)

Definition at line 137 of file ContourWorkspace.cxx.

138  {
139 
140  }
void ContourWorkspace::callOutline_Union_Of ( std::vector< std::string >  outlinesNamesToCall)

Definition at line 128 of file ContourWorkspace.cxx.

129  {
130 
131  }
bool ContourWorkspace::callREDO ( )

Definition at line 175 of file ContourWorkspace.cxx.

References commHandler, and CommandsHandler::redo().

176  {
177  return commHandler->redo();
178  }

Here is the call graph for this function:

void ContourWorkspace::callRegisterCommand ( CommandObject doCommand,
CommandObject unDoCommand 
)

Definition at line 195 of file ContourWorkspace.cxx.

References commHandler, and CommandsHandler::registerCommand().

Referenced by OutlineModelManager::executeCommand_OutlineModel().

196  {
197  commHandler->registerCommand( doCommand, unDoCommand );
198  }

Here is the call graph for this function:

Here is the caller graph for this function:

bool ContourWorkspace::callUNDO ( )

Definition at line 184 of file ContourWorkspace.cxx.

References commHandler, and CommandsHandler::undo().

185  {
186  return commHandler->undo();
187  }

Here is the call graph for this function:

bool ContourWorkspace::executeCommand ( CommandObject theCommand,
bool  fromRegistration = false 
)
virtual

Implements ICommandsUser.

Definition at line 70 of file ContourWorkspace.cxx.

References OutlineModelManager::executeCommand(), and theModelBoss.

71  {
72  return theModelBoss->executeCommand(theCommand, fromRegistration);
73  }

Here is the call graph for this function:

bool ContourWorkspace::executeCommandsQueue ( std::deque< CommandObject * > &  executionQueue,
bool  fromRegistration 
)
virtual

Implements ICommandsUser.

Definition at line 80 of file ContourWorkspace.cxx.

References OutlineModelManager::executeCommandsQueue(), and theModelBoss.

81  {
82  return theModelBoss->executeCommandsQueue(executionQueue, fromRegistration);
83  }

Here is the call graph for this function:

CommandsHandler * ContourWorkspace::getCommandHandler ( )

Definition at line 203 of file ContourWorkspace.cxx.

References commHandler.

204  {
205  return commHandler;
206  }
int ContourWorkspace::getWorkingGroupKey ( )

Definition at line 119 of file ContourWorkspace.cxx.

References workingGroupKey.

120  {
121  return workingGroupKey;
122  }
void ContourWorkspace::setCommandHandler ( CommandsHandler aCommHandler)

Definition at line 208 of file ContourWorkspace.cxx.

References commHandler.

209  {
210  commHandler = aCommHandler;
211  }
void ContourWorkspace::setWorkingGroup ( int  theWorkingGroupKey,
OutlineGroup theGroup 
)

Definition at line 109 of file ContourWorkspace.cxx.

References actualGroup, and workingGroupKey.

110  {
111  workingGroupKey = theWorkingGroupKey;
112  actualGroup = theGroup;
113  }
void ContourWorkspace::spreadInDepth ( )

Method that propagates an outline over the deep concept of the axe

Definition at line 88 of file ContourWorkspace.cxx.

89  {
90  //Getting the vector of the actual instant
91 
92  //Getting the basic object name and patter to create the spreaded outlines
93 
94  //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
95 
96  //Calling the creation of the section or plane and including it in the correspondig enviroment using the outlineManager for that
97 
98  //Creating the (i-th) outline and including it in the correspondig enviroment using the outlineManager for that
99 
100  //Including the (i-th) outline in a new propagation group calling the outlineManager
101 
102  }

Member Data Documentation

OutlineGroup* ContourWorkspace::actualGroup
private

Definition at line 181 of file ContourWorkspace.h.

Referenced by setWorkingGroup().

std::string ContourWorkspace::actualOutlinekName
private

Definition at line 173 of file ContourWorkspace.h.

CommandsHandler* ContourWorkspace::commHandler
private
std::vector<std::string> ContourWorkspace::selectedOutlineskNames
private

Definition at line 171 of file ContourWorkspace.h.

OutlineModelManager* ContourWorkspace::theModelBoss
private

Definition at line 177 of file ContourWorkspace.h.

Referenced by ContourWorkspace(), executeCommand(), and executeCommandsQueue().

int ContourWorkspace::workingGroupKey
private

Definition at line 175 of file ContourWorkspace.h.

Referenced by getWorkingGroupKey(), and setWorkingGroup().


The documentation for this class was generated from the following files: