30 #include <QApplication> 38 int main(
int argc,
char *argv[])
50 const int maxi = 1000;
54 std::list<te::map::AbstractLayerPtr> layers;
56 for(
int i = 1; i <= maxi; ++i)
59 std::string title =
"Folder Layer " + id;
63 for(
int j = 1; j <= maxj; ++j)
66 title =
"Folder Layer " + jid;
70 for(
int k = 1; k <= maxk; ++k)
73 title =
"DataSet Layer " + kid;
81 layers.push_back(layerPtr);
86 std::cout << std::endl <<
"Time to create te::map::AbstractLayer hierarchical tree with " << maxi * maxj * maxk <<
" items in: " << end - begin <<
" miliseconds" << std:: endl;
95 std::cout << std::endl <<
"Time to create LayerExplorer for the hierarchical tree with " << maxi * maxj * maxk <<
" items in: " << end - begin <<
" miliseconds" << std:: endl;
101 layerItemView->show();
105 std::cout << std::endl <<
"Time to show the LayerExplorer widget for the first time: " << end - begin <<
" miliseconds" << std:: endl;
107 int ret = app.exec();
109 delete layerItemView;
int main(int argc, char *argv[])
An utility class to control the startup and cleanup of the TerraLib Platform and its resources...
A layer that can be used as a container for other kind of layers.
void finalize()
It finalizes the TerraLib Platform.
static TerraLib & getInstance()
It returns a reference to the singleton instance.
Defines a layer item model for Qt5.
Defines a layer item view for Qt5.
void initialize()
It initializes the TerraLib Platform.
This file contains include headers for the TerraLib Common Runtime module.
A layer with reference to a dataset.
std::string Convert2String(boost::int16_t value)
It converts a short integer value to a string.
This file contains include headers for the Data Access module of TerraLib.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr