LgService class
This class is responsible for the connection between the LG machine and the Tablet application The LG service needed such as shutting down the LG, Rebooting the LG, Relaunching the LG As well as common functionalities assosiated with the LG such as Fly-to, orbit, sending KML files, Clearing KML, Shwowing Ballons and Logos
Constructors
- LgService(SSHprovider _sshData)
Properties
- balloonScreen → int
-
Property that defines the balloon slave screen number according to the screenAmount property. (Most right screen)
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- logoScreen → int
-
Lg order: if 5 => 5 4 1 2 3 if 3 => 3 1 2
Property that defines the logo slave screen number according to the screenAmount property. (Most left screen)
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenAmount ↔ int
-
Property that defines number of screens. Defaults to
5
.getter/setter pair
Methods
-
clearKml(
{bool keepLogos = true}) → Future< void> -
Clears all
KMLs
from the Google Earth. ThekeepLogos
keeps the logos after clearing (default totrue
). -
flyTo(
LookAtModel lookAt) → Future< void> -
Fly to functionality:
Command to fly to a certain location: 'echo "flytoview=${flyto.generateLinearString()}" > /tmp/query.txt'
Uses the query method to fly to some place in Google Earth according to the given
lookAt
. See LookAtModel. -
getScreenAmount(
) → String? - Liquid Galaxy Services:
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query(
String content) → Future< void> -
Puts the given
content
into the/tmp/query.txt
file. -
reboot(
) → Future< void> - Reboots the Liquid Galaxy system. We used to write sudo reboot in the terminal, but we need a way to add the password and the LG number too here
-
relaunch(
) → Future< void> - Relaunching the Liquid Galaxy System: We used to type: --lg-relaunch in terminal
-
resetRefresh(
) → Future< void> - Setups the Google Earth in slave screens to stop refreshing.
-
sendKml(
KMLModel kml, {List< Map< images = const []}) → Future<String, String> >void> -
Sends a the given
kml
to the Liquid Galaxy system. -
sendKmlFileToMaster(
String kml, String KmlName) → Future< void> -
sendKMLToSlave(
int screen, String content) → Future< void> -
Sends a KML
content
to the given slavescreen
. -
sendTour(
String tourKml, String tourName) → Future< void> - KML services:
-
setLogos(
{String name = 'App-logos', String content = '<name>Logos</name>'}) → Future< void> -
Sets the logos KML into the Liquid Galaxy rig. A KML
name
andcontent
may be passed, but it's not required. -
setRefresh(
) → Future< void> - Setups the Google Earth in slave screens to refresh every 2 seconds.
-
shutdown(
) → Future< void> - Shuts down the Liquid Galaxy system.
-
startTour(
String tourName) → Future< void> -
Orbit functionality:
Uses the query method to play some tour in Google Earth according to the given
tourName
. Command: 'echo "playtour=Orbit" > /tmp/query.txt' -
stopTour(
) → Future< void> - Uses the query method to stop all tours in Google Earth.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited