This class defines a function used to add to a graph the raster pixel value as attribute. More...
#include <AddRasterAttribute.h>
Public Member Functions | |
AddRasterAttribute (te::graph::AbstractGraph *graph, std::string spatialAttributeName, std::string attributeName, te::rst::Raster *raster, int band) | |
Default constructor. More... | |
virtual | ~AddRasterAttribute () |
Virtual destructor. More... | |
This class defines a function used to add to a graph the raster pixel value as attribute.
Definition at line 56 of file AddRasterAttribute.h.
te::graph::AddRasterAttribute::AddRasterAttribute | ( | te::graph::AbstractGraph * | graph, |
std::string | spatialAttributeName, | ||
std::string | attributeName, | ||
te::rst::Raster * | raster, | ||
int | band | ||
) |
Default constructor.
graph | Pointer to a bidirectional graph |
attributeName | The name used to represent the attribute |
Definition at line 48 of file AddRasterAttribute.cpp.
References te::graph::Vertex::addAttribute(), te::graph::AbstractGraph::addVertexProperty(), te::graph::AbstractGraph::flush(), te::rst::Grid::geoToGrid(), te::graph::Vertex::getAttributes(), te::graph::SequenceIterator::getFirstVertex(), te::rst::Raster::getGrid(), te::graph::AbstractGraph::getMetadata(), te::dt::Property::getName(), te::graph::AbstractIterator::getNextVertex(), te::rst::Raster::getValue(), te::graph::AbstractIterator::getVertexInteratorCount(), te::graph::AbstractGraph::getVertexProperty(), te::graph::GraphMetadata::getVertexProperty(), te::graph::AbstractGraph::getVertexPropertySize(), te::graph::GraphMetadata::getVertexPropertySize(), te::gm::Point::getX(), te::gm::Point::getY(), te::dt::INT32_TYPE, te::graph::AbstractIterator::isVertexIteratorAfterEnd(), te::common::TaskProgress::pulse(), te::dt::Property::setId(), te::common::TaskProgress::setMessage(), te::dt::Property::setParent(), te::common::TaskProgress::setTotalSteps(), te::graph::AbstractGraph::update(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
virtual |
Virtual destructor.
Definition at line 125 of file AddRasterAttribute.cpp.