C# 클래스 Revit.SDK.Samples.SharedCoordinateSystem.CS.PlaceInfo

a class used to store information of all city include it's name,Latitude,longitude,timezone
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
AddCityInfo ( CityInfo cityInfo ) : void

Add a city info to city info List

Initialize ( CitySet cities ) : bool

initialize function

PlaceInfo ( CitySet cities ) : System

class PlaceInfo's constructor

TryGetCityInfo ( string cityName, CityInfo &cityInfo ) : bool

try to get city info according to city name

TryGetCityNameTimeZone ( CityInfo cityInfo, string &cityName, double &timeZone ) : bool

try to get city name according to CityInfo

TryGetTimeZoneNumber ( string timeZoneString ) : double

try to get TimeZone's number from a string

TryGetTimeZoneString ( double timeZoneNumber ) : string

try to get city's timezone

비공개 메소드들

메소드 설명
InitCities ( CitySet cities ) : bool

initialize cities

InitTimeZone ( ) : bool

initialize timezone

메소드 상세

AddCityInfo() 공개 메소드

Add a city info to city info List
public AddCityInfo ( CityInfo cityInfo ) : void
cityInfo CityInfo the city info need to add
리턴 void

Initialize() 공개 메소드

initialize function
public Initialize ( CitySet cities ) : bool
cities CitySet a set store all cities
리턴 bool

PlaceInfo() 공개 메소드

class PlaceInfo's constructor
public PlaceInfo ( CitySet cities ) : System
cities CitySet
리턴 System

TryGetCityInfo() 공개 메소드

try to get city info according to city name
public TryGetCityInfo ( string cityName, CityInfo &cityInfo ) : bool
cityName string city name
cityInfo CityInfo city's information
리턴 bool

TryGetCityNameTimeZone() 공개 메소드

try to get city name according to CityInfo
public TryGetCityNameTimeZone ( CityInfo cityInfo, string &cityName, double &timeZone ) : bool
cityInfo CityInfo store information about city
cityName string city's name
timeZone double city's timezone
리턴 bool

TryGetTimeZoneNumber() 공개 메소드

try to get TimeZone's number from a string
public TryGetTimeZoneNumber ( string timeZoneString ) : double
timeZoneString string a string store TimeZone
리턴 double

TryGetTimeZoneString() 공개 메소드

try to get city's timezone
public TryGetTimeZoneString ( double timeZoneNumber ) : string
timeZoneNumber double time zone
리턴 string