After activation, the
TLspEditController is responsible for setting up a state in which selected objects can be edited. The editing process and the role of
TLspEditController in this process is explained in detail in Creating and editing domain objects in a Lightspeed view. You can also learn more about customizing the editing of objects.
TLspCreateController is used to create new objects in a specific layer. Just like the edit controller, the create controller creates a setup in
which an object can be initialized.
After activation, the create controller performs the following steps:
createmethod on the
ALspCreateControllerModelthat is associated with the controller. This method creates the actual object that will be initialized later on by the editor.
Determine the layer the object should be added to, by calling the
getLayermethod on the controller model.
Query the editor associated to the layer for the create handles that serve as UI elements to initialize the object.
Pass all further input events to the create handles, and leave interpretation up to the editor, until the editor decides that the creation process is finished.
To customize the
TLspCreateController, you can:
Set an action that is performed when the creation process is finished, via the
setActionToTriggerAfterCommitproperty setting: this property setting sets the action that is performed when the creation process is finished.
Let the create controller use a different
ALspCreateControllerModel. You can customize the create controller model by creating a new implementation of the interface, and providing the implementation in the create controller’s constructor . See the API reference documentation for more information. A useful example is available in the LuciadLightspeed samples: