return myGaussPtsActorFactory;
}
+
+//----------------------------------------------------------------------------
void
VISU_GaussPtsAct
::SetVisibility(int theMode)
Highlight(isHighlighted());
}
+int
+VISU_GaussPtsAct
+::IsSegmentationEnabled()
+{
+ return myWidgetCtrl && myWidgetCtrl->GetEnabled();
+}
+
+
//----------------------------------------------------------------------------
void
VISU_GaussPtsAct
if(!myInsideCursorSettings || myInsideCursorSettings->GetInitial())
return;
+ if(!IsSegmentationEnabled())
+ return;
+
VISU_GaussPointsPL* aPipeline = theActor->GetPipeLine();
SALOME_ExtractGeometry* anExtractGeometry = aPipeline->GetExtractGeometryFilter();
myOutsideDeviceActor->SetVisibility(false);
}
+ Superclass::SetWidgetCtrl(theWidgetCtrl);
+
if(theWidgetCtrl){
myInsideDeviceActor->GetPipeLine()->SetImplicitFunction(theWidgetCtrl->ImplicitFunction());
- myInsideDeviceActor->SetVisibility(GetVisibility() && theWidgetCtrl->GetEnabled());
+ myInsideDeviceActor->SetVisibility(GetVisibility() && IsSegmentationEnabled());
myOutsideDeviceActor->GetPipeLine()->SetImplicitFunction(theWidgetCtrl->ImplicitFunction());
- myOutsideDeviceActor->SetVisibility(GetVisibility() && theWidgetCtrl->GetEnabled());
+ myOutsideDeviceActor->SetVisibility(GetVisibility() && IsSegmentationEnabled());
}
-
- Superclass::SetWidgetCtrl(theWidgetCtrl);
}
vtkDataArray *theScalarArray)
{
VISU_GaussPointsPL* aPipeLine = myDeviceActor->GetPipeLine();
- if(myWidgetCtrl && myWidgetCtrl->GetEnabled()){
+ if(IsSegmentationEnabled()){
if(myInsideDeviceActor->GetPipeLine()->GetNodeVTKID(theObjID) < 0)
aPipeLine = myOutsideDeviceActor->GetPipeLine();
else
::GetMagnification(vtkIdType theObjID)
{
VISU_GaussPointsPL* aPipeLine = myDeviceActor->GetPipeLine();
- if(myWidgetCtrl && myWidgetCtrl->GetEnabled()){
+ if(IsSegmentationEnabled()){
if(myInsideDeviceActor->GetPipeLine()->GetNodeVTKID(theObjID) < 0)
aPipeLine = myOutsideDeviceActor->GetPipeLine();
else
VISU_GaussPtsAct1
::GetClamp(vtkIdType theObjID)
{
- if(myWidgetCtrl && myWidgetCtrl->GetEnabled()){
+ if(IsSegmentationEnabled()){
if(myInsideDeviceActor->GetPipeLine()->GetNodeVTKID(theObjID) < 0)
return ::GetClamp(myOutsideDeviceActor->GetPipeLine());
else
Superclass::SetVisibility(theMode);
- bool anIsSegementation = !myWidgetCtrl || myWidgetCtrl->GetEnabled();
- myDeviceActor->SetVisibility(GetVisibility() && !anIsSegementation);
- myInsideDeviceActor->SetVisibility(GetVisibility() && anIsSegementation);
- myOutsideDeviceActor->SetVisibility(GetVisibility() && anIsSegementation);
+ bool aVisisbility = GetVisibility();
+ bool anIsSegementation = IsSegmentationEnabled();
+ myDeviceActor->SetVisibility(aVisisbility && !anIsSegementation);
+ myInsideDeviceActor->SetVisibility(aVisisbility && anIsSegementation);
+ myOutsideDeviceActor->SetVisibility(aVisisbility && anIsSegementation);
mySetVisibilitySignal(GetVisibility());
}
if(!myOutsideCursorSettings || myOutsideCursorSettings->GetInitial())
return;
+ if(!IsSegmentationEnabled())
+ return;
+
VISU_GaussPointsPL* aPipeline = myOutsideDeviceActor->GetPipeLine();
SALOME_ExtractGeometry* anExtractGeometry = aPipeline->GetExtractGeometryFilter();
case vtkCommand::EnableEvent:
case vtkCommand::DisableEvent:
case vtkCommand::EndInteractionEvent: {
- bool anIsSegementation = !myWidgetCtrl || myWidgetCtrl->GetEnabled();
- myDeviceActor->SetVisibility(GetVisibility() && !anIsSegementation);
- myInsideDeviceActor->SetVisibility(GetVisibility() && anIsSegementation);
- myOutsideDeviceActor->SetVisibility(GetVisibility() && anIsSegementation);
+ bool aVisisbility = GetVisibility();
+ bool anIsSegementation = IsSegmentationEnabled();
+ myDeviceActor->SetVisibility(aVisisbility && !anIsSegementation);
+ myInsideDeviceActor->SetVisibility(aVisisbility && anIsSegementation);
+ myOutsideDeviceActor->SetVisibility(anIsSegementation);
break;
}
default:
myDeviceActor->SetVisibility(false);
}
+ Superclass::SetWidgetCtrl(theWidgetCtrl);
+
if(theWidgetCtrl){
myDeviceActor->GetPipeLine()->SetImplicitFunction(theWidgetCtrl->ImplicitFunction());
- myDeviceActor->SetVisibility(Superclass::GetVisibility());
+ myDeviceActor->SetVisibility(GetVisibility() && IsSegmentationEnabled());
}
-
- Superclass::SetWidgetCtrl(theWidgetCtrl);
}
Superclass::SetVisibility(theMode);
- myDeviceActor->SetVisibility(GetVisibility());
-}
-
-int
-VISU_GaussPtsAct2
-::GetVisibility()
-{
- return Superclass::GetVisibility();
+ myDeviceActor->SetVisibility(GetVisibility() && IsSegmentationEnabled());
}
void
switch(theEvent){
case vtkCommand::EnableEvent:
case vtkCommand::DisableEvent:
- myDeviceActor->SetVisibility(GetVisibility());
+ myDeviceActor->SetVisibility(GetVisibility() && IsSegmentationEnabled());
if(theEvent == vtkCommand::EnableEvent)
Update();
break;