The CutPlaneManipulatorInterfaceSignal lists all the signals that may be sent by the CutPlaneManipulatorInterface.
These signals are emitted by the CutPlaneManipulatorInterface when a user action is started/ended.
2 types of signals are emitted :
CutPlaneManipulationStarted when a user interaction is started.
CutPlaneManipulationEnded when a user interaction is over.
/** * Sample to illustrate the use of signals with the CutPlaneManagerInterface. */ import { InfiniteEngineInterface, CutPlaneManipulatorInterfaceSignal, tListenerCallback, CutPlaneManipulatorInterface } from'generated_files/documentation/appinfiniteapi';
// lEngine has been created previously letlEngine : InfiniteEngineInterface; // user callback code called when the cut plane geometry has changed letmyCallback : tListenerCallback;
// get the cut plane manager constlCutPlaneManipulator : CutPlaneManipulatorInterface = lEngine.getCutPlaneManager().createCutPlaneManipulator(); // connect to the cut plane 1 lCutPlaneManipulator.setCutPlaneId(1); // make the manipulator visible lCutPlaneManipulator.setVisible(true); // and connect to relevant events lCutPlaneManipulator.addEventListener(CutPlaneManipulatorInterfaceSignal.CutPlaneManipulationEnded, myCallback); // myCallback will be called when the cut plane manipulation interaction is over
The CutPlaneManipulatorInterfaceSignal lists all the signals that may be sent by the CutPlaneManipulatorInterface.
These signals are emitted by the CutPlaneManipulatorInterface when a user action is started/ended. 2 types of signals are emitted :
Please refer to the CutPlaneManipulatorInterface for more information.
See
CutPlaneManipulatorInterface