Skip to content

API / geotoolkit3d / shapes / PanelsIntersection2DModel / PanelsIntersection2DModel

Class: PanelsIntersection2DModel

shapes.PanelsIntersection2DModel.PanelsIntersection2DModel

Define panels intersection model

Hierarchy

Table of contents

Constructors
  • [new PanelsIntersection2DModel(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit3d.shapes-6.panelsintersection2dmodel.panelsintersection2dmodel.md#new panelsintersection2dmodel(options))
Methods

Contents

Constructors

new PanelsIntersection2DModel(options)

• new PanelsIntersection2DModel(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

EventDispatcher.constructor

Methods

buildIntersectionModel

▸ Protected buildIntersectionModel(): Promise<IntersectionPanel2D[]&gt;

Returns

Promise<IntersectionPanel2D[]&gt;


dispose

▸ dispose(): void

Dispose.

Returns

void

Inherited from

EventDispatcher.dispose


getClassName

▸ getClassName(): string

Returns

string

Inherited from

EventDispatcher.getClassName


getModelLimits

▸ getModelLimits(): Rect

Return model limits

Returns

Rect

model limits


getOnDisposedHandler

▸ Protected getOnDisposedHandler(): (event: string, sender: Object3D) => void

Gets onDispose event handler

Returns

fn

method to handle dispose event

▸ (event, sender): void

Gets onDispose event handler

Parameters
Name Type
eventstring
senderObject3D
Returns

void

method to handle dispose event


getOnPropertyChangedHandler

▸ Protected getOnPropertyChangedHandler(): (event: string, sender: Object3D, eventArgs: any) => void

Gets onPropertyChanged event handler

Returns

fn

method to handle property changed event

▸ (event, sender, eventArgs): void

Gets onPropertyChanged event handler

Parameters
Name Type
eventstring
senderObject3D
eventArgsany
Returns

void

method to handle property changed event


getPanels

▸ getPanels(): Iterator<AbstractPanel&gt;

Return iterator with panels intersected with Grid

Returns

Iterator<AbstractPanel&gt;

iterator with panels


getProjection

▸ getProjection(index): IntersectionPanel2D

Return 2D panel projection by specified index

Parameters

Name Type Description
indexnumberprojection index

Returns

IntersectionPanel2D

2D projection


getProjections

▸ getProjections(): Iterator<IntersectionPanel2D&gt;

Return iterator by projections

Returns

Iterator<IntersectionPanel2D&gt;

iterator by projections


getProjectionsCount

▸ getProjectionsCount(): number

Return 2D projections count

Returns

number

projections count


handleIntersectionConversion

▸ Protected handleIntersectionConversion(result3D, plane, offset): IntersectionPanel2D

Parameters

Name Type
result3DResult
planeIOverlayableObject
offsetnumber

Returns

IntersectionPanel2D


hasEventListener

▸ hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

EventDispatcher.hasEventListener


isDisposed

▸ isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

EventDispatcher.isDisposed


isSilent

▸ isSilent(): boolean

Return true if the event dispatcher doesn't notify any events

Returns

boolean

Inherited from

EventDispatcher.isSilent


notify

▸ notify(type, source, args?): PanelsIntersection2DModel

Notify listeners

Parameters

Name Type Description
typestringevent types
sourceanyof the event
Optional argsanyarguments of the event

Returns

PanelsIntersection2DModel

this

Inherited from

EventDispatcher.notify


off

▸ off<E&gt;(type?, callback?): PanelsIntersection2DModel

Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
Optional typeEtype of the event
Optional callback(eventType: E, sender: PanelsIntersection2DModel, args: EventMap[E]) => voidfunction to be called

Returns

PanelsIntersection2DModel

this

Overrides

EventDispatcher.off


on

▸ on<E&gt;(type, callback): PanelsIntersection2DModel

Attach listener on event that will be called whenever the specified event is delivered to the target <p> If the callback function is already in the list of event listeners for this target, the function is not added a second time. </p> <p> If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target. </p>

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event or property
callback(eventType: E, sender: PanelsIntersection2DModel, args: EventMap[E]) => voidto be called

Returns

PanelsIntersection2DModel

this

Overrides

EventDispatcher.on


onObjectDisposed

▸ Protected onObjectDisposed(object): void

This method is called when one of the referenced object was disposed. Send event Events.Disposed

Parameters

Name Type Description
objectObject3Ddisposed object

Returns

void


onObjectPropertyChanged

▸ Protected onObjectPropertyChanged(object, properties?): void

This method is called when one of the referenced object changed it properties. Send event Events.PropertyChanged

Parameters

Name Type Description
objectObject3Dchanged object
Optional propertiesstring | { name: string ; value: any }object properties

Returns

void


rebuild

▸ rebuild(): PanelsIntersection2DModel

Rebuild model

Returns

PanelsIntersection2DModel

this


setPanels

▸ setPanels(panels): PanelsIntersection2DModel

Set of panels to intersect with grid

Parameters

Name Type Description
panelsAbstractPanel | Iterator<AbstractPanel&gt; | AbstractPanel[]set of panels to intersect with grid

Returns

PanelsIntersection2DModel

this


setSilent

▸ setSilent(bool): PanelsIntersection2DModel

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

PanelsIntersection2DModel

this

Inherited from

EventDispatcher.setSilent


updateTimeStamp

▸ Protected updateTimeStamp(): PanelsIntersection2DModel

Update time stamp to indicate that Node or Children has been changed.

Returns

PanelsIntersection2DModel

this


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

EventDispatcher.getClassName