LabelPlacement.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 terralib/se/LabelPlacement.h
22 
23  \brief The LabelPlacement specifies where and how a text label should be rendered relative to a geometry.
24 */
25 
26 #ifndef __TERRALIB_SE_INTERNAL_LABELPLACEMENT_H
27 #define __TERRALIB_SE_INTERNAL_LABELPLACEMENT_H
28 
29 // TerraLib
30 #include "Config.h"
31 
32 // Boost
33 #include <boost/noncopyable.hpp>
34 
35 namespace te
36 {
37  namespace se
38  {
39 // Forward declarations
40  class LinePlacement;
41  class PointPlacement;
42 
43  /*!
44  \class LabelPlacement
45 
46  \brief The LabelPlacement specifies where and how a text label should be rendered relative to a geometry.
47 
48  \sa TextSymbolizer, PointPlacement, LinePlacement
49  */
50  class TESEEXPORT LabelPlacement : public boost::noncopyable
51  {
52  public:
53 
54  /** @name Initializer Methods
55  * Methods related to instantiation and destruction.
56  */
57  //@{
58 
59  /*! \brief It initializes a new LabelPlacement. */
61 
62  /*! \brief Destructor. */
63  ~LabelPlacement();
64 
65  //@}
66 
67  /** @name Accessor methods
68  * Methods used to get or set properties.
69  */
70  //@{
71 
72  void setPointPlacement(PointPlacement* p);
73 
74  const PointPlacement* getPointPlacement() const { return m_pointPlacement; }
75 
76  void setLinePlacement(LinePlacement* l);
77 
78  const LinePlacement* getLinePlacement() const { return m_linePlacement; }
79 
80  //@}
81 
82  /*! \brief It creates a new copy of this object. */
83  LabelPlacement* clone() const;
84 
85  private:
86 
87  PointPlacement* m_pointPlacement; //!< It specifies how a text label should be rendered relative to a geometric point. (Mandatory)
88  LinePlacement* m_linePlacement; //!< It specifies how a text label should be rendered relative to a linear geometry. (Mandatory)
89  };
90 
91  } // end namespace se
92 } // end namespace te
93 
94 #endif // __TERRALIB_SE_INTERNAL_LABELPLACEMENT_H
A LinePlacement specifies how a text label should be rendered relative to a linear geometry...
Definition: LinePlacement.h:61
The LabelPlacement specifies where and how a text label should be rendered relative to a geometry...
PointPlacement * m_pointPlacement
It specifies how a text label should be rendered relative to a geometric point. (Mandatory) ...
A PointPlacement specifies how a text label should be rendered relative to a geometric point...
URI C++ Library.
#define TESEEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:187
Configuration flags for the Symbology Encoding support of TerraLib.
LinePlacement * m_linePlacement
It specifies how a text label should be rendered relative to a linear geometry. (Mandatory) ...
const LinePlacement * getLinePlacement() const
const PointPlacement * getPointPlacement() const