CanvasMap
Getting Started Tutorials 3D Reference

Class CMScene extends CMItem

CMScene


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
.

Name Name CMTYPE_STRING Name that appears in the item and layer lists Open Open CMTYPE_BOOLEAN false true if the object is open in the editor tree Status Status CMTYPE_INDEXES CMSTATUS_OPTIONS, Default:CMSTATUS_SELECTABLE CMSTATUS_SELECTABLE How the item appears to the user and how the user can CurrentTool Current Tool CMTYPE_INDEXES CMToolHandler.TOOL_OPTIONS, Default:CMToolHandler.TOOL_SELECT CMToolHandler.TOOL_SELECT How the item appears to the user and how the user can interact Style Fill Style CMTYPE_CSS_STYLE rgb(200,200,200)

Object Functions

Inherited From: CMItem
ReturnsFunctionThrows
SetToolHandler(NewToolHandler)
GetToolHandler()
NewTool GetTool()
Resize(TheView)
Repaint(TheView)
GetBounds()

Object Functions

SetToolHandler(NewToolHandler)

Add a tool handler to the view

Parameters:
    NewToolHandler -

GetToolHandler()

Get the current tool handler, if any

NewTool=GetTool()

Returns the current tool

Returns: NewTool - from the enums: CMToolHandler.TOOL_HAND,...

Resize(TheView)

Called when the window is resized

Parameters:
    TheView - the view that recieved the event

Repaint(TheView)

Called by the layers to repaint the scene

Parameters:
    TheView - the view that recieved the event

GetBounds()

Gets the bounds of all the geo bounds combined.