VISU_GaussPtsAct::highlight(bool theHighlight,
Selection_Mode theSelectionMode)
{
- myTextActor->SetVisibility(0);
- myCursorPyramidSelected->SetVisibility(0);
- myCursorPyramid->SetVisibility(0);
- myCellActor->SetVisibility(0);
- GetScalarBarCtrl()->SetIsMarked(false);
+ myTextActor->SetVisibility(theHighlight);
+ myCursorPyramidSelected->SetVisibility(theHighlight);
+ myCursorPyramid->SetVisibility(theHighlight);
+ myCellActor->SetVisibility(theHighlight);
+ GetScalarBarCtrl()->SetIsMarked(theHighlight);
GetScalarBarCtrl()->Update();
}
//==================================================================
void VISU_GaussPtsAct::highlight(bool theHighlight,
SVTK_Selector* theSelector)
{
+ highlight( mySelectionMode != ActorSelection, mySelectionMode );
+
TColStd_IndexedMapOfInteger aMapIndex;
//
theSelector->GetIndex( getIO(), aMapIndex );
aRadius,
aNodeCoord,
myHighlightProperty.GetPointer()->GetColor());
- myCursorPyramidSelected->SetVisibility(1);
+ //myCursorPyramidSelected->SetVisibility(1);
//
const VISU::PGaussPtsIDMapper& aGaussPtsIDMapper =
myGaussPointsPL->GetGaussPtsIDMapper();
//----------------------------------------------------------------
VISU_OutsideCursorSettings::VISU_OutsideCursorSettings()
{
- this->Initial = true;
+ this->Initial = true;
- this->Texture = NULL;
+ this->Clamp = -1;
+ this->Texture = NULL;
+ this->AlphaThreshold = -1;
+ this->Size = -1;
+ this->Color[0] = -1;
+ this->Color[1] = -1;
+ this->Color[1] = -1;
}
VISU_OutsideCursorSettings::~VISU_OutsideCursorSettings()
//----------------------------------------------------------------
VISU_PickingSettings::VISU_PickingSettings()
{
- this->Initial = true;
+ this->Initial = true;
+
+ this->PyramidHeight = -1;
+ this->InfoWindowTransparency = -1;
+ this->InfoWindowPosition = -1;
+ this->ZoomFactor = -1;
+ this->StepNumber = -1;
}
VISU_PickingSettings::~VISU_PickingSettings()
VVTK_InteractorStyle
::OnKeyDown()
{
-
+ SVTK_Selector* pSelector = GetSelector();
+
+ if( pSelector->SelectionMode() != NodeSelection )
+ return;
+
char key = Interactor->GetKeyCode();
if ( key == 'S' || key == 'P') {
int aSMWas, x, y;
- SVTK_Selector* pSelector;
//
- pSelector=GetSelector();
aSMWas=pSelector->SelectionMode();
//
pSelector->SetSelectionMode(NodeSelection);