00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #include "stdafx.h"
00012 #include "ippdme/Property/ippOnePropertyAlignment.h"
00013 #include "ippdme/misc/ippStringBuilder.h"
00014 #include "ippdme/ippProp.h"
00015
00016 ippOnePropertyAlignment::ippOnePropertyAlignment
00017 (
00018 ippOtherKeyType keyword,
00019 double inI1, double inJ1, double inK1,
00020 double inI2,double inJ2, double inK2
00021 )
00022 : ippOneProperty(ippProp(keyword,Alignment))
00023 {
00024 _i1 = inI1;
00025 _j1 = inJ1;
00026 _k1 = inK1;
00027 _i2 = inI2;
00028 _j2 = inJ2;
00029 _k2 = inK2;
00030 _has2 = true;
00031 }
00032
00033 ippOnePropertyAlignment::ippOnePropertyAlignment(
00034 ippOtherKeyType keyword,
00035 double inI1, double inJ1, double inK1
00036 )
00037 :ippOneProperty(ippProp(keyword,Alignment))
00038 {
00039 _i1 = inI1;
00040 _j1 = inJ1;
00041 _k1 = inK1;
00042 _i2 = 0;
00043 _j2 = 0;
00044 _k2 = 0;
00045 _has2 = false;
00046 }
00047
00048 void ippOnePropertyAlignment::propString(ippStringBuilder& s) const
00049 {
00050 s.StartFunc(_prop.toString().c_str());
00051 s.AppendParam(_i1);
00052 s.AppendParam(_j1);
00053 s.AppendParam(_k1);
00054 if (_has2) {
00055 s.AppendParam(_i2);
00056 s.AppendParam(_j2);
00057 s.AppendParam(_k2);
00058 }
00059 s.EndFunc();
00060 }