if( iter->first.compare( theExistingObjectsToSelect[i] ) )
{
viewer->SelectAllPoints( true );
- viewer->SelectPosibleContour( true );
+ viewer->SelectPossibleContour( true );
selected = true;
theExistingObjectsToSelect.erase( iterIN );
}
viewer->SetSelected( true );
/*viewer->SelectAllPoints( true );
- viewer->SelectPosibleContour( true );*/
+ viewer->SelectPossibleContour( true );*/
iter++;
}
control->SetActive( true );
foundOne = control->OnMouseMove();
- foundOne &= viewer->GetPosibleSelected();
+ foundOne &= viewer->GetPossibleSelected();
if ( !foundOne && singleMoving )
{
control->SetActive( false );
// _wxVtk_BaseView->GetInteractorStyleBaseView()->RemoveInteractorStyleMaracas( control );
- control->SetPosibleToMove( false );
+ control->SetPossibleToMove( false );
}
else
{
_lastInteractionName = iter->first;
viewer->UpdateColorActor();
- control->SetPosibleToMove( true );
+ control->SetPossibleToMove( true );
// viewer->AddCompleteContourActor();
}
iter++;
{
if( _lastInteraction!=NULL && !_toIncludeAtInteractionGroup )
{
- if( _lastInteraction->getControler()->GetIfCompleteCreation() && !_lastInteraction->getControler()->IsEditable()&& !_lastInteraction->getViewer()->GetPosibleSelected() )
+ if( _lastInteraction->getControler()->GetIfCompleteCreation() && !_lastInteraction->getControler()->IsEditable()&& !_lastInteraction->getViewer()->GetPossibleSelected() )
{
_lastInteraction->getControler()->SetEditable( false );
_lastInteraction->getControler()->SetActive( false );
- _lastInteraction->getControler()->SetPosibleToMove( false );
+ _lastInteraction->getControler()->SetPossibleToMove( false );
_lastInteraction->getViewer()->Refresh();
_lastInteraction=NULL;
}
if(_lastInteraction!=NULL && !_toIncludeAtInteractionGroup)
{
manualContourBaseControler * control = _lastInteraction->getControler();
- //_lastInteraction->getControler()->SetPosibleToMove( false );
+ //_lastInteraction->getControler()->SetPossibleToMove( false );
control->SetActive( false );
control->SetEditable( false );
- control->SetPosibleToMove( false );
+ control->SetPossibleToMove( false );
// _wxVtk_BaseView->GetInteractorStyleBaseView()->RemoveInteractorStyleMaracas( control );
_lastInteraction->getViewer()->Refresh();
this->_vtkInteractorStyleBaseView->SetRefresh_waiting();
{
_lastInteraction->getControler()->SetEditable( false );
_lastInteraction->getControler()->SetActive( false );
- _lastInteraction->getControler()->SetPosibleToMove( false );
+ _lastInteraction->getControler()->SetPossibleToMove( false );
_lastInteraction->getViewer()->Refresh();
}
std::map<std::string, ContourWrap_ViewControl *>::iterator iter = _workingGroup->begin();
manualContourBaseControler * control = iter->second->getControler();
control->SetEditable( false );
control->SetActive( false );
- control->SetPosibleToMove( false );
+ control->SetPossibleToMove( false );
iter->second->getViewer()->Refresh();
iter++;
redo_actions = new CommandsRegisterStructure();
unDo_actions = new CommandsRegisterStructure();
- posibleREDO = false;
- posibleUNDO = false;
+ possibleREDO = false;
+ possibleUNDO = false;
isLastREDO_executed = true;
isLastUNDO_executed = false;
/*
* Registers in the vectors of doneActions and unDoActions the given commands that all ready corresponds each other to the inverse of the otherone.
- * If is the first registered action notifies the posibleUNDO avaliability.
+ * If is the first registered action notifies the possibleUNDO avaliability.
* @param doneAction Is the action to register in the redo_actions vector.
* @param unDoAction Is the action to register in the unDo_actions vector.
*/
redo_actions->registerCommand(doneAction);
unDo_actions->registerCommand(unDoAction);
- posibleREDO = false;
- posibleUNDO = true;
+ possibleREDO = false;
+ possibleUNDO = true;
isLastREDO_executed = true;
isLastUNDO_executed = false;
*/
bool CommandsHandler :: undo()
{
- bool executed = posibleUNDO;
- if( posibleUNDO )
+ bool executed = possibleUNDO;
+ if( possibleUNDO )
{
validateOperationsAvaliability();//para borrar!!!!!!!!-----------------------------*********************---------------------
executed = theWorksSpaceBoss->executeCommand(getActual_UNDO(), true);
*/
bool CommandsHandler :: redo()
{
- bool executed = posibleREDO;
- if( posibleREDO )
+ bool executed = possibleREDO;
+ if( possibleREDO )
{
validateOperationsAvaliability();//para borrar!!!!!!!!-----------------------------*********************---------------------
isLastREDO_executed = true;
- //isLastUNDO_executed = false; // Posible needed
+ //isLastUNDO_executed = false; // Possible needed
executed = theWorksSpaceBoss->executeCommand(getActual_REDO(), true);
if (!unDo_actions->hasActualPrevious() && !redo_actions->hasActualPrevious())
{
}
/*
- * Notitify if posibleREDO is posible or not.
- * @return Returns the state of posibleUNDO
+ * Notitify if possibleREDO is possible or not.
+ * @return Returns the state of possibleUNDO
*/
- bool CommandsHandler :: isPosibleUNDO()
+ bool CommandsHandler :: isPossibleUNDO()
{
- return posibleUNDO;
+ return possibleUNDO;
}
/*
- * Indicates if posibleUNDO is posible or not.
- * @return Returns the state of posibleREDO
+ * Indicates if possibleUNDO is possible or not.
+ * @return Returns the state of possibleREDO
*/
- bool CommandsHandler :: isPosibleREDO()
+ bool CommandsHandler :: isPossibleREDO()
{
- return posibleREDO;
+ return possibleREDO;
}
/*
- * Sets posibleREDO state.
- * @param UNDOstate The state of posibleUNDO to set
+ * Sets possibleREDO state.
+ * @param UNDOstate The state of possibleUNDO to set
*/
- void CommandsHandler :: setPosibleUNDO( bool UNDOstate )
+ void CommandsHandler :: setPossibleUNDO( bool UNDOstate )
{
- posibleUNDO = UNDOstate;
+ possibleUNDO = UNDOstate;
}
/*
- * Sets posibleUNDO state.
- * @param REDOstate The state of posibleREDO to set
+ * Sets possibleUNDO state.
+ * @param REDOstate The state of possibleREDO to set
*/
- void CommandsHandler :: setPosibleREDO( bool REDOstate )
+ void CommandsHandler :: setPossibleREDO( bool REDOstate )
{
- posibleREDO = REDOstate;
+ possibleREDO = REDOstate;
}
/*
}
/*
- * Validates if it is posible of not to do UNDO and/or REDO and sets the corresponding values
+ * Validates if it is possible of not to do UNDO and/or REDO and sets the corresponding values
*/
void CommandsHandler :: validateOperationsAvaliability()
{
- posibleREDO = (redo_actions->hasActualNext() && unDo_actions->hasActualNext() )? true :
+ possibleREDO = (redo_actions->hasActualNext() && unDo_actions->hasActualNext() )? true :
( (!redo_actions->hasActualNext()&& unDo_actions->hasActualNext() ) ? true :
( !unDo_actions->hasActualNext() && !redo_actions->hasActualNext() )? false : true && !isLastREDO_executed );
- posibleUNDO = (redo_actions->hasActualPrevious() && unDo_actions->hasActualPrevious() )? true :
+ possibleUNDO = (redo_actions->hasActualPrevious() && unDo_actions->hasActualPrevious() )? true :
( (!unDo_actions->hasActualPrevious()&& redo_actions->hasActualPrevious() ) ? true :
( !unDo_actions->hasActualPrevious() && !redo_actions->hasActualPrevious() )? false : true && !isLastUNDO_executed );
/*
* Registers in the vectors of doneActions and unDoActions the given commands that all ready corresponds each other to the inverse of the otherone.
- * If is the first registered action notifies the posibleUNDO avaliability.
+ * If is the first registered action notifies the possibleUNDO avaliability.
* @param doneAction Is the action to register in the redo_actions vector.
* @param unDoAction Is the action to register in the unDo_actions vector.
*/
bool redo();
/*
- * Notitify if posibleREDO is posible or not.
- * @return Returns the state of posibleUNDO
+ * Notitify if possibleREDO is possible or not.
+ * @return Returns the state of possibleUNDO
*/
- bool isPosibleUNDO();
+ bool isPossibleUNDO();
/*
- * Indicates if posibleUNDO is posible or not.
- * @return Returns the state of posibleREDO
+ * Indicates if possibleUNDO is possible or not.
+ * @return Returns the state of possibleREDO
*/
- bool isPosibleREDO();
+ bool isPossibleREDO();
/*
- * Sets posibleREDO state.
- * @param UNDOstate The state of posibleUNDO to set
+ * Sets possibleREDO state.
+ * @param UNDOstate The state of possibleUNDO to set
*/
- void setPosibleUNDO(bool UNDOstate);
+ void setPossibleUNDO(bool UNDOstate);
/*
- * Sets posibleUNDO state.
- * @param REDOstate The state of posibleREDO to set
+ * Sets possibleUNDO state.
+ * @param REDOstate The state of possibleREDO to set
*/
- void setPosibleREDO(bool REDOstate);
+ void setPossibleREDO(bool REDOstate);
/*
* Clear the registered actions in the DO and UNDO vectors.
/*
- * Validates if it is posible of not to do UNDO and/or REDO and sets the corresponding values
+ * Validates if it is possible of not to do UNDO and/or REDO and sets the corresponding values
*/
void validateOperationsAvaliability();
CommandsRegisterStructure * unDo_actions;
- bool posibleUNDO;
+ bool possibleUNDO;
- bool posibleREDO;
+ bool possibleREDO;
ICommandsUser * theWorksSpaceBoss;
}
/*
- * Executes the given command if posible and returns is posible or not
+ * Executes the given command if possible and returns is possible or not
* @param theSpecificCommand Is the specific command to execute
* @return Returns if the command was successfuly executed
*/
void setModel(manualBaseModel * model);
/*
- * Executes the given command if posible and returns is posible or not
+ * Executes the given command if possible and returns is possible or not
* @param theSpecificCommand Is the specific command to execute
* @return Returns if the command was successfuly executed
*/
/*
* Calls the registration of the given commands (do, undo) in the commands handler
- * If is the first registered command notifies the posibleUNDO avaliability.
+ * If is the first registered command notifies the possibleUNDO avaliability.
* @param doCommand Is the command to register in the redo_commands vector.
* @param unDoCommand Is the command to register in the unDo_commands vector.
*/
/*
* Calls the registration of the given commands (do, undo) in the commands handler
- * If is the first registered command notifies the posibleUNDO avaliability.
+ * If is the first registered command notifies the possibleUNDO avaliability.
* @param doCommand Is the command to register in the redo_commands vector.
* @param unDoCommand Is the command to register in the unDo_commands vector.
*/
/*
* Add a concept to all the environments
* @param theConceptName Is the name of the new concept
- * @param conceptSize Is the size of the concept, that represent the ammount of concept posible instances
+ * @param conceptSize Is the size of the concept, that represent the ammount of concept possible instances
* @return Returns true if successful insert of concept, false otherwise
*/
bool OutlineModelManager :: addUserConcept(std::string theConceptName, int conceptSize)
/*
* Add a concept to all the environments
* @param theConceptName Is the name of the new concept
- * @param conceptSize Is the size of the concept, that represent the ammount of concept posible instances
+ * @param conceptSize Is the size of the concept, that represent the ammount of concept possible instances
* @return Returns true if successful insert of concept, false otherwise
*/
bool addUserConcept( std::string theConceptName, int conceptSize );
}
/*
- * Updates the maximum value of a key thing if necesary (posibleMax>theMaxOfKeyThing). If the key thing doesn't exist nothing is done.
+ * Updates the maximum value of a key thing if necesary (possibleMax>theMaxOfKeyThing). If the key thing doesn't exist nothing is done.
* @param theName Is the name of the keyThing to update.
- * @param posibleMax Is the number that corresponds to a posible max value of the keyThing to update.
+ * @param possibleMax Is the number that corresponds to a possible max value of the keyThing to update.
*/
- void PrefixMaxKeyGenerator :: updateMaxTo( std::string theName, int posibleMax )
+ void PrefixMaxKeyGenerator :: updateMaxTo( std::string theName, int possibleMax )
{
std::map<std::string, KeyThing >::iterator iterP = keyThings.find(theName);
if ( iterP != keyThings.end() )
{
int max = (iterP->second).getValue();
- if ( max < posibleMax )
- (iterP->second).setValue(posibleMax);
+ if ( max < possibleMax )
+ (iterP->second).setValue(possibleMax);
}
}
/*
* Generates a (std::string) key for a given keyThing and updates the max value of it if necesary. If the key thing doesn't exist nothing is done.
* @param theName Is the name of the keyThing to search.
- * @param posibleMax Is the number that corresponds to a posible max value of the keyThing to update.
+ * @param possibleMax Is the number that corresponds to a possible max value of the keyThing to update.
* @param theInputString Is string to load the generated key formed like <prefixOfTheKeyThing> <maxOfTheKeyThing>
* @return Returns true if the key was generated successfully. (If theName is an existent keyThing)
*/
- bool PrefixMaxKeyGenerator :: generateKeyOf( std::string theName, int posibleMax, std::string &theInputString )
+ bool PrefixMaxKeyGenerator :: generateKeyOf( std::string theName, int possibleMax, std::string &theInputString )
{
theInputString = "";
std::map<std::string, KeyThing >::iterator iterP = keyThings.find(theName);
KeyThing kthing = (iterP->second);
int max = kthing.getValue();
- if ( max < posibleMax )
+ if ( max < possibleMax )
{
- kthing.setValue(posibleMax);
+ kthing.setValue(possibleMax);
}
bool existsKeyThing( std::string theName );
/*
- * Updates the maximum value of a key thing if necesary (posibleMax>theMaxOfKeyThing). If the key thing doesn't exist nothing is done.
+ * Updates the maximum value of a key thing if necesary (possibleMax>theMaxOfKeyThing). If the key thing doesn't exist nothing is done.
* @param theName Is the name of the keyThing to update.
- * @param posibleMax Is the number that corresponds to a posible max value of the keyThing to update.
+ * @param possibleMax Is the number that corresponds to a possible max value of the keyThing to update.
*/
- void updateMaxTo( std::string theName, int posibleMax );
+ void updateMaxTo( std::string theName, int possibleMax );
/*
* Generates a (std::string) key for a given keyThing. If the key thing doesn't exist nothing is done and returns false.
/*
* Generates a (std::string) key for a given keyThing and updates the max value of it if necesary. If the key thing doesn't exist nothing is done.
* @param theName Is the name of the keyThing to search.
- * @param posibleMax Is the number that corresponds to a posible max value of the keyThing to update.
+ * @param possibleMax Is the number that corresponds to a possible max value of the keyThing to update.
* @param theInputString Is string to load the generated key formed like <prefixOfTheKeyThing> <maxOfTheKeyThing>
* @return Returns true if the key was generated successfully. (If theName is an existent keyThing)
*/
- bool generateKeyOf( std::string theName, int posibleMax, std::string &theInputString );
+ bool generateKeyOf( std::string theName, int possibleMax, std::string &theInputString );
/*
* Gets the prefix of a specific keyThing identified with the name in the parameter, if the key thing doesn't exists return false.