ToolTarget (interface)

バージョン 2.0.1 で追加.

ToolTarget declares the methods to implement any tool target. The targets can be objects of the scene, or anything else, such as canvas nodes. The tool owns a target that references the objects to edit so that the same tool can manipulate any objects.

The target manages commands so the manipulated objects parameters can be store into a undo-redo stack.

ToolTarget ToolTarget ToolTarget BaseToolTarget BaseToolTarget BaseToolTarget->ToolTarget BasePaintTarget BasePaintTarget BasePaintTarget->BaseToolTarget BaseSRTTarget BaseSRTTarget BaseSRTTarget->BaseToolTarget DFGSRTTarget DFGSRTTarget DFGSRTTarget->BaseSRTTarget BaseSliderTarget BaseSliderTarget BaseSliderTarget->BaseToolTarget DFGSliderTarget DFGSliderTarget DFGSliderTarget->BaseSliderTarget

Functions

  bakeValue ! ()
Ref<Tool> getTool ? ()
Boolean isValid ? ()
  registerValue ! ()

Functions in detail

ToolTarget.bakeValue! ()

Creates a command for applying the “final” values. Used to store the manipulated objects parameters in the command after they were manipulated.


Ref<Tool> ToolTarget.getTool? ()

Gets a reference to the target’s tool.


Boolean ToolTarget.isValid? ()

Returns true if the target is valid (set).


ToolTarget.registerValue! ()

Registers the target’s values before the manipulation is performed. Used to store the manipulated objects parameters in the command before they are manipulated.