C# 클래스 DataServer.BaseContent

상속: PropertyChangedBase, IContent, IComparable, IConvertibleGeoJson, ITextSearchable
파일 보기 프로젝트 열기: TNOCS/csTouch 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
CalloutActions List
UpdateSensorData bool

Private Properties

프로퍼티 타입 설명
AppendPropertyToGeoJson void
CheckIcon void
LookupPropertyPoiTypeInPoITypes void
TriggerDeleted void
UppercaseFirst XName
allMedia_CollectionChanged void

공개 메소드들

메소드 설명
AddFilter ( string title, string label, string stringvalue = "", double numbervalue ) : Highlight
AddHighlighter ( string title, string label, string stringvalue = "" ) : Highlight

Create a highlighter. Note that you still need to add it to the Style.Analysis.

AddLocalMediaItem ( string pId, string img ) : void
AddMetaInfo ( string title, string source, MetaTypes type = MetaTypes.text, bool searchable = false, bool visibleInCallout = true, string section = "Info", List options = null, double minvalue = Double.NaN, double maxvalue = Double.NaN, string format = null, bool editActive = false, bool canEdit = true ) : MetaInfo

Add meta info to the PoIType.

AddMetaInfo ( string title, MetaTypes type = MetaTypes.text, bool searchable = false, bool callout = true, string section = "Info", List options = null, double minvalue = Double.NaN, double maxvalue = Double.NaN, string format = null, bool editActive = false, bool canEdit = true ) : void

Add meta info to the PoIType.

AddPosition ( Position myPosition, System.DateTime date, bool track = true ) : void
AddSensorData ( string sensor, System.DateTime date, double value, string description = "", bool trigger = true ) : void
CalculateVisible ( double p ) : void
CompareTo ( object obj ) : int
ForceUpdate ( bool triggerLabelChanged = false, bool triggerUpdatePosition = false ) : void

Update the effective style, optionally triggering a label changed and position changed.

FromGeoJson ( Newtonsoft.Json.Linq.JObject geoJsonObject, bool newObject = true ) : IConvertibleGeoJson
FromGeoJson ( string geoJson, bool newObject ) : IConvertibleGeoJson
FromXml ( System.Xml.Linq.XElement element ) : void
FromXml ( System.Xml.Linq.XElement element, string directoryName ) : void
FromXmlBase ( System.Xml.Linq.XElement &res, string directoryName ) : void
GetEffectiveAnalysis ( BaseContent p, AnalysisMetaInfo &a ) : void
GetMetaLabels ( ) : ObservableCollection
IconImageReceived ( string anId, byte content, Service s ) : void
IsVisibleInExtent ( BoundingBox t ) : bool
OnDataChanged ( string key, string old = "", string newvalue = "" ) : void
OnLabelChanged ( string key, string old = "", string newvalue = "" ) : void
Select ( ) : void
SetPosition ( double pLongitude, double pLatitude ) : void
StartRotation ( ) : void
ToGeoJson ( ) : string

Convert the PoI to a GeoJSON string.

ToXml ( ) : XElement
ToXml ( ServiceSettings settings ) : XElement
ToXmlBase ( ServiceSettings settings ) : XElement
TriggerChanged ( ) : void
TriggerItemsLeft ( ) : void
TriggerLabelChanged ( string key, string oldValue = "", string newValue = "" ) : void
TriggerPositionChanged ( ) : void
TriggerUpdated ( bool visibility = true ) : void
TypeFromGeoJson ( JProperty json ) : void
TypeToGeoJson ( ) : string

Convert the type information to JSON format.

UpdateAnalysisStyle ( ) : bool

Recalculate analysis style based on filters. Also resets the effective style.

UpdateEffectiveStyle ( ) : void
UpdateStyle ( BaseContent poiType, bool triggerLabelChanged = false, bool triggerUpdatePosition = false ) : void

Update the PoI's style, optionally triggering a label changed and position changed.

보호된 메소드들

메소드 설명
HasChanged ( ) : void

triggers changed event, for syncing content

OnDeleted ( ) : void

비공개 메소드들

메소드 설명
AppendPropertyToGeoJson ( StringBuilder builder, PropertyInfo property, bool startWithComma = true ) : void
CheckIcon ( ) : void

Check if Icon exists, if not request it from service

LookupPropertyPoiTypeInPoITypes ( ) : void

Look up PoiTypeId in the Service.PoITypes (if found, property PoiType is set)

TriggerDeleted ( ) : void
UppercaseFirst ( XName x ) : XName
allMedia_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

메소드 상세

AddFilter() 공개 메소드

public AddFilter ( string title, string label, string stringvalue = "", double numbervalue ) : Highlight
title string
label string
stringvalue string
numbervalue double
리턴 PoiServer.PoI.Highlight

AddHighlighter() 공개 메소드

Create a highlighter. Note that you still need to add it to the Style.Analysis.
public AddHighlighter ( string title, string label, string stringvalue = "" ) : Highlight
title string
label string
stringvalue string
리턴 PoiServer.PoI.Highlight

AddLocalMediaItem() 공개 메소드

public AddLocalMediaItem ( string pId, string img ) : void
pId string
img string
리턴 void

AddMetaInfo() 공개 메소드

Add meta info to the PoIType.
public AddMetaInfo ( string title, string source, MetaTypes type = MetaTypes.text, bool searchable = false, bool visibleInCallout = true, string section = "Info", List options = null, double minvalue = Double.NaN, double maxvalue = Double.NaN, string format = null, bool editActive = false, bool canEdit = true ) : MetaInfo
title string Display title
source string Source label
type MetaTypes
searchable bool
visibleInCallout bool
section string
options List
minvalue double
maxvalue double
format string
editActive bool
canEdit bool
리턴 MetaInfo

AddMetaInfo() 공개 메소드

Add meta info to the PoIType.
public AddMetaInfo ( string title, MetaTypes type = MetaTypes.text, bool searchable = false, bool callout = true, string section = "Info", List options = null, double minvalue = Double.NaN, double maxvalue = Double.NaN, string format = null, bool editActive = false, bool canEdit = true ) : void
title string
type MetaTypes
searchable bool
callout bool
section string
options List
minvalue double
maxvalue double
format string
editActive bool
canEdit bool
리턴 void

AddPosition() 공개 메소드

public AddPosition ( Position myPosition, System.DateTime date, bool track = true ) : void
myPosition Position
date System.DateTime
track bool
리턴 void

AddSensorData() 공개 메소드

public AddSensorData ( string sensor, System.DateTime date, double value, string description = "", bool trigger = true ) : void
sensor string
date System.DateTime
value double
description string
trigger bool
리턴 void

CalculateVisible() 공개 메소드

public CalculateVisible ( double p ) : void
p double
리턴 void

CompareTo() 공개 메소드

public CompareTo ( object obj ) : int
obj object
리턴 int

ForceUpdate() 공개 메소드

Update the effective style, optionally triggering a label changed and position changed.
public ForceUpdate ( bool triggerLabelChanged = false, bool triggerUpdatePosition = false ) : void
triggerLabelChanged bool
triggerUpdatePosition bool
리턴 void

FromGeoJson() 공개 메소드

public FromGeoJson ( Newtonsoft.Json.Linq.JObject geoJsonObject, bool newObject = true ) : IConvertibleGeoJson
geoJsonObject Newtonsoft.Json.Linq.JObject
newObject bool
리턴 IConvertibleGeoJson

FromGeoJson() 공개 메소드

public FromGeoJson ( string geoJson, bool newObject ) : IConvertibleGeoJson
geoJson string
newObject bool
리턴 IConvertibleGeoJson

FromXml() 공개 메소드

public FromXml ( System.Xml.Linq.XElement element ) : void
element System.Xml.Linq.XElement
리턴 void

FromXml() 공개 메소드

public FromXml ( System.Xml.Linq.XElement element, string directoryName ) : void
element System.Xml.Linq.XElement
directoryName string
리턴 void

FromXmlBase() 공개 메소드

public FromXmlBase ( System.Xml.Linq.XElement &res, string directoryName ) : void
res System.Xml.Linq.XElement
directoryName string
리턴 void

GetEffectiveAnalysis() 공개 정적인 메소드

public static GetEffectiveAnalysis ( BaseContent p, AnalysisMetaInfo &a ) : void
p BaseContent
a PoiServer.PoI.AnalysisMetaInfo
리턴 void

GetMetaLabels() 공개 메소드

public GetMetaLabels ( ) : ObservableCollection
리턴 ObservableCollection

HasChanged() 보호된 메소드

triggers changed event, for syncing content
protected HasChanged ( ) : void
리턴 void

IconImageReceived() 공개 메소드

public IconImageReceived ( string anId, byte content, Service s ) : void
anId string
content byte
s Service
리턴 void

IsVisibleInExtent() 공개 메소드

public IsVisibleInExtent ( BoundingBox t ) : bool
t BoundingBox
리턴 bool

OnDataChanged() 공개 메소드

public OnDataChanged ( string key, string old = "", string newvalue = "" ) : void
key string
old string
newvalue string
리턴 void

OnDeleted() 보호된 메소드

protected OnDeleted ( ) : void
리턴 void

OnLabelChanged() 공개 메소드

public OnLabelChanged ( string key, string old = "", string newvalue = "" ) : void
key string
old string
newvalue string
리턴 void

Select() 공개 메소드

public Select ( ) : void
리턴 void

SetPosition() 공개 메소드

public SetPosition ( double pLongitude, double pLatitude ) : void
pLongitude double
pLatitude double
리턴 void

StartRotation() 공개 메소드

public StartRotation ( ) : void
리턴 void

ToGeoJson() 공개 메소드

Convert the PoI to a GeoJSON string.
public ToGeoJson ( ) : string
리턴 string

ToXml() 공개 메소드

public ToXml ( ) : XElement
리턴 XElement

ToXml() 공개 메소드

public ToXml ( ServiceSettings settings ) : XElement
settings ServiceSettings
리턴 XElement

ToXmlBase() 공개 메소드

public ToXmlBase ( ServiceSettings settings ) : XElement
settings ServiceSettings
리턴 XElement

TriggerChanged() 공개 메소드

public TriggerChanged ( ) : void
리턴 void

TriggerItemsLeft() 공개 메소드

public TriggerItemsLeft ( ) : void
리턴 void

TriggerLabelChanged() 공개 메소드

public TriggerLabelChanged ( string key, string oldValue = "", string newValue = "" ) : void
key string
oldValue string
newValue string
리턴 void

TriggerPositionChanged() 공개 메소드

public TriggerPositionChanged ( ) : void
리턴 void

TriggerUpdated() 공개 메소드

public TriggerUpdated ( bool visibility = true ) : void
visibility bool
리턴 void

TypeFromGeoJson() 공개 메소드

public TypeFromGeoJson ( JProperty json ) : void
json JProperty
리턴 void

TypeToGeoJson() 공개 메소드

Convert the type information to JSON format.
public TypeToGeoJson ( ) : string
리턴 string

UpdateAnalysisStyle() 공개 메소드

Recalculate analysis style based on filters. Also resets the effective style.
public UpdateAnalysisStyle ( ) : bool
리턴 bool

UpdateEffectiveStyle() 공개 메소드

public UpdateEffectiveStyle ( ) : void
리턴 void

UpdateStyle() 공개 메소드

Update the PoI's style, optionally triggering a label changed and position changed.
public UpdateStyle ( BaseContent poiType, bool triggerLabelChanged = false, bool triggerUpdatePosition = false ) : void
poiType BaseContent
triggerLabelChanged bool
triggerUpdatePosition bool
리턴 void

프로퍼티 상세

CalloutActions 공개적으로 프로퍼티

public List CalloutActions
리턴 List

UpdateSensorData 공개적으로 프로퍼티

public bool UpdateSensorData
리턴 bool