@geogirafe/lib-geoportal
Preparing search index...
components/drawing/cesiumDrawing
CesiumDrawing
Class CesiumDrawing
Index
Constructors
constructor
Properties
active
Shape
Points
active
Shapes
entities
fixed
Length
floating
Point
handler
scene
state
tool
Name
user
Interaction
Manager
Methods
activate
Tool
add
Point
deactivate
Tool
fix
Last
Length
get
Shapes
leveled
Center
To
Mouse
make
Rectangle
make
Regular
Polygon
pick
On
Globe
register
Interactions
remove
Last
Point
And
Terminate
Shape
set
Fixed
Length
terminate
Shape
unregister
Interactions
update
Shape
Constructors
constructor
new
CesiumDrawing
(
map
:
MapComponent
,
toolName
:
string
)
:
CesiumDrawing
Parameters
map
:
MapComponent
toolName
:
string
Returns
CesiumDrawing
Properties
active
Shape
Points
activeShapePoints
:
Cartesian3
[]
= []
active
Shapes
activeShapes
:
Entity
[]
= []
entities
entities
:
undefined
|
EntityCollection
= undefined
fixed
Length
fixedLength
:
number
= 0
floating
Point
floatingPoint
:
undefined
|
Entity
= undefined
handler
handler
:
undefined
|
ScreenSpaceEventHandler
= undefined
scene
scene
:
undefined
|
Scene
= undefined
state
state
:
State
tool
Name
toolName
:
string
user
Interaction
Manager
userInteractionManager
:
UserInteractionManager
Methods
activate
Tool
activateTool
(
tool
:
DrawingShape
)
:
void
Parameters
tool
:
DrawingShape
Returns
void
add
Point
addPoint
(
tool
:
DrawingShape
)
:
(
event
:
PositionedEvent
)
=>
void
Parameters
tool
:
DrawingShape
Returns
(
event
:
PositionedEvent
)
=>
void
deactivate
Tool
deactivateTool
()
:
void
Returns
void
fix
Last
Length
fixLastLength
(
tool
:
DrawingShape
,
length
:
number
,
coord
:
Cartesian3
[]
)
:
void
Parameters
tool
:
DrawingShape
length
:
number
coord
:
Cartesian3
[]
Returns
void
get
Shapes
getShapes
(
tool
:
DrawingShape
,
pos
:
Cartesian3
[]
,
feature
:
DrawingFeature
,
)
:
Entity
[]
Parameters
tool
:
DrawingShape
pos
:
Cartesian3
[]
feature
:
DrawingFeature
Returns
Entity
[]
leveled
Center
To
Mouse
leveledCenterToMouse
(
pos
:
Cartesian3
[]
)
:
Cartesian3
Parameters
pos
:
Cartesian3
[]
Returns
Cartesian3
make
Rectangle
makeRectangle
(
pos
:
Cartesian3
[]
)
:
Cartesian3
[]
Parameters
pos
:
Cartesian3
[]
Returns
Cartesian3
[]
make
Regular
Polygon
makeRegularPolygon
(
center
:
Cartesian3
,
firstPosition
:
Cartesian3
,
nbEdges
:
number
,
)
:
Cartesian3
[]
Parameters
center
:
Cartesian3
firstPosition
:
Cartesian3
nbEdges
:
number
Returns
Cartesian3
[]
pick
On
Globe
pickOnGlobe
(
position
:
Cartesian2
)
:
undefined
|
Cartesian3
Parameters
position
:
Cartesian2
Returns
undefined
|
Cartesian3
register
Interactions
registerInteractions
()
:
void
Returns
void
remove
Last
Point
And
Terminate
Shape
removeLastPointAndTerminateShape
(
tool
:
DrawingShape
)
:
()
=>
void
Parameters
tool
:
DrawingShape
Returns
()
=>
void
set
Fixed
Length
setFixedLength
(
length
:
number
)
:
void
Parameters
length
:
number
Returns
void
terminate
Shape
terminateShape
(
tool
:
DrawingShape
)
:
void
Parameters
tool
:
DrawingShape
Returns
void
unregister
Interactions
unregisterInteractions
()
:
void
Returns
void
update
Shape
updateShape
(
tool
:
DrawingShape
)
:
(
event
:
MotionEvent
)
=>
void
Parameters
tool
:
DrawingShape
Returns
(
event
:
MotionEvent
)
=>
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
active
Shape
Points
active
Shapes
entities
fixed
Length
floating
Point
handler
scene
state
tool
Name
user
Interaction
Manager
Methods
activate
Tool
add
Point
deactivate
Tool
fix
Last
Length
get
Shapes
leveled
Center
To
Mouse
make
Rectangle
make
Regular
Polygon
pick
On
Globe
register
Interactions
remove
Last
Point
And
Terminate
Shape
set
Fixed
Length
terminate
Shape
unregister
Interactions
update
Shape
@geogirafe/lib-geoportal
Loading...