char text[50];
char resultText[50];
strcpy(resultText," ");
+
+//CMRU 19-08-09 ----------------------------------
+ std::string label;
+ label = _manContModel->GetLabel();
+// ------------------------------------
+
if (size==2)
{
strcpy(resultText,"L= ");
gcvt ( _mesureScale * this->_manContModel->GetPathSize() , 5, text );
strcat(resultText,text);
+
+//CMRU 19-08-09 ----------------------------------
+ strcat(resultText," ");
+ strcat(resultText,label.c_str());
+//------------------------------------------------
}
if (size>2)
{
gcvt ( _mesureScale * _mesureScale * this->_manContModel->GetPathArea() , 5, text );
strcat(resultText," A= ");
strcat(resultText,text);
+ strcat(resultText," ");
} else {
strcpy(resultText,"L= ");
gcvt ( _mesureScale * this->_manContModel->GetPathSize() , 5, text );
strcat(resultText,text);
}
+//CMRU 19-08-09 ----------------------------------
+ strcat(resultText,label.c_str());
+//------------------------------------------------
}
_textActor->SetInput(resultText);
}
}
- int id = _id_viewPoint_for_text;
- double px = _manContModel->GetManualPoint(id)->GetX();
- double py = _manContModel->GetManualPoint(id)->GetY();
+ if (_id_viewPoint_for_text>=size)
+ {
+ _id_viewPoint_for_text=0;
+ }
+
+ double px = _manContModel->GetManualPoint(_id_viewPoint_for_text)->GetX();
+ double py = _manContModel->GetManualPoint(_id_viewPoint_for_text)->GetY();
//EED 27 sep 2006
px=px*_spc[0];
double ppA[3];
double ppB[3];
double d1,d2,d3;
- TransfromeCoordViewWorld(xx,yy,zz);
+ TransfromCoordViewWorld(xx,yy,zz);
//EED 27 sep 2006
xx = xx * _spc[0];
double XX=x;
double YY=y;
double ZZ=z;
- TransfromeCoordViewWorld(XX,YY,ZZ);
+ TransfromCoordViewWorld(XX,YY,ZZ);
int i, manualPointsSZ = _manContModel->GetSizeLstPoints();
for ( i=0; i<manualPointsSZ; i++ )
double YY=y;
double ZZ=z;
- TransfromeCoordViewWorld(XX,YY,ZZ);
+ TransfromCoordViewWorld(XX,YY,ZZ);
int i, manualPointsSZ = _manContModel->GetSizeLstPoints();
for ( i=0; i<manualPointsSZ; i++ )