libnuklei
io
nuklei
RIFObservationIO.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_RIFOBSERVATIONSERIAL_H
8
#define NUKLEI_RIFOBSERVATIONSERIAL_H
9
10
11
#include <
nuklei/Definitions.h
>
12
#include <
nuklei/ObservationIO.h
>
13
#include <
nuklei/RIFObservation.h
>
14
15
16
namespace
nuklei
{
17
18
19
class
RIFReader
:
public
ObservationReader
20
{
21
public
:
22
RIFReader
(
const
std::string &geometryFileName);
23
~
RIFReader
();
24
25
Observation::Type type()
const
{
return
Observation::RIF; }
26
27
void
reset();
28
29
protected
:
30
void
init_();
31
NUKLEI_UNIQUE_PTR<Observation> readObservation_();
32
private
:
33
std::ifstream in_;
34
std::string geometryFileName_;
35
36
unsigned
rows_;
37
unsigned
columns_;
38
unsigned
currentIndex_;
39
40
std::vector<bool> flags_;
41
std::vector<coord_t> x_;
42
std::vector<coord_t> y_;
43
std::vector<coord_t> z_;
44
std::vector<Vector3> rgb_;
45
};
46
47
}
48
49
#endif
50
nuklei
Public namespace.
Definition:
Color.cpp:9
nuklei::RIFReader
Definition:
RIFObservationIO.h:19
nuklei::ObservationReader
Base class for kernel reader and point reader classes.
Definition:
ObservationIO.h:34
ObservationIO.h
Definitions.h
RIFObservation.h
© 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.