API / geotoolkit3d / shapes / PanelsIntersection2DModel / PanelsIntersection2DModel
shapes.PanelsIntersection2DModel.PanelsIntersection2DModel
Define panels intersection model
↳
PanelsIntersection2DModel
Constructors
Methods
Constructors
• new PanelsIntersection2DModel(options?)
| Name | Type |
|---|---|
Optional options | Options |
EventDispatcher.constructor
Methods
▸ Protected buildIntersectionModel(): Promise<IntersectionPanel2D[]>
Promise<IntersectionPanel2D[]>
▸ dispose(): void
Dispose.
void
▸ getClassName(): string
string
▸ getModelLimits(): Rect
Return model limits
model limits
▸ Protected getOnDisposedHandler(): (event: string, sender: Object3D) => void
Gets onDispose event handler
fn
method to handle dispose event
▸ (event, sender): void
Gets onDispose event handler
| Name | Type |
|---|---|
event | string |
sender | Object3D |
void
method to handle dispose event
▸ Protected getOnPropertyChangedHandler(): (event: string, sender: Object3D, eventArgs: any) => void
Gets onPropertyChanged event handler
fn
method to handle property changed event
▸ (event, sender, eventArgs): void
Gets onPropertyChanged event handler
| Name | Type |
|---|---|
event | string |
sender | Object3D |
eventArgs | any |
void
method to handle property changed event
▸ getPanels(): Iterator<AbstractPanel>
Return iterator with panels intersected with Grid
iterator with panels
▸ getProjection(index): IntersectionPanel2D
Return 2D panel projection by specified index
| Name | Type | Description |
|---|---|---|
index | number | projection index |
2D projection
▸ getProjections(): Iterator<IntersectionPanel2D>
Return iterator by projections
iterator by projections
▸ getProjectionsCount(): number
Return 2D projections count
number
projections count
▸ Protected handleIntersectionConversion(result3D, plane, offset): IntersectionPanel2D
| Name | Type |
|---|---|
result3D | Result |
plane | IOverlayableObject |
offset | number |
▸ hasEventListener(type, callback?): boolean
Check if a list of event listeners for this type contains this listener
| Name | Type | Description |
|---|---|---|
type | string | type of event or property |
Optional callback | Function | to be called, if null, check if any callback is registered |
boolean
EventDispatcher.hasEventListener
▸ isDisposed(): boolean
Returns whether this object has been disposed
boolean
▸ isSilent(): boolean
Return true if the event dispatcher doesn't notify any events
boolean
▸ notify(type, source, args?): PanelsIntersection2DModel
Notify listeners
| Name | Type | Description |
|---|---|---|
type | string | event types |
source | any | of the event |
Optional args | any | arguments of the event |
this
▸ off<E>(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.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
Optional type | E | type of the event |
Optional callback | (eventType: E, sender: PanelsIntersection2DModel, args: EventMap[E]) => void | function to be called |
this
▸ on<E>(type, callback): PanelsIntersection2DModel
Attach listener on event that will be called whenever the specified event is delivered to the target
If the callback function is already in the list of event listeners for this target, the function is not added a second time.
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.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event or property |
callback | (eventType: E, sender: PanelsIntersection2DModel, args: EventMap[E]) => void | to be called |
this
▸ Protected onObjectDisposed(object): void
This method is called when one of the referenced object was disposed. Send event Events.Disposed
| Name | Type | Description |
|---|---|---|
object | Object3D | disposed object |
void
▸ Protected onObjectPropertyChanged(object, properties?): void
This method is called when one of the referenced object changed it properties. Send event Events.PropertyChanged
| Name | Type | Description |
|---|---|---|
object | Object3D | changed object |
Optional properties | string | { name: string ; value: any } | object properties |
void
▸ rebuild(): PanelsIntersection2DModel
Rebuild model
this
▸ setPanels(panels): PanelsIntersection2DModel
Set of panels to intersect with grid
| Name | Type | Description |
|---|---|---|
panels | AbstractPanel | Iterator<AbstractPanel> | AbstractPanel[] | set of panels to intersect with grid |
this
▸ setSilent(bool): PanelsIntersection2DModel
Set silent mode
| Name | Type | Description |
|---|---|---|
bool | boolean | flag to enable silent mode |
this
▸ Protected updateTimeStamp(): PanelsIntersection2DModel
Update time stamp to indicate that Node or Children has been changed.
this
▸ Static getClassName(): string
string