bool result=false;
SetPosibleSelected(result);
int id = GetIdPoint(x,y,z);
-
- if( !GetEditable() && !_selected && id!= -1)
- {
- result=true;
- _posibleSelected=true;
- }
- else
+
+/* EED 2023-07-29
+ if( !GetEditable() && !_selected && id!= -1)
{
- if ( (GetEditable()==true) && (id==-1 ) && (this->_lstViewPoints.size()>=2) )
+ result = true;
+ _posibleSelected = true;
+ }else{
+ if ( (GetEditable()==true) && (id==-1 ) && (this->_lstViewPoints.size()>=2) )
{
if (ifTouchContour(x,y,z)==true)
{
- result=true;
+ result = true;
SetPosibleSelected(result);
- }
+ } // ifTouchContour
}
-
if (GetEditable()==false)
{
if (ifTouchContour(x,y,z)==true)
{
- result=true;
+ result = true;
SetPosibleSelected(result);
- }
- }
- }
+ } // ifTouchContor
+ } // if GetEditable
+ } // if !GetEditable() && !_selected && id!= -1
+*/
+
+ if ( (GetEditable()==true) && (id==-1 ) && (this->_lstViewPoints.size()>=2) )
+ {
+ if (ifTouchContour(x,y,z)==true)
+ {
+ result = true;
+ SetPosibleSelected(result);
+ } // ifTouchContour
+ }
+ if (GetEditable()==false)
+ {
+ if (ifTouchContour(x,y,z)==true)
+ {
+ result = true;
+ SetPosibleSelected(result);
+ } // ifTouchContor
+ } // if GetEditable
+
return result;
}
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
void manualViewBaseContour::UnSelectAllPoints(){
int i,size=_lstViewPoints.size();
- for (i=0;i<size;i++){
+ for (i=0;i<size;i++)
+ {
UnSelectPoint(i);
}
Refresh();