#include <ItemModelObservable.h>
Public Member Functions | |
virtual bool | addObserver (Observer *o) |
virtual bool | contains (const te::gm::Coord2D &coord) const |
virtual void | draw (ContextItem context)=0 |
virtual te::color::RGBAColor | getBackgroundColor () |
virtual te::color::RGBAColor | getBorderColor () |
virtual te::gm::Envelope | getBox () |
virtual int | getId () |
virtual std::string | getName () |
virtual Properties * | getProperties () const |
virtual LayoutAbstractObjectType | getType () |
virtual int | getZValue () |
virtual bool | isBorder () |
ItemModelObservable () | |
virtual bool | removeObserver (Observer *o) |
virtual void | resize (double w, double h) |
virtual void | setBackgroundColor (te::color::RGBAColor color) |
virtual void | setBorder (bool value) |
virtual void | setBorderColor (te::color::RGBAColor color) |
virtual void | setBox (te::gm::Envelope box) |
virtual void | setId (int id) |
virtual void | setName (std::string name) |
virtual void | setPosition (const double &x, const double &y) |
virtual void | setType (LayoutAbstractObjectType type) |
virtual void | setZValue (int zValue) |
virtual void | updateProperties (te::layout::Properties *properties) |
virtual | ~ItemModelObservable () |
Protected Member Functions | |
virtual void | notifyAll (ContextItem context) |
Protected Attributes | |
te::color::RGBAColor | m_backgroundColor |
bool | m_border |
te::color::RGBAColor | m_borderColor |
te::gm::Envelope | m_box |
te::gm::Coord2D | m_centerCoordinate |
int | m_id |
std::set< Observer * > | m_observers |
Properties * | m_properties |
SharedProperties * | m_sharedProps |
LayoutAbstractObjectType | m_type |
int | m_zValue |
Private Attributes | |
std::string | m_name |
Definition at line 44 of file ItemModelObservable.h.
te::layout::ItemModelObservable::ItemModelObservable | ( | ) |
Definition at line 37 of file ItemModelObservable.cpp.
References m_backgroundColor, m_box, m_name, m_properties, and m_sharedProps.
|
virtual |
Definition at line 54 of file ItemModelObservable.cpp.
|
virtual |
Implements te::layout::Observable.
Definition at line 69 of file ItemModelObservable.cpp.
|
virtual |
Definition at line 217 of file ItemModelObservable.cpp.
References te::gm::Envelope::isValid(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by te::layout::ItemController::contains(), and te::layout::ItemGroup::contains().
|
pure virtual |
Implemented in te::layout::MapGridModel, te::layout::VerticalRulerModel, te::layout::HorizontalRulerModel, te::layout::LegendModel, te::layout::MapModel, te::layout::PaperModel, te::layout::ScaleModel, te::layout::ItemGroupModel, and te::layout::RectangleModel.
Referenced by te::layout::ItemController::redraw().
|
virtual |
Definition at line 173 of file ItemModelObservable.cpp.
|
virtual |
Definition at line 188 of file ItemModelObservable.cpp.
|
virtual |
Implements te::layout::Observable.
Definition at line 163 of file ItemModelObservable.cpp.
Referenced by te::layout::ItemGroup::drawBackground(), te::layout::ItemGroup::paint(), and te::layout::MapItem::setPixmap().
|
virtual |
Implements te::layout::Observable.
Definition at line 312 of file ItemModelObservable.cpp.
Referenced by te::layout::maxTypeId().
|
virtual |
Implements te::layout::Observable.
Definition at line 200 of file ItemModelObservable.cpp.
|
virtual |
Implements te::layout::Observable.
Reimplemented in te::layout::MapGridModel, te::layout::LegendModel, and te::layout::ScaleModel.
Definition at line 98 of file ItemModelObservable.cpp.
References te::layout::Properties::clear(), te::layout::DataTypeBool, te::layout::DataTypeDouble, te::layout::DataTypeInt, te::layout::DataTypeString, te::layout::Property::setId(), te::layout::Property::setName(), and te::layout::Property::setValue().
Referenced by te::layout::ScaleModel::getProperties(), te::layout::LegendModel::getProperties(), and te::layout::MapGridModel::getProperties().
|
virtual |
Implements te::layout::Observable.
Definition at line 282 of file ItemModelObservable.cpp.
Referenced by te::layout::changeMapVisitable().
|
virtual |
Implements te::layout::Observable.
Definition at line 292 of file ItemModelObservable.cpp.
|
virtual |
Definition at line 302 of file ItemModelObservable.cpp.
|
protectedvirtual |
Implements te::layout::Observable.
Definition at line 89 of file ItemModelObservable.cpp.
|
virtual |
Implements te::layout::Observable.
Definition at line 79 of file ItemModelObservable.cpp.
|
virtual |
Definition at line 322 of file ItemModelObservable.cpp.
|
virtual |
Definition at line 178 of file ItemModelObservable.cpp.
|
virtual |
Definition at line 307 of file ItemModelObservable.cpp.
|
virtual |
Definition at line 183 of file ItemModelObservable.cpp.
|
virtual |
Reimplemented in te::layout::VerticalRulerModel, and te::layout::HorizontalRulerModel.
Definition at line 168 of file ItemModelObservable.cpp.
Referenced by te::layout::ItemGroup::addToGroup(), and te::layout::ItemController::setBox().
|
virtual |
Implements te::layout::Observable.
Definition at line 317 of file ItemModelObservable.cpp.
Referenced by te::layout::BuildGraphicsItem::createItemGroup(), te::layout::BuildGraphicsItem::createLegend(), te::layout::BuildGraphicsItem::createMap(), te::layout::BuildGraphicsItem::createMapGrid(), te::layout::BuildGraphicsItem::createPaper(), te::layout::BuildGraphicsItem::createRectangle(), and te::layout::BuildGraphicsItem::createScale().
|
virtual |
Definition at line 193 of file ItemModelObservable.cpp.
Referenced by te::layout::BuildGraphicsItem::createItemGroup(), te::layout::BuildGraphicsItem::createLegend(), te::layout::BuildGraphicsItem::createMap(), te::layout::BuildGraphicsItem::createMapGrid(), te::layout::BuildGraphicsItem::createPaper(), te::layout::BuildGraphicsItem::createRectangle(), te::layout::BuildGraphicsItem::createScale(), and te::layout::PaperModel::PaperModel().
|
virtual |
Definition at line 205 of file ItemModelObservable.cpp.
Referenced by te::layout::HorizontalRulerController::setPosition(), te::layout::ItemGroupController::setPosition(), te::layout::LegendController::setPosition(), te::layout::VerticalRulerController::setPosition(), te::layout::PaperController::setPosition(), te::layout::RectangleController::setPosition(), te::layout::ScaleController::setPosition(), and te::layout::MapController::setPosition().
|
virtual |
Implements te::layout::Observable.
Definition at line 287 of file ItemModelObservable.cpp.
|
virtual |
Implements te::layout::Observable.
Definition at line 297 of file ItemModelObservable.cpp.
|
virtual |
Implements te::layout::Observable.
Reimplemented in te::layout::LegendModel, te::layout::MapGridModel, te::layout::ScaleModel, and te::layout::MapModel.
Definition at line 227 of file ItemModelObservable.cpp.
References te::layout::Properties::contains(), te::layout::Property::getValue(), te::layout::Property::isNull(), te::layout::Variant::toBool(), te::layout::Variant::toDouble(), te::layout::Variant::toInt(), and te::layout::Variant::toString().
Referenced by te::layout::BuildGraphicsItem::createItemGroup(), te::layout::BuildGraphicsItem::createPaper(), te::layout::BuildGraphicsItem::createRectangle(), te::layout::MapModel::updateProperties(), te::layout::ScaleModel::updateProperties(), te::layout::LegendModel::updateProperties(), and te::layout::ItemController::updateProperties().
|
protected |
Definition at line 97 of file ItemModelObservable.h.
Referenced by ItemModelObservable(), te::layout::PaperModel::PaperModel(), and te::layout::RectangleModel::RectangleModel().
|
protected |
Definition at line 103 of file ItemModelObservable.h.
|
protected |
Definition at line 98 of file ItemModelObservable.h.
Referenced by te::layout::RectangleModel::RectangleModel().
|
protected |
Definition at line 95 of file ItemModelObservable.h.
Referenced by te::layout::AbstractRulerModel::AbstractRulerModel(), te::layout::ItemGroupModel::ItemGroupModel(), ItemModelObservable(), te::layout::LegendModel::LegendModel(), te::layout::MapModel::MapModel(), te::layout::RectangleModel::RectangleModel(), and te::layout::ScaleModel::ScaleModel().
|
protected |
Definition at line 96 of file ItemModelObservable.h.
|
protected |
Definition at line 94 of file ItemModelObservable.h.
|
private |
Definition at line 106 of file ItemModelObservable.h.
Referenced by ItemModelObservable().
|
protected |
Definition at line 93 of file ItemModelObservable.h.
|
protected |
Definition at line 99 of file ItemModelObservable.h.
Referenced by ItemModelObservable(), and te::layout::MapGridModel::MapGridModel().
|
protected |
Definition at line 102 of file ItemModelObservable.h.
Referenced by ItemModelObservable().
|
protected |
Definition at line 100 of file ItemModelObservable.h.
|
protected |
Definition at line 101 of file ItemModelObservable.h.