My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
Wavelength.h
Go to the documentation of this file.
1 #ifndef GCP_UTIL_WAVELENGTH_H
2 #define GCP_UTIL_WAVELENGTH_H
3 
11 #include "gcp/util/common/Length.h"
12 #include "gcp/util/common/Speed.h"
13 
14 namespace gcp {
15  namespace util {
16 
17  class Frequency;
18 
19  class Wavelength : public Length {
20  public:
21 
22  class Angstroms {};
23 
24  static const double cmPerAngstrom_;
25  static Speed lightSpeed_;
26 
30  Wavelength();
31  Wavelength(const Frequency& frequency);
32  Wavelength(const Length::Centimeters& units, double cm);
33  Wavelength(const Microns& units, double microns);
34 
38  virtual ~Wavelength();
39 
40  void setMicrons(double microns);
41 
42  void setAngstroms(double angstroms);
43 
44  double microns();
45 
46  double angstroms();
47 
48  void initialize();
49 
50  }; // End class Wavelength
51 
52  } // End namespace util
53 } // End namespace gcp
54 
55 
56 
57 
58 #endif // End #ifndef GCP_UTIL_WAVELENGTH_H
Definition: Wavelength.h:19
Definition: Speed.h:16
Definition: Length.h:25
Definition: Wavelength.h:22
Wavelength()
Definition: Wavelength.cc:17
Definition: Length.h:22
virtual ~Wavelength()
Definition: Wavelength.cc:40
Definition: Length.h:19
Definition: Frequency.h:21