Version: 6.3.1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Slots | Private Member Functions | Private Attributes

RepairGUI_FreeFacesDlg Class Reference

#include <RepairGUI_FreeFacesDlg.h>

Inheritance diagram for RepairGUI_FreeFacesDlg:
Inheritance graph

Public Member Functions

 RepairGUI_FreeFacesDlg (GeometryGUI *, QWidget *=0, bool=false)
 ~RepairGUI_FreeFacesDlg ()

Protected Member Functions

virtual GEOM::GEOM_IOperations_ptr createOperation ()
virtual bool isValid (QString &)
virtual bool execute (ObjectList &)
void display (const ObjectList &, const bool=true)
void display (GEOM::GEOM_Object_ptr, const bool=true)
void erase (const ObjectList &, const bool=true)
void erase (GEOM::GEOM_Object_ptr, const bool=true)
void redisplay (const ObjectList &, const bool=true, const bool=true)
void redisplay (GEOM::GEOM_Object_ptr, const bool=true, const bool=true)
virtual void displayPreview (const bool display, const bool activate=false, const bool update=true, const bool toRemoveFromEngine=true, const double lineWidth=-1, const int displayMode=-1, const int color=-1)
virtual void displayPreview (GEOM::GEOM_Object_ptr obj, const bool append=false, const bool activate=false, const bool update=true, const double lineWidth=-1, const int displayMode=-1, const int color=-1)
void displayPreview (const SALOME_Prs *prs, const bool append=false, const bool=true)
void erasePreview (const bool=true)
void localSelection (const ObjectList &, const int)
void localSelection (GEOM::GEOM_Object_ptr, const int)
void activate (const int)
void globalSelection (const int=GEOM_ALLOBJECTS, const bool=false)
void globalSelection (const TColStd_MapOfInteger &, const bool=false)
void globalSelection (const TColStd_MapOfInteger &, const QList< int > &, const bool=false)
void updateViewer ()
void prepareSelection (const ObjectList &, const int)
void prepareSelection (GEOM::GEOM_Object_ptr, const int)
QString addInStudy (GEOM::GEOM_Object_ptr, const char *theName)
bool openCommand ()
bool abortCommand ()
bool commitCommand (const char *=0)
bool hasCommand () const
void updateObjBrowser () const
int getStudyId () const
SalomeApp_Study * getStudy () const
bool checkViewWindow ()
bool onAccept (const bool publish=true, const bool useTransaction=true)
void showError ()
void showError (const QString &msg)
GEOM::GEOM_IOperations_ptr getOperation ()
void setPrefix (const QString &prefix)
QString getPrefix (GEOM::GEOM_Object_ptr=GEOM::GEOM_Object::_nil()) const
bool selectObjects (ObjectList &objects)
virtual void restoreSubShapes (SALOMEDS::Study_ptr theStudy, SALOMEDS::SObject_ptr theSObject)
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr theObj)
virtual QString getNewObjectName () const
virtual bool extractPrefix () const
virtual void addSubshapesToStudy ()
GEOM::GEOM_Object_ptr findObjectInFather (GEOM::GEOM_Object_ptr theFather, const QString &theName)
GEOM::GEOM_Object_ptr findObjectInFather (GEOM::GEOM_Object_ptr theFather, int theIndex)
GEOM::GeomObjPtr getSelected (TopAbs_ShapeEnum type)
GEOM::GeomObjPtr getSelected (const QList< TopAbs_ShapeEnum > &types)
QList< GEOM::GeomObjPtrgetSelected (TopAbs_ShapeEnum type, int count, bool strict=true)
QList< GEOM::GeomObjPtrgetSelected (const QList< TopAbs_ShapeEnum > &types, int count, bool strict=true)
void SetIsPreview (const bool thePreview)
bool IsPreview ()
SUIT_Desktop * getDesktop () const
virtual void setIsApplyAndClose (const bool theFlag)
virtual bool isApplyAndClose () const
virtual void setIsOptimizedBrowsing (const bool theFlag)
virtual bool isOptimizedBrowsing () const

Static Protected Member Functions

static GEOM::GEOM_Gen_ptr getGeomEngine ()

Private Slots

void onClose ()
void onHelp ()
void onDeactivate ()
void onActivate ()
void onSelectionDone ()
void onSetEditCurrentArgument ()

Private Member Functions

void Init ()
void enterEvent (QEvent *)
void closeEvent (QCloseEvent *)
void keyPressEvent (QKeyEvent *)
void activateSelection ()
GEOM_DisplayergetDisplayer ()

Private Attributes

GEOM_DisplayermyDisplayer
GEOM::GEOM_Object_var myObj
QPushButton * mySelBtn
QLineEdit * myEdit
GeometryGUImyGeomGUI
QString myHelpFileName

Constructor & Destructor Documentation

RepairGUI_FreeFacesDlg::RepairGUI_FreeFacesDlg ( GeometryGUI GUI,
QWidget parent = 0,
bool  modal = false 
)
RepairGUI_FreeFacesDlg::~RepairGUI_FreeFacesDlg ( )

Member Function Documentation

GEOM::GEOM_IOperations_ptr RepairGUI_FreeFacesDlg::createOperation ( ) [protected, virtual]
bool RepairGUI_FreeFacesDlg::isValid ( QString &  ) [protected, virtual]

Reimplemented from GEOMBase_Helper.

References myObj.

bool RepairGUI_FreeFacesDlg::execute ( ObjectList objects) [protected, virtual]
void RepairGUI_FreeFacesDlg::Init ( ) [private]
void RepairGUI_FreeFacesDlg::enterEvent ( QEvent *  ) [private]

References onActivate().

void RepairGUI_FreeFacesDlg::closeEvent ( QCloseEvent *  ) [private]

References onClose().

void RepairGUI_FreeFacesDlg::keyPressEvent ( QKeyEvent *  e) [private]

References onHelp().

void RepairGUI_FreeFacesDlg::activateSelection ( ) [private]
GEOM_Displayer * RepairGUI_FreeFacesDlg::getDisplayer ( ) [private]

Reimplemented from GEOMBase_Helper.

References GEOMBase_Helper.getStudy(), and myDisplayer.

void RepairGUI_FreeFacesDlg::onClose ( ) [private, slot]
void RepairGUI_FreeFacesDlg::onHelp ( ) [private, slot]

References myGeomGUI, and myHelpFileName.

void RepairGUI_FreeFacesDlg::onDeactivate ( ) [private, slot]
void RepairGUI_FreeFacesDlg::onActivate ( ) [private, slot]
void RepairGUI_FreeFacesDlg::onSelectionDone ( ) [private, slot]
void RepairGUI_FreeFacesDlg::onSetEditCurrentArgument ( ) [private, slot]

References myEdit, and onSelectionDone().

GEOM::GEOM_Gen_ptr GEOMBase_Helper::getGeomEngine ( ) [static, protected, inherited]
void GEOMBase_Helper::display ( const ObjectList objList,
const bool  updateView = true 
) [protected, inherited]
void GEOMBase_Helper::display ( GEOM::GEOM_Object_ptr  object,
const bool  updateView = true 
) [protected, inherited]
void GEOMBase_Helper::erase ( const ObjectList objList,
const bool  updateView = true 
) [protected, inherited]
void GEOMBase_Helper::erase ( GEOM::GEOM_Object_ptr  object,
const bool  updateView = true 
) [protected, inherited]
void GEOMBase_Helper::redisplay ( const ObjectList objList,
const bool  withChildren = true,
const bool  updateView = true 
) [protected, inherited]
void GEOMBase_Helper::redisplay ( GEOM::GEOM_Object_ptr  object,
const bool  withChildren = true,
const bool  updateView = true 
) [protected, inherited]
void GEOMBase_Helper::displayPreview ( const bool  display,
const bool  activate = false,
const bool  update = true,
const bool  toRemoveFromEngine = true,
const double  lineWidth = -1,
const int  displayMode = -1,
const int  color = -1 
) [protected, virtual, inherited]
void GEOMBase_Helper::displayPreview ( GEOM::GEOM_Object_ptr  obj,
const bool  append = false,
const bool  activate = false,
const bool  update = true,
const double  lineWidth = -1,
const int  displayMode = -1,
const int  color = -1 
) [protected, virtual, inherited]
void GEOMBase_Helper::displayPreview ( const SALOME_Prs *  prs,
const bool  append = false,
const bool  update = true 
) [protected, inherited]
void GEOMBase_Helper::erasePreview ( const bool  update = true) [protected, inherited]
void GEOMBase_Helper::localSelection ( const ObjectList theObjs,
const int  theMode 
) [protected, inherited]
void GEOMBase_Helper::localSelection ( GEOM::GEOM_Object_ptr  obj,
const int  mode 
) [protected, inherited]
void GEOMBase_Helper::activate ( const int  theType) [protected, inherited]
void GEOMBase_Helper::globalSelection ( const int  theMode = GEOM_ALLOBJECTS,
const bool  update = false 
) [protected, inherited]
void GEOMBase_Helper::globalSelection ( const TColStd_MapOfInteger &  theModes,
const bool  update = false 
) [protected, inherited]
void GEOMBase_Helper::globalSelection ( const TColStd_MapOfInteger &  theModes,
const QList< int > &  subShapes,
const bool  update = false 
) [protected, inherited]
void GEOMBase_Helper::updateViewer ( ) [protected, inherited]
void GEOMBase_Helper.prepareSelection ( const ObjectList ,
const int   
) [protected, inherited]
void GEOMBase_Helper.prepareSelection ( GEOM::GEOM_Object_ptr  ,
const int   
) [protected, inherited]
QString GEOMBase_Helper::addInStudy ( GEOM::GEOM_Object_ptr  theObj,
const char *  theName 
) [protected, inherited]
bool GEOMBase_Helper::openCommand ( ) [protected, inherited]
bool GEOMBase_Helper::abortCommand ( ) [protected, inherited]
bool GEOMBase_Helper::commitCommand ( const char *  = 0) [protected, inherited]
bool GEOMBase_Helper::hasCommand ( ) const [protected, inherited]
void GEOMBase_Helper::updateObjBrowser ( ) const [protected, inherited]
int GEOMBase_Helper::getStudyId ( ) const [protected, inherited]
SalomeApp_Study * GEOMBase_Helper::getStudy ( ) const [protected, inherited]
bool GEOMBase_Helper::checkViewWindow ( ) [protected, inherited]
bool GEOMBase_Helper::onAccept ( const bool  publish = true,
const bool  useTransaction = true 
) [protected, inherited]
void GEOMBase_Helper::showError ( ) [protected, inherited]
void GEOMBase_Helper::showError ( const QString &  msg) [protected, inherited]
GEOM::GEOM_IOperations_ptr GEOMBase_Helper::getOperation ( ) [protected, inherited]
void GEOMBase_Helper.setPrefix ( const QString &  prefix) [protected, inherited]
QString GEOMBase_Helper::getPrefix ( GEOM::GEOM_Object_ptr  theObj = GEOM::GEOM_Object::_nil()) const [protected, inherited]
bool GEOMBase_Helper::selectObjects ( ObjectList objects) [protected, inherited]
void GEOMBase_Helper::restoreSubShapes ( SALOMEDS::Study_ptr  theStudy,
SALOMEDS::SObject_ptr  theSObject 
) [protected, virtual, inherited]
GEOM::GEOM_Object_ptr GEOMBase_Helper::getFather ( GEOM::GEOM_Object_ptr  theObj) [protected, virtual, inherited]
QString GEOMBase_Helper::getNewObjectName ( ) const [protected, virtual, inherited]
bool GEOMBase_Helper::extractPrefix ( ) const [protected, virtual, inherited]
void GEOMBase_Helper::addSubshapesToStudy ( ) [protected, virtual, inherited]
GEOM::GEOM_Object_ptr GEOMBase_Helper::findObjectInFather ( GEOM::GEOM_Object_ptr  theFather,
const QString &  theName 
) [protected, inherited]
GEOM::GEOM_Object_ptr GEOMBase_Helper::findObjectInFather ( GEOM::GEOM_Object_ptr  theFather,
int  theIndex 
) [protected, inherited]
GEOM::GeomObjPtr GEOMBase_Helper::getSelected ( TopAbs_ShapeEnum  type) [protected, inherited]
GEOM::GeomObjPtr GEOMBase_Helper::getSelected ( const QList< TopAbs_ShapeEnum > &  types) [protected, inherited]
QList< GEOM::GeomObjPtr > GEOMBase_Helper::getSelected ( TopAbs_ShapeEnum  type,
int  count,
bool  strict = true 
) [protected, inherited]
QList< GEOM::GeomObjPtr > GEOMBase_Helper::getSelected ( const QList< TopAbs_ShapeEnum > &  types,
int  count,
bool  strict = true 
) [protected, inherited]
void GEOMBase_Helper.SetIsPreview ( const bool  thePreview) [protected, inherited]
bool GEOMBase_Helper.IsPreview ( ) [protected, inherited]
SUIT_Desktop * GEOMBase_Helper::getDesktop ( ) const [protected, inherited]
void GEOMBase_Helper::setIsApplyAndClose ( const bool  theFlag) [protected, virtual, inherited]
bool GEOMBase_Helper::isApplyAndClose ( ) const [protected, virtual, inherited]
void GEOMBase_Helper::setIsOptimizedBrowsing ( const bool  theFlag) [protected, virtual, inherited]
bool GEOMBase_Helper::isOptimizedBrowsing ( ) const [protected, virtual, inherited]

Field Documentation

Reimplemented from GEOMBase_Helper.

GEOM::GEOM_Object_var RepairGUI_FreeFacesDlg.myObj [private]
QPushButton* RepairGUI_FreeFacesDlg.mySelBtn [private]
QLineEdit* RepairGUI_FreeFacesDlg.myEdit [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS