return id;
} // if
}
+
//------------------------------------------------------------------------
void ModelShowNPoints::SetPointById(int id, std::vector<double> point)
{
printf("WidgetShowNPoints::SetPointById Invalid pointid, id is outside range\n");
}
}
+
+std::vector<double> ModelShowNPoints::GetPointById( int id )
+{
+ std::vector<double> point;
+ if(id >= 0 && id < lstPointsX.size())
+ {
+ point.push_back ( lstPointsX[id] );
+ point.push_back ( lstPointsY[id] );
+ point.push_back ( lstPointsZ[id] );
+ }
+ else{
+ printf("WidgetShowNPoints::GetPointById Invalid pointid, id is outside range\n");
+ }
+ return point;
+}
+
+
//------------------------------------------------------------------------
int ModelShowNPoints::RenamePoint(std::string label)
{