public class VirtualTableUtilities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.HashMap<java.lang.String,com.jme3.scene.Spatial> |
otherTables
Collection of spatials representing other device interfaces running
instances of SynergyNetApp applications.
|
static java.util.HashMap<java.lang.String,java.lang.Float> |
otherTablesOrientation
Collection of orientations of other device interfaces running instances
of SynergyNetApp applications.
|
static java.util.HashMap<java.lang.String,java.lang.Float> |
otherTablesScaleChanges
Collection of scale differences of other device interfaces running
instances of SynergyNetApp applications.
|
Constructor and Description |
---|
VirtualTableUtilities() |
Modifier and Type | Method and Description |
---|---|
static void |
addTable(java.lang.String tableID,
com.jme3.math.Vector2f location,
float orientation,
com.jme3.math.Vector2f dimensions,
float pixelWidth,
float metreWidth,
IStage stage)
Creates a spatial representing another device connected to the network
cluster's interface.
|
static void |
announceTablePositionToAll()
Sends out a structured message to all devices on the network cluster
defining the current device's interface's location and orientation in its
physical environment.
|
static void |
announceTablePositionToSpecificTable(java.lang.String targetTableID)
Sends out a structured message to a specific device on the network
cluster defining the current device's interface's location and
orientation in its physical environment.
|
static java.lang.String |
getIDForTable(com.jme3.scene.Spatial targetTable)
Retrieves the network cluster ID of the device interface represented by a
spatial.
|
static void |
removeTable(java.lang.String tableID)
Removes the spatial representing the identified device's interface from
the environment.
|
static void |
removeTableFromAll()
Sends a structured message announcing that the local representation of
the current device's interface should be removed from all instances of
SynergyNetApp extending applications.
|
public static java.util.HashMap<java.lang.String,com.jme3.scene.Spatial> otherTables
public static java.util.HashMap<java.lang.String,java.lang.Float> otherTablesOrientation
public static java.util.HashMap<java.lang.String,java.lang.Float> otherTablesScaleChanges
public static void addTable(java.lang.String tableID, com.jme3.math.Vector2f location, float orientation, com.jme3.math.Vector2f dimensions, float pixelWidth, float metreWidth, IStage stage)
tableID
- ID of the device of the interface represented on the
network cluster.location
- Location of the interface represented in the physical
environment relative to the local device's interface position.orientation
- Orientation of the interface represented in the
physical environment relative to the local device's interface
position.dimensions
- The width and height of the device represented's
interface.pixelWidth
- The width of the device represented's interface in
pixels.public static void announceTablePositionToAll()
public static void announceTablePositionToSpecificTable(java.lang.String targetTableID)
targetTableID
- The ID of the target device on the network cluster.public static java.lang.String getIDForTable(com.jme3.scene.Spatial targetTable)
targetTable
- Spatial representing a remote device interface.public static void removeTable(java.lang.String tableID)
tableID
- ID of the device to be removed on the network cluster.public static void removeTableFromAll()