mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-15 21:01:26 +05:00
Implement UdateActor method.
This commit is contained in:
parent
009944a75a
commit
bc5e6135d1
@ -684,6 +684,25 @@ void SMESH_Swig::EraseActor( const char* Mesh_Entry, const bool allViewers )
|
|||||||
ProcessVoidEvent(new TEvent(Mesh_Entry, allViewers));
|
ProcessVoidEvent(new TEvent(Mesh_Entry, allViewers));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SMESH_Swig::UpdateActor( const char* Mesh_Entry ) {
|
||||||
|
class TEvent: public SALOME_Event
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
const char* _entry;
|
||||||
|
public:
|
||||||
|
TEvent( const char* Mesh_Entry ) {
|
||||||
|
_entry = Mesh_Entry;
|
||||||
|
}
|
||||||
|
virtual void Execute() {
|
||||||
|
Handle(SALOME_InteractiveObject) anIO = new SALOME_InteractiveObject
|
||||||
|
( _entry, "SMESH", "" );
|
||||||
|
SMESH::Update( anIO, true );
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
ProcessVoidEvent( new TEvent(Mesh_Entry) );
|
||||||
|
}
|
||||||
|
|
||||||
void SMESH_Swig::SetName(const char* theEntry,
|
void SMESH_Swig::SetName(const char* theEntry,
|
||||||
const char* theName)
|
const char* theName)
|
||||||
{
|
{
|
||||||
|
@ -89,6 +89,8 @@ public:
|
|||||||
|
|
||||||
void EraseActor( const char*, const bool allViewers = false );
|
void EraseActor( const char*, const bool allViewers = false );
|
||||||
|
|
||||||
|
void UpdateActor( const char* Mesh_Entry );
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Set mesh icon according to compute status
|
* \brief Set mesh icon according to compute status
|
||||||
* \param Mesh_Entry - entry of a mesh
|
* \param Mesh_Entry - entry of a mesh
|
||||||
|
@ -101,6 +101,7 @@ class SMESH_Swig
|
|||||||
|
|
||||||
void CreateAndDisplayActor( const char* Mesh_Entry );
|
void CreateAndDisplayActor( const char* Mesh_Entry );
|
||||||
void EraseActor( const char* Mesh_Entry, const bool allViewers = false );
|
void EraseActor( const char* Mesh_Entry, const bool allViewers = false );
|
||||||
|
void UpdateActor( const char* Mesh_Entry );
|
||||||
|
|
||||||
void setSelectionMode( SelectionMode selectionMode);
|
void setSelectionMode( SelectionMode selectionMode);
|
||||||
std::vector<int> getSelected( const char* Mesh_Entry );
|
std::vector<int> getSelected( const char* Mesh_Entry );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user