My Project
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
Friends
Macros
Pages
Axis.h
1
#ifndef GCP_UTIL_AXIS_H
2
#define GCP_UTIL_AXIS_H
3
11
namespace
gcp {
12
namespace
util {
13
17
class
Axis
{
18
19
public
:
20
24
enum
Type
{
25
NONE = 0x0,
26
AZ = 0x1,
// Make these orthogonal bits, so that they can be
27
// OR'd together
28
EL = 0x2,
29
PA = 0x4,
30
BOTH = AZ|EL,
// Some telescope don't have a PA axis
31
ALL = AZ|EL|PA
32
} type_;
33
37
inline
Axis
(
Type
type)
38
{
39
type_ = type;
40
};
41
45
inline
bool
isValidSingleAxis
()
46
{
47
if
(type_ == AZ || type_ == EL || type_ == PA)
48
return
true
;
49
return
false
;
50
};
51
55
inline
bool
isSet
(
Type
type)
56
{
57
return
(
unsigned
) type_ & (unsigned) type;
58
};
59
60
};
// End class Axis
61
62
}
// End namespace util
63
}
// End namespace gcp
64
65
66
#endif // End #ifndef
gcp::util::Axis::isValidSingleAxis
bool isValidSingleAxis()
Definition:
Axis.h:45
gcp::util::Axis
Definition:
Axis.h:17
gcp::util::Axis::isSet
bool isSet(Type type)
Definition:
Axis.h:55
gcp::util::Axis::Axis
Axis(Type type)
Definition:
Axis.h:37
gcp::util::Axis::Type
Type
Definition:
Axis.h:24
gcpCbass
util
common
Axis.h
Generated on Thu Jun 21 2018 14:30:00 for My Project by
1.8.6