#include <LineModel.h>
Public Member Functions | |
virtual bool | addChildren (ItemObserver *item) |
Reimplemented from Observable. More... | |
virtual bool | addObserver (Observer *o) |
Reimplemented from Observable. More... | |
virtual bool | contains (const te::gm::Coord2D &coord) const |
Checks if the coordinate is contained within the bounding rectangle. More... | |
virtual void | draw (ContextItem context) |
Drawing method of the MVC component. More... | |
virtual double | getAngle () |
Returns the value of rotation. More... | |
virtual te::color::RGBAColor | getBackgroundColor () |
Returns the background color of the MVC component. More... | |
virtual te::color::RGBAColor | getBorderColor () |
Returns the border color of the MVC component. More... | |
virtual te::gm::Envelope | getBox () |
Reimplemented from Observable. More... | |
virtual std::set< ItemObserver * > | getChildren () const |
Reimplemented from Observable. More... | |
virtual std::vector< te::gm::Point * > | getCoords () |
virtual int | getHashCode () |
Reimplemented from Observable. More... | |
virtual int | getId () |
Reimplemented from Observable. More... | |
virtual te::color::RGBAColor | getLineColor () |
virtual std::string | getName () |
Reimplemented from Observable. More... | |
virtual double | getOldAngle () |
Returns the value of old rotation. More... | |
virtual te::gm::Coord2D | getOldPos () |
Returns the value of old position. More... | |
virtual te::layout::Properties * | getProperties () const |
Reimplemented from Observable. More... | |
virtual te::layout::Properties * | getPublicProperties () const |
Reimplemented from Observable. More... | |
virtual EnumType * | getType () |
Reimplemented from Observable. More... | |
virtual int | getZValue () |
Reimplemented from Observable. More... | |
virtual bool | isBorder () |
Returns whether the border should be drawn or not. More... | |
virtual bool | isEnableChildren () |
Returns true if MVC component can have children, false otherwise. More... | |
virtual bool | isResizable () |
Reimplemented from Observable. More... | |
LineModel () | |
virtual bool | removeChildren (int hashCode) |
Reimplemented from Observable. More... | |
virtual bool | removeObserver (Observer *o) |
Reimplemented from Observable. More... | |
virtual void | resize (double w, double h) |
Resize the bounding rectangle of the MVC component. More... | |
virtual void | setAngle (double angle) |
Change the value of rotation of the MVC component. More... | |
virtual void | setBackgroundColor (te::color::RGBAColor color) |
Change the background color of the MVC component. More... | |
virtual void | setBorder (bool value) |
Change whether the border should be drawn or not. More... | |
virtual void | setBorderColor (te::color::RGBAColor color) |
Change the background color of the MVC component. More... | |
virtual void | setBox (te::gm::Envelope box) |
Change the bounding rectangle. More... | |
virtual void | setCoords (std::vector< te::gm::Point * > coords) |
virtual void | setEnableChildren (bool value) |
Sets true if MVC component can have children, false otherwise. More... | |
virtual void | setId (int id) |
Reimplemented from Observable. More... | |
virtual void | setName (std::string name) |
Change the name of the MVC component. More... | |
virtual void | setPosition (const double &x, const double &y) |
Change coordinate llx,lly of the MVC component. More... | |
virtual void | setResizable (bool resize) |
Reimplemented from Observable. More... | |
virtual void | setType (EnumType *type) |
Reimplemented from Observable. More... | |
virtual void | setZValue (int zValue) |
Reimplemented from Observable. More... | |
virtual void | updateProperties (te::layout::Properties *properties) |
Reimplemented from Observable. More... | |
virtual | ~LineModel () |
Protected Member Functions | |
virtual void | addChildrenProperties (Properties *properties) |
virtual int | calculateHashCode () |
Returns a new hashcode. More... | |
virtual void | drawBackground (ContextItem context) |
Draws the background of the MVC component. More... | |
virtual void | notifyAll (ContextItem context) |
Reimplemented from Observable. More... | |
virtual void | updateChildrenProperties (Property prop) |
Protected Attributes | |
double | m_angle |
value of rotation More... | |
te::color::RGBAColor | m_backgroundColor |
background color More... | |
bool | m_border |
true if should be drawn border, false otherwise More... | |
te::color::RGBAColor | m_borderColor |
border color More... | |
te::gm::Envelope | m_box |
bounding rectangle More... | |
te::gm::Coord2D | m_centerCoordinate |
center coordinate of the bounding rectangle More... | |
std::set< ItemObserver * > | m_children |
children components More... | |
std::vector< te::gm::Point * > | m_coords |
bool | m_enableChildren |
true if MVC component can have children, false otherwise More... | |
int | m_hashCode |
int | m_id |
hashcode More... | |
te::color::RGBAColor | m_lineColor |
line color More... | |
std::string | m_name |
name of the MVC component More... | |
std::set< Observer * > | m_observers |
set of observers of this object More... | |
double | m_oldAngle |
value of old rotation More... | |
te::gm::Coord2D | m_oldPos |
value of old position More... | |
Properties * | m_properties |
properties More... | |
Properties * | m_publicProperties |
public properties More... | |
bool | m_resizable |
true if resizable, false otherwise More... | |
SharedProperties * | m_sharedProps |
Names of common properties among all MVC components. More... | |
EnumType * | m_type |
type of the MVC component More... | |
int | m_zValue |
The Z value decides the stacking order of drawing. More... | |
Definition at line 42 of file LineModel.h.
te::layout::LineModel::LineModel | ( | ) |
|
virtual |
Definition at line 54 of file LineModel.cpp.
|
virtualinherited |
Reimplemented from Observable.
Definition at line 552 of file ItemModelObservable.cpp.
References te::layout::Observable::getHashCode(), and te::layout::ItemObserver::getModel().
Referenced by te::layout::ParentItem< T >::itemChange().
|
protectedvirtualinherited |
Definition at line 625 of file ItemModelObservable.cpp.
References te::layout::Properties::addProperty(), and te::layout::Properties::getProperties().
|
virtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 103 of file ItemModelObservable.cpp.
|
protectedvirtualinherited |
Returns a new hashcode.
Implements te::layout::Observable.
Definition at line 476 of file ItemModelObservable.cpp.
Referenced by te::layout::ItemModelObservable::ItemModelObservable().
|
virtualinherited |
Checks if the coordinate is contained within the bounding rectangle.
coord | coordinated to be verified |
Definition at line 280 of file ItemModelObservable.cpp.
References te::gm::Envelope::isValid(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by te::layout::ItemController::contains().
|
virtualinherited |
Drawing method of the MVC component.
context | maintaining the drawing context of a MVC component |
Reimplemented in te::layout::LegendModel, te::layout::MapModel, and te::layout::LegendChildModel.
Definition at line 532 of file ItemModelObservable.cpp.
Referenced by te::layout::ItemController::redraw().
|
protectedvirtualinherited |
Draws the background of the MVC component.
context | maintaining the drawing context of a MVC component |
Definition at line 433 of file ItemModelObservable.cpp.
References te::layout::Utils::drawRectW(), te::layout::ContextItem::getCanvas(), te::layout::ContextItem::getUtils(), te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, te::map::Canvas::setPolygonContourColor(), te::map::Canvas::setPolygonContourWidth(), and te::map::Canvas::setPolygonFillColor().
|
virtualinherited |
Returns the value of rotation.
Definition at line 466 of file ItemModelObservable.cpp.
Referenced by te::layout::ItemGroup::applyRotation(), and te::layout::ParentItem< T >::applyRotation().
|
virtualinherited |
Returns the background color of the MVC component.
Definition at line 229 of file ItemModelObservable.cpp.
Referenced by te::layout::ParentItem< T >::drawBackground(), te::layout::EllipseItem::drawEllipse(), te::layout::RectangleItem::drawRectangle(), te::layout::NorthItem::drawRectangle(), and te::layout::TextItem::updateTextConfig().
|
virtualinherited |
Returns the border color of the MVC component.
Definition at line 244 of file ItemModelObservable.cpp.
Referenced by te::layout::ParentItem< T >::drawBorder(), and te::layout::PaperItem::drawPaper().
|
virtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 219 of file ItemModelObservable.cpp.
Referenced by te::layout::MapItem::boundingRect(), te::layout::VisualizationArea::createPaper(), te::layout::ItemGroup::drawBackground(), te::layout::ItemGroup::paint(), and te::layout::MapItem::recalculateBoundingRect().
|
virtualinherited |
Reimplemented from Observable.
Definition at line 547 of file ItemModelObservable.cpp.
|
virtual |
Definition at line 120 of file LineModel.cpp.
Referenced by te::layout::LineItem::updateObserver().
|
virtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 471 of file ItemModelObservable.cpp.
|
virtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 401 of file ItemModelObservable.cpp.
Referenced by te::layout::ItemUtils::maxTypeId().
|
virtual |
Definition at line 125 of file LineModel.cpp.
Referenced by te::layout::LineItem::drawLine(), and te::layout::PolygonItem::drawPolygon().
|
virtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 260 of file ItemModelObservable.cpp.
Referenced by te::layout::GridMapModel::visitDependent().
|
virtualinherited |
Returns the value of old rotation.
Definition at line 522 of file ItemModelObservable.cpp.
Referenced by te::layout::ItemGroup::applyRotation(), and te::layout::ParentItem< T >::applyRotation().
|
virtualinherited |
Returns the value of old position.
Definition at line 527 of file ItemModelObservable.cpp.
|
virtual |
Reimplemented from Observable.
Reimplemented from te::layout::ItemModelObservable.
Definition at line 130 of file LineModel.cpp.
References te::layout::EnumDataType::getDataTypeColor(), te::layout::Enums::getEnumDataType(), te::common::Singleton< Enums >::getInstance(), te::layout::ItemModelObservable::getProperties(), te::layout::Property::setLabel(), te::layout::Property::setMenu(), te::layout::Property::setName(), and te::layout::Property::setValue().
|
virtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 601 of file ItemModelObservable.cpp.
References te::layout::Properties::clear().
|
virtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 371 of file ItemModelObservable.cpp.
|
virtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 381 of file ItemModelObservable.cpp.
|
virtualinherited |
Returns whether the border should be drawn or not.
Definition at line 391 of file ItemModelObservable.cpp.
Referenced by te::layout::ParentItem< T >::drawBorder().
|
virtualinherited |
Returns true if MVC component can have children, false otherwise.
Definition at line 537 of file ItemModelObservable.cpp.
Referenced by te::layout::BuildGraphicsItem::addChild().
|
virtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 428 of file ItemModelObservable.cpp.
|
protectedvirtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 123 of file ItemModelObservable.cpp.
|
virtualinherited |
Reimplemented from Observable.
Definition at line 580 of file ItemModelObservable.cpp.
Referenced by te::layout::ParentItem< T >::itemChange().
|
virtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 113 of file ItemModelObservable.cpp.
|
virtualinherited |
Resize the bounding rectangle of the MVC component.
true | if should be drawn, false otherwise |
Definition at line 411 of file ItemModelObservable.cpp.
|
virtualinherited |
Change the value of rotation of the MVC component.
value | of rotation |
Definition at line 460 of file ItemModelObservable.cpp.
|
virtualinherited |
Change the background color of the MVC component.
color | background color |
Definition at line 234 of file ItemModelObservable.cpp.
|
virtualinherited |
Change whether the border should be drawn or not.
true | if should be drawn, false otherwise |
Definition at line 396 of file ItemModelObservable.cpp.
|
virtualinherited |
Change the background color of the MVC component.
color | border color |
Definition at line 239 of file ItemModelObservable.cpp.
|
virtualinherited |
Change the bounding rectangle.
bounding | rectangle |
Reimplemented in te::layout::MapModel, and te::layout::PaperModel.
Definition at line 224 of file ItemModelObservable.cpp.
Referenced by te::layout::ItemGroup::addToGroup(), te::layout::TextGridItem::refreshDocument(), te::layout::TitleItem::refreshDocument(), te::layout::TextItem::refreshDocument(), te::layout::MapModel::setBox(), and te::layout::ItemController::setBox().
|
virtual |
Definition at line 77 of file LineModel.cpp.
References te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Geometry::getMBR(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::LineStringType, te::layout::ContextItem::setChangePos(), te::gm::LineString::setPointN(), and te::layout::ContextItem::setPos().
Referenced by te::layout::View::mousePressEvent().
|
virtualinherited |
Sets true if MVC component can have children, false otherwise.
true | if MVC component can have children, false otherwise |
Definition at line 542 of file ItemModelObservable.cpp.
|
virtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 406 of file ItemModelObservable.cpp.
Referenced by te::layout::BuildGraphicsItem::createArrow(), te::layout::BuildGraphicsItem::createBalloon(), te::layout::BuildGraphicsItem::createBarCode(), te::layout::BuildGraphicsItem::createEllipse(), te::layout::BuildGraphicsItem::createGridGeodesic(), te::layout::BuildGraphicsItem::createGridMap(), te::layout::BuildGraphicsItem::createGridPlanar(), te::layout::BuildGraphicsItem::createImage(), te::layout::BuildGraphicsItem::createItemGroup(), te::layout::BuildGraphicsItem::createLegend(), te::layout::BuildGraphicsItem::createLegendChild(), te::layout::BuildGraphicsItem::createLine(), te::layout::BuildGraphicsItem::createMap(), te::layout::BuildGraphicsItem::createMapLocation(), te::layout::BuildGraphicsItem::createMovingItemGroup(), te::layout::BuildGraphicsItem::createNorth(), te::layout::BuildGraphicsItem::createPaper(), te::layout::BuildGraphicsItem::createPoint(), te::layout::BuildGraphicsItem::createPolygon(), te::layout::BuildGraphicsItem::createRectangle(), te::layout::BuildGraphicsItem::createScale(), te::layout::BuildGraphicsItem::createText(), te::layout::BuildGraphicsItem::createTextGrid(), and te::layout::BuildGraphicsItem::createTitle().
|
virtualinherited |
Change the name of the MVC component.
name | name of the MVC component. |
Definition at line 249 of file ItemModelObservable.cpp.
Referenced by te::layout::BuildGraphicsItem::createArrow(), te::layout::BuildGraphicsItem::createBalloon(), te::layout::BuildGraphicsItem::createBarCode(), te::layout::BuildGraphicsItem::createEllipse(), te::layout::BuildGraphicsItem::createGridGeodesic(), te::layout::BuildGraphicsItem::createGridMap(), te::layout::BuildGraphicsItem::createGridPlanar(), te::layout::BuildGraphicsItem::createImage(), te::layout::BuildGraphicsItem::createItemGroup(), te::layout::BuildGraphicsItem::createLegend(), te::layout::BuildGraphicsItem::createLegendChild(), te::layout::BuildGraphicsItem::createLine(), te::layout::BuildGraphicsItem::createMap(), te::layout::BuildGraphicsItem::createMapLocation(), te::layout::BuildGraphicsItem::createMovingItemGroup(), te::layout::BuildGraphicsItem::createNorth(), te::layout::BuildGraphicsItem::createPaper(), te::layout::BuildGraphicsItem::createPoint(), te::layout::BuildGraphicsItem::createPolygon(), te::layout::BuildGraphicsItem::createRectangle(), te::layout::BuildGraphicsItem::createScale(), te::layout::BuildGraphicsItem::createText(), te::layout::BuildGraphicsItem::createTextGrid(), and te::layout::BuildGraphicsItem::createTitle().
|
virtualinherited |
Change coordinate llx,lly of the MVC component.
x | llx |
y | lly |
Reimplemented in te::layout::MapModel.
Definition at line 265 of file ItemModelObservable.cpp.
Referenced by te::layout::ItemController::setPosition(), and te::layout::MapModel::setPosition().
|
virtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 423 of file ItemModelObservable.cpp.
|
virtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 376 of file ItemModelObservable.cpp.
|
virtualinherited |
Reimplemented from Observable.
Implements te::layout::Observable.
Definition at line 386 of file ItemModelObservable.cpp.
|
protectedvirtualinherited |
Definition at line 641 of file ItemModelObservable.cpp.
References te::layout::Property::getParentItemHashCode().
|
virtual |
Reimplemented from Observable.
Reimplemented from te::layout::ItemModelObservable.
Definition at line 146 of file LineModel.cpp.
References te::layout::Properties::contains(), te::layout::Property::getValue(), te::layout::Property::isNull(), te::layout::Variant::toColor(), and te::layout::ItemModelObservable::updateProperties().
Referenced by te::layout::BuildGraphicsItem::createLine(), and te::layout::BuildGraphicsItem::createPolygon().
|
protectedinherited |
value of rotation
Definition at line 328 of file ItemModelObservable.h.
|
protectedinherited |
background color
Definition at line 317 of file ItemModelObservable.h.
Referenced by te::layout::ImageModel::ImageModel(), te::layout::ItemModelObservable::ItemModelObservable(), and te::layout::MapModel::MapModel().
|
protectedinherited |
true if should be drawn border, false otherwise
Definition at line 325 of file ItemModelObservable.h.
Referenced by te::layout::ArrowModel::ArrowModel(), te::layout::BalloonModel::BalloonModel(), te::layout::BarCodeModel::BarCodeModel(), te::layout::EllipseModel::EllipseModel(), te::layout::ImageModel::ImageModel(), te::layout::ItemGroupModel::ItemGroupModel(), LineModel(), te::layout::NorthModel::NorthModel(), te::layout::PaperModel::PaperModel(), te::layout::RectangleModel::RectangleModel(), and te::layout::ScaleModel::ScaleModel().
|
protectedinherited |
border color
Definition at line 318 of file ItemModelObservable.h.
Referenced by te::layout::BalloonModel::BalloonModel(), te::layout::BarCodeModel::BarCodeModel(), te::layout::ImageModel::ImageModel(), te::layout::ItemModelObservable::ItemModelObservable(), LineModel(), te::layout::NorthModel::NorthModel(), te::layout::PaperModel::PaperModel(), and te::layout::RectangleModel::RectangleModel().
|
protectedinherited |
bounding rectangle
Definition at line 315 of file ItemModelObservable.h.
Referenced by te::layout::ArrowModel::ArrowModel(), te::layout::BalloonModel::BalloonModel(), te::layout::BarCodeModel::BarCodeModel(), te::layout::EllipseModel::EllipseModel(), te::layout::ImageModel::ImageModel(), te::layout::ItemGroupModel::ItemGroupModel(), te::layout::ItemModelObservable::ItemModelObservable(), te::layout::LegendChildModel::LegendChildModel(), te::layout::LegendModel::LegendModel(), LineModel(), te::layout::MapModel::MapModel(), te::layout::MovingItemGroupModel::MovingItemGroupModel(), te::layout::NorthModel::NorthModel(), te::layout::PointModel::PointModel(), te::layout::RectangleModel::RectangleModel(), te::layout::ScaleModel::ScaleModel(), te::layout::TextGridModel::TextGridModel(), te::layout::TextModel::TextModel(), and te::layout::TitleModel::TitleModel().
|
protectedinherited |
center coordinate of the bounding rectangle
Definition at line 316 of file ItemModelObservable.h.
|
protectedinherited |
children components
Definition at line 320 of file ItemModelObservable.h.
|
protected |
Definition at line 62 of file LineModel.h.
|
protectedinherited |
true if MVC component can have children, false otherwise
Definition at line 332 of file ItemModelObservable.h.
Referenced by te::layout::MapLocationModel::MapLocationModel(), and te::layout::MapModel::MapModel().
|
protectedinherited |
Definition at line 329 of file ItemModelObservable.h.
Referenced by te::layout::ItemModelObservable::ItemModelObservable().
|
protectedinherited |
hashcode
Definition at line 314 of file ItemModelObservable.h.
|
protected |
|
protectedinherited |
name of the MVC component
Definition at line 326 of file ItemModelObservable.h.
Referenced by te::layout::ItemModelObservable::ItemModelObservable().
|
protectedinherited |
set of observers of this object
Definition at line 313 of file ItemModelObservable.h.
|
protectedinherited |
value of old rotation
Definition at line 330 of file ItemModelObservable.h.
|
protectedinherited |
value of old position
Definition at line 331 of file ItemModelObservable.h.
Referenced by te::layout::ItemModelObservable::ItemModelObservable().
|
protectedinherited |
properties
Definition at line 319 of file ItemModelObservable.h.
Referenced by te::layout::ImageModel::ImageModel(), and te::layout::ItemModelObservable::ItemModelObservable().
|
protectedinherited |
public properties
Definition at line 321 of file ItemModelObservable.h.
Referenced by te::layout::ItemModelObservable::ItemModelObservable().
|
protectedinherited |
true if resizable, false otherwise
Definition at line 327 of file ItemModelObservable.h.
Referenced by te::layout::TextModel::TextModel().
|
protectedinherited |
Names of common properties among all MVC components.
Definition at line 324 of file ItemModelObservable.h.
Referenced by te::layout::ItemModelObservable::ItemModelObservable().
|
protectedinherited |
type of the MVC component
Definition at line 322 of file ItemModelObservable.h.
Referenced by te::layout::ArrowModel::ArrowModel(), te::layout::BalloonModel::BalloonModel(), te::layout::BarCodeModel::BarCodeModel(), te::layout::EllipseModel::EllipseModel(), te::layout::GridGeodesicModel::GridGeodesicModel(), te::layout::GridPlanarModel::GridPlanarModel(), te::layout::ImageModel::ImageModel(), te::layout::ItemGroupModel::ItemGroupModel(), te::layout::ItemModelObservable::ItemModelObservable(), te::layout::LegendChildModel::LegendChildModel(), te::layout::LegendModel::LegendModel(), LineModel(), te::layout::MapLocationModel::MapLocationModel(), te::layout::MapModel::MapModel(), te::layout::MovingItemGroupModel::MovingItemGroupModel(), te::layout::NorthModel::NorthModel(), te::layout::PaperModel::PaperModel(), te::layout::PointModel::PointModel(), te::layout::PolygonModel::PolygonModel(), te::layout::RectangleModel::RectangleModel(), te::layout::ScaleModel::ScaleModel(), te::layout::TextGridModel::TextGridModel(), te::layout::TextModel::TextModel(), and te::layout::TitleModel::TitleModel().
|
protectedinherited |
The Z value decides the stacking order of drawing.
Definition at line 323 of file ItemModelObservable.h.