![]() |
COLNEO Pro 1.0
|
3D Viewer API interface.
API is provided by Javascript object (WebForms, Macros) "cnView3dAPI".
(c) COLNEO GmbH
|
slot |
Remove/Delete all overlays.
|
slot |
|
slot |
Create a new overlay in 3D view.
name | |
content | HTML content of overlay/legend |
config | {
"position" : [ x:int , y:int ]
}
|
|
slot |
Creates a viewpoint.
A viewpoint is created as Smartset with a view (camera, clipping) attached.
name | |
options | {
...
}
|
|
slot |
...
|
slot |
|
slot |
|
slot |
Get current view.
|
slot |
|
slot |
Get config data (position etc) of overlay.
|
slot |
Get IDs of all overlays.
|
slot |
|
slot |
|
slot |
Get current view as Base64 encoded string.
|
slot |
Hide all overlays
|
slot |
Hide overlay.
|
slot |
Remove (delete) overlay
id | Id of overlay |
|
slot |
|
slot |
Reset the current 3D viewer configuration to the default settings.
|
slot |
==> clearSelection(), showAll(), resetClipping()
|
slot |
|
slot |
|
slot |
Set configuration of 3D viewer.
cfg | Configuration object (JSON) |
|
slot |
Set navigation mode of 3D view.
Available modes:
[ orbit , walk, clip, measure, redline ]
cfg | = { "mode" : " ... mode ... " } |
|
slot |
Get config data (position etc) of overlay
config | {
"position" : [ x:int , y:int ]
}
|
|
slot |
Set HTML content of overlay
|
slot |
|
slot |
Show all overlays
|
slot |
Set overlay visible
|
slot |
Show home viewpoint.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Adjusts the view to fit the bounding box of all objects (even hidden).
|
slot |
Adjusts the view to fit the bounding box of the given objects.
This method modifies the current view so that all provided objects are visible in the viewport. The method computes the combined bounding box of all valid objects and moves the eye point (camera position) accordingly, so that the entire bounding box fits within the view. The current viewing direction is preserved.
objectIds | A list of object IDs. The bounding boxes of the associated objects will be used to compute the zoom target. |
|
slot |