}
//------------------------------------------------------------------------------------------------------------------------------------------
void AutoControlPoints::ChargeSpline( )
- {
+ {
int size = _controlpointsX.size();
if(size != 0)
{
{
_mContourModel->SetCloseContour(true);
}
-
_mContourModel->DeleteAllPoints();
_mContourModel->SetNumberOfPointsSpline(_numspline);
for(int i=0; i<size; i++)
manualBaseModel::manualBaseModel()
{
//EED2017
- _sizePointsContour = 100; //JSTG 25-02-08 The change in the inisialization of these variable is critical.
+ _sizePointsContour = 500; //JSTG 25-02-08 The change in the inisialization of these variable is critical.
_label = "";
_label2 = "--";
}
_cntSplineZ->SetDefaultContinuity( 0 );
//JSTG 25-02-08 -------------------------------------------------------------------------------------------------
// this parameter is reset in the VIRTUAL manualContourBaseControler::Configure
- _sizePointsContour = 100; //JSTG 25-02-08 The change in the inisialization of these variable is critical.
+ _sizePointsContour = 500; //JSTG 25-02-08 The change in the inisialization of these variable is critical.
_delta_JSTG = 0.0;
//---------------------------------------------------------------------------------------------------------------
//CMRU 17-08-09 -------------------------------------------------------------------------------------------------
manualContourModel::~manualContourModel()
{
int i,size=_lstPoints.size();
- for (i=0;i<size; i++){
+ for (i=0;i<size; i++)
+ {
delete _lstPoints[i];
- }
+ } // for i
_lstPoints.clear();
_cntSplineX->RemoveAllPoints();
_cntSplineY->RemoveAllPoints();
_contourVtkActor = NULL;
_bboxMapper = NULL;
_range = 1;
- _sizePointsContour = 100;
+ _sizePointsContour = 500;
_spc[0] = 1;
_spc[1] = 1;
_spc[2] = 1;
double pp[3];
int i,size = _sizePointsContour;
double *vx = (double*)malloc(sizeof(double)*size);
- for (i=0;i<size;i++){
+ for (i=0;i<size;i++)
+ {
_pts->GetPoint(i,pp);
vx[i]=pp[0];
- }
+ } // for i
return vx;
}
// ----------------------------------------------------------------------------
double pp[3];
int i,size = _sizePointsContour;
double *vy = (double*)malloc(sizeof(double)*size);
- for (i=0;i<size;i++){
+ for (i=0;i<size;i++)
+ {
_pts->GetPoint(i,pp);
vy[i]=pp[1];
- }
+ } // for i
return vy;
}
// ----------------------------------------------------------------------------
double pp[3];
int i,size = _sizePointsContour;
double *vz = (double*)malloc(sizeof(double)*size);
- for (i=0;i<size;i++){
+ for (i=0;i<size;i++)
+ {
_pts->GetPoint(i,pp);
vz[i]=pp[2];
- }
+ } // for i
return vz;
}
// ----------------------------------------------------------------------------
RefreshContour();
}
int i,size=_lstViewPoints.size();
- for (i=0;i<size;i++){
+ for (i=0;i<size;i++)
+ {
UpdateViewPoint(i);
_lstViewPoints[i]->UpdateColorActor();
- }
+ } // for i
UpdateColorActor();
if (_show_text==true)