segpoint.hh
Go to the documentation of this file.
/* -*- mia-c++ -*-
*
* This file is part of MIA - a toolbox for medical image analysis
* Copyright (c) Leipzig, Madrid 1999-2017 Gert Wollny
*
* MIA is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MIA; if not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef mia_2d_SegPoint_hh
#define mia_2d_SegPoint_hh
#include <mia/2d/vector.hh>
#include <mia/2d/defines2d.hh>
#include <mia/2d/transform.hh>
NS_MIA_BEGIN
class CXMLElement;
class EXPORT_2D CSegPoint2D: public C2DFVector
{
public:
CSegPoint2D();
CSegPoint2D(const C2DFVector& org);
CSegPoint2D& operator = (const C2DFVector& org);
CSegPoint2D(float x, float y);
CSegPoint2D(const CXMLElement& node);
void write(CXMLElement& node) const;
void transform(const C2DTransformation& t);
void inv_transform(const C2DTransformation& t);
};
template <typename T>
void read_attribute_from_node(const CXMLElement& elm, const std::string& key, T& out_value, bool required);
void read_attribute_from_node(const CXMLElement& elm, const std::string& key, bool& out_value, bool required);
NS_MIA_END
#endif
transform.hh
vector.hh
C2DFVector
T2DVector< float > C2DFVector
float valued 2D vector
Definition 2d/vector.hh:534
C2DTransformation
This is the generic base class for 2D transformations.
Definition 2d/transform.hh:46
CSegPoint2D::inv_transform
void inv_transform(const C2DTransformation &t)
CSegPoint2D::write
void write(CXMLElement &node) const
CSegPoint2D::CSegPoint2D
CSegPoint2D()
CSegPoint2D::CSegPoint2D
CSegPoint2D(const CXMLElement &node)
CSegPoint2D::CSegPoint2D
CSegPoint2D(const C2DFVector &org)
copy constructor
CSegPoint2D::transform
void transform(const C2DTransformation &t)
CSegPoint2D::CSegPoint2D
CSegPoint2D(float x, float y)
CXMLElement
This class implements a facade for the xml Element.
Definition xmlinterface.hh:50
T2DVector< float >::y
float y
Definition 2d/vector.hh:57
T2DVector< float >::x
float x
Definition 2d/vector.hh:54
CCmdOptionFlags::required
@ required
Definition cmdoptionflags.hh:30
defines2d.hh
EXPORT_2D
#define EXPORT_2D
Definition defines2d.hh:37
NS_MIA_BEGIN
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
Definition defines.hh:33
NS_MIA_END
#define NS_MIA_END
conveniance define to end the mia namespace
Definition defines.hh:36
read_attribute_from_node
void read_attribute_from_node(const CXMLElement &elm, const std::string &key, T &out_value, bool required)