27#ifndef SMESHGUI_VTKUTILS_H
28#define SMESHGUI_VTKUTILS_H
37#include <SALOMEDSClient_definitions.hxx>
40#include <SALOME_InteractiveObject.hxx>
41#include <VTKViewer_Filter.h>
44#include <TColStd_IndexedMapOfInteger.hxx>
46class SALOMEDSClient_Study;
49class SUIT_ViewManager;
54class LightApp_SelectionMgr;
122 void UpdateView(
bool withChildrenOfSelected =
false );
128 bool Update(
const Handle(SALOME_InteractiveObject)& theIO,
bool theDisplay);
165 const Handle(SALOME_InteractiveObject)&,
169 const Handle(SALOME_InteractiveObject)&,
177 const Handle(SALOME_InteractiveObject)&,
183 const Handle(SALOME_InteractiveObject)&,
188 int GetSelected( LightApp_SelectionMgr*, TColStd_IndexedMapOfInteger&,
192 int GetEdgeNodes( LightApp_SelectionMgr*, ::smIdType&, ::smIdType& );
197#ifndef DISABLE_PLOT2DVIEWER
208 double theOrigin[3] );
211 double theBounds[6]);
214 double theDirection[3],
boost::shared_ptr< SMESH_VisualObj > TVisualObjPtr
Definition: SMESH_Object.h:88
#define SMESHGUI_EXPORT
Definition: SMESH_SMESHGUI.hxx:36
Definition: SMESHGUI.h:84
Definition: SMESH_Actor.h:56
Definition: SMESH_ControlsClassifier.cxx:39
void RenderViewWindow(SVTK_ViewWindow *theWindow)
Definition: SMESHGUI_VTKUtils.cxx:563
SUIT_ViewWindow * GetActiveWindow()
Definition: SMESHGUI_Utils.cxx:104
bool UpdateView(SUIT_ViewWindow *theWnd, EDisplaing theAction, const char *theEntry)
Definition: SMESHGUI_VTKUtils.cxx:745
Handle(VTKViewer_Filter) GetFilter(int theId
bool ComputeClippingPlaneParameters(std::list< vtkActor * > theActorList, double theNormal[3], double theDist, double theBounds[6], double theOrigin[3])
Definition: SMESHGUI_VTKUtils.cxx:1473
void ClearPlot2Viewers(SUIT_ViewWindow *theWindow)
Find all SMESH_Actor's in the View Window.
Definition: SMESHGUI_VTKUtils.cxx:1523
SVTK_Selector * GetSelector(SUIT_ViewWindow *theWindow)
Definition: SMESHGUI_VTKUtils.cxx:1107
SVTK_ViewWindow * GetCurrentVtkView()
Definition: SMESHGUI_VTKUtils.cxx:529
void PositionToDistance(double theBounds[6], double theDirection[3], double thePos[3], double &theDist)
Definition: SMESHGUI_VTKUtils.cxx:1462
void OnVisuException()
Notify the user on problems during visualization.
Definition: SMESHGUI_VTKUtils.cxx:321
void SetControlsPrecision(const long theVal)
Definition: SMESHGUI_VTKUtils.cxx:1382
void SetFilter(const Handle(VTKViewer_Filter)&theFilter, SVTK_Selector *theSelector)
Definition: SMESHGUI_VTKUtils.cxx:1115
SMESH_Actor * FindActorByObject(CORBA::Object_ptr theObject)
Definition: SMESHGUI_VTKUtils.cxx:619
void RepaintCurrentView()
Definition: SMESHGUI_VTKUtils.cxx:534
void SetPickable(SMESH_Actor *theActor)
Definition: SMESHGUI_VTKUtils.cxx:1170
void RemoveActor(SUIT_ViewWindow *theWnd, SMESH_Actor *theActor)
Definition: SMESHGUI_VTKUtils.cxx:707
EDisplaing
Definition: SMESHGUI_VTKUtils.h:114
@ eDisplayAll
Definition: SMESHGUI_VTKUtils.h:114
@ eEraseAll
Definition: SMESHGUI_VTKUtils.h:114
@ eDisplayOnly
Definition: SMESHGUI_VTKUtils.h:114
@ eDisplay
Definition: SMESHGUI_VTKUtils.h:114
@ eErase
Definition: SMESHGUI_VTKUtils.h:114
bool NoSmeshActors(SUIT_ViewWindow *theWnd)
Return true if there are no SMESH actors in a view.
Definition: SMESHGUI_VTKUtils.cxx:730
SVTK_ViewWindow * FindVtkViewWindow(SUIT_ViewManager *theMgr, SUIT_ViewWindow *theWindow)
Definition: SMESHGUI_VTKUtils.cxx:500
bool ComputeBounds(std::list< vtkActor * > theActorList, double theBounds[6])
Definition: SMESHGUI_VTKUtils.cxx:1490
void FitAll()
Definition: SMESHGUI_VTKUtils.cxx:576
void RemoveFilter(int theId, SVTK_Selector *theSelector)
Definition: SMESHGUI_VTKUtils.cxx:1132
SVTK_ViewWindow * GetViewWindow(const SalomeApp_Module *theModule, bool createIfNotFound)
Return active view window, if it instantiates SVTK_ViewWindow class, otherwise find or create corresp...
Definition: SMESHGUI_VTKUtils.cxx:471
void RemoveFilters(SVTK_Selector *theSelector)
Definition: SMESHGUI_VTKUtils.cxx:1137
void UpdateFontProp(SMESHGUI *theModule)
Definition: SMESHGUI_VTKUtils.cxx:1030
SVTK_ViewWindow * GetVtkViewWindow(SUIT_ViewWindow *theWindow)
Definition: SMESHGUI_VTKUtils.cxx:513
TVisualObjPtr GetVisualObj(const char *theEntry, bool nulData)
Returns an updated visual object.
Definition: SMESHGUI_VTKUtils.cxx:351
bool IsValid(SALOME_Actor *theActor, int theCellId, SVTK_Selector *theSelector)
Definition: SMESHGUI_VTKUtils.cxx:1143
void RemoveVisuData()
Remove all VisualObjs of a study.
Definition: SMESHGUI_VTKUtils.cxx:199
void UpdateActorsAfterUpdateStudy(SUIT_ViewWindow *theWindow)
Remove/update actors while module activation.
Definition: SMESHGUI_VTKUtils.cxx:247
int GetNameOfSelectedElements(SVTK_Selector *theSelector, const Handle(SALOME_InteractiveObject)&theIO, QString &theName)
Definition: SMESHGUI_VTKUtils.cxx:1207
int GetEdgeNodes(SVTK_Selector *theSelector, const TVisualObjPtr &theVisualObject, ::smIdType &theId1, ::smIdType &theId2)
Definition: SMESHGUI_VTKUtils.cxx:1228
int GetSelected(LightApp_SelectionMgr *theMgr, TColStd_IndexedMapOfInteger &theMap, const bool)
Definition: SMESHGUI_VTKUtils.cxx:1329
int GetNameOfSelectedNodes(SVTK_Selector *theSelector, const Handle(SALOME_InteractiveObject)&theIO, QString &theName)
Definition: SMESHGUI_VTKUtils.cxx:1193
void RemoveVisualObjectWithActors(const char *theEntry, bool fromAllViews)
Remove VisualObj and its actor from all views.
Definition: SMESHGUI_VTKUtils.cxx:106
void RepaintViewWindow(SVTK_ViewWindow *theWindow)
Definition: SMESHGUI_VTKUtils.cxx:550
bool IsFilterPresent(int theId, SVTK_Selector *theSelector)
Definition: SMESHGUI_VTKUtils.cxx:1127
void UpdateSelectionProp(SMESHGUI *theModule)
Definition: SMESHGUI_VTKUtils.cxx:951
bool UpdateNulData(const Handle(SALOME_InteractiveObject)&theIO, bool theDisplay)
Definition: SMESHGUI_VTKUtils.cxx:940
void DisplayActor(SUIT_ViewWindow *theWnd, SMESH_Actor *theActor)
Definition: SMESHGUI_VTKUtils.cxx:690
SMESH_Actor * FindActorByEntry(SUIT_ViewWindow *theWindow, const char *theEntry)
Definition: SMESHGUI_VTKUtils.cxx:591
bool Update(const Handle(SALOME_InteractiveObject)&theIO, bool theDisplay)
Definition: SMESHGUI_VTKUtils.cxx:929
SMESH_Actor * CreateActor(const char *theEntry, int theIsClear)
Definition: SMESHGUI_VTKUtils.cxx:637
void SetPointRepresentation(bool theIsVisible)
Definition: SMESHGUI_VTKUtils.cxx:1151