//------------------------------------------------------------------------
-void WidgetShowNPoints::AddPoint(int x, int y, int z, std::string label)
+void WidgetShowNPoints::AddPoint(double x, double y, double z, std::string label)
{
GetModelShowNPoints()->AddPoint(x,y,z, label );
// EED 2022-05-19
}
//------------------------------------------------------------------------
-void WidgetShowNPoints::InsertPoint(int x, int y, int z, std::string label)//CFT
+void WidgetShowNPoints::InsertPoint(double x, double y, double z, std::string label)//CFT
{
// EED 2022-05-19
//if ( GetModelShowNPoints()->InsertPoint(x,y,z,label) != -1 )
{
return;
}
- std::vector<int> point = GetModelShowNPoints()->GetReferencePoint();
+ std::vector<double> point = GetModelShowNPoints()->GetReferencePoint();
if (point.size()==3)
{
InsertPoint(point[0],point[1],point[2], (const char*) ( textCtrl->GetValue().mb_str() ) );
{
return;
}
- std::vector<int> point = GetModelShowNPoints()->GetReferencePoint();
+ std::vector<double> point = GetModelShowNPoints()->GetReferencePoint();
if (point.size()==3)
{
AddPoint(point[0],point[1],point[2], (const char*) ( textCtrl->GetValue().mb_str() ) );
}
//------------------------------------------------------------------------
-void WidgetShowNPoints::SetReferencePoint(std::vector<int> point)
+void WidgetShowNPoints::SetReferencePoint(std::vector<double> point)
{
GetModelShowNPoints()->SetReferencePoint(point);
int i,size=lstModelShowNPoints.size();
}
//------------------------------------------------------------------------
-void WidgetShowNPoints::SetInitLstPoints( std::vector<int> initLstPointsX, std::vector<int> initLstPointsY, std::vector<int> initLstPointsZ, std::vector<std::string> initLstLabels )
+void WidgetShowNPoints::SetInitLstPoints( std::vector<double> initLstPointsX, std::vector<double> initLstPointsY, std::vector<double> initLstPointsZ, std::vector<std::string> initLstLabels )
{
// EED 2022-05-19
//if (this->renderer==NULL)
sizeY = (int)initLstPointsY.size();
sizeZ = (int)initLstPointsZ.size();
sizeLabels = (int)initLstLabels.size();
- int x,y,z;
+ double x,y,z;
std::string label;
if ( (sizeX==sizeY) && (sizeX==sizeZ) )
{
//------------------------------------------------------------------------
void WidgetShowNPoints::GetCollectionPoint(int idCol,int idPoint, double *pPoint)
{
- int x,y,z;
+ double x,y,z;
lstModelShowNPoints[idCol]->GetIdPoint(idPoint,&x,&y,&z);
pPoint[0] = x;
pPoint[1] = y;
void WidgetShowNPoints::SetCollectionPoint(int idCol, int idPoint, std::vector<double> modPoint)
{
if(idCol >= 0 && idCol < lstModelShowNPoints.size())
+ {
lstModelShowNPoints[idCol]->SetPointById(idPoint, modPoint);
+ lstViewShowNPoints[idCol]->RefreshPoint(idPoint);
+ }
else{
printf("WidgetShowNPoints::SetCollectionPoint ...Error... Invalid collection, out of range");
}
}
//------------------------------------------------------------------------
-std::vector<int> WidgetShowNPoints::GetLstPointsX()
+std::vector<double> WidgetShowNPoints::GetLstPointsX()
{
if (mtype!=4)
{
return GetModelShowNPoints()->GetLstPointsX();
} else {
- std::vector<int> lst;
+ std::vector<double> lst;
int iP,s;
int iG,sG=lstModelShowNPoints.size();
for (iG=0 ; iG<sG ; iG++)
{
- std::vector<int> lstTmp = lstModelShowNPoints[iG]->GetLstPointsX();
+ std::vector<double> lstTmp = lstModelShowNPoints[iG]->GetLstPointsX();
s = lstTmp.size();
for (iP=0 ; iP<s ; iP++)
{
}
//------------------------------------------------------------------------
-std::vector<int> WidgetShowNPoints::GetLstPointsY()
+std::vector<double> WidgetShowNPoints::GetLstPointsY()
{
if (mtype!=4)
{
return GetModelShowNPoints()->GetLstPointsY();
} else {
- std::vector<int> lst;
+ std::vector<double> lst;
int iP,s;
int iG,sG=lstModelShowNPoints.size();
for (iG=0 ; iG<sG ; iG++)
{
- std::vector<int> lstTmp = lstModelShowNPoints[iG]->GetLstPointsY();
+ std::vector<double> lstTmp = lstModelShowNPoints[iG]->GetLstPointsY();
s = lstTmp.size();
for (iP=0 ; iP<s ; iP++)
{
}
//------------------------------------------------------------------------
-std::vector<int> WidgetShowNPoints::GetLstPointsZ()
+std::vector<double> WidgetShowNPoints::GetLstPointsZ()
{
if (mtype!=4)
{
return GetModelShowNPoints()->GetLstPointsZ();
} else {
- std::vector<int> lst;
+ std::vector<double> lst;
int iP,s;
int iG,sG=lstModelShowNPoints.size();
for (iG=0 ; iG<sG ; iG++)
{
- std::vector<int> lstTmp = lstModelShowNPoints[iG]->GetLstPointsZ();
+ std::vector<double> lstTmp = lstModelShowNPoints[iG]->GetLstPointsZ();
s = lstTmp.size();
for (iP=0 ; iP<s ; iP++)
{