libnuklei
io
nuklei
OsuTxtObservation.h
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
7
#ifndef NUKLEI_OSUTXTOBSERVATION_H
8
#define NUKLEI_OSUTXTOBSERVATION_H
9
10
11
#include <vector>
12
#include <string>
13
#include <utility>
14
#include <stdexcept>
15
#include <iostream>
16
#include <boost/shared_ptr.hpp>
17
18
#include <
nuklei/Definitions.h
>
19
#include <
nuklei/Color.h
>
20
#include <
nuklei/LinearAlgebra.h
>
21
#include <
nuklei/Observation.h
>
22
23
// See http://sampl.ece.ohio-state.edu/data/3DDB/RID/minolta/
24
25
namespace
nuklei
{
26
27
class
OsuTxtObservation
:
public
Observation
28
{
29
public
:
30
31
Type type()
const
{
return
OSUTXT; }
32
33
static
const
double
TOL;
34
35
NUKLEI_UNIQUE_PTR<kernel::base> getKernel()
const
36
{
37
return
k_.
clone
();
38
}
39
40
void
setKernel(
const
kernel::base
& k)
41
{
42
NUKLEI_TRACE_BEGIN();
43
k_ =
dynamic_cast<
const
kernel::r3
&
>
(k);
44
NUKLEI_TRACE_END();
45
}
46
47
OsuTxtObservation
();
48
OsuTxtObservation
(
const
kernel::r3
& k);
49
~
OsuTxtObservation
() {};
50
51
void
setLoc(Vector3 loc);
52
Vector3 getLoc()
const
;
53
54
void
setWeight(
weight_t
weight);
55
weight_t
getWeight()
const
;
56
57
void
setColor(
const
Color
& color);
58
const
Color
& getColor()
const
;
59
60
private
:
61
kernel::r3
k_;
62
};
63
64
}
65
66
#endif
nuklei::Observation
Definition:
Observation.h:17
nuklei
Public namespace.
Definition:
Color.cpp:9
nuklei::weight_t
double weight_t
Type for particle weights.
Definition:
Definitions.h:31
LinearAlgebra.h
nuklei::kernel::base
Polymorphic kernel class.
Definition:
Kernel.h:45
nuklei::kernel::r3
Definition:
Kernel.h:626
Definitions.h
nuklei::OsuTxtObservation
Definition:
OsuTxtObservation.h:27
Observation.h
nuklei::Color
Definition:
Color.h:18
Color.h
nuklei::kernel::implementation_prototype::clone
base::ptr clone() const
Clone the kernel.
Definition:
Kernel.h:280
© 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.