SMESHGUI_ConvToQuadOp Class Reference

#include <SMESHGUI_ConvToQuadOp.h>

Inheritance diagram for SMESHGUI_ConvToQuadOp:

Inheritance graph

Public Types

enum  MeshType { Comp = 0, Linear, Quadratic }
typedef QValueList< intIdList

Public Member Functions

 SMESHGUI_ConvToQuadOp ()
 SMESH SMESHGUIConstructor.
virtual ~SMESHGUI_ConvToQuadOp ()
 Destructor.
virtual LightApp_Dialogdlg () const
 Gets dialog of this operation.

Static Public Member Functions

static void extractIds (const QStringList &, IdList &, const QChar)

Protected Types

enum  EntityType { Object, MeshNode, MeshElement }

Protected Slots

virtual bool onApply ()
 Edits mesh.
void ConnectRadioButtons (int)
virtual void onActivateObject (int)
 Installs filter corresponding to certain object selection widget.
virtual void onDeactivateObject (int)
 Removes filter corresponding to certain object selection widget.
virtual void onSelectionChanged (int)
virtual void onTextChanged (int, const QStringList &)
virtual void onOk ()
virtual void onCancel ()
void onHelp ()

Protected Member Functions

virtual void startOperation ()
 Creates dialog if necessary and shows it.
virtual void selectionDone ()
 Updates dialog's look and feel.
virtual SUIT_SelectionFiltercreateFilter (const int) const
 Creates selection filter.
MeshType ConsistMesh (const SMESH::SMESH_Mesh_var &) const
void extractIds (const QStringList &, IdList &) const
 Find in QStringList correct node or element ids representation and append integer(id) to IdList.
virtual void commitOperation ()
virtual void abortOperation ()
virtual void initDialog ()
 sets the dialog widgets to state just after operation start
void removeCustomFilters ()
 Remove only filters set by this operation (they are in map myFilters ).
Selection_Mode selectionMode () const
 Return what selection mode is set in VTK viewer.
void setSelectionMode (const Selection_Mode)
 Set selection mode in VTK viewer.
void highlight (const Handle(SALOME_InteractiveObject)&, const bool, const bool=true)
 Hilight object in VTK viewer.
void addOrRemoveIndex (const Handle(SALOME_InteractiveObject)&, const TColStd_MapOfInteger &, const bool)
 Select some nodes or elements in VTK.
SVTK_ViewWindow * viewWindow () const
SVTK_Selector * selector () const
virtual void selected (QStringList &, SMESHGUI_Dialog::TypesList &, QStringList &) const
 Get names, types and ids of selected objects.
virtual int typeById (const QString &, const EntityType) const
 Find type by id.
virtual QChar idChar () const
 Char using to divide <entry> and <id> in string id representation. By default, '#'.
void selectedIds (const int, IdList &) const
 Try to find in certain object selection widget selected node or element ids and return it.
SMESH::SMESH_Mesh_var mesh () const
 Return selected mesh if selection mode isn't ActorSelection and only one object is selected.
SMESH_Actoractor () const
 Return actor according to selected mesh if selection mode isn't ActorSelection.
virtual bool isReadyToStart () const
virtual void setDialogActive (const bool)
 Set according dialog active or inactive.
SMESHGUIgetSMESHGUI () const
bool isStudyLocked (const bool=true) const
 Verifies whether study of operation is locked.
 _PTR (Study) studyDS() const
virtual bool isValid (SUIT_Operation *) const
 Verifies whether given operator is valid for this one.

Protected Attributes

QString myHelpFileName

Private Attributes

SMESHGUI_ConvToQuadDlgmyDlg

Member Typedef Documentation

typedef QValueList<int> SMESHGUI_SelectionOp.IdList [inherited]
 


Member Enumeration Documentation

enum SMESHGUI_ConvToQuadOp::MeshType
 

Enumerator:
Comp 
Linear 
Quadratic 

enum SMESHGUI_SelectionOp::EntityType [protected, inherited]
 

Enumerator:
Object 
MeshNode 
MeshElement 


Constructor & Destructor Documentation

SMESHGUI_ConvToQuadOp::SMESHGUI_ConvToQuadOp  ) 
 

Initialize operation

SMESHGUI_ConvToQuadOp::~SMESHGUI_ConvToQuadOp  )  [virtual]
 


Member Function Documentation

LightApp_Dialog * SMESHGUI_ConvToQuadOp::dlg  )  const [virtual]
 

Return values:
LightApp_Dialog* - pointer to dialog of this operation

void SMESHGUI_ConvToQuadOp::startOperation  )  [protected, virtual]
 

Virtual method redefined from base class called when operation is started creates dialog if necessary and shows it, activates selection

Reimplemented from SMESHGUI_SelectionOp.

void SMESHGUI_ConvToQuadOp::selectionDone  )  [protected, virtual]
 

Virtual method redefined from the base class updates dialog's look and feel

Reimplemented from SMESHGUI_SelectionOp.

SUIT_SelectionFilter * SMESHGUI_ConvToQuadOp::createFilter const   int  )  const [protected, virtual]
 

Parameters:
theId - identifier of current selection widget
Return values:
SUIT_SelectionFilter* - pointer to the created filter or null
Creates selection filter in accordance with identifier of current selection widget

Reimplemented from SMESHGUI_SelectionOp.

SMESHGUI_ConvToQuadOp::MeshType SMESHGUI_ConvToQuadOp::ConsistMesh const SMESH::SMESH_Mesh_var &  mesh  )  const [protected]
 

ConsistMesh Determines, what elements this mesh contains.

bool SMESHGUI_ConvToQuadOp::onApply  )  [protected, virtual, slot]
 

Virtual slot redefined from the base class called when "Apply" button is clicked

Reimplemented from SMESHGUI_Operation.

void SMESHGUI_ConvToQuadOp::ConnectRadioButtons int   )  [protected, slot]
 

void SMESHGUI_SelectionOp::extractIds const QStringList &  ,
IdList ,
const   QChar
[static, inherited]
 

void SMESHGUI_SelectionOp::extractIds const QStringList &  ,
IdList
const [protected, inherited]
 

void SMESHGUI_SelectionOp::commitOperation  )  [protected, virtual, inherited]
 

Reimplemented in SMESHGUI_ShapeByMeshOp.

void SMESHGUI_SelectionOp::abortOperation  )  [protected, virtual, inherited]
 

void SMESHGUI_SelectionOp::initDialog  )  [protected, virtual, inherited]
 

Reimplemented from SMESHGUI_Operation.

void SMESHGUI_SelectionOp::removeCustomFilters  )  [protected, inherited]
 

Selection_Mode SMESHGUI_SelectionOp::selectionMode  )  const [protected, inherited]
 

void SMESHGUI_SelectionOp::setSelectionMode const   Selection_Mode  )  [protected, inherited]
 

void SMESHGUI_SelectionOp::highlight const Handle(SALOME_InteractiveObject)&  ,
const   bool,
const   bool = true
[protected, inherited]
 

void SMESHGUI_SelectionOp::addOrRemoveIndex const Handle(SALOME_InteractiveObject)&  ,
const TColStd_MapOfInteger &  ,
const   bool
[protected, inherited]
 

SVTK_ViewWindow * SMESHGUI_SelectionOp::viewWindow  )  const [protected, inherited]
 

SVTK_Selector * SMESHGUI_SelectionOp::selector  )  const [protected, inherited]
 

virtual void SMESHGUI_SelectionOp.selected QStringList &  ,
SMESHGUI_Dialog::TypesList &  ,
QStringList & 
const [protected, virtual, inherited]
 

int SMESHGUI_SelectionOp::typeById const QString &  ,
const   EntityType
const [protected, virtual, inherited]
 

QChar SMESHGUI_SelectionOp::idChar  )  const [protected, virtual, inherited]
 

void SMESHGUI_SelectionOp::selectedIds const   int,
IdList
const [protected, inherited]
 

SMESH::SMESH_Mesh_var SMESHGUI_SelectionOp::mesh  )  const [protected, inherited]
 

SMESH_Actor * SMESHGUI_SelectionOp::actor  )  const [protected, inherited]
 

void SMESHGUI_SelectionOp::onActivateObject int   )  [protected, virtual, slot, inherited]
 

void SMESHGUI_SelectionOp::onDeactivateObject int   )  [protected, virtual, slot, inherited]
 

void SMESHGUI_SelectionOp::onSelectionChanged int   )  [protected, virtual, slot, inherited]
 

Empty default implementation. In successors it may be used for more advanced selection checking. This slot is connected to signal when the selection changed in some object selection widget

void SMESHGUI_SelectionOp::onTextChanged int  ,
const QStringList & 
[protected, virtual, slot, inherited]
 

Default implementation allowing user to edit selected ids "by hands". In order to run default mechanism, you must set for some object selection widget the "name indication" to "ListOfNames", "read only" state to false and connect the dialog's signal "objectChanged" to this slot Warning: this mechanism can process only integer ids, NOT MESH OR GROUP NAMES!!!

bool SMESHGUI_Operation::isReadyToStart  )  const [protected, virtual, inherited]
 

void SMESHGUI_Operation::setDialogActive const   bool  )  [protected, virtual, inherited]
 

SMESHGUI * SMESHGUI_Operation::getSMESHGUI  )  const [protected, inherited]
 

bool SMESHGUI_Operation::isStudyLocked const   bool = true  )  const [protected, inherited]
 

Parameters:
theMess - specifies whether message box must be shown if study is locked
Returns:
State of study.
Verifies whether study of operation is locked. If second parameter is TRUE and study is locked when corresponding message box appears

SMESHGUI_Operation._PTR Study   )  const [protected, inherited]
 

bool SMESHGUI_Operation::isValid SUIT_Operation *  theOtherOp  )  const [protected, virtual, inherited]
 

Parameters:
theOtherOp - other operation
Returns:
Returns TRUE if the given operator is valid for this one, FALSE otherwise
Virtual method redefined from base class verifies whether given operator is valid for this one (i.e. can be started "above" this operator). In current implementation method retuns false if theOtherOp operation is not intended for deleting objects or mesh elements.

Reimplemented in SMESHGUI_MeshOp.

void SMESHGUI_Operation::onOk  )  [protected, virtual, slot, inherited]
 

void SMESHGUI_Operation::onCancel  )  [protected, virtual, slot, inherited]
 

void SMESHGUI_Operation::onHelp  )  [protected, slot, inherited]
 


Field Documentation

SMESHGUI_ConvToQuadDlg* SMESHGUI_ConvToQuadOp.myDlg [private]
 

QString SMESHGUI_Operation.myHelpFileName [protected, inherited]