CityMaker 8 二次開發之創建幾何類型(工廠模式)

如上圖: 1)IGeometry依賴於工廠接口,也就是IGeometry不能直接new一個對象,需要工廠接口來輔助對象創建。所有的幾何對象都是這樣創建的。 2)IGeometryFactory由GeometryFactory實現,通過IGeometryFactory geoFac = new GeometryFactory();創建工廠對象,再考慮由geoFac創建其它幾何對象。 3)IGeome
相關文章
相關標籤/搜索