CanvasMap
Getting Started Tutorials 3D Reference

Class CMScene extends CMItem

CMScene

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 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.