new InteractiveMarker(options)
The main interactive marker object.
Parameters:
Name | Type | Description |
---|---|---|
options |
object with following keys:
|
Methods
buttonClick(control, event3d)
Handle a button click.
Parameters:
Name | Type | Description |
---|---|---|
control |
the control to use |
|
event3d |
the event that caused this |
dispose()
Free memory of elements in this marker.
feedbackEvent(type, control)
Dispatch the given event type.
Parameters:
Name | Type | Description |
---|---|---|
type |
the type of event |
|
control |
the control to use |
move3d(control, origNormal, event3d)
Move with respect to the plane based on the contorl and event.
Parameters:
Name | Type | Description |
---|---|---|
control |
the control to use |
|
origNormal |
the normal of the origin |
|
event3d |
the event that caused this |
moveAxis(control, origAxis, event3d)
Move the axis based on the given event information.
Parameters:
Name | Type | Description |
---|---|---|
control |
the control to use |
|
origAxis |
the origin of the axis |
|
event3d |
the event that caused this |
movePlane(control, origNormal, event3d)
Move with respect to the plane based on the contorl and event.
Parameters:
Name | Type | Description |
---|---|---|
control |
the control to use |
|
origNormal |
the normal of the origin |
|
event3d |
the event that caused this |
onServerSetPose(event)
Update the marker based when the pose is set from the server.
Parameters:
Name | Type | Description |
---|---|---|
event |
the event that caused this |
rotateAxis(control, origOrientation, event3d)
Rotate based on the control and event given.
Parameters:
Name | Type | Description |
---|---|---|
control |
the control to use |
|
origOrientation |
the orientation of the origin |
|
event3d |
the event that caused this |
setOrientation(control, event3d)
Handle a user pose change for the orientation.
Parameters:
Name | Type | Description |
---|---|---|
control |
the control to use |
|
event3d |
the event that caused this |
setPosition(control, event3d)
Handle a user pose change for the position.
Parameters:
Name | Type | Description |
---|---|---|
control |
the control to use |
|
event3d |
the event that caused this |
showMenu(control, event)
Show the interactive marker menu associated with this marker.
Parameters:
Name | Type | Description |
---|---|---|
control |
the control to use |
|
event |
the event that caused this |
startDrag(control, event3d)
Start a drag action.
Parameters:
Name | Type | Description |
---|---|---|
control |
the control to use |
|
event3d |
the event that caused this |
stopDrag(control, event3d)
Stop a drag action.
Parameters:
Name | Type | Description |
---|---|---|
control |
the control to use |
|
event3d |
the event that caused this |