Most functions of the SAMSON SDK that have an action on the data graph's state are undoable. When it is the case, the function documentation has a special mention: This function is undoable
- Example
camera->
setName(
"New camera name");
static SBDDocumentCamera * getActiveCamera()
Returns a pointer to the active camera.
Definition: SAMSON.cpp:741
static void endHolding()
Ends holding.
Definition: SAMSON.cpp:2141
static void beginHolding(const std::string &name)
Begins holding.
Definition: SAMSON.cpp:2138
static void undo()
Undo one command.
Definition: SAMSON.cpp:2147
virtual void setName(const std::string &name)
Sets the name of the node.
Definition: SBDDataGraphNode.cpp:480
This class describes a camera.
Definition: SBDDocumentCamera.hpp:17
See the User guide: History for the user's representation of the undo and redo mechanism.
- See also
- SAMSON::isHolding()
-
SAMSON::beginHolding(const std::string&)
-
SAMSON::disableHolding()
-
SAMSON::enableHolding()
-
SAMSON::endHolding()
-
SAMSON::beginUndoCommandGroup(const std::string&)
-
SAMSON::endUndoCommandGroup()
-
SAMSON::addUndoCommand(SBCUndoCommand*)
-
SAMSON::undo()
-
SAMSON::redo()
-
SAMSON::isUndoing()
-
SAMSON::isRedoing()