General information:Author: klaas Version: 1.0 Date: Thu Oct 21 9:44:19 MET 1999 |
Header files:
|
Code files:
|
commands are normally based to CommandHandler by ASCII strings, the command string is stored as Command in the commandhistory. If needed information is added to be able to undo the command. If possible the command undo is based on the eventstamp, given to the command when it was executed. E.g for a copy of primitives, the eventstamp is used to to find the elements that resulted from the copy. Those elements will have the same eventstamp as the command. Those elements will be removed to undo the command.
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: NONE |
Declaration:
Command()
Description:
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: NONE |
Declaration:
~Command()
Description:
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: char* |
Declaration:
char* Get_Keyword()
Description:
get the keyword of the command string
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: void |
Declaration:
void Set_Keyword(char* a_keyword)
Description:
set the keyword of the command string
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: char* |
Declaration:
char* Get_Command()
Description:
get the command string
scope: public | purpose: normal | inline?: no | function property: standard | type: basic | typename: G_BOOL |
Declaration:
G_BOOL Set_Command(char* Format,...)
Description:
set the command string
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: G_BOOL |
Declaration:
G_BOOL Get_Undo()
Description:
is undo possible
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: void |
Declaration:
void Set_Undo(G_BOOL possible)
Description:
set if undo possible
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: ElementList* |
Declaration:
ElementList* Get_ElementList()
Description:
get elements list for undo using it
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: void |
Declaration:
void Set_ElementList(ElementList* a_elementlist)
Description:
set elements list for undo using it
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: Element* |
Declaration:
Element* Get_Element()
Description:
get element for undo using it
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: void |
Declaration:
void Set_Element(Element* a_element)
Description:
set element for undo using it
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: Structure* |
Declaration:
Structure* Get_Structure()
Description:
get structure for undo using it
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: void |
Declaration:
void Set_Structure(Structure* a_structure)
Description:
set structure for undo using it
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: long |
Declaration:
long Get_Long()
Description:
get long number for undo
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: void |
Declaration:
void Set_Long(long a_long)
Description:
set long number for undo
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: void |
Declaration:
void Set_Tool(ToolSet a_tool)
Description:
get tool for undo using it
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: ToolSet |
Declaration:
ToolSet Get_Tool()
Description:
set tool for undo using it
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: long |
Declaration:
long Get_EventStamp()
Description:
get eventstamp for undo using it
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: void |
Declaration:
void Set_EventStamp(long a_long)
Description:
set eventstamp for undo using it
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: Matrix<double>* |
Declaration:
Matrix<double>* Get_Matrix()
Description:
get matrix for undo using it
scope: public | purpose: normal | inline?: yes | function property: standard | type: basic | typename: void |
Declaration:
void Set_Matrix(Matrix<double>* _undo_trans_matrix)
Description:
set matrix for undo using it
scope: private | type: basic | typename: G_BOOL |
Declaration:
G_BOOL _undo
Description:
command maintains undo information
scope: private | type: basic | typename: char* |
Declaration:
char* _commandstring
Description:
the complete command string
scope: private | type: basic | typename: char* |
Declaration:
char* _keyword
Description:
only the keyword of the command
scope: private | type: basic | typename: long |
Declaration:
long _eventstamp
Description:
eventstamp of this command
scope: private | type: basic | typename: ToolSet |
Declaration:
ToolSet _tool
Description:
tool in use