BlocksGUI_ExplodeDlg Class Reference

#include <BlocksGUI_ExplodeDlg.h>

Inheritance diagram for BlocksGUI_ExplodeDlg:

Inheritance graph

Public Member Functions

 BlocksGUI_ExplodeDlg (GeometryGUI *, QWidget *parent, bool modal=FALSE)
 ~BlocksGUI_ExplodeDlg ()

Data Fields

QGroupBox * GroupMedium
QGroupBox * GroupButtons
QPushButton * buttonOk
QPushButton * buttonApply
QPushButton * buttonCancel
QPushButton * buttonHelp
QButtonGroup * GroupConstructors
QRadioButton * RadioButton1
QRadioButton * RadioButton2
QRadioButton * RadioButton3
QRadioButton * RadioButton4
QGroupBox * GroupBoxName
QLineEdit * ResultName
QLabel * NameLabel

Protected Slots

void ClickOnCancel ()
void LineEditReturnPressed ()
void DeactivateActiveDialog ()
void ClickOnHelp ()
virtual void languageChange ()

Protected Member Functions

virtual GEOM::GEOM_IOperations_ptr createOperation ()
virtual bool isValid (QString &msg)
virtual bool execute (ObjectList &objects)
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr theObj)
virtual const char * getNewObjectName () const
void closeEvent (QCloseEvent *e)
void keyPressEvent (QKeyEvent *e)
void initName (const char *thePrefix=0)
int getConstructorId () const
void setHelpFileName (const QString &)
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 activate=false, const bool update=true, const bool toRemoveFromEngine=true, const double lineWidth=-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)
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 updateViewer ()
void prepareSelection (const ObjectList &, const int)
void prepareSelection (GEOM::GEOM_Object_ptr, const int)
void 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
const SALOME_ListIO & selectedIO ()
int IObjectCount ()
 Handle (SALOME_InteractiveObject) firstIObject()
 Handle (SALOME_InteractiveObject) lastIObject()
void SetIsPreview (const bool thePreview)
bool IsPreview ()
GEOM_DisplayergetDisplayer ()
SUIT_Desktop * getDesktop () const

Static Protected Member Functions

static GEOM::GEOM_Gen_ptr getGeomEngine ()

Protected Attributes

QLineEdit * myEditCurrentArgument
 Current LineEdit.
GeometryGUImyGeomGUI
 reference GEOM GUI
QString myHelpFileName
QGridLayout * DlgRef_Skeleton_QTDLayout
QGridLayout * Layout1
QHBoxLayout * GroupButtonsLayout
QHBoxLayout * Layout3
QSpacerItem * Spacer1
QHBoxLayout * GroupConstructorsLayout
QHBoxLayout * Layout2
QGridLayout * GroupBoxNameLayout
QGridLayout * Layout66

Private Slots

void ClickOnOk ()
bool ClickOnApply ()
void ActivateThisDialog ()
void ConstructorsClicked (int constructorId)
void SelectionIntoArgument ()
void SetEditCurrentArgument ()
void SubShapeToggled ()
void ValueChangedInSpinBox (double newValue)

Private Member Functions

void Init ()
void enterEvent (QEvent *e)
void activateSelection ()
void updateButtonState ()
bool isAllSubShapes () const
int shapeType () const
void clearTemporary ()

Private Attributes

int myConstructorId
CORBA::Long myNbBlocks
GEOM::GEOM_Object_var myObject
ObjectList myTmpObjs
QFrame * myGrp1
QPushButton * mySelBtn
QLineEdit * mySelName
DlgRef_SpinBoxmySpinBoxMin
DlgRef_SpinBoxmySpinBoxMax
QTextEdit * myBlocksNb
QCheckBox * myCheckBtn

Constructor & Destructor Documentation

BlocksGUI_ExplodeDlg::BlocksGUI_ExplodeDlg GeometryGUI ,
QWidget parent,
bool  modal = FALSE
 

BlocksGUI_ExplodeDlg::~BlocksGUI_ExplodeDlg  ) 
 


Member Function Documentation

GEOM::GEOM_IOperations_ptr BlocksGUI_ExplodeDlg::createOperation  )  [protected, virtual]
 

Reimplemented from GEOMBase_Helper.

bool BlocksGUI_ExplodeDlg::isValid QString &  msg  )  [protected, virtual]
 

Reimplemented from GEOMBase_Helper.

bool BlocksGUI_ExplodeDlg::execute ObjectList objects  )  [protected, virtual]
 

Reimplemented from GEOMBase_Helper.

GEOM::GEOM_Object_ptr BlocksGUI_ExplodeDlg::getFather GEOM::GEOM_Object_ptr  theObj  )  [protected, virtual]
 

Reimplemented from GEOMBase_Helper.

const char * BlocksGUI_ExplodeDlg::getNewObjectName  )  const [protected, virtual]
 

returns contents of "Name" field

Reimplemented from GEOMBase_Skeleton.

void BlocksGUI_ExplodeDlg::Init  )  [private]
 

Reimplemented from GEOMBase_Skeleton.

void BlocksGUI_ExplodeDlg::enterEvent QEvent *  e  )  [private]
 

void BlocksGUI_ExplodeDlg::activateSelection  )  [private]
 

void BlocksGUI_ExplodeDlg::updateButtonState  )  [private]
 

bool BlocksGUI_ExplodeDlg::isAllSubShapes  )  const [private]
 

int BlocksGUI_ExplodeDlg.shapeType  )  const [private]
 

void BlocksGUI_ExplodeDlg::clearTemporary  )  [private]
 

void BlocksGUI_ExplodeDlg::ClickOnOk  )  [private, slot]
 

bool BlocksGUI_ExplodeDlg::ClickOnApply  )  [private, slot]
 

void BlocksGUI_ExplodeDlg::ActivateThisDialog  )  [private, slot]
 

Reimplemented from GEOMBase_Skeleton.

void BlocksGUI_ExplodeDlg::ConstructorsClicked int  constructorId  )  [private, slot]
 

void BlocksGUI_ExplodeDlg::SelectionIntoArgument  )  [private, slot]
 

void BlocksGUI_ExplodeDlg::SetEditCurrentArgument  )  [private, slot]
 

void BlocksGUI_ExplodeDlg::SubShapeToggled  )  [private, slot]
 

void BlocksGUI_ExplodeDlg::ValueChangedInSpinBox double  newValue  )  [private, slot]
 

void GEOMBase_Skeleton::closeEvent QCloseEvent *  e  )  [protected, inherited]
 

Reimplemented in BasicGUI_ArcDlg, BasicGUI_CircleDlg, BasicGUI_CurveDlg, BasicGUI_EllipseDlg, BasicGUI_LineDlg, BasicGUI_MarkerDlg, BasicGUI_PlaneDlg, BasicGUI_PointDlg, BasicGUI_WorkingPlaneDlg, BlocksGUI_PropagateDlg, OperationGUI_ClippingDlg, OperationGUI_PartitionDlg, PrimitiveGUI_BoxDlg, PrimitiveGUI_ConeDlg, PrimitiveGUI_CylinderDlg, PrimitiveGUI_SphereDlg, PrimitiveGUI_TorusDlg, RepairGUI_ChangeOrientationDlg, RepairGUI_CloseContourDlg, RepairGUI_DivideEdgeDlg, RepairGUI_GlueDlg, RepairGUI_RemoveHolesDlg, RepairGUI_RemoveIntWiresDlg, RepairGUI_SewingDlg, RepairGUI_ShapeProcessDlg, RepairGUI_SuppressFacesDlg, TransformationGUI_MirrorDlg, TransformationGUI_MultiRotationDlg, TransformationGUI_MultiTranslationDlg, TransformationGUI_OffsetDlg, TransformationGUI_PositionDlg, TransformationGUI_RotationDlg, TransformationGUI_ScaleDlg, and TransformationGUI_TranslationDlg.

void GEOMBase_Skeleton::keyPressEvent QKeyEvent *  e  )  [protected, inherited]
 

void GEOMBase_Skeleton::initName const char *  thePrefix = 0  )  [protected, inherited]
 

initialize "Name" field with a string "thePrefix_X" (Vertex_3)

int GEOMBase_Skeleton::getConstructorId  )  const [protected, inherited]
 

returns id of a selected "constructor" radio button or '-1' in case of error

Reimplemented in GroupGUI_GroupDlg, OperationGUI_ChamferDlg, and OperationGUI_FilletDlg.

void GEOMBase_Skeleton::setHelpFileName const QString &   )  [protected, inherited]
 

void GEOMBase_Skeleton::ClickOnCancel  )  [protected, slot, inherited]
 

Reimplemented in BasicGUI_ArcDlg, BasicGUI_CircleDlg, BasicGUI_CurveDlg, BasicGUI_EllipseDlg, BasicGUI_LineDlg, BasicGUI_PlaneDlg, BasicGUI_PointDlg, BasicGUI_VectorDlg, BasicGUI_WorkingPlaneDlg, PrimitiveGUI_ConeDlg, PrimitiveGUI_CylinderDlg, PrimitiveGUI_SphereDlg, and PrimitiveGUI_TorusDlg.

void GEOMBase_Skeleton::LineEditReturnPressed  )  [protected, slot, inherited]
 

Reimplemented in BasicGUI_ArcDlg, BasicGUI_CircleDlg, BasicGUI_CurveDlg, BasicGUI_EllipseDlg, BasicGUI_LineDlg, BasicGUI_MarkerDlg, BasicGUI_PlaneDlg, BasicGUI_PointDlg, BasicGUI_VectorDlg, BasicGUI_WorkingPlaneDlg, BlocksGUI_PropagateDlg, BooleanGUI_Dialog, BuildGUI_EdgeDlg, EntityGUI_SubShapeDlg, GenerationGUI_FillingDlg, GenerationGUI_PipeDlg, GenerationGUI_PrismDlg, GenerationGUI_RevolDlg, GroupGUI_GroupDlg, MeasureGUI_CenterMassDlg, MeasureGUI_CheckCompoundOfBlocksDlg, OperationGUI_ArchimedeDlg, OperationGUI_ChamferDlg, OperationGUI_FilletDlg, OperationGUI_PartitionDlg, PrimitiveGUI_BoxDlg, PrimitiveGUI_ConeDlg, PrimitiveGUI_CylinderDlg, PrimitiveGUI_SphereDlg, PrimitiveGUI_TorusDlg, RepairGUI_ChangeOrientationDlg, RepairGUI_CloseContourDlg, RepairGUI_DivideEdgeDlg, RepairGUI_GlueDlg, RepairGUI_RemoveHolesDlg, RepairGUI_RemoveIntWiresDlg, RepairGUI_SewingDlg, RepairGUI_SuppressFacesDlg, TransformationGUI_MirrorDlg, TransformationGUI_MultiRotationDlg, TransformationGUI_MultiTranslationDlg, TransformationGUI_OffsetDlg, TransformationGUI_PositionDlg, TransformationGUI_RotationDlg, TransformationGUI_ScaleDlg, and TransformationGUI_TranslationDlg.

void GEOMBase_Skeleton::DeactivateActiveDialog  )  [protected, slot, inherited]
 

Reimplemented in BasicGUI_ArcDlg, BasicGUI_CircleDlg, BasicGUI_CurveDlg, BasicGUI_EllipseDlg, BasicGUI_LineDlg, BasicGUI_PlaneDlg, BasicGUI_PointDlg, BasicGUI_VectorDlg, BasicGUI_WorkingPlaneDlg, EntityGUI_SubShapeDlg, PrimitiveGUI_ConeDlg, PrimitiveGUI_CylinderDlg, PrimitiveGUI_SphereDlg, and PrimitiveGUI_TorusDlg.

void GEOMBase_Skeleton::ClickOnHelp  )  [protected, slot, inherited]
 

void DlgRef_Skeleton_QTD::languageChange  )  [protected, virtual, slot, inherited]
 

GEOM::GEOM_Gen_ptr GEOMBase_Helper::getGeomEngine  )  [static, protected, inherited]
 

void GEOMBase_Helper::display const ObjectList ,
const   bool = true
[protected, inherited]
 

void GEOMBase_Helper::display GEOM::GEOM_Object_ptr  ,
const   bool = true
[protected, inherited]
 

void GEOMBase_Helper::erase const ObjectList ,
const   bool = true
[protected, inherited]
 

void GEOMBase_Helper::erase GEOM::GEOM_Object_ptr  ,
const   bool = true
[protected, inherited]
 

void GEOMBase_Helper::redisplay const ObjectList ,
const   bool = true,
const   bool = true
[protected, inherited]
 

void GEOMBase_Helper::redisplay GEOM::GEOM_Object_ptr  ,
const   bool = true,
const   bool = true
[protected, inherited]
 

void GEOMBase_Helper::displayPreview const bool  activate = false,
const bool  update = true,
const bool  toRemoveFromEngine = true,
const double  lineWidth = -1
[protected, virtual, inherited]
 

Reimplemented in BasicGUI_MarkerDlg.

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
[protected, virtual, inherited]
 

Reimplemented in EntityGUI_SketcherDlg.

void GEOMBase_Helper::displayPreview const SALOME_Prs *  prs,
const bool  append = false,
const   bool = true
[protected, inherited]
 

void GEOMBase_Helper::erasePreview const   bool = true  )  [protected, inherited]
 

void GEOMBase_Helper::localSelection const ObjectList ,
const   int
[protected, inherited]
 

void GEOMBase_Helper::localSelection GEOM::GEOM_Object_ptr  ,
const   int
[protected, inherited]
 

void GEOMBase_Helper::activate const   int  )  [protected, inherited]
 

void GEOMBase_Helper::globalSelection const   int = GEOM_ALLOBJECTS,
const   bool = false
[protected, inherited]
 

void GEOMBase_Helper::globalSelection const TColStd_MapOfInteger &  ,
const   bool = 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]
 

void GEOMBase_Helper::addInStudy GEOM::GEOM_Object_ptr  ,
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  = GEOM::GEOM_Object::_nil()  )  const [protected, inherited]
 

const SALOME_ListIO & GEOMBase_Helper::selectedIO  )  [protected, inherited]
 

int GEOMBase_Helper::IObjectCount  )  [protected, inherited]
 

GEOMBase_Helper.Handle SALOME_InteractiveObject   )  [protected, inherited]
 

GEOMBase_Helper.Handle SALOME_InteractiveObject   )  [protected, inherited]
 

void GEOMBase_Helper.SetIsPreview const bool  thePreview  )  [protected, inherited]
 

bool GEOMBase_Helper.IsPreview  )  [protected, inherited]
 

GEOM_Displayer * GEOMBase_Helper::getDisplayer  )  [protected, inherited]
 

Reimplemented in MeasureGUI_Skeleton, and RepairGUI_FreeFacesDlg.

SUIT_Desktop * GEOMBase_Helper::getDesktop  )  const [protected, inherited]
 


Field Documentation

int BlocksGUI_ExplodeDlg.myConstructorId [private]
 

CORBA::Long BlocksGUI_ExplodeDlg.myNbBlocks [private]
 

GEOM::GEOM_Object_var BlocksGUI_ExplodeDlg.myObject [private]
 

ObjectList BlocksGUI_ExplodeDlg.myTmpObjs [private]
 

QFrame* BlocksGUI_ExplodeDlg.myGrp1 [private]
 

QPushButton* BlocksGUI_ExplodeDlg.mySelBtn [private]
 

QLineEdit* BlocksGUI_ExplodeDlg.mySelName [private]
 

DlgRef_SpinBox* BlocksGUI_ExplodeDlg.mySpinBoxMin [private]
 

DlgRef_SpinBox* BlocksGUI_ExplodeDlg.mySpinBoxMax [private]
 

QTextEdit* BlocksGUI_ExplodeDlg.myBlocksNb [private]
 

QCheckBox* BlocksGUI_ExplodeDlg.myCheckBtn [private]