9 #ifndef TileMapService_hpp
10 #define TileMapService_hpp
15 #include "GlobeEngineGeoTiff.h"
17 #include <vmmlib/vmmlib.hpp>
46 std::vector<vmml::Vector2d> pixelScalings;
48 std::function<void(int const&)> callbackProgress =
nullptr;
49 std::function<void(std::string const&)> callbackLog =
nullptr;
51 bool maxminZero =
false;
52 std::string normalExtension;
53 std::string normalEndOfFileName;
54 unsigned short overlapping = 1;
62 void importTiff(std::string _fileName,
double _scale);
66 std::shared_ptr<vmml::Vector4i>
tileOfCoordinate(
int _lod, vmml::Vector4f _coor);
77 void setLocation(std::string _location){ location = _location[_location.size() - 1] ==
'/' ? _location.substr(0, _location.size() - 1) : _location; };
93 void setCallbackProgress(std::function<
void(
int const&)>
const& _callbackProgress){ callbackProgress = _callbackProgress; };
94 void setCallbackLog(std::function<
void(std::string
const&)>
const& _callbackLog){ callbackLog = _callbackLog; };
114 void createTilesInLodFromImage(
int _lod, geoTiffIo::GlobeEngineGeoTiff _gTiff,
double _scale);
115 void mergeUp(
int _fromLod,
int _toLod);
116 geoTiffIo::ScanLineBufferPtr ComputeNormalBuffer(geoTiffIo::ScanLineBufferPtr _bufin1, geoTiffIo::ScanLineBufferPtr _bufin2, geoTiffIo::ScanLineBufferPtr _bufin3);
Definition: TileManager.hpp:30
int colorSpace
Definition: TileMapService.hpp:34
TileMapService()
Definition: TileMapService.cpp:57
int bitPerSample
Definition: TileMapService.hpp:25
void removeZeroTiles()
Definition: TileMapService.cpp:615
void removeZeronNormals()
Definition: TileMapService.cpp:638
void setMaxLod(int _maxLod)
Definition: TileMapService.hpp:79
void setCallbackLog(std::function< void(std::string const &)> const &_callbackLog)
Definition: TileMapService.hpp:94
void readTileSetting()
Definition: TileMapService.cpp:510
void setBitPerSample(int _bitPerSample)
Definition: TileMapService.hpp:85
void setCompression(int _compression)
Definition: TileMapService.hpp:111
int getSampleFormat()
Definition: TileMapService.hpp:88
void setOverlapping(int _overlapping)
Definition: TileMapService.hpp:109
unsigned short getoverlapping()
Definition: TileMapService.hpp:110
vmml::Vector4d getPCSBoundaryOfTile(geSpatial::SpatialKey2ui _key)
Definition: TileMapService.cpp:554
void setColorSpace(int _ColorSpace)
Definition: TileMapService.hpp:92
void unsetMaxMinZero()
Definition: TileMapService.hpp:104
void setNormalCommand(NormalCommand *_nc)
Definition: TileMapService.hpp:101
void readExistingMaxLod()
Definition: TileMapService.cpp:449
void loadNormal()
Definition: TileMapService.cpp:31
vmml::Vector2i getUVforTilesAtLod(int _Lod)
Definition: TileMapService.cpp:109
void removeEmptyDirectories()
Definition: TileMapService.cpp:586
std::string getNormalExtension()
Definition: TileMapService.hpp:106
void load()
Definition: TileMapService.cpp:15
std::string getExtension()
Definition: TileMapService.hpp:98
std::string getNormalEndOfFileName()
Definition: TileMapService.hpp:108
int tileSize
Definition: TileMapService.hpp:24
int getCompression()
Definition: TileMapService.hpp:112
int getSamplePerPixel()
Definition: TileMapService.hpp:89
std::string endFileName
Definition: TileMapService.hpp:35
int getBitPerSample()
Definition: TileMapService.hpp:87
Definition: NormalCommand.h:16
std::string getEndFileName()
Definition: TileMapService.hpp:100
int getMaxLod()
Definition: TileMapService.hpp:80
std::function< void(int const &)> getCallbackProgress()
Definition: TileMapService.hpp:95
int sampleFormat
Definition: TileMapService.hpp:27
void setLocation(std::string _location)
Definition: TileMapService.hpp:77
void importTiff(std::string _fileName, double _scale)
Definition: TileMapService.cpp:120
NormalCommand * getNormalCommand()
Definition: TileMapService.hpp:102
void calculatePixelScaling()
Definition: TileMapService.cpp:96
int getColorSpace()
Definition: TileMapService.hpp:90
Definition: TileMapService.hpp:23
void setMaxMinZero()
Definition: TileMapService.hpp:103
int samplePerPixel
Definition: TileMapService.hpp:26
void setNormalExtension(std::string _normalExtension)
Definition: TileMapService.hpp:105
Definition: NormalCommand.h:14
Definition: SpatialKey.h:137
double getPixelScaleX(short _lod)
Definition: TileMapService.hpp:83
void setEndFileName(std::string _endFileName)
Definition: TileMapService.hpp:99
Definition: TileMapService.hpp:39
TileManager getTileManager()
Definition: TileMapService.hpp:96
void checkAndCreateDirectory(geSpatial::SpatialKey2ui _key)
Definition: TileMapService.cpp:662
std::string extension
Definition: TileMapService.hpp:36
vmml::Vector4i readBoundingAtLod(int _lod)
Definition: TileMapService.cpp:456
void setCallbackProgress(std::function< void(int const &)> const &_callbackProgress)
Definition: TileMapService.hpp:93
vmml::Vector4d getPCSBoundaryOfPoint(geSpatial::SpatialKey2ui _key)
Definition: TileMapService.cpp:570
void setSampleFormat(int _sampleFormat)
Definition: TileMapService.hpp:86
void initTiles(TMSTileSetting _tmsTileSetting)
Definition: TileMapService.hpp:58
double getPixelScaleY(short _lod)
Definition: TileMapService.hpp:84
int getTileSize()
Definition: TileMapService.hpp:81
std::string getLocaiton()
Definition: TileMapService.hpp:78
Definition: TMSXml.hpp:51
void setSamplePerPixel(int _SamplePerPixel)
Definition: TileMapService.hpp:91
void setNormalEndOfFileName(std::string _normalEndOfFileName)
Definition: TileMapService.hpp:107
void produceNormal()
Definition: TileMapService.cpp:231
void generateXml()
Definition: TileMapService.cpp:61
std::shared_ptr< vmml::Vector4i > tileOfCoordinate(int _lod, vmml::Vector4f _coor)
Definition: TileMapService.cpp:542
void setExtension(std::string _extension)
Definition: TileMapService.hpp:97