45 #include <QMouseEvent> 52 :
te::qt::widgets::AbstractTool(display, parent)
66 if(e->button() != Qt::LeftButton)
70 #if QT_VERSION >= 0x050000 91 const std::complex<double>* cmin = rsMin->at(0).m_minVal;
92 const std::complex<double>* cmax = rsMax->at(0).m_maxVal;
110 QString information(
"<h2>Read Pixel</h2><ul>");
112 information +=
"<h3>Location</h3>";
114 QString column,
line, xCoord, yCoord;
117 xCoord.setNum(qpoint.x());
118 yCoord.setNum(qpoint.y());
120 information +=
"<li><b>" + QString(
"Line ") +
":</b> " + line +
"</li>";
121 information +=
"<li><b>" + QString(
"Column ") +
":</b> " + column +
"</li>";
122 information +=
"<li><b>" + QString(
"Coord X ") +
":</b> " + xCoord +
"</li>";
123 information +=
"<li><b>" + QString(
"Coord Y ") +
":</b> " + yCoord +
"</li>";
125 information +=
"<h3>Original Values</h3>";
136 information +=
"<li><b>" + QString(
"Value for band ") + band +
":</b> " + value +
"</li>";
142 information +=
"<h3>Transformed Values</h3>";
144 QString red, green, blue, alpha;
145 red.setNum(color.
getRed());
150 QString rBand, gBand, bBand;
155 information +=
"<li><b>" + QString(
"Red Channel: </b>") + rBand +
"<b> - Value:</b> " + red +
"</li>";
156 information +=
"<li><b>" + QString(
"Green Channel: </b>") + gBand +
"<b> - Value:</b> " + green +
"</li>";
157 information +=
"<li><b>" + QString(
"Blue Channel: </b>") + bBand +
"<b> - Value:</b> " + blue +
"</li>";
158 information +=
"<li><b>" + QString(
"Alpha Channel value") +
":</b> " + alpha +
"</li>";
161 information +=
"<h3>Symbolizer</h3>";
167 type =
"RGB Composition";
171 type =
"Gray Composition";
175 type =
"Unknown Composition";
182 information +=
"<li><b>" + QString(
"Color Composition ") +
":</b> " + type +
"</li>";
183 information +=
"<li><b>" + QString(
"Opacity Value ") +
":</b> " + opacity +
"</li>";
184 information +=
"<li><b>" + QString(
"Gain Value ") +
":</b> " + gain +
"</li>";
185 information +=
"<li><b>" + QString(
"Offset Value ") +
":</b> " + offset +
"</li>";
193 information +=
"<li><b>" + QString(
"Red Contrast") +
":</b> " + c +
"</li>";
202 information +=
"<li><b>" + QString(
"Green Contraste") +
":</b> " + c +
"</li>";
211 information +=
"<li><b>" + QString(
"Blue Contraste") +
":</b> " + c +
"</li>";
220 information +=
"<li><b>" + QString(
"Gray Contraste") +
":</b> " + c +
"</li>";
223 information +=
"</ul>";
int getRed() const
It returns the red component color value (a value from 0 to 255).
Utility functions for Symbology Enconding module.
unsigned int getNumberOfColumns() const
Returns the raster number of columns.
A singleton for keeping raster summaries (most statistics).
ParameterValue * getOffset() const
int getBlue() const
It returns the blue component color value (a value from 0 to 255).
int getGreen() const
It returns the green component color value (a value from 0 to 255).
te::se::ChannelSelection * getChannelSelection() const
This file contains include headers for TerraLib Symbology Encoding module.
SelectedChannel * getRedChannel() const
An utility struct for representing 2D coordinates.
SelectedChannel * getBlueChannel() const
void geoToGrid(const double &x, const double &y, double &col, double &row) const
Get the grid point associated to a spatial location.
ParameterValue * getGain() const
static RasterSummaryManager & getInstance()
It returns a reference to the singleton instance.
An abstract class for raster data strucutures.
unsigned int getNumberOfRows() const
Returns the raster number of rows.
virtual std::size_t getNumberOfBands() const =0
Returns the number of bands (dimension of cells attribute values) in the raster.
ParameterValue * getOpacity() const
RasterSummary is just a typedef of a boost::ptr_vector.
TERASTEREXPORT int Round(double val)
Round a double value to a integer value.
int getAlpha() const
It returns the alpha component color value (a value from 0 to 255).
ColorCompositionType getColorCompositionType() const
boost::ptr_vector< BandSummary > RasterSummary
RasterSummary is just a typedef of a boost::ptr_vector.
The RasterSymbolizer describes how to render raster/matrix-coverage data (e.g., satellite photos...
Grid * getGrid()
It returns the raster grid.
virtual void getValue(unsigned int c, unsigned int r, double &value, std::size_t b=0) const
Returns the attribute value of a band of a cell.
SelectedChannel * getGreenChannel() const
ContrastEnhancement * getContrastEnhancement() const
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
This file contains include headers for the Vector Geometry model of TerraLib.
SelectedChannel * getGrayChannel() const
TESEEXPORT std::string GetString(const te::se::ParameterValue *param)
It gets the parameter value as a string.
This file contains several utility functions for dealing with STL containers.
double getGammaValue() const