Version: 8.3.0
SMESHGUI_VTKUtils.cxx File Reference
#include "SMESHGUI_VTKUtils.h"
#include "SMESHGUI.h"
#include "SMESHGUI_Filter.h"
#include "SMESHGUI_Utils.h"
#include "SMDS_Mesh.hxx"
#include "SMESH_Actor.h"
#include "SMESH_ActorUtils.h"
#include "SMESH_CellLabelActor.h"
#include "SMESH_ControlsDef.hxx"
#include "SMESH_NodeLabelActor.h"
#include "SMESH_ObjectDef.h"
#include <SUIT_Desktop.h>
#include <SUIT_Session.h>
#include <SUIT_MessageBox.h>
#include <SUIT_ViewManager.h>
#include <SUIT_ResourceMgr.h>
#include <SALOME_ListIO.hxx>
#include <SVTK_Selector.h>
#include <SVTK_ViewModel.h>
#include <SVTK_ViewWindow.h>
#include <VTKViewer_Algorithm.h>
#include <LightApp_SelectionMgr.h>
#include <SalomeApp_Application.h>
#include <SalomeApp_Study.h>
#include <utilities.h>
#include <SALOMEconfig.h>
#include <CORBA_CLIENT_HEADER(SMESH_Mesh)>
#include <CORBA_CLIENT_HEADER(SMESH_Group)>
#include <vtkMath.h>
#include <vtkRenderer.h>
#include <vtkActorCollection.h>
#include <vtkUnstructuredGrid.h>
#include <Standard_ErrorHandler.hxx>
Include dependency graph for SMESHGUI_VTKUtils.cxx:

Data Structures

struct  SMESH::MemoryReserve
 Allocate some memory at construction and release it at destruction. More...
 

Namespaces

namespace  SMESH
 

Typedefs

typedef std::map
< TKeyOfVisualObj,
TVisualObjPtr
SMESH::TVisualObjCont
 

Functions

void SMESH::RemoveVisualObjectWithActors (const char *theEntry, bool fromAllViews)
 Remove VisualObj and its actor from all views. More...
 
void SMESH::RemoveAllObjectsWithActors ()
 Remove all VisualObjs and their actors from all views. More...
 
void SMESH::RemoveVisuData (int studyID)
 Remove all VisualObjs of a study. More...
 
void SMESH::OnVisuException ()
 Notify the user on problems during visualization. More...
 
TVisualObjPtr SMESH::GetVisualObj (int theStudyId, const char *theEntry, bool nulData)
 Returns an updated visual object. More...
 
SVTK_ViewWindow * SMESH::GetViewWindow (const SalomeApp_Module *theModule, bool createIfNotFound)
 Return active view window, if it instantiates SVTK_ViewWindow class, overwise find or create corresponding view window, make it active and return it. More...
 
SVTK_ViewWindow * SMESH::FindVtkViewWindow (SUIT_ViewManager *theMgr, SUIT_ViewWindow *theWindow)
 
SVTK_ViewWindow * SMESH::GetVtkViewWindow (SUIT_ViewWindow *theWindow)
 
SVTK_ViewWindow * SMESH::GetCurrentVtkView ()
 
void SMESH::RepaintCurrentView ()
 
void SMESH::RepaintViewWindow (SVTK_ViewWindow *theWindow)
 
void SMESH::RenderViewWindow (SVTK_ViewWindow *theWindow)
 
void SMESH::FitAll ()
 
SMESH_ActorSMESH::FindActorByEntry (SUIT_ViewWindow *theWindow, const char *theEntry)
 
SMESH_ActorSMESH::FindActorByEntry (const char *theEntry)
 
SMESH_ActorSMESH::FindActorByObject (CORBA::Object_ptr theObject)
 
SMESH_ActorSMESH::CreateActor (_PTR(Study) theStudy, const char *theEntry, int theIsClear)
 
void SMESH::DisplayActor (SUIT_ViewWindow *theWnd, SMESH_Actor *theActor)
 
void SMESH::RemoveActor (SUIT_ViewWindow *theWnd, SMESH_Actor *theActor)
 
bool SMESH::noSmeshActors (SUIT_ViewWindow *theWnd)
 Return true if there are no SMESH actors in a view. More...
 
bool SMESH::UpdateView (SUIT_ViewWindow *theWnd, EDisplaing theAction, const char *theEntry)
 
bool SMESH::UpdateView (EDisplaing theAction, const char *theEntry)
 
void SMESH::UpdateView ()
 
bool SMESH::Update (const Handle(SALOME_InteractiveObject)&theIO, bool theDisplay)
 
bool SMESH::UpdateNulData (const Handle(SALOME_InteractiveObject)&theIO, bool theDisplay)
 
void SMESH::UpdateSelectionProp (SMESHGUI *theModule)
 
void SMESH::UpdateFontProp (SMESHGUI *theModule)
 
SVTK_Selector * SMESH::GetSelector (SUIT_ViewWindow *theWindow)
 
void SMESH::SetFilter (const Handle(VTKViewer_Filter)&theFilter, SVTK_Selector *theSelector)
 
 SMESH::Handle (VTKViewer_Filter) GetFilter(int theId
 
bool SMESH::IsFilterPresent (int theId, SVTK_Selector *theSelector) = GetSelector() )
 
void SMESH::RemoveFilter (int theId, SVTK_Selector *theSelector)
 
void SMESH::RemoveFilters (SVTK_Selector *theSelector)
 
bool SMESH::IsValid (SALOME_Actor *theActor, int theCellId, SVTK_Selector *theSelector)
 
void SMESH::SetPointRepresentation (bool theIsVisible)
 
void SMESH::SetPickable (SMESH_Actor *theActor)
 
int SMESH::GetNameOfSelectedNodes (SVTK_Selector *theSelector, const Handle(SALOME_InteractiveObject)&theIO, QString &theName)
 
int SMESH::GetNameOfSelectedElements (SVTK_Selector *theSelector, const Handle(SALOME_InteractiveObject)&theIO, QString &theName)
 
int SMESH::GetEdgeNodes (SVTK_Selector *theSelector, const TVisualObjPtr &theVisualObject, int &theId1, int &theId2)
 
int SMESH::GetNameOfSelectedNodes (LightApp_SelectionMgr *theMgr, const Handle(SALOME_InteractiveObject)&theIO, QString &theName)
 
int SMESH::GetNameOfSelectedNodes (LightApp_SelectionMgr *theMgr, QString &theName)
 
int SMESH::GetNameOfSelectedElements (LightApp_SelectionMgr *theMgr, const Handle(SALOME_InteractiveObject)&theIO, QString &theName)
 
int SMESH::GetNameOfSelectedElements (LightApp_SelectionMgr *theMgr, QString &theName)
 
int SMESH::GetSelected (LightApp_SelectionMgr *theMgr, TColStd_IndexedMapOfInteger &theMap, const bool theIsElement)
 
int SMESH::GetEdgeNodes (LightApp_SelectionMgr *theMgr, int &theId1, int &theId2)
 
void SMESH::SetControlsPrecision (const long theVal)
 
void SMESH::ComputeBoundsParam (double theBounds[6], double theDirection[3], double theMinPnt[3], double &theMaxBoundPrj, double &theMinBoundPrj)
 
void SMESH::DistanceToPosition (double theBounds[6], double theDirection[3], double theDist, double thePos[3])
 
void SMESH::PositionToDistance (double theBounds[6], double theDirection[3], double thePos[3], double &theDist)
 
bool SMESH::ComputeClippingPlaneParameters (std::list< vtkActor * > theActorList, double theNormal[3], double theDist, double theBounds[6], double theOrigin[3])
 
bool SMESH::ComputeBounds (std::list< vtkActor * > theActorList, double theBounds[6])
 
void SMESH::ClearPlot2Viewers (SUIT_ViewWindow *theWindow)
 Find all SMESH_Actor's in the View Window. More...
 

Variables

static TVisualObjCont SMESH::VISUAL_OBJ_CONT
 
static MemoryReserveSMESH::theVISU_MemoryReserve = new MemoryReserve
 
SVTK_Selector * SMESH::theSelector