27 #include "../../../dataaccess/dataset/DataSet.h" 28 #include "../../../dataaccess/dataset/DataSetType.h" 29 #include "../../../dataaccess/utils/Utils.h" 30 #include "../../../maptools/DataSetLayer.h" 31 #include "../../../maptools/RasterLayer.h" 32 #include "../../../se/ChannelSelection.h" 33 #include "../../../se/ColorMap.h" 34 #include "../../../se/CoverageStyle.h" 35 #include "../../../se/RasterSymbolizer.h" 36 #include "../../../se/SelectedChannel.h" 37 #include "../../../se/Utils.h" 41 #include "ui_GroupingDialogForm.h" 45 m_ui(new
Ui::GroupingDialogForm),
46 m_groupingWidget(nullptr),
47 m_colorMapWidget(nullptr),
52 m_ui->m_okPushButton->setEnabled(
false);
56 m_ui->m_helpPushButton->setPageReference(
"widgets/grouping/grouping.html");
66 setWindowTitle(windowTitle() +
" (" + tr(
"Layer") +
":" + selectedLayer->getTitle().c_str() +
")");
69 std::unique_ptr<te::map::LayerSchema> dsType(selectedLayer->getSchema());
75 else if(dsType->hasRaster())
79 if(selectedLayer->getType() ==
"DATASETLAYER")
87 std::unique_ptr<te::da::DataSet>
ds =
m_layer->getData();
92 m_raster.reset(ds->getRaster(rpos).release());
96 else if(selectedLayer->getType() ==
"RASTERLAYER")
139 QGridLayout* layout =
new QGridLayout(
m_ui->m_widget);
140 layout->setContentsMargins(0,0,0,0);
154 QGridLayout* layout =
new QGridLayout(
m_ui->m_widget);
155 layout->setContentsMargins(0,0,0,0);
206 m_ui->m_okPushButton->setEnabled(
true);
A selected channel to be display.
TESEEXPORT RasterSymbolizer * GetRasterSymbolizer(Style *s)
Try to get raster symbolizer from a style.
te::rst::Raster * getRaster() const
te::se::ChannelSelection * getChannelSelection() const
void setGrayChannel(SelectedChannel *c)
static te::dt::Date ds(2010, 01, 01)
A dialog used to build a grouping.
This class contains the parameters needed for grouping the values of a Property.
A layer with reference to a raster.
virtual te::se::Style * getStyle() const
It returns the Style associated to the layer.
void setColorCompositionType(ColorCompositionType cct)
void setColorMap(ColorMap *c)
void setSourceChannelName(const std::string &name)
te::se::ColorMap * getColorMap() const
A layer with reference to a dataset.
TEDATAACCESSEXPORT std::size_t GetFirstPropertyPos(const te::da::DataSet *dataset, int datatype)
SelectedChannel * getGrayChannel() const
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
A ColorMap defines either the colors of a pallette-type raster source or the mapping of numeric pixel...
ChannelSelection specifies the false-color channel selection for a multi-spectral raster source (such...