Scope
Plane.cpp
1 #include "stdafx.h"
2 #include "Plane.h"
3 
4 namespace scope {
5 
6 namespace parameters {
7 
8 // save some typing here...
9 using namespace boost::property_tree;
10 
11 PlaneProperties::PlaneProperties(const double& _position, const double& _pockels)
12  : position(_position, -1000.0, 1000.0, L"ZPosition_um")
13  , pockels(0.0, 0.0, 1.0, L"Pockels_Fraction") {
14 }
15 
16 void PlaneProperties::Load(const wptree& pt) {
19 }
20 
21 void PlaneProperties::Save(wptree& pt) const {
24 }
25 
26 }
27 
28 }
void AddToPropertyTree(boost::property_tree::wptree &pt) const
Adds the value to a Boost property tree, using its name and value.
Definition: ScopeValue.h:103
ScopeNumber< double > position
z position (um)
Definition: Plane.h:17
void Load(const wptree &pt) override
load parameters from a boost::property_tree
Definition: Plane.cpp:16
void Save(wptree &pt) const override
save parameters into a boost:property_tree
Definition: Plane.cpp:21
This is the include file for standard system include files, or project specific include files that ar...
PlaneProperties(const double &_position=0.0, const double &_pockels=0.0)
Quick construct.
Definition: Plane.cpp:11
void SetFromPropertyTree(const boost::property_tree::wptree &pt)
Set value from a Boost property, using its name as a key.
Definition: ScopeValue.h:108
ScopeNumber< double > pockels
Pockels/intensity value (Volts) for that plane.
Definition: Plane.h:20