manualContourModelLine::manualContourModelLine()
: manualContourModel()
{
-printf("EED manualContourModelLine::manualContourModelLine \n");
- // SetNumberOfPointsSpline(2);
- SetNumberOfPointsSpline(100);
+ SetNumberOfPointsSpline(20);
+ this->SetCloseContour(false);
}
manualContourModelLine::~manualContourModelLine()
{
_delta_JSTG = (double) (np) / double (_sizePointsContour - 1); //Without the -1 the curve is not close
} else {
- _delta_JSTG = (double) (np-1) / double (_sizePointsContour ); //Without the -1 the curve is not close
+// _delta_JSTG = (double) (np-1) / double (_sizePointsContour ); //Without the -1 the curve is not close
+ _delta_JSTG = (double) (np) / double (_sizePointsContour-1 ); //Without the -1 the curve is not close
}
//-----------------------------------------------------------------------------------------------------------
}
nps_t = nps-1;
}
- //ED
- //printf("\n Number of points %d ",nps_t);
-
- printf("EED %p manualViewContour::ifTouchContour >>>> nps_t=%d nps=%d x=%f y=%f z=%f \n", this , nps_t, nps, xx, yy, zz );
for( i = 0; i < nps_t; i++ )
{
d2= sqrt( (ppB[0]-xx)*(ppB[0]-xx) + (ppB[1]-yy)*(ppB[1]-yy) + (ppB[2]-zz)*(ppB[2]-zz));
d3= sqrt( (ppB[0]-ppA[0])*(ppB[0]-ppA[0]) + (ppB[1]-ppA[1])*(ppB[1]-ppA[1]) + (ppB[2]-ppA[2])*(ppB[2]-ppA[2]));
- //EED
-printf("%f %f %f - ", ppB[0], ppB[1], ppB[2] );
if ( ((d1+d2)>=d3) && ((d1+d2)<=d3*1.3) )
{
}
}
-if (result==true)
-{
- printf("EED %p manualViewContour::ifTouchContour true \n", this );
-} else {
- printf("EED %p manualViewContour::ifTouchContour false \n", this );
-}
return result;
}
manualViewLine::manualViewLine()
{
+ _sizePointsContour=20;
}
// ----------------------------------------------------------------------------
manualViewLine::~manualViewLine()
Program: wxMaracas
Module: $RCSfile: wxMPRWidget.cxx,v $
Language: C++
- Date: $Date: 2009/04/20 07:39:30 $
- Version: $Revision: 1.8 $
+ Date: $Date: 2009/04/20 09:03:30 $
+ Version: $Revision: 1.9 $
Copyright: (c) 2002, 2003
License:
}
if (_direction==2) {
_imageViewer2XYZ->SetZSlice( (int)(GetVtkmprbasedata()->GetZ()) );
- _ptsA->SetPoint(0, x1 , y , -z2 );
- _ptsA->SetPoint(1, x2 , y , -z2 );
- _ptsB->SetPoint(0, x , y1, -z2 );
- _ptsB->SetPoint(1, x , y2, -z2 );
+ _imageViewer2XYZ->SetZSlice( (int)(GetVtkmprbasedata()->GetZ()) );
+ // _ptsA->SetPoint(0, x1 , y , -z2 );
+ // _ptsA->SetPoint(1, x2 , y , -z2 );
+ // _ptsB->SetPoint(0, x , y1, -z2 );
+ // _ptsB->SetPoint(1, x , y2, -z2 );
+
+ _ptsA->SetPoint(0, x1 , y , z2 );
+ _ptsA->SetPoint(1, x2 , y , z2 );
+ _ptsB->SetPoint(0, x , y1, z2 );
+ _ptsB->SetPoint(1, x , y2, z2 );
}
_backX=x;
_backY=y;