Skip to main content

Class: CSGPluginBSP

Plugins.CSGPluginBSP

Hierarchy

Properties

PluginType

Static Readonly PluginType: "CSGPluginBSP"

Defined in

webgi/src/plugins/CSGPluginBSP.ts:34


enabled

enabled: boolean = true

Inherited from

CSGPluginBase.enabled

Defined in

webgi/src/plugins/CSGPluginBase.ts:15


uiConfig

Optional uiConfig: UiObjectConfig<any, string>

Inherited from

CSGPluginBase.uiConfig

Defined in

webgi/src/plugins/CSGPluginBase.ts:17


toJSON

toJSON: any = undefined

Inherited from

CSGPluginBase.toJSON

Defined in

webgi/src/plugins/CSGPluginBase.ts:18


dependencies

dependencies: typeof PickingPlugin[]

Inherited from

CSGPluginBase.dependencies

Defined in

webgi/src/plugins/CSGPluginBase.ts:20


rootObject

Optional rootObject: Object3DModel

Inherited from

CSGPluginBase.rootObject

Defined in

webgi/src/plugins/CSGPluginBase.ts:34


rootMesh

rootMesh: Mesh<BufferGeometry, Material | Material[]>

Inherited from

CSGPluginBase.rootMesh

Defined in

webgi/src/plugins/CSGPluginBase.ts:35


showResult

showResult: boolean = false

Inherited from

CSGPluginBase.showResult

Defined in

webgi/src/plugins/CSGPluginBase.ts:50


csgSelectedEnabled

csgSelectedEnabled: boolean = false

Inherited from

CSGPluginBase.csgSelectedEnabled

Defined in

webgi/src/plugins/CSGPluginBase.ts:77


csgSelectedOperation

csgSelectedOperation: string = 'union'

Inherited from

CSGPluginBase.csgSelectedOperation

Defined in

webgi/src/plugins/CSGPluginBase.ts:83


_dirty

Protected _dirty: boolean = false

Inherited from

CSGPluginBase._dirty

Defined in

webgi/src/core/AViewerPlugin.ts:25


_viewer

Protected Optional _viewer: ViewerApp

Inherited from

CSGPluginBase._viewer

Defined in

webgi/src/core/AViewerPlugin.ts:29

Accessors

dirty

get dirty(): boolean

Returns

boolean

Inherited from

CSGPluginBase.dirty

Defined in

webgi/src/core/AViewerPlugin.ts:18

set dirty(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

CSGPluginBase.dirty

Defined in

webgi/src/core/AViewerPlugin.ts:22

Methods

onDispose

onDispose(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Inherited from

CSGPluginBase.onDispose

Defined in

webgi/src/core/AViewerPlugin.ts:38


onRemove

onRemove(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Inherited from

CSGPluginBase.onRemove

Defined in

webgi/src/core/AViewerPlugin.ts:42


fromJSON

fromJSON(data, meta?): null | CSGPluginBSP | Promise<null | CSGPluginBSP>

Parameters

NameType
dataany
meta?any

Returns

null | CSGPluginBSP | Promise<null | CSGPluginBSP>

Inherited from

CSGPluginBase.fromJSON

Defined in

webgi/src/core/AViewerPlugin.ts:54


addEventListener

addEventListener(type, listener): void

Adds a listener to an event type.

Parameters

NameType
type"" | "serialize" | "deserialize"
listener(event: IEvent<"" | "serialize" | "deserialize">) => void

Returns

void

Inherited from

CSGPluginBase.addEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:48


hasEventListener

hasEventListener(type, listener): boolean

Checks if listener is added to an event type.

Parameters

NameType
type"" | "serialize" | "deserialize"
listener(event: IEvent<"" | "serialize" | "deserialize">) => void

Returns

boolean

Inherited from

CSGPluginBase.hasEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:56


removeEventListener

removeEventListener(type, listener): void

Removes a listener from an event type.

Parameters

NameType
type"" | "serialize" | "deserialize"
listener(event: IEvent<"" | "serialize" | "deserialize">) => void

Returns

void

Inherited from

CSGPluginBase.removeEventListener

Defined in

webgi/src/helpers/EventDispatcher.ts:63


dispatchEvent

dispatchEvent(event): void

Fire an event type.

Parameters

NameType
eventIEvent<"" | "serialize" | "deserialize">

Returns

void

Inherited from

CSGPluginBase.dispatchEvent

Defined in

webgi/src/helpers/EventDispatcher.ts:74


onAdded

onAdded(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Inherited from

CSGPluginBase.onAdded

Defined in

webgi/src/plugins/CSGPluginBase.ts:37


makeSelectedCSGBrush

makeSelectedCSGBrush(): Promise<void>

Returns

Promise<void>

Inherited from

CSGPluginBase.makeSelectedCSGBrush

Defined in

webgi/src/plugins/CSGPluginBase.ts:56


refreshCSG

refreshCSG(): void

Returns

void

Inherited from

CSGPluginBase.refreshCSG

Defined in

webgi/src/plugins/CSGPluginBase.ts:86


downloadObject

downloadObject(): Promise<void>

Returns

Promise<void>

Inherited from

CSGPluginBase.downloadObject

Defined in

webgi/src/plugins/CSGPluginBase.ts:95


exportObject

exportObject(): Promise<undefined | BlobExt>

Returns

Promise<undefined | BlobExt>

Inherited from

CSGPluginBase.exportObject

Defined in

webgi/src/plugins/CSGPluginBase.ts:100


_buildCSGMesh

Protected _buildCSGMesh(meshes): Mesh<BufferGeometry, Material | Material[]>

Parameters

NameType
meshes[Mesh<BufferGeometry, Material | Material[]>, TCSGOperation][]

Returns

Mesh<BufferGeometry, Material | Material[]>

Overrides

CSGPluginBase._buildCSGMesh

Defined in

webgi/src/plugins/CSGPluginBSP.ts:36

Constructors

constructor

new CSGPluginBSP()

Inherited from

CSGPluginBase.constructor

Defined in

webgi/src/plugins/CSGPluginBase.ts:22