All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AnchorPoint.cpp
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/AnchorPoint.cpp
22 
23  \brief An AnchorPoint identifies the location inside of a text label to use an 'anchor' for positioning it relative to a point geometry.
24 */
25 
26 // TerraLib
27 #include "AnchorPoint.h"
28 #include "ParameterValue.h"
29 
31  : m_x(0),
32  m_y(0)
33 {
34 }
35 
37 {
38  delete m_x;
39  delete m_y;
40 }
41 
43 {
44  delete m_x;
45  m_x = x;
46 }
47 
49 {
50  return m_x;
51 }
52 
54 {
55  delete m_y;
56  m_y = y;
57 }
58 
60 {
61  return m_y;
62 }
63 
65 {
66  AnchorPoint* anchorPoint = new AnchorPoint;
67 
68  if(m_x)
69  anchorPoint->setAnchorPointX(m_x->clone());
70 
71  if(m_y)
72  anchorPoint->setAnchorPointY(m_y->clone());
73 
74  return anchorPoint;
75 }
The ParameterValueType uses WFS-Filter expressions to give values for SE graphic parameters.
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
An AnchorPoint identifies the location inside of a text label to use an 'anchor' for positioning it r...
Definition: AnchorPoint.h:63
AnchorPoint * clone() const
It creates a new copy of this object.
Definition: AnchorPoint.cpp:64
void setAnchorPointX(ParameterValue *x)
Definition: AnchorPoint.cpp:42
void setAnchorPointY(ParameterValue *y)
Definition: AnchorPoint.cpp:53
AnchorPoint()
It initializes a new AnchorPoint.
Definition: AnchorPoint.cpp:30
const ParameterValue * getAnchorPointX() const
Definition: AnchorPoint.cpp:48
~AnchorPoint()
Destructor.
Definition: AnchorPoint.cpp:36
An AnchorPoint identifies the location inside of a text label to use an 'anchor' for positioning it r...
const ParameterValue * getAnchorPointY() const
Definition: AnchorPoint.cpp:59