CanvasMap
Getting Started Tutorials 3D Reference

Class CM3LayerVector extends CMLayerDataset

CM3LayerVector Class


Copyright (C) 2020, Humboldt State University, Jim Graham

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General
Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see
.

Settings Group: Font

Setting Name Type Options Default Comments
size Size CMTYPE_FLOAT 12 size of the text
GlobalFontIndex Global Font Index CMTYPE_INTEGER 0 global font to use

Settings Group: Elevation

Setting Name Type Options Default Comments
ZOffset ZOffset CMTYPE_FLOAT 0
ZMultiplier ZMultiplier CMTYPE_FLOAT 1
URL URL CMTYPE_STRING

Settings Group: CrossSection

Setting Name Type Options Default Comments
Radius Radius CMTYPE_FLOAT 100
NumFaces NumFaces CMTYPE_INTEGER 2

Settings Group: Shadows

Setting Name Type Options Default Comments
cast Cast Shadows CMTYPE_BOOLEAN false must be set before the OGL object is created (or recreate on set)
receive Receive Shadow CMTYPE_BOOLEAN false must be set before the OGL object is created (or recreate on set)

Color Color CMTYPE_COLOR rgb(128,128,128) must be set before the OGL object is created (or recreate on set) opacity opacity CMTYPE_FLOAT 1 must be set before the OGL object is created (or recreate on set) Extrusion Extrusion CMTYPE_OBJECT standard HTML 5 settings

Object Functions

Inherited From: CMLayerDataset
ReturnsFunctionThrows
Result In(-, -, -)
MouseDown()
MouseMove()
SetMaterial()
SetFeatureMaterials()
GetCrossSectionArray()
SetCrossSectionArray()
SetPathExtrusion()
GetPathExtrusion()

Object Functions

Result=In(-, -, -)

Finds if the mouse was pressed down in a feature in the layer

Parameters:
    - TheView
    - TheEvent
    - TheRayTracer

Returns: Result - { FeatureIndex,MeshIndex } or the feature and mesh clicked in, null otherwise

MouseDown()

This mouse down is different from 2D as we know this item had the mouse clicked down in it.

MouseMove()

This mouse down is different from 2D as we know this item had the mouse clicked down in it.

SetMaterial()

Set a custom material to use to render the layer

SetFeatureMaterials()

Set an array of materials with one material for each feature

GetCrossSectionArray()

Get the cross-sectional array to use to create extrusions for points and polylines

SetCrossSectionArray()

Set a cross-sectional array to use to create extrusions for points and polylines

SetPathExtrusion()

Set a custom CM3PathExtrusion object to use with polylines.

GetPathExtrusion()

Get the CM3PathExtrusion object to use with polylines.