Enumeration CutPlaneManipulatorInterfaceSignal

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
let lEngine : InfiniteEngineInterface;
// user callback code called when the cut plane geometry has changed
let myCallback : tListenerCallback;

// get the cut plane manager
const lCutPlaneManipulator : 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

Please refer to the CutPlaneManipulatorInterface for more information.
Events

Enumeration Members

CutPlaneManipulationEnded: "cutPlaneManipulationEnded"

Signal sent by the CutPlaneManipulatorInterface when a user interaction is over.

No attachment for events of this type.

CutPlaneManipulationStarted: "cutPlaneManipulationStarted"

Signal sent by the CutPlaneManipulatorInterface when a user interaction is started.

No attachment for events of this type.