Enumeration CutPlaneManagerInterfaceSignal

The CutPlaneManagerInterfaceSignal lists all the signals that may be sent by the CutPlaneManagerInterface.

These signals are emitted by the CutPlaneManagerInterface when a cut plane is modified. Two types of signals are emitted :

  • CutPlaneGeometryChanged when the cut plane geometry (normal and/or location) is changed.
  • CutPlaneEnabledChanged when a cut plane is enabled/disabled.
/** 
* Sample to illustrate the use of signals with the CutPlaneManagerInterface.
*/
import { InfiniteEngineInterface, CutPlaneManagerInterface, CutPlaneManagerInterfaceSignal, tListenerCallback } from 'generated/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 lCutPlaneManager : CutPlaneManagerInterface = lEngine.getCutPlaneManager();
// and connect to relevant events
lCutPlaneManager.addEventListener(CutPlaneManagerInterfaceSignal.CutPlaneGeometryChanged, myCallback);
// myCallback will be called when the cut plane is modified

Please refer to the [CutPlaneManagerInterface](../interfaces/CutPlaneManagerInterface.html) for more information.
Events

See

CutPlaneManagerInterface

Enumeration Members

CutPlaneEnabledChanged: "cutPlaneEnabledChanged"

Signal sent by the CutPlaneManagerInterface when a cut plane is enabled/disabled.

The attachment for events of this type is a number, the id of the modified cut plane.

CutPlaneGeometryChanged: "cutPlaneGeometryChanged"

Signal sent by the CutPlaneManagerInterface when the cut plane geometry (normal and/or location) is changed.

The attachment for events of this type is a number, the id of the modified cut plane.