<< Click to Display Table of Contents >>
DDDGlobe.js
SuperGIS.DDDGlobe |
||
SGGlobe(object Scene,string texPath, initPos) |
control the globe. |
|
SpatialReference |
getSpatialReference() |
get the spatial reference object. |
Scene |
getScene() |
get the scene object, which controls the 3D environment. |
light |
getLight() |
get the light object, which controls the location, color, and the direction of the light. |
void |
setLight(light v) |
controls the light object, including its location, color, and the direction |
camera |
getCamera() |
get the current camera object, which controls the location and direction of the camera. |
globe |
getGlobe() |
get the globe model. |
ground |
getGround() |
get the ground model, which is used to reset the ground depth buffer. |
MajorGrid |
getMajorGrid() |
return the MajorGrid object, which controls the major grid line on the globe. |
Grid |
getGrid() |
return the Grid object, which controls the grid line on the globe. |
string |
getFPS() |
get the current frame per second. |
array |
getInitialPosition() |
get the initial position of the view according to the layer extent. By default, it is [0, 0, 1]. |
void |
setInitialPosition(array InitialPosition) |
set the initial position of the view. |
array |
getLayers() |
get the layers and models, including vector, raster, and model. |
array |
getLegends() |
get the legends of the layers. |
void |
invalidate() |
redraw the globe while the system is not busy. |
Boolean |
SelectMapTool(object MapEvent) |
select a map tool. |
void |
renderGround(object camera, object objs) |
render the ground |
void |
renderObj(camera, object objs) |
render an object |
Boolean |
render(object framebuffer) |
return a Boolean value indicates whether to render the model to the scene. |
void |
resetDepthBuffertoGround(ost) |
reset depth buffer to ground surface. |
void |
addModel(object Mdl) |
add a new model |
void |
removeModel(object Mdl) |
remove an existing model |
void |
resetScene() |
reset the globe scene. |
void |
resetCamera() |
reset the camera to its initial position. |
pts |
getViewBoundary() |
return the boundary of the view. |
Ext |
getFullExtent() |
return the full extent of the map. |
void |
setInitialExtent(object Env) |
set the initial extent. |
number |
getElevation(number Lat, number Lon) |
return the horizontal latitude extent at a certain longitude. |
Pick |
Picking(cam, vOri, vDir, cullout) |
return a pick object. It is the intersection coordinate of the camera direction and the globe model. |
Coord |
CartesianFormGeodetic(object Coord) |
return Cartesian coordinates from Geodetic coordinates. |
Coord |
GeodeticFromCartesian(object Coord) |
return Geodetic coordinates from Cartesian coordinates. |
Loc |
CreateLocation(object Coord, object RelativeElevation) |
Record the location of a point in both X, Y, Z and lat, lon, alt format. |
void |
ProjectToDevice(array poss, object Numberr, Boolean Overlay) |
project the coordinates in 3D space to the screen coordinates. |
void |
StartAnimation(Nav) |
starts an navigate animation. |
void |
EndAnimation() |
ends the current navigate animation. |
Animation |
getAnimation() |
get the current navigate animation. |
void |
resetScene() |
reset Scene object. |
void |
resetCamera() |
reset Camera object. |
Camera(object CmdTarget, f, a, nr, fr) |
Creates a new Camera |
|
Boolean |
getSynchronous() |
return synchronous. |
void |
setSynchronous(Boolean v) |
control synchronous. |
void |
addEventListener(FuncAdapter) |
add event listener. |
void |
Synchronous(Boolean Forward) |
synchronous the camera. |
Boolean |
IsValidStatus() |
return a Boolean value indicates whether the status is valid. |
testRay |
testRay(eye, ray, cullout, vlen) |
return a testRay object. It is a intersection coordinate of the camera direction and the WGS84 globe. |
Boolean |
InVision(number Lat, number Lon, number Height) |
return a Boolean value indicates if the target is in the view. |
vec3 |
getLookAt() |
return the look at position on the globe. |
number |
getLatitude() |
return the latitude. |
void |
setLatitude(number v) |
set the latitude. |
number |
getLongitude() |
return the longitude. |
void |
setLongitude(number v) |
set the longitude. |
number |
getAltitude() |
return the altitude. |
void |
setAltitude(number v) |
set the altitude. |
number |
getYaw() |
return the yaw (rotation) of the camera |
void |
setYaw(number v) |
set the yaw (rotation) of the camera |
number |
getPitch() |
return the pitch (tilt) of the camera |
void |
setPitch(number v) |
get the pitch (tilt) of the camera |
WheelDirection |
||
(CameraOrientation, |
set the wheel direction towards the camara (user). |
|
GlobeOrientation) |
set the wheel direction towards the globe. |
|
PanTool(object CmdTarget, Boolean AllowDbClick, Boolean AllowWheel, Boolean AllowTouch) |
control the pan tool. |
|
Boolean |
getInertial() |
return a Boolean value indicates whether to move inertially. |
void |
setInertial(Boolean v) |
set a Boolean value indicates whether to move inertially. |
WheelDirection |
getWheelDirection() |
get the setting of the wheel direction. |
void |
setWheelDirection(v) |
set the wheel direction of the pan tool. |
Boolean |
getAllowDbClick() |
return a Boolean value indicates whether to allow double click to zoom when using pan tool. |
void |
setAllowDbClick(Boolean v) |
set whether to allow double click to zoom when using pan tool. |
Boolean |
getAllowWheel() |
return a Boolean value indicates whether to use wheel to zoom when using pan tool. |
void |
setAllowWheel(Boolean v) |
set whether to use wheel to zoom when using pan tool. |
Boolean |
getAllowTouch() |
return a Boolean value indicates whether to allow touch control. |
void |
setAllowTouch(Boolean v) |
set whether to allow touch control. |
Boolean |
IsMapAction() |
return a Boolean value indicates whether it is a map action. |
void |
InitMapEvent(object CmdTarget) |
initialize all map events. |
RotateNavigate(vCenter) |
control the rotate navigation. |
|
array |
getCenter() |
return the rotation center. |
void |
setCenter(array v) |
set the rotation center. |
array |
getAxis() |
return the rotation axis. |
void |
setAxis(array v) |
set the rotation axis. |
number |
getRadian() |
return the rotation radian. |
void |
setRadian(number v) |
set the rotation radian. |
Boolean |
Apply(object Scene, cam, t) |
Apply the navigation |
TiltNavigate(vCenter) |
control the tilt navigation. |
|
array |
getCenter() |
return the tilting center. |
void |
setCenter(v) |
set the tilting center. |
number |
getRadian() |
return the tilting radian. |
void |
setRadian(number v) |
set the tilting radian. |
Boolean |
Apply(object Scene, cam, t) |
Apply the navigation |
ZoomNavigate(vCenter) |
control the zoom navigation. |
|
array |
getTarget() |
return the target of the navigation |
void |
setTarget(array v) |
set the target of the navigation. |
number |
getSpeed() |
return the zooming speed. |
void |
setSpeed(number v) |
set the zooming speed. |
Duration |
getDuration() |
return the zooming duration. |
void |
setDuration(v) |
set the zooming duration. |
Boolean |
Apply(object Scene, cam, t) |
Apply the navigation |
PathNavigate() |
control the move navigation. |
|
void |
AddPoint(object Point) |
add a point object. |
void |
ClearPoint() |
clear all the point objects. |
number |
getSpeed() |
return the navigation speed. |
void |
setSpeed(number v) |
set the navigation speed. |
Boolean |
Apply(object Scene, cam, t) |
Apply the navigation |
NavigateGroup() |
control a group of navigation. |
|
void |
AddNavigate(object Nav) |
add a navigation. |
void |
ClearNavigates() |
clear all navigations. |
Boolean |
Apply(object Scene, cam, t) |
Apply the navigation in the group |
NavigateAnimation(object Scene, cam, object Nav) |
control the navigation animation. |
|
Timeout |
getTimeout() |
return the timeout value of the animation. |
void |
setTimeout(v) |
set the timeout value of the animation. |
Boolean |
isRunning() |
return a boolean value indicates if the animation is still running. |
void |
end() |
end the animation. |
void |
pause() |
pause the animation. |
void |
run() |
run the animation. |
GeometryModel(object CmdTarget, object Geom, object Sym) |
control the geometry model. |
|
Boolean |
getVisible() |
return a Boolean value indicates the visibility of the model. |
void |
setVisible(Boolean v) |
get a Boolean value indicates the visibility of the model. |
Geometry |
getGeometry() |
return a geometry object. |
void |
setGeometry(object v) |
set the geometry object as v. |
Symbol |
getSymbol() |
return a symbol object. |
void |
setSymbol(object v) |
set the symbol object as v. |
Boolean |
getRelativeElevation() |
return a Boolean value indicates the setting of the relative elevation. |
void |
setRelativeElevation(Boolean v) |
set a Boolean value indicates the setting of the relative elevation. |
void |
render(object Scene, cam) |
render the model. |
Grid(object CmdTarget, number Width, Color) |
control the grids. |
|
Boolean |
getVisible() |
return a Boolean value indicates whether to show the grid lines. |
void |
setVisible(Boolean v) |
set a Boolean value indicates whether to show the grid lines. |
void |
removeAllGrids() |
remove all grids. |
void |
addMeridianGrid(string Title, number Longtitude, number Stacks) |
add Meridian grid. |
void |
addParallelGrid(string Title, number Latitude, number Slices) |
add a parallel grid. |
Boolean |
render(object Scene, cam) |
return a Boolean value indicates whether to render the grid. |
Overlay(xn, yn, Boolean Wall) |
||
v |
buildVertexArray(number minx, number maxx, number miny, number maxy, object srcSR, object Datum) |
build an array to record the vertex. |
idx |
buildIndexArray() |
build an index array. |
void |
checkRender(cam, number MinLat, number MaxLat, number MinLon, number MaxLon, object Datum, number ViewHeight, number TitleFactor) |
check the render. |
SphereModel(object Scene, vecCenter, radius, flatening) |
control the sphere model. |
|
void |
setOrigin(vecCenter) |
set the origin of the model. |
void |
setMesh(0, object Mesh) |
set the mesh of the model. |
void |
setElement(?) |
|
Datum |
getDatum() |
return a Datum object. |
GlobePlane(object CmdTarget, texPath, number minx, number maxx, number miny, number maxy, number maxlevel) |
control the globe plane. |
|
Boolean |
getVisible() |
return a Boolean value indicates the visibility of the globe plane. |
void |
setVisible(Boolean v) |
set a Boolean value indicates the visibility of the globe plane. |
Element |
getElement() |
return the elements. |
Material |
getMaterial() |
return the material. |
number |
getTextureHeight() |
return the texture height, which is 1 divided by the height of scene object. |
Boolean |
render(object Scene, cam) |
return a Boolean value indicates whether to render the globe plane. |
Boolean |
isClampToGround() |
return a Boolean value indicates whether the globe plane is clamp to the ground. |
void |
setMode(number mode) |
set the mode. |
GlobeLayer(object CmdTarget, opts) |
control the globe layers. |
|
Scales |
getScales() |
return the Scales object. |
Boolean |
getVisible() |
return a Boolean value indicates the visibility of the layer. |
void |
setVisible(Boolean v) |
set a Boolean value indicates the visibility of the layer. |
void |
setMode(number mode) |
set the mode. |
void |
setScale(number v) |
set the layer scale. |
void |
setMaterial(object Mat) |
set the layer material. |
Material |
getMaterial() |
return of the material object of the globe layer. |
Element |
getElement() |
return of the element object of the globe layer. |
void |
render(object Scene, cam) |
render the globe layer. |
Boolean |
isClampToGround() |
return a Boolean value indicates whether the globe layer is clamp to the ground. |
number |
getElevation(number Lat, number Lon) |
return the layer elevation at the specified latitude and longitude. |
Pick |
Picking(cam, array Ori, array Dir) |
return a pick object, which is the intersection coordinate of the camera direction and the globe layer model. |
© 2017 Supergeo Technologies Inc.