Class: ColladaScene

ColladaScene(position, sceneData)

Represents a scene. A scene is a collection of nodes with meshes, materials and textures.

Constructor

new ColladaScene(position, sceneData)

Constructs a collada scene
Parameters:
Name Type Description
position Position The scene's geographic position.
sceneData Object The scene's data containing the nodes, meshes, materials, textures and other info needed to render the scene.
Source:

Extends

Members

altitudeMode :String

The scene's altitude mode. May be one of
  • WorldWind.ABSOLUTE
  • WorldWind.RELATIVE_TO_GROUND
  • WorldWind.CLAMP_TO_GROUND
Type:
  • String
Default Value:
  • WorldWind.ABSOLUTE
Source:

dirPath :String

The path to the directory of the collada file.
Type:
  • String
Source:

displayName :String

The display name of the renderable.
Type:
  • String
Inherited From:
Default Value:
  • "Renderable"
Source:

enabled :Boolean

Indicates whether to display this renderable.
Type:
  • Boolean
Inherited From:
Default Value:
  • true
Source:

hideNodes :Boolean

Set to true to force the renderer to not draw the nodes passed to the nodesToHide list.
Type:
  • Boolean
Default Value:
  • false
Source:

images :ColladaImage

An object with images extracted from the collada file.
Type:
Source:

localTransforms :Boolean

Force the use of the nodes transformation info. Some 3d software may break the transformations when importing/exporting models to collada format. Set to false to ignore the the nodes transformation. Only use this option if the model does not render properly.
Type:
  • Boolean
Default Value:
  • true
Source:

materials :ColladaMaterial

An object with materials and their effects extracted from the collada file.
Type:
Source:

meshes :Object

An object with meshes extracted from the collada file.
Type:
  • Object
Source:

nodes :Array.<ColladaNode>

An array of nodes extracted from the collada file.
Type:
Source:

nodesToHide :Array.<String>

An array of node id's to not render.
Type:
  • Array.<String>
Source:

normalMatrix :Matrix

The scene's normal matrix
Type:
Source:

pickDelegate :Object

Indicates the object to return as the userObject of this shape when picked. If null, then this shape is returned as the userObject.
Type:
  • Object
Inherited From:
Default Value:
  • null
Source:
See:

placePoint :Vec3

The scene's Cartesian point on the globe for the specified position.
Type:
Source:

position :Position

The scene's geographic position.
Type:
Source:

scale :Number

The scene's scale.
Type:
  • Number
Source:

timeRange :Array.<Date>

An array with two elements: start time and end time of the visible range.
Type:
  • Array.<Date>
Inherited From:
Source:

transformationMatrix :Matrix

The scene's transformation matrix containing the scale, rotations and translations
Type:
Source:

upAxis :String

The up axis of the collada model extracted from the collada file.
Type:
  • String
Source:

userProperties :Object

An application defined object associated with this renderable. A typical use case is to associate application defined data with a picked renderable.
Type:
  • Object
Inherited From:
Default Value:
  • An empty object
Source:

useTexturePaths :Boolean

Force the use of the texture path specified in the collada file. Set to false to ignore the paths of the textures in the collada file and instead get the textures from the same dir as the collada file.
Type:
  • Boolean
Default Value:
  • true
Source:

xRotation :Number

The scene's rotation angle in degrees for the x axis.
Type:
  • Number
Source:

xTranslation :Number

The scene's translation for the x axis.
Type:
  • Number
Source:

yRotation :Number

The scene's rotation angle in degrees for the x axis.
Type:
  • Number
Source:

yTranslation :Number

The scene's translation for the y axis.
Type:
  • Number
Source:

zRotation :Number

The scene's rotation angle in degrees for the x axis.
Type:
  • Number
Source:

zTranslation :Number

The scene's translation for the z axis.
Type:
  • Number
Source:

Methods

render(dc)

Render this renderable. Some shapes actually draw themselves during this call, others only add themselves to the draw context's ordered rendering list for subsequent drawing when their renderOrdered method is called. This method is intended to be called by layers such as RenderableLayer and not by applications.
Parameters:
Name Type Description
dc DrawContext The current draw context.
Overrides:
Source: