Back to index

salome-geom  6.5.0
Public Types | Public Member Functions
BooleanGUI Class Reference

#include <BooleanGUI.h>

List of all members.

Public Types

enum  BooleanOperation { COMMON = 1, CUT = 2, FUSE = 3, SECTION = 4 }

Public Member Functions

 BooleanGUI (GeometryGUI *)
 ~BooleanGUI ()
bool OnGUIEvent (int, SUIT_Desktop *)

Detailed Description

Definition at line 36 of file BooleanGUI.h.


Member Enumeration Documentation

Enumerator:
COMMON 
CUT 
FUSE 
SECTION 

Definition at line 39 of file BooleanGUI.h.

{ COMMON = 1, CUT = 2, FUSE = 3, SECTION = 4 };

Constructor & Destructor Documentation

BooleanGUI::BooleanGUI ( GeometryGUI *  parent)

Definition at line 38 of file BooleanGUI.cxx.

  : GEOMGUI( parent )
{
}

Definition at line 47 of file BooleanGUI.cxx.

{
}

Member Function Documentation

bool BooleanGUI::OnGUIEvent ( int  theCommandID,
SUIT_Desktop *  parent 
)

Definition at line 56 of file BooleanGUI.cxx.

{
  getGeometryGUI()->EmitSignalDeactivateDialog();

  int anOperation = 0;  
  switch ( theCommandID ) {
  case GEOMOp::OpFuse:
    anOperation = FUSE;    break;
  case GEOMOp::OpCommon:
    anOperation = COMMON;  break;
  case GEOMOp::OpCut:
    anOperation = CUT;     break;
  case GEOMOp::OpSection:
    anOperation = SECTION; break;
  default:
    return false;
  }
  
  QDialog* aDlg = new BooleanGUI_Dialog( anOperation, getGeometryGUI(), parent );
  aDlg->show();

  return true;
}

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