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. 4 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.
  • CutPlaneCreated when a cut plane is created.
  • CutPlaneRemoved when a cut plane is removed.
  • CutPlaneGroupChanged when a cut plane is assigned a new different group.
/** 
* Sample to illustrate the use of signals with the CutPlaneManagerInterface.
*/
import { InfiniteEngineInterface, CutPlaneManagerInterface, CutPlaneManagerInterfaceSignal, tListenerCallback } 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 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 for more information.
Events

Enumeration Members

CutPlaneCreated: "cutPlaneCreated"

Signal sent by the CutPlaneManagerInterface when a cut plane is created.

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

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.

CutPlaneGroupChanged: "cutPlaneGroupChanged"

Signal sent by the CutPlaneManagerInterface when a cut plane group is updated.

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

CutPlaneRemoved: "cutPlaneRemoved"

Signal sent by the CutPlaneManagerInterface when a cut plane is removed.

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