HoopsCuttingPlaneToolbarElement

class wvc.HoopsCuttingPlaneToolbarElement()

A toolbar component for managing individual cutting plane operations.

This component provides a set of action buttons for manipulating a specific cutting plane within a cutting section. It offers functionality to customize, invert, toggle visibility, and remove cutting planes.

The toolbar automatically updates when the associated cutting plane changes and only renders if a valid cutting plane exists at the specified indices.

Examples

<hoops-cutting-plane-toolbar
  sectionIndex="0"
  planeIndex="1"
  .service=${cuttingService}
  @change=${this.handlePlaneCustomize}>
</hoops-cutting-plane-toolbar>
// Listen for customize events
toolbar.addEventListener('change', (event) => {
  console.log('User wants to customize cutting plane');
  // Open customization dialog
});

Custom Element

hoops-cutting-plane-toolbar

Events

change

Dispatched when the customize button is clicked

Index

Constructors

Properties

Constructors

wvc.HoopsCuttingPlaneToolbarElement.constructor()
HoopsCuttingPlaneToolbarElement(): HoopsCuttingPlaneToolbarElement

Constructs a new HoopsCuttingPlaneToolbarElement.

Initializes the component with default property values and binds the invalidateToolbar method for proper event handling context.

Returns: HoopsCuttingPlaneToolbarElement

Properties

wvc.HoopsCuttingPlaneToolbarElement.planeIndex
planeIndex: number

The index of the cutting plane within the specified cutting section. Used to identify the specific plane to be manipulated by toolbar actions.

Default

```ts -1 ```

wvc.HoopsCuttingPlaneToolbarElement.sectionIndex
sectionIndex: number

The index of the cutting section containing the target cutting plane. Used to identify which section contains the plane to be manipulated.

Default

```ts -1 ```

wvc.HoopsCuttingPlaneToolbarElement.service
service: (None | ICuttingService)

The cutting service instance that provides cutting plane operations. All toolbar actions are performed through this service interface.

Default

```ts null ```