C# 클래스 csGeoLayers.Plugins.DemoScript.DemoScript

상속: Caliburn.Micro.PropertyChangedBase, IPlugin
파일 보기 프로젝트 열기: TNOCS/csTouch 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DisableClose bool
KeepScriptActive bool
ZoomBack bool

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AnimateOpacityWindowId() 공개 메소드

public AnimateOpacityWindowId ( string id, double posX, double posY, int duration = 2000 ) : void
id string
posX double
posY double
duration int
리턴 void

AnimateWindowId() 공개 메소드

public AnimateWindowId ( string id, double posX, double posY, int duration = 2000 ) : void
id string
posX double
posY double
duration int
리턴 void

AnimateWindowRef() 공개 메소드

public AnimateWindowRef ( object vm, double posX, double posY, int duration = 2000 ) : void
vm object
posX double
posY double
duration int
리턴 void

CallMethod() 공개 메소드

Call a method on a viewmodel using reflection
public CallMethod ( object vm, string method ) : void
vm object
method string
리턴 void

CallMethod() 공개 메소드

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
리턴 void

ChangeMapType() 공개 메소드

Change map type
public ChangeMapType ( string maptype ) : void
maptype string
리턴 void

CloseAll() 공개 메소드

Closes all Floating elements and plugins
public CloseAll ( ) : void
리턴 void

CloseAllText() 공개 메소드

Closes all Floating elements and plugins
public CloseAllText ( ) : void
리턴 void

CloseOwn() 공개 메소드

Closes only the floating elements that were created by this app
public CloseOwn ( ) : void
리턴 void

CloseWindow() 공개 메소드

Closes the window
public CloseWindow ( string title ) : void
title string
리턴 void

CloseWindowId() 공개 메소드

public CloseWindowId ( string id ) : void
id string
리턴 void

CloseWindowRef() 공개 메소드

public CloseWindowRef ( object vm ) : void
vm object
리턴 void

DisableCloseAll() 공개 메소드

public DisableCloseAll ( ) : void
리턴 void

DisableTouch() 공개 메소드

Disable touch / mouse responsiveness to application
public DisableTouch ( ) : void
리턴 void

DisableZoomBack() 공개 메소드

public DisableZoomBack ( ) : void
리턴 void

EnableCloseAll() 공개 메소드

public EnableCloseAll ( ) : void
리턴 void

EnableTouch() 공개 메소드

Enable touch / mouse responsiveness to application
public EnableTouch ( ) : void
리턴 void

EnableZoomBack() 공개 메소드

public EnableZoomBack ( ) : void
리턴 void

GetXResolution() 공개 메소드

public GetXResolution ( ) : double
리턴 double

GetYResolution() 공개 메소드

public GetYResolution ( ) : double
리턴 double

HidePlugin() 공개 메소드

Hide plugin so it sits on the border again
public HidePlugin ( string pluginName ) : void
pluginName string
리턴 void

Init() 공개 메소드

public Init ( ) : void
리턴 void

IsActive() 공개 메소드

public IsActive ( ) : bool
리턴 bool

LockMap() 공개 메소드

public LockMap ( ) : void
리턴 void

MoveWindowRef() 공개 메소드

public MoveWindowRef ( object vm, double posX, double posY ) : void
vm object
posX double
posY double
리턴 void

OpenImage() 공개 메소드

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
리턴 object

OpenTemplate() 공개 메소드

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
리턴 void

OpenWebpage() 공개 메소드

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
리턴 object

OpenWindow() 공개 메소드

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
리턴 object

PanTo() 공개 메소드

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
리턴 void

PanToAnimate() 공개 메소드

Zoom to extent
public PanToAnimate ( double posX, double posY, int animTime = 3000 ) : void
posX double
posY double
animTime int
리턴 void

Pause() 공개 메소드

public Pause ( ) : void
리턴 void

Pause() 공개 메소드

Pause a while
public Pause ( int msecs ) : void
msecs int
리턴 void

RemoveMapConstraint() 공개 메소드

public RemoveMapConstraint ( ) : void
리턴 void

SetMapConstraint() 공개 메소드

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
리턴 void

SetMapMax() 공개 메소드

public SetMapMax ( double maxresolution ) : void
maxresolution double
리턴 void

SetMapMin() 공개 메소드

public SetMapMin ( double minresolution ) : void
minresolution double
리턴 void

ShowPlugin() 공개 메소드

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
리턴 void

ShowText() 공개 메소드

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
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

StartScript() 공개 메소드

public StartScript ( ) : void
리턴 void

StartScript() 공개 메소드

public StartScript ( string file, bool notifyHandler = true ) : void
file string
notifyHandler bool
리턴 void

StartScriptNoNotify() 공개 메소드

public StartScriptNoNotify ( ) : void
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

TriggerScriptCommand() 공개 메소드

public TriggerScriptCommand ( string command ) : void
command string
리턴 void

WaitForInteraction() 공개 메소드

public WaitForInteraction ( string name, int timeout ) : bool
name string
timeout int
리턴 bool

WaitForInteraction() 공개 메소드

public WaitForInteraction ( int timeout ) : string
timeout int
리턴 string

ZoomTo() 공개 메소드

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
리턴 void

ZoomToAnimate() 공개 메소드

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
리턴 void

프로퍼티 상세

DisableClose 공개적으로 프로퍼티

public bool DisableClose
리턴 bool

KeepScriptActive 공개적으로 프로퍼티

public bool KeepScriptActive
리턴 bool

ZoomBack 공개적으로 프로퍼티

public bool ZoomBack
리턴 bool