void VisuGUI_GaussPointsSelectionPane::SelectionEvent()
{
//printf( "VisuGUI_GaussPointsSelectionPane::SelectionEvent()\n" );
+ ClearIDControls();
+
SelectorHelper aHelper( myModule );
if( aHelper.get() )
{
myParentElementLineEdit->setText( QString::number( aCellID ) );
myLocalPointLineEdit->setText( QString::number( aLocalPntID ) );
-
- VISU_PickingSettings* aPickingSettings = VISU_PickingSettings::Get();
- aPickingSettings->InvokeEvent( VISU::UpdatePickingSettingsEvent,NULL );
-
- SetSelected( aCellID, aLocalPntID );
- return;
}
}
- ClearIDControls();
}
void VisuGUI_GaussPointsSelectionPane::onSelectionValidate()
void VisuGUI_GaussPointsSelectionPane::onSelectionApply()
{
//printf( "VisuGUI_GaussPointsSelectionPane::onSelectionApply()\n" );
- VISU::TCellID aCellId = myParentElementLineEdit->text().toInt();
- VISU::TLocalPntID aLocalPntId = myLocalPointLineEdit->text().toInt();
- SetSelected( aCellId, aLocalPntId );
-}
-
-void VisuGUI_GaussPointsSelectionPane::SetSelected( VISU::TCellID theCellId, VISU::TLocalPntID theLocalPntId )
-{
- //printf( "VisuGUI_GaussPointsSelectionPane::SetSelected( %d, %d )\n", theCellId, theLocalPntId );
SelectorHelper aHelper( myModule );
if( !aHelper.get() )
return;
+ VISU::TCellID aCellId = myParentElementLineEdit->text().toInt();
+ VISU::TLocalPntID aLocalPntId = myLocalPointLineEdit->text().toInt();
VISU::PGaussPtsIDMapper anIDMapper = aHelper.myPipeLine->GetGaussPtsIDMapper();
- vtkIdType anObjVtkId = anIDMapper->GetVTKID( VISU::TGaussPointID( theCellId, theLocalPntId ) );
+ vtkIdType anObjVtkId = anIDMapper->GetVTKID( VISU::TGaussPointID( aCellId, aLocalPntId ) );
if( anObjVtkId < 0 )
return;
myLocalPointLineEdit->setText( "" );
}
-void VisuGUI_GaussPointsSelectionPane::UnselectAll()
-{
- //printf( "VisuGUI_GaussPointsSelectionPane::UnselectAll()\n" );
- SelectorHelper aHelper( myModule );
- if( aHelper.get() )
- {
- const TColStd_IndexedMapOfInteger& aMapIndex = aHelper.myMapIndex;
- if( aMapIndex.Extent() == 1 )
- {
- int anObjId = aHelper.myMapIndex(1);
- VISU::TGaussPointID aGaussPointID = aHelper.myPipeLine->GetObjID( anObjId );
- VISU::TCellID aCellID = aGaussPointID.first;
- VISU::TLocalPntID aLocalPntID = aGaussPointID.second;
-
- VISU::PGaussPtsIDMapper anIDMapper = aHelper.myPipeLine->GetGaussPtsIDMapper();
- vtkIdType anObjVtkId = anIDMapper->GetVTKID( VISU::TGaussPointID( aCellID, aLocalPntID ) );
- if( anObjVtkId >= 0 )
- {
- //printf( "anObjVtkId = %d\n", anObjVtkId );
- aHelper.myActor->Highlight( false );
- aHelper.myMapIndex.Clear();
- }
- }
- }
- ClearIDControls();
-}
-
void VisuGUI_GaussPointsSelectionPane::Apply()
{
/*
VISU_PickingSettings* aPickingSettings = VISU_PickingSettings::Get();
aPickingSettings->SetCursorSize( theValue );
aPickingSettings->InvokeEvent( VISU::UpdatePickingSettingsEvent,NULL );
- //onSelectionApply();
}
void VisuGUI_GaussPointsSelectionPane::onApplyPyramidHeight( double theValue )