ViewClipDecoration Class

A pickable decoration managed by ViewClipDecorationProvider used to visualize a view's clip and present modification handles. This class is public to facilitate customization of view clip events by type or selected controls.

@see ViewClipDecorationProvider

Extends

Methods

Name Description
constructor(_clipView: ScreenViewport, _clipEventHandler?: ViewClipEventHandler): ViewClipDecoration    
clearControls(): void Protected    
createControls(): Promise<boolean> Protected The provider is responsible for checking if modification by controls is valid.  
decorate(context: DecorateContext): void Sub-classes should override to display the pickable graphics for their controls.  
doClipPlaneClear(index: number): boolean    
doClipPlaneNegate(index: number): boolean    
doClipPlaneOrientView(index: number): boolean    
doClipShapeSetZExtents(extents: Range1d): boolean    
getControlIndex(id: string): number    
getDecorationToolTip(hit: HitDetail): Promise<string | HTMLElement>    
isClipShapeAlignedWithWorldUp(extents?: Range1d): boolean    
modifyControls(hit: HitDetail, _ev: BeButtonEvent): Promise<boolean> Protected A provider can install an InputCollector to support interactive modification.  
onManipulatorEvent(eventType: EditManipulator.EventType): void    
onRightClick(hit: HitDetail, ev: BeButtonEvent): Promise<EventHandled> Protected Sub-classes can override to present a menu for a right click on a handle.  
onTouchTap(hit: HitDetail, ev: BeButtonEvent): Promise<EventHandled> Protected Sub-classes can override to respond to a touch tap on a handle.  
onViewClose(vp: ScreenViewport): void    
stop(): void Protected Call to clear this handle provider.  
testDecorationHit(id: string): boolean    
updateDecorationListener(_add: boolean): void Protected Register for decorate event to start displaying control handles.  
clear(): void Static    
create(vp: ScreenViewport, clipEventHandler?: ViewClipEventHandler): undefined | string Static    
get(vp: ScreenViewport): undefined | ViewClipDecoration Static    
toggle(vp: ScreenViewport, clipEventHandler?: ViewClipEventHandler): Promise<undefined | string> Static    

Inherited methods

Name Inherited from Description
onDecorationButtonEvent(hit: HitDetail, ev: BeButtonEvent): Promise<EventHandled> EditManipulator.HandleProvider Event raised by a PrimitiveTool that supports handle providers to allow a pickable decoration to respond to being located.
onDoubleClick(_hit: HitDetail, _ev: BeButtonEvent): Promise<EventHandled> Protected EditManipulator.HandleProvider Sub-classes can override to perform some operation for a double click on a handle.
onManipulatorToolEvent(_tool: Tool, event: ManipulatorToolEvent): void EditManipulator.HandleProvider Event raised by a PrimitiveTool that supports handle providers.
onSelectionChanged(ev: SelectionSetEvent): void EditManipulator.HandleProvider Event raised by SelectionSet when the active selection changes.
updateControls(): Promise<void> Protected EditManipulator.HandleProvider  

Properties

Name Type Description
_clipEventHandler Protected undefined | ViewClipEventHandler    
_clipView Protected ScreenViewport    
clipId Accessor ReadOnly undefined | string    
clipPlaneSet Accessor ReadOnly undefined | ConvexClipPlaneSet    
clipShape Accessor ReadOnly undefined | ClipShape    

Inherited properties

Name Type Inherited from Description
_isActive Protected boolean EditManipulator.HandleProvider  
_removeDecorationListener Protected undefined | () => void EditManipulator.HandleProvider  
_removeManipulatorToolListener Protected undefined | () => void EditManipulator.HandleProvider  
_removeSelectionListener Protected undefined | () => void EditManipulator.HandleProvider  
iModel IModelConnection EditManipulator.HandleProvider  

Defined in

Last Updated: 18 April, 2024