theWidget->AddObserver(vtkCommand::DisableEvent,
myEventCallbackCommand.GetPointer(),
myPriority);
+
}
myWidget = theWidget;
Modified();
}
-
+//-------------------------------------------------------------------------
void
VISU_GaussPtsAct
::ProcessEvents(vtkObject* vtkNotUsed(theObject),
void* vtkNotUsed(theCallData))
{
if(vtkObject* anObject = reinterpret_cast<vtkObject*>(theClientData))
- if(VISU_GaussPtsAct* self = dynamic_cast<VISU_GaussPtsAct*>(anObject))
+ if(VISU_GaussPtsAct* self = dynamic_cast<VISU_GaussPtsAct*>(anObject))
self->OnInteractorEvent(theEvent);
}
+//-------------------------------------------------------------------------
void
VISU_GaussPtsAct
::OnInteractorEvent(unsigned long theEvent)
}
}
+//----------------------------------------------------------------------------
+bool VISU_GaussPtsAct::IsInfinitive()
+{
+ vtkMapper *pMapper =GetMapper();
+ vtkDataSet* pDS=pMapper->GetInput();
+ pDS->Update();
+ int aNb=pDS->GetNumberOfCells();
+ if (aNb<2) {
+ myIsInfinite=true;
+ }
+ else{
+ myIsInfinite=false;
+ }
+ return myIsInfinite;
+}
//----------------------------------------------------------------------------
bool VISU_GaussPtsAct::PreHighlight(SVTK_Selector* theSelector,
void
highlight(bool theHighlight,
Selection_Mode theSelectionMode);
+
+ virtual
+ bool
+ IsInfinitive();
protected:
//----------------------------------------------------------------------------