Skip to content

Commit 021a4c1

Browse files
author
deseilligny
committed
Ellipse : export geom readable
1 parent b97d84d commit 021a4c1

File tree

4 files changed

+50
-4
lines changed

4 files changed

+50
-4
lines changed

MMVII/include/MMVII_2Include_Serial_Tpl.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,23 @@ template <class Type> void AddData(const cAuxAr2007 & anAux, cDenseVect<Type>& a
359359
AddData(anAux,aVect.DIm());
360360
}
361361

362+
/// if we want a human readable vector for small vect ..
363+
template <class Type> void AddDataAsStdVect(const cAuxAr2007 & anAux,cDenseVect<Type>& aDenseV)
364+
{
365+
std::vector<Type> aStdV;
366+
if (anAux.Input())
367+
{
368+
MMVII::AddData(anAux,aStdV);
369+
aDenseV = cDenseVect<Type>(aStdV);
370+
}
371+
else
372+
{
373+
aStdV = aDenseV.ToStdVect();
374+
MMVII::AddData(anAux,aStdV);
375+
}
376+
}
377+
378+
362379
// template <class Type,const int Dim> void AddData(const cAuxAr2007 & anAux,cDataTypedIm<Type,Dim> & aIm)
363380

364381

MMVII/include/MMVII_InstrumentalBlock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ void AddData(const cAuxAr2007 & anAux,cIrbCal_Clino1 & aClino);
126126
class cIrb_SigmaPoseRel
127127
{
128128
public :
129-
cIrb_SigmaPoseRel();
130-
cIrb_SigmaPoseRel(int aK1,int aK2,tREAL8 aSigmaTr,tREAL8 aSigmaRot);
129+
cIrb_SigmaPoseRel();
130+
cIrb_SigmaPoseRel(int aK1,int aK2,tREAL8 aSigmaTr,tREAL8 aSigmaRot);
131131

132132
int mK1;
133133
int mK2;

MMVII/src/Geom2D/cEllipse2D.cpp

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,44 @@ cEllipse::cEllipse(const cPt2dr & aCenter,tREAL8 aRay) :
101101
{
102102
}
103103

104+
105+
/*
106+
template <class Type> void AddDataAsStdVect(const cAuxAr2007 & anAux,cDenseVect<Type>& aDenseV)
107+
{
108+
std::vector<Type> aStdV;
109+
if (anAux.Input())
110+
{
111+
MMVII::AddData(anAux,aStdV);
112+
aDenseV = cDenseVect<Type>(aStdV);
113+
}
114+
else
115+
{
116+
aStdV = aDenseV.ToStdVect();
117+
MMVII::AddData(anAux,aStdV);
118+
}
119+
}
120+
*/
121+
122+
104123
void cEllipse::AddData(const cAuxAr2007 & anAux)
105124
{
106125
AssertOk();
107-
MMVII::AddData(cAuxAr2007("Vect",anAux),mV);
126+
AddDataAsStdVect(anAux,mV);
127+
// MMVII::AddData(cAuxAr2007("Vect",anAux),mV);
108128
MMVII::AddData(cAuxAr2007("C0",anAux),mC0);
129+
// MMVII::AddData(cAuxAr2007("C0",anAux),mC0);
130+
{
131+
cAuxAr2007 anAuxGeom("GeomForComment",anAux);
132+
MMVII::AddData(cAuxAr2007("LengthGreadAxe",anAuxGeom),mLGa);
133+
MMVII::AddData(cAuxAr2007("LengthSmallAxe",anAuxGeom),mLSa);
134+
MMVII::AddData(cAuxAr2007("DirGreadAxe",anAuxGeom),mVGa);
135+
anAuxGeom.Ar().AddComment("GA=" + ToStr(mLGa) + " SA=" + ToStr(mLSa));
136+
}
109137
if (anAux.Input())
110138
{
111139
*this = cEllipse(mV,mC0);
112140
}
141+
113142
}
114143

115144
void AddData(const cAuxAr2007 & anAux,cEllipse & anEl)

MMVII/src/Instrumental/cIrb_Cams.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void cIrbCal_CamSet::SetSigma(const cIrb_SigmaPoseRel& aNewS)
231231
if ((aSigm.mK1==aNewS.mK1) && (aSigm.mK2==aNewS.mK2))
232232
{
233233
isFound=true;
234-
aSigm = aNewS;
234+
aSigm = aNewS;
235235
}
236236
}
237237

0 commit comments

Comments
 (0)