Back to index

salome-smesh  6.5.0
Public Slots | Public Member Functions | Private Attributes
GrpComputor Class Reference

Mesh information computer. More...

#include <SMESHGUI_MeshInfo.h>

Inheritance diagram for GrpComputor:
Inheritance graph
[legend]
Collaboration diagram for GrpComputor:
Collaboration graph
[legend]

List of all members.

Public Slots

void compute ()
 Compute function.

Public Member Functions

 GrpComputor (SMESH::SMESH_GroupBase_ptr, QTreeWidgetItem *, QObject *)
 Contructor.
QTreeWidgetItem * getItem ()

Private Attributes

SMESH::SMESH_GroupBase_var myGroup
QTreeWidgetItem * myItem

Detailed Description

Mesh information computer.

The class is created for different computation operation. Currently it is used to compute number of underlying nodes for the groups.

Definition at line 209 of file SMESHGUI_MeshInfo.h.


Constructor & Destructor Documentation

GrpComputor::GrpComputor ( SMESH::SMESH_GroupBase_ptr  grp,
QTreeWidgetItem *  item,
QObject *  parent 
)

Contructor.

Definition at line 1310 of file SMESHGUI_MeshInfo.cxx.

  : QObject( parent ), myItem( item )
{
  myGroup = SMESH::SMESH_GroupBase::_narrow( grp );
}

Member Function Documentation

void GrpComputor::compute ( ) [slot]

Compute function.

Definition at line 1319 of file SMESHGUI_MeshInfo.cxx.

{
  if ( !CORBA::is_nil( myGroup ) && myItem ) {
    QTreeWidgetItem* item = myItem;
    myItem = 0;
    int nbNodes = myGroup->GetNumberOfNodes();
    item->treeWidget()->removeItemWidget( item, 1 );
    item->setText( 1, QString::number( nbNodes ));
  }
}
QTreeWidgetItem* GrpComputor::getItem ( ) [inline]

Definition at line 215 of file SMESHGUI_MeshInfo.h.

{ return myItem; }

Member Data Documentation

SMESH::SMESH_GroupBase_var GrpComputor::myGroup [private]

Definition at line 221 of file SMESHGUI_MeshInfo.h.

QTreeWidgetItem* GrpComputor::myItem [private]

Definition at line 222 of file SMESHGUI_MeshInfo.h.


The documentation for this class was generated from the following files: