#include <WindowOptions.h>
Inheritance diagram for WindowOptions:

Public Types | |
| enum | { kDetectorView, kPlaneView, kDisplay3D } |
Public Member Functions | |
| void | Update (const cfg::Config &c) |
Static Public Member Functions | |
| const WindowOptions & | Instance () |
Public Attributes | |
| std::vector< std::string > | fWindows |
| int | fPlaneViewWidth |
| int | fDetectorViewWidth |
Private Member Functions | |
| WindowOptions () | |
Static Private Attributes | |
| WindowOptions * | fInstance = 0 |
|
|
Definition at line 19 of file WindowOptions.h.
00019 {
00020 kDetectorView,
00021 kPlaneView,
00022 kDisplay3D
00023 };
|
|
|
Definition at line 24 of file WindowOptions.cxx. References cfg::Observer::SetWatch(). Referenced by Instance().
00025 {
00026 this->SetWatch("EVD Startup Options","test");
00027 }
|
|
|
Definition at line 16 of file WindowOptions.cxx. References fInstance, and WindowOptions(). Referenced by main().
00017 {
00018 if (fInstance==0) fInstance = new WindowOptions();
00019 return *fInstance;
00020 }
|
|
|
Implements cfg::Observer. Definition at line 31 of file WindowOptions.cxx. References fDetectorViewWidth, fPlaneViewWidth, and fWindows.
00032 {
00033 // Try getting option as string, then as vector
00034 try { c("Windows").Get(fWindows); }
00035 catch (...) {
00036 std::string s;
00037 c("Windows").Get(s);
00038 fWindows.push_back(s);
00039 }
00040 c("PlaneViewWidth"). Get(fPlaneViewWidth);
00041 c("DetectorViewWidth"). Get(fDetectorViewWidth);
00042
00043 }
|
|
|
Definition at line 31 of file WindowOptions.h. Referenced by Update(). |
|
|
Definition at line 12 of file WindowOptions.cxx. Referenced by Instance(). |
|
|
Definition at line 30 of file WindowOptions.h. Referenced by Update(). |
|
|
Definition at line 29 of file WindowOptions.h. |
1.3.5