#include "SMESHGUI_VTKUtils.h"
#include "SMESHGUI_Utils.h"
+#include "SMESHGUI_Filter.h"
#include <vtkRenderer.h>
#include <vtkActorCollection.h>
#include CORBA_CLIENT_HEADER(SALOMEDS_Attributes)
#include "SMESH_Actor.h"
+#include "SMESH_ObjectDef.h"
using namespace std;
}
+ void RepaintViewFrame(VTKViewer_ViewFrame* theFrame)
+ {
+ theFrame->Repaint();
+ }
+
+
+ void RenderViewFrame(VTKViewer_ViewFrame* theFrame)
+ {
+ theFrame->getRW()->getRenderWindow()->Render();
+ theFrame->Repaint();
+ }
+
+
SMESH_Actor* FindActorByEntry(QAD_StudyFrame *theStudyFrame,
const char* theEntry)
{
theStyle->RemoveFilter(theId);
}
+ void RemoveFilters(VTKViewer_InteractorStyleSALOME* theStyle){
+ for ( int id = SMESHGUI_NodeFilter; theStyle && id < SMESHGUI_LastFilter; id++ )
+ theStyle->RemoveFilter( id );
+ }
+
bool IsValid(SALOME_Actor* theActor, int theCellId,
VTKViewer_InteractorStyleSALOME* theStyle)
{
{
theName = "";
if(theIO->hasEntry()){
- if(SMESH_Actor *anActor = FindActorByEntry(theIO->getEntry())){
+ if(FindActorByEntry(theIO->getEntry())){
TColStd_IndexedMapOfInteger aMapIndex;
theSel->GetIndex(theIO,aMapIndex);
for(int i = 1; i <= aMapIndex.Extent(); i++){
{
theName = "";
if(theIO->hasEntry()){
- if(SMESH_Actor *anActor = FindActorByEntry(theIO->getEntry())){
+ if(FindActorByEntry(theIO->getEntry())){
TColStd_IndexedMapOfInteger aMapIndex;
theSel->GetIndex(theIO,aMapIndex);
typedef std::set<int> TIdContainer;