C# Class csGeoLayers.Plugins.DemoScript.DemoScript

Inheritance: Caliburn.Micro.PropertyChangedBase, IPlugin
Afficher le fichier Open project: TNOCS/csTouch Class Usage Examples

Méthodes publiques

Свойство Type Description
DisableClose bool
KeepScriptActive bool
ZoomBack bool

Méthodes publiques

Méthode Description
AnimateOpacityWindowId ( string id, double posX, double posY, int duration = 2000 ) : void
AnimateWindowId ( string id, double posX, double posY, int duration = 2000 ) : void
AnimateWindowRef ( object vm, double posX, double posY, int duration = 2000 ) : void
CallMethod ( object vm, string method ) : void

Call a method on a viewmodel using reflection

CallMethod ( object vm, string method, object args ) : void

Call a method on a viewmodel using reflection

ChangeMapType ( string maptype ) : void

Change map type

CloseAll ( ) : void

Closes all Floating elements and plugins

CloseAllText ( ) : void

Closes all Floating elements and plugins

CloseOwn ( ) : void

Closes only the floating elements that were created by this app

CloseWindow ( string title ) : void

Closes the window

CloseWindowId ( string id ) : void
CloseWindowRef ( object vm ) : void
DisableCloseAll ( ) : void
DisableTouch ( ) : void

Disable touch / mouse responsiveness to application

DisableZoomBack ( ) : void
EnableCloseAll ( ) : void
EnableTouch ( ) : void

Enable touch / mouse responsiveness to application

EnableZoomBack ( ) : void
GetXResolution ( ) : double
GetYResolution ( ) : double
HidePlugin ( string pluginName ) : void

Hide plugin so it sits on the border again

Init ( ) : void
IsActive ( ) : bool
LockMap ( ) : void
MoveWindowRef ( object vm, double posX, double posY ) : void
OpenImage ( string source, object args = null, string title = "Window", string filetype = "image", double sizeX = 600, double sizeY = 400, double posX = 500, double posY = 500, string id = "", bool border = false, double opacity = 1 ) : object

Tries to open a Floating element by looking in all referenced assemblies for the full namespace of the viewmodel

OpenTemplate ( string text, string image1, string image2, string image3 ) : void

Tries to open a text and accompanying images in a preset way to create uniformity

OpenWebpage ( string source, object args = null, string title = "Window", double sizeX = 600, double sizeY = 400, double posX = 500, double posY = 500, string id = "", bool border = false ) : object

Tries to open a Floating element by looking in all referenced assemblies for the full namespace of the viewmodel

OpenWindow ( string modelName, object args = null, string title = "Window", double sizeX = 600, double sizeY = 400, double posX = 500, double posY = 500, string id = "", bool border = true ) : object

Tries to open a Floating element by looking in all referenced assemblies for the full namespace of the viewmodel

PanTo ( double xmin, double ymin, double xmax, double ymax, int animTime = 3000 ) : void

Zoom to extent

PanToAnimate ( double posX, double posY, int animTime = 3000 ) : void

Zoom to extent

Pause ( ) : void
Pause ( int msecs ) : void

Pause a while

RemoveMapConstraint ( ) : void
SetMapConstraint ( double topleftX = -180, double topleftY = -90, double bottomrightX = 180, double bottomrightY = 90, bool setExtent = false ) : void
SetMapMax ( double maxresolution ) : void
SetMapMin ( double minresolution ) : void
ShowPlugin ( string pluginName, double sizeX = 600, double sizeY = 500, double posX = 500, double posY = 500 ) : void

Shows an already present plugin by changing width / height / position

ShowText ( string text, double margin, double marginLeft = double.NaN, double marginTop = double.NaN, double marginRight = double.NaN, double marginBottom = double.NaN, string background = "#FF641946", string foreground = "White", string horAlign = "Left", string verAlign = "Top", double sizex = double.NaN, double sizey = double.NaN, double fontSize = 40, string fontFamily = "Segoe UI", string textAlignment = "Left", double duration = 5000, bool canbedeleted = true, string script = "" ) : void
Start ( ) : void
StartScript ( ) : void
StartScript ( string file, bool notifyHandler = true ) : void
StartScriptNoNotify ( ) : void
Stop ( ) : void
TriggerScriptCommand ( string command ) : void
WaitForInteraction ( string name, int timeout ) : bool
WaitForInteraction ( int timeout ) : string
ZoomTo ( double xmin, double ymin, double xmax, double ymax, int animTime = 1000, bool effect = false, bool webMercator = false ) : void

Zoom to extent

ZoomToAnimate ( double xmin, double ymin, double xmax, double ymax, int animTime = 200, double nrSteps = 20d ) : void

Private Methods

Méthode Description
AnimateOpacityWindow ( FloatingElement fe, double posX, double posY, long duration = 2000 ) : void
AnimateWindow ( FloatingElement fe, double posX, double posY, long duration = 2000 ) : void
AppState_InteractionOccurred ( object sender, string name, string command ) : void
AppState_SomeInteractionOccurred ( object sender, string name, string command ) : void

Method Details

AnimateOpacityWindowId() public méthode

public AnimateOpacityWindowId ( string id, double posX, double posY, int duration = 2000 ) : void
id string
posX double
posY double
duration int
Résultat void

AnimateWindowId() public méthode

public AnimateWindowId ( string id, double posX, double posY, int duration = 2000 ) : void
id string
posX double
posY double
duration int
Résultat void

AnimateWindowRef() public méthode

public AnimateWindowRef ( object vm, double posX, double posY, int duration = 2000 ) : void
vm object
posX double
posY double
duration int
Résultat void

CallMethod() public méthode

Call a method on a viewmodel using reflection
public CallMethod ( object vm, string method ) : void
vm object
method string
Résultat void

CallMethod() public méthode

Call a method on a viewmodel using reflection
public CallMethod ( object vm, string method, object args ) : void
vm object
method string
args object Arguments of the method
Résultat void

ChangeMapType() public méthode

Change map type
public ChangeMapType ( string maptype ) : void
maptype string
Résultat void

CloseAll() public méthode

Closes all Floating elements and plugins
public CloseAll ( ) : void
Résultat void

CloseAllText() public méthode

Closes all Floating elements and plugins
public CloseAllText ( ) : void
Résultat void

CloseOwn() public méthode

Closes only the floating elements that were created by this app
public CloseOwn ( ) : void
Résultat void

CloseWindow() public méthode

Closes the window
public CloseWindow ( string title ) : void
title string
Résultat void

CloseWindowId() public méthode

public CloseWindowId ( string id ) : void
id string
Résultat void

CloseWindowRef() public méthode

public CloseWindowRef ( object vm ) : void
vm object
Résultat void

DisableCloseAll() public méthode

public DisableCloseAll ( ) : void
Résultat void

DisableTouch() public méthode

Disable touch / mouse responsiveness to application
public DisableTouch ( ) : void
Résultat void

DisableZoomBack() public méthode

public DisableZoomBack ( ) : void
Résultat void

EnableCloseAll() public méthode

public EnableCloseAll ( ) : void
Résultat void

EnableTouch() public méthode

Enable touch / mouse responsiveness to application
public EnableTouch ( ) : void
Résultat void

EnableZoomBack() public méthode

public EnableZoomBack ( ) : void
Résultat void

GetXResolution() public méthode

public GetXResolution ( ) : double
Résultat double

GetYResolution() public méthode

public GetYResolution ( ) : double
Résultat double

HidePlugin() public méthode

Hide plugin so it sits on the border again
public HidePlugin ( string pluginName ) : void
pluginName string
Résultat void

Init() public méthode

public Init ( ) : void
Résultat void

IsActive() public méthode

public IsActive ( ) : bool
Résultat bool

LockMap() public méthode

public LockMap ( ) : void
Résultat void

MoveWindowRef() public méthode

public MoveWindowRef ( object vm, double posX, double posY ) : void
vm object
posX double
posY double
Résultat void

OpenImage() public méthode

Tries to open a Floating element by looking in all referenced assemblies for the full namespace of the viewmodel
public OpenImage ( string source, object args = null, string title = "Window", string filetype = "image", double sizeX = 600, double sizeY = 400, double posX = 500, double posY = 500, string id = "", bool border = false, double opacity = 1 ) : object
source string
args object
title string
filetype string
sizeX double
sizeY double
posX double
posY double
id string
border bool
opacity double
Résultat object

OpenTemplate() public méthode

Tries to open a text and accompanying images in a preset way to create uniformity
public OpenTemplate ( string text, string image1, string image2, string image3 ) : void
text string
image1 string
image2 string
image3 string
Résultat void

OpenWebpage() public méthode

Tries to open a Floating element by looking in all referenced assemblies for the full namespace of the viewmodel
public OpenWebpage ( string source, object args = null, string title = "Window", double sizeX = 600, double sizeY = 400, double posX = 500, double posY = 500, string id = "", bool border = false ) : object
source string
args object
title string
sizeX double
sizeY double
posX double
posY double
id string
border bool
Résultat object

OpenWindow() public méthode

Tries to open a Floating element by looking in all referenced assemblies for the full namespace of the viewmodel
public OpenWindow ( string modelName, object args = null, string title = "Window", double sizeX = 600, double sizeY = 400, double posX = 500, double posY = 500, string id = "", bool border = true ) : object
modelName string
args object
title string
sizeX double
sizeY double
posX double
posY double
id string
border bool
Résultat object

PanTo() public méthode

Zoom to extent
public PanTo ( double xmin, double ymin, double xmax, double ymax, int animTime = 3000 ) : void
xmin double
ymin double
xmax double
ymax double
animTime int
Résultat void

PanToAnimate() public méthode

Zoom to extent
public PanToAnimate ( double posX, double posY, int animTime = 3000 ) : void
posX double
posY double
animTime int
Résultat void

Pause() public méthode

public Pause ( ) : void
Résultat void

Pause() public méthode

Pause a while
public Pause ( int msecs ) : void
msecs int
Résultat void

RemoveMapConstraint() public méthode

public RemoveMapConstraint ( ) : void
Résultat void

SetMapConstraint() public méthode

public SetMapConstraint ( double topleftX = -180, double topleftY = -90, double bottomrightX = 180, double bottomrightY = 90, bool setExtent = false ) : void
topleftX double
topleftY double
bottomrightX double
bottomrightY double
setExtent bool
Résultat void

SetMapMax() public méthode

public SetMapMax ( double maxresolution ) : void
maxresolution double
Résultat void

SetMapMin() public méthode

public SetMapMin ( double minresolution ) : void
minresolution double
Résultat void

ShowPlugin() public méthode

Shows an already present plugin by changing width / height / position
public ShowPlugin ( string pluginName, double sizeX = 600, double sizeY = 500, double posX = 500, double posY = 500 ) : void
pluginName string
sizeX double
sizeY double
posX double
posY double
Résultat void

ShowText() public méthode

public ShowText ( string text, double margin, double marginLeft = double.NaN, double marginTop = double.NaN, double marginRight = double.NaN, double marginBottom = double.NaN, string background = "#FF641946", string foreground = "White", string horAlign = "Left", string verAlign = "Top", double sizex = double.NaN, double sizey = double.NaN, double fontSize = 40, string fontFamily = "Segoe UI", string textAlignment = "Left", double duration = 5000, bool canbedeleted = true, string script = "" ) : void
text string
margin double
marginLeft double
marginTop double
marginRight double
marginBottom double
background string
foreground string
horAlign string
verAlign string
sizex double
sizey double
fontSize double
fontFamily string
textAlignment string
duration double
canbedeleted bool
script string
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

StartScript() public méthode

public StartScript ( ) : void
Résultat void

StartScript() public méthode

public StartScript ( string file, bool notifyHandler = true ) : void
file string
notifyHandler bool
Résultat void

StartScriptNoNotify() public méthode

public StartScriptNoNotify ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

TriggerScriptCommand() public méthode

public TriggerScriptCommand ( string command ) : void
command string
Résultat void

WaitForInteraction() public méthode

public WaitForInteraction ( string name, int timeout ) : bool
name string
timeout int
Résultat bool

WaitForInteraction() public méthode

public WaitForInteraction ( int timeout ) : string
timeout int
Résultat string

ZoomTo() public méthode

Zoom to extent
public ZoomTo ( double xmin, double ymin, double xmax, double ymax, int animTime = 1000, bool effect = false, bool webMercator = false ) : void
xmin double
ymin double
xmax double
ymax double
animTime int
effect bool
webMercator bool
Résultat void

ZoomToAnimate() public méthode

public ZoomToAnimate ( double xmin, double ymin, double xmax, double ymax, int animTime = 200, double nrSteps = 20d ) : void
xmin double
ymin double
xmax double
ymax double
animTime int
nrSteps double
Résultat void

Property Details

DisableClose public_oe property

public bool DisableClose
Résultat bool

KeepScriptActive public_oe property

public bool KeepScriptActive
Résultat bool

ZoomBack public_oe property

public bool ZoomBack
Résultat bool