Skip to content

API / geotoolkit3d / shapes / SurfaceIntersection2DModel / SurfaceIntersection2DModel

Class: SurfaceIntersection2DModel

shapes.SurfaceIntersection2DModel.SurfaceIntersection2DModel

Define surface and panels intersection model

Hierarchy

Table of contents

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

Contents

Constructors

new SurfaceIntersection2DModel(options)

• new SurfaceIntersection2DModel(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

PanelsIntersection2DModel.constructor

Methods

buildIntersectionModel

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

Returns

Promise<IntersectionPanel2D[]&gt;

Inherited from

PanelsIntersection2DModel.buildIntersectionModel


dispose

▸ dispose(): void

Dispose.

Returns

void

Inherited from

PanelsIntersection2DModel.dispose


getClassName

▸ getClassName(): string

Returns

string

Inherited from

PanelsIntersection2DModel.getClassName


getModelLimits

▸ getModelLimits(): Rect

Return model limits

Returns

Rect

model limits

Inherited from

PanelsIntersection2DModel.getModelLimits


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

Inherited from

PanelsIntersection2DModel.getOnDisposedHandler


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

Inherited from

PanelsIntersection2DModel.getOnPropertyChangedHandler


getPanels

▸ getPanels(): Iterator<AbstractPanel&gt;

Return iterator with panels intersected with Grid

Returns

Iterator<AbstractPanel&gt;

iterator with panels

Inherited from

PanelsIntersection2DModel.getPanels


getProjection

▸ getProjection(index): IntersectionPanel2D

Return 2D panel projection by specified index

Parameters

Name Type Description
indexnumberprojection index

Returns

IntersectionPanel2D

2D projection

Inherited from

PanelsIntersection2DModel.getProjection


getProjections

▸ getProjections(): Iterator<IntersectionPanel2D&gt;

Return iterator by projections

Returns

Iterator<IntersectionPanel2D&gt;

iterator by projections

Inherited from

PanelsIntersection2DModel.getProjections


getProjectionsCount

▸ getProjectionsCount(): number

Return 2D projections count

Returns

number

projections count

Inherited from

PanelsIntersection2DModel.getProjectionsCount


getSurface

▸ getSurface(): Surface

Returns surface

Returns

Surface

surface


handleIntersectionConversion

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

Parameters

Name Type
result3DResult
planeIOverlayableObject
offsetnumber

Returns

IntersectionPanel2D

Inherited from

PanelsIntersection2DModel.handleIntersectionConversion


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

PanelsIntersection2DModel.hasEventListener


isDisposed

▸ isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

PanelsIntersection2DModel.isDisposed


isSilent

▸ isSilent(): boolean

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

Returns

boolean

Inherited from

PanelsIntersection2DModel.isSilent


notify

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

Notify listeners

Parameters

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

Returns

SurfaceIntersection2DModel

this

Inherited from

PanelsIntersection2DModel.notify


off

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

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: SurfaceIntersection2DModel, args: EventMap[E]) => voidfunction to be called

Returns

SurfaceIntersection2DModel

this

Inherited from

PanelsIntersection2DModel.off


on

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

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: SurfaceIntersection2DModel, args: EventMap[E]) => voidto be called

Returns

SurfaceIntersection2DModel

this

Inherited from

PanelsIntersection2DModel.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

Inherited from

PanelsIntersection2DModel.onObjectDisposed


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

Inherited from

PanelsIntersection2DModel.onObjectPropertyChanged


rebuild

▸ rebuild(): SurfaceIntersection2DModel

Rebuild model

Returns

SurfaceIntersection2DModel

this

Inherited from

PanelsIntersection2DModel.rebuild


setPanels

▸ setPanels(panels): SurfaceIntersection2DModel

Set of panels to intersect with grid

Parameters

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

Returns

SurfaceIntersection2DModel

this

Inherited from

PanelsIntersection2DModel.setPanels


setSilent

▸ setSilent(bool): SurfaceIntersection2DModel

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

SurfaceIntersection2DModel

this

Inherited from

PanelsIntersection2DModel.setSilent


setSurface

▸ setSurface(surface): SurfaceIntersection2DModel

Set surface to intersect with panel

Parameters

Name Type Description
surfaceSurfacesurface to intersect with panels

Returns

SurfaceIntersection2DModel

this


updateTimeStamp

▸ Protected updateTimeStamp(): SurfaceIntersection2DModel

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

Returns

SurfaceIntersection2DModel

this

Inherited from

PanelsIntersection2DModel.updateTimeStamp


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

PanelsIntersection2DModel.getClassName