Program: wxMaracas
Module: $RCSfile: CutModelException.cxx,v $
Language: C++
- Date: $Date: 2009/08/31 08:46:11 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2009/09/25 10:58:19 $
+ Version: $Revision: 1.2 $
Copyright: (c) 2002, 2003
License:
:std::exception(){
_cause = cause;
}
-CutModelException::~CutModelException(){
+CutModelException::~CutModelException()throw(){
}
Program: wxMaracas
Module: $RCSfile: CutModelException.h,v $
Language: C++
- Date: $Date: 2009/08/31 08:46:11 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2009/09/25 10:58:19 $
+ Version: $Revision: 1.2 $
Copyright: (c) 2002, 2003
License:
public:
CutModelException(std::string cause);
- ~CutModelException();
+ ~CutModelException() throw();
std::string getCause(){
return _cause;
bool result=false;
SetPosibleSelected(result);
int id = GetIdPoint(x,y,z);
+
if( !GetEditable() && !_selected && id!= -1)
{
result=true;
// ----------------------------------------------------------------------------
bool manualViewContour::ifTouchContour(int x,int y,int z){
+
bool result=false;
double xx=x;
double yy=y;
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]));
-
if ( ((d1+d2)>=d3) && ((d1+d2)<=d3*1.3) )
+ {
+ result=true;
+ i=nps;
+ }
+
+ //EED 25 Sep 2009
+ if ((d1<=1) || (d2<=1))
{
result=true;
i=nps;
}
+
}
return result;