This file is indexed.

/usr/include/mia-2.4/mia/2d/segpoint.hh is in libmia-2.4-dev 2.4.3-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/* -*- mia-c++  -*-
 *
 * This file is part of MIA - a toolbox for medical image analysis 
 * Copyright (c) Leipzig, Madrid 1999-2016 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>

namespace xmlpp {
class Node;
class Element; 
}

NS_MIA_BEGIN

/**
   @ingroup perf 
   \brief a point in a 2D segmentation shape 

   Point of a segmentation shape. In addition to be a 2D point it can be 
   read from and written to a XML tree and supports its own tranformation. 
*/

class  EXPORT_2D CSegPoint2D: public C2DFVector {
public:
	CSegPoint2D();

	/// copy constructor 
	CSegPoint2D(const C2DFVector& org);

	/// assignment operator 
	CSegPoint2D& operator = (const C2DFVector& org);

	/**
	   Construct the point with the given coordinates
	   \param x
	   \param y
	 */
	CSegPoint2D(float x, float y);

	/**
	   Construct the point from a XML node
	   \param node
	 */
	CSegPoint2D(const xmlpp::Node& node);

	/** Write the point as child-node to a given XML tree
	    \param node 
	*/
	void write(xmlpp::Element& node) const;

	/**
	   Tranform the point according to the given tranformation 
	   \param t 
	 */
	void transform(const C2DTransformation& t); 
	
	/**
	   Evaluate an approximation of the inverse of the given transform of the point
	   \param t 

	 */
	void inv_transform(const C2DTransformation& t); 
};


template <typename T>
void read_attribute_from_node(const xmlpp::Element& elm, const std::string& key, T& out_value, bool required); 

void read_attribute_from_node(const xmlpp::Element& elm, const std::string& key, bool& out_value, bool required); 

NS_MIA_END

#endif