BaseSRTTool.kl¶
Interfaces¶
SRTTool (interface)¶
バージョン 2.0.1 で追加.
BaseSRTTool is a based class for any SRTTool. It defines a manipulable tool (translation, rotation and scaling) that is used to manipulate scene’s objects. Any new SRT tools should derived from this class. This class manages a complete manipulation, except its drawing that depends of the engine.
Functions¶
| Ray | castRay ? ( io MouseEvent mouseEvent ) |
| transformChanged ! ( in Mat44 transform ) |
Types¶
BaseSRTTool (object)¶
Members¶
| Boolean | enabled | Handler is enabled. |
| Key | enableKey | Enable key. |
| HandlerExclusivity | handlerExclusivity | Handler exclusivity. |
| Boolean | isIndependent | HandlerExclusivity local override. |
| Boolean | takeAllEvents | It true, the handler takes all the events. |
| Boolean | alwaysEnabled | It true, the handler takes all the events. |
| Boolean | isOwnedByDispatcher | Checks if the handler is owned by a handlerDispatcher. In most of the cases, the dispatcher owns the handlers. However, it’s not true in DFG graphs where the handlers are owns by the nodes. |
| Ref<HandlerDispatcher> | dispatcher | Reference to the dispatcher. |
| ToolTarget | target | Tool target. |
| Boolean | performing | True if the tool is performing an action. |
| Mat44 | transform | Tool transform (SRT). |
| Mat44 | transformNoScaling | Tool transform with no scaling (RT). |
| Vec3 | scalingDelta | Accumulated scaling delta while performing (for manip drawing prupose only). |
| Vec3 | currentAxis | Current manipulation axis (local). |
| ManipulationMode | mode | Mode determining which gizmos are currently visible. |
Methods¶
| BaseSRTTool ( in BaseSRTTool other ) | |
| BaseSRTTool () | |
| Ray | castRay ? ( io MouseEvent mouseEvent ) |
| BaseSRTTool | clone ? () |
| enable ! () | |
| HandlerDescription | getDescription ? () |
| Key | getManipulationModeKey ? ( in ManipulationMode mode ) |
| Vec3 | getScalingDelta ? () |
| Boolean | hasKey ? ( in Key key ) |
| init ! ( in SRTTarget target, in Key scaleKey, in Key rotateKey, in Key translateKey, in Key enableKey, in HandlerExclusivity exclusivity, in Boolean isOwnedByDispatcher ) | |
| move ! ( io MouseEvent mouseEvent ) | |
| onEvent ! ( io Event event ) | |
| press ! ( io MouseEvent mouseEvent ) | |
| release ! ( io MouseEvent mouseEvent ) | |
| setManipulationModeKey ! ( in ManipulationMode mode, in Key key ) | |
| transformChanged ! ( in Mat44 transform ) | |
| updateFromTarget ! () |