Definitions.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 
8 #ifndef NUKLEI_DEFINITIONS_H
9 #define NUKLEI_DEFINITIONS_H
10 
11 #include <limits>
12 #include <string>
13 #include <iostream>
14 #include <iomanip>
15 #include <fstream>
16 #include <stdexcept>
17 #include <cstdio>
18 #include <utility>
19 #include <boost/shared_ptr.hpp>
20 #include <boost/version.hpp>
21 
22 namespace nuklei {
23 
24  /** @brief Type for point coordinates */
25  typedef double coord_t;
26  /** @brief Pair of coord_t */
27  typedef std::pair<coord_t, coord_t> coord_pair;
28  /** @brief Type for appearance-related values (e.g., color) */
29  typedef double appear_t;
30  /** @brief Type for particle weights */
31  typedef double weight_t;
32  /** @brief Type for bitfield */
33  typedef unsigned int bitfield_t;
34  /** @brief Type for identifier label */
35  typedef unsigned int id_t;
36 
37  extern const coord_t FLOATTOL;
38 
39  extern const std::string INFOSTRING;
40 
41  // Default precision in text files.
42  extern const int PRECISION;
43 
44  extern const bool KDTREE_DENSITY_EVAL;
45  extern const bool KDTREE_NANOFLANN;
46 
47  extern const unsigned int KDE_KTH_NEAREST_NEIGHBOR;
48 
49  extern const appear_t HSV_METRIC_VALUE_WEIGHT;
50 
51  // Be nice to other processes.
52  extern const int NICEINC;
53 
54  // For object IO.
55  extern const std::string SERIALIZATION_DEFAULT_OUTPUT_TYPE;
56  extern const std::string SERIALIZATION_DEFAULT_BOOST_ARCHIVE;
57 
58  extern const unsigned IMAGE_PROJECTION_RADIUS;
59 
60  extern const std::string PARALLELIZATION;
61 
62  extern const bool ENABLE_CONSOLE_BACKSPACE;
63 
64  extern const unsigned LOG_LEVEL;
65 
66  extern bool LAST_OUTPUT_LINE_IS_PROGRESS;
67 
68  extern const bool INTERACTIVE_SHELL;
69 
70  bool hasOpenMP();
71 }
72 
73 #endif
74 
75 
Public namespace.
Definition: Color.cpp:9
std::pair< coord_t, coord_t > coord_pair
Pair of coord_t.
Definition: Definitions.h:27
double weight_t
Type for particle weights.
Definition: Definitions.h:31
unsigned int bitfield_t
Type for bitfield.
Definition: Definitions.h:33
double coord_t
Type for point coordinates.
Definition: Definitions.h:25
double appear_t
Type for appearance-related values (e.g., color)
Definition: Definitions.h:29
unsigned int id_t
Type for identifier label.
Definition: Definitions.h:35
© 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.