- /* Managed by IAPP */
- Standard_EXPORT static bool OnGUIEvent ( int theCommandID, QAD_Desktop* parent) ;
- Standard_EXPORT static bool OnMousePress ( QMouseEvent* pe, QAD_Desktop* parent,
- QAD_StudyFrame* studyFrame );
- Standard_EXPORT static bool OnMouseMove ( QMouseEvent* pe, QAD_Desktop* parent,
- QAD_StudyFrame* studyFrame );
- Standard_EXPORT static bool OnKeyPress ( QKeyEvent* pe, QAD_Desktop* parent,
- QAD_StudyFrame* studyFrame );
- Standard_EXPORT static void activeStudyChanged ( QAD_Desktop* parent );
- Standard_EXPORT static bool SetSettings ( QAD_Desktop* parent );
- Standard_EXPORT static void DefinePopup( QString & theContext,
- QString & theParent,
- QString & theObject );
- Standard_EXPORT static bool CustomPopup ( QAD_Desktop* parent,
- QPopupMenu* popup,
- const QString& theContext,
- const QString& theParent,
- const QString& theObject );
- Standard_EXPORT static void BuildPresentation(const Handle(SALOME_InteractiveObject)&);
-
- void OnEditDelete();
-
- /* Mesh Management */
- SMESH::SMESH_Mesh_ptr InitMesh( GEOM::GEOM_Shape_ptr aShape, QString NameMesh );
- SMESH::SMESH_subMesh_ptr AddSubMesh( SMESH::SMESH_Mesh_ptr aMesh, GEOM::GEOM_Shape_ptr aShape, QString NameMesh );
-
- /* Hypothesis Management */
- SMESH::SMESH_Hypothesis_ptr CreateHypothesis( QString TypeHypothesis, QString NameHypothesis );
- void AddHypothesisOnMesh( SMESH::SMESH_Mesh_ptr aMesh, SMESH::SMESH_Hypothesis_ptr aHyp ) ;
- void AddHypothesisOnSubMesh( SMESH::SMESH_subMesh_ptr aSubMesh, SMESH::SMESH_Hypothesis_ptr aHyp ) ;
-
- void RemoveHypothesisOrAlgorithmOnMesh( const Handle(SALOME_InteractiveObject)& IObject ) ;
- void RemoveHypothesisOrAlgorithmOnMesh( SALOMEDS::SObject_ptr MorSM, SMESH::SMESH_Hypothesis_ptr anHyp ) ;
-
- void CreateLocalLength( QString TypeHypothesis, QString NameHypothesis, double Length );
- void CreateNbSegments( QString TypeHypothesis, QString NameHypothesis, double nbSegments );
- void CreateMaxElementArea( QString TypeHypothesis, QString NameHypothesis, double MaxArea );
- void CreateMaxElementVolume( QString TypeHypothesis, QString NameHypothesis, double MaxVolume );
-
- /* Algorithms Management */
- void AddAlgorithmOnMesh( SMESH::SMESH_Mesh_ptr aMesh, SMESH::SMESH_Hypothesis_ptr aHyp );
- void AddAlgorithmOnSubMesh( SMESH::SMESH_subMesh_ptr aSubMesh, SMESH::SMESH_Hypothesis_ptr aHyp );
- void CreateAlgorithm( QString TypeAlgo, QString NameAlgo );
-
- /* NODES */
- void ViewNodes();
- vtkActor* SimulationMoveNode(SMESH_Actor* Mactor, int idnode);
- void MoveNode( SMESH::SMESH_Mesh_ptr aMesh, int idnode, float x, float y, float z);
- void AddNode(SMESH_Actor*, int idnode, float x, float y, float z) ;
- void AddNodes( SMESH_Actor* Mactor, int number,
- const SMESH::double_array& coords, const SMESH::long_array& indexes);
-
- void DisplaySimulationNode( SMESH::SMESH_Mesh_ptr aMesh, float x, float y, float z);
- void DisplaySimulationMoveNode( vtkActor* ac, int idnode, float x, float y, float z);
-
- void RemoveNode(SMESH_Actor*, int idnode) ;
- void RemoveNodes(SMESH::SMESH_Mesh_ptr aMesh, const TColStd_MapOfInteger& MapIndex) ;
- void RemoveNodes(SMESH_Actor* Mactor, int number,
- const SMESH::double_array& coords, const SMESH::long_array& indexes);
-
- /* EDGES */
- void AddEdge(SMESH_Actor*, int idedge, int idnode1, int idnode2) ;
- void AddEdges( SMESH_Actor* Mactor, int number,
- const SMESH::double_array& coords, const SMESH::long_array& indexes);
- void DisplayEdges(SMESH_Actor* ac, bool visibility = true);
- void DisplayEdgesConnectivityLegendBox(vtkActor *ac);
- void DisplaySimulationEdge( SMESH::SMESH_Mesh_ptr aMesh, const TColStd_MapOfInteger& MapIndex );