All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
LineModel.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file LineModel.h
22 
23  \brief
24 
25  \ingroup layout
26 */
27 
28 #ifndef __TERRALIB_LAYOUT_INTERNAL_LINE_MODEL_H
29 #define __TERRALIB_LAYOUT_INTERNAL_LINE_MODEL_H
30 
31 // TerraLib
32 #include "../core/pattern/mvc/ItemModelObservable.h"
33 
34 // STL
35 #include <vector>
36 
37 namespace te
38 {
39  namespace layout
40  {
41  class Utils;
43  {
44  public:
45 
46  LineModel();
47 
48  virtual ~LineModel();
49 
50  virtual void setCoords(std::vector<te::gm::Point*> coords);
51 
52  virtual std::vector<te::gm::Point*> getCoords();
53 
55 
56  virtual te::layout::Properties* getProperties() const;
57 
58  virtual void updateProperties(te::layout::Properties* properties);
59 
60  protected:
61 
62  std::vector<te::gm::Point*> m_coords;
64  };
65  }
66 }
67 
68 #endif
virtual void setCoords(std::vector< te::gm::Point * > coords)
Definition: LineModel.cpp:77
Abstract class to represent an observable. "Model" part of MVC component. All classes representing th...
The Properties class represents a persistent set of properties. The Properties can be saved to a file...
Definition: Properties.h:52
virtual te::color::RGBAColor getLineColor()
Definition: LineModel.cpp:125
virtual void updateProperties(te::layout::Properties *properties)
Reimplemented from Observable.
Definition: LineModel.cpp:146
std::vector< te::gm::Point * > m_coords
Definition: LineModel.h:62
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
Definition: RGBAColor.h:57
virtual std::vector< te::gm::Point * > getCoords()
Definition: LineModel.cpp:120
Class with help methods for the application.
Definition: Utils.h:44
virtual te::layout::Properties * getProperties() const
Reimplemented from Observable.
Definition: LineModel.cpp:130
te::color::RGBAColor m_lineColor
line color
Definition: LineModel.h:63