PLYObservation.cpp
Go to the documentation of this file.
1 // (C) Copyright Renaud Detry 2007-2015.
2 // Distributed under the GNU General Public License and under the
3 // BSD 3-Clause License (See accompanying file LICENSE.txt).
4 
5 /** @file */
6 
8 
9 namespace nuklei {
10 
11  const double PLYObservation::TOL = 1e-5;
12 
13 
14  PLYObservation::PLYObservation()
15  {
16  NUKLEI_TRACE_BEGIN();
17  ColorDescriptor d;
18  k_.setDescriptor(d);
19  NUKLEI_TRACE_END();
20  }
21 
22  PLYObservation::PLYObservation(const kernel::r3& k) : k_(k)
23  {}
24 
25  void PLYObservation::setLoc(Vector3 loc)
26  {
27  NUKLEI_TRACE_BEGIN();
28  k_.loc_ = loc;
29  NUKLEI_TRACE_END();
30  }
31  Vector3 PLYObservation::getLoc() const { return k_.loc_; }
32 
33  void PLYObservation::setWeight(weight_t weight)
34  {
35  NUKLEI_TRACE_BEGIN();
36  k_.setWeight(weight);
37  NUKLEI_TRACE_END();
38  }
39  weight_t PLYObservation::getWeight() const { return k_.getWeight(); }
40 
41  const Color& PLYObservation::getColor() const
42  {
43  NUKLEI_TRACE_BEGIN();
44  return dynamic_cast<const ColorDescriptor&>(k_.getDescriptor()).getColor();
45  NUKLEI_TRACE_END();
46  }
47  void PLYObservation::setColor(const Color& color)
48  {
49  NUKLEI_TRACE_BEGIN();
50  dynamic_cast<ColorDescriptor&>(k_.getDescriptor()).setColor(color);
51  NUKLEI_TRACE_END();
52  }
53 
54 }
55 
Public namespace.
Definition: Color.cpp:9
double weight_t
Type for particle weights.
Definition: Definitions.h:31
© Copyright 2007-2013 Renaud Detry.
Distributed under the terms of the GNU General Public License (GPL).
(See accompanying file LICENSE.txt or copy at http://www.gnu.org/copyleft/gpl.html.)
Revised Sun Sep 13 2020 19:10:06.