bool anIsChanged = (mySelectionMode != theSelectionEvent->mySelectionMode);
- mySelectionMode = theSelectionEvent->mySelectionMode;
-
+ Selection_Mode aSelectionMode = theSelectionEvent->mySelectionMode;
float x = theSelectionEvent->myX;
float y = theSelectionEvent->myY;
float z = 0.0;
if ( aVtkId >= 0 && theSelector->IsValid( this, aVtkId ) && hasIO() ) {
int anObjId = GetElemObjId (aVtkId );
if ( anObjId >= 0 ) {
- if ( CheckDimensionId(mySelectionMode,this,anObjId) ) {
+ if ( CheckDimensionId(aSelectionMode,this,anObjId) ) {
TColStd_IndexedMapOfInteger aMapIndex;
aMapIndex.Add( anObjId );
}
}
+ mySelectionMode = aSelectionMode;
+
return anIsChanged;
}
if( aVtkId >= 0 && theSelector->IsValid( this, aVtkId ) ) {
int anObjId = GetElemObjId( aVtkId );
if( anObjId >= 0 ) {
- if ( CheckDimensionId(mySelectionMode,this,anObjId) ) {
+ if ( CheckDimensionId(aSelectionMode,this,anObjId) ) {
if( theSelector->IsSelected( myIO ) )
theSelector->AddOrRemoveIndex( myIO, anObjId, isShift );
else {
int anObjId = GetElemObjId( aCellId );
if( anObjId != -1 )
- if ( CheckDimensionId(mySelectionMode,this,anObjId) ) {
+ if ( CheckDimensionId(aSelectionMode,this,anObjId) ) {
anIndexes.Add(anObjId);
}
}