Version: 9.12.0
GEOMBase_Skeleton Class Reference

#include <GEOMBase_Skeleton.h>

Inherits QDialog, and GEOMBase_Helper.

Inherited by AdvancedGUI_DividedCylinderDlg, AdvancedGUI_DividedDiskDlg, AdvancedGUI_PipeTShapeDlg, AdvancedGUI_SmoothingSurfaceDlg, BasicGUI_ArcDlg, BasicGUI_CircleDlg, BasicGUI_CurveDlg, BasicGUI_EllipseDlg, BasicGUI_LineDlg, BasicGUI_MarkerDlg, BasicGUI_PlaneDlg, BasicGUI_PointDlg, BasicGUI_VectorDlg, BasicGUI_WorkingPlaneDlg, BlocksGUI_BlockDlg, BlocksGUI_ExplodeDlg, BlocksGUI_PropagateDlg, BlocksGUI_QuadFaceDlg, BlocksGUI_TrsfDlg, BooleanGUI_Dialog, BuildGUI_CompoundDlg, BuildGUI_EdgeDlg, BuildGUI_FaceDlg, BuildGUI_ShellDlg, BuildGUI_SolidDlg, BuildGUI_WireDlg, EntityGUI_3DSketcherDlg, EntityGUI_FeatureDetectorDlg, EntityGUI_FieldDlg, EntityGUI_IsolineDlg, EntityGUI_PictureImportDlg, EntityGUI_PolylineDlg, EntityGUI_SubShapeDlg, EntityGUI_SurfFromFaceDlg, GenerationGUI_FillingDlg, GenerationGUI_PipeDlg, GenerationGUI_PipePathDlg, GenerationGUI_PrismDlg, GenerationGUI_RevolDlg, GenerationGUI_ThicknessDlg, GroupGUI_BooleanDlg, GroupGUI_GroupDlg, MeasureGUI_AnnotationDlg, MeasureGUI_BndBoxDlg, MeasureGUI_CenterMassDlg, MeasureGUI_CheckCompoundOfBlocksDlg, MeasureGUI_CheckSelfIntersectionsDlg, MeasureGUI_CheckShapeDlg, MeasureGUI_CreateDimensionDlg, MeasureGUI_DistanceDlg, MeasureGUI_FastCheckIntersectionsDlg, MeasureGUI_GetNonBlocksDlg, MeasureGUI_ManageDimensionsDlg, MeasureGUI_NormaleDlg, OperationGUI_ArchimedeDlg, OperationGUI_ChamferDlg, OperationGUI_ExtractionDlg, OperationGUI_ExtrudedFeatureDlg, OperationGUI_Fillet1d2dDlg, OperationGUI_FilletDlg, OperationGUI_GetShapesOnShapeDlg, OperationGUI_GetSharedShapesDlg, OperationGUI_MaterialDlg, OperationGUI_PartitionDlg, OperationGUI_TransferDataDlg, PrimitiveGUI_BoxDlg, PrimitiveGUI_ConeDlg, PrimitiveGUI_CylinderDlg, PrimitiveGUI_DiskDlg, PrimitiveGUI_FaceDlg, PrimitiveGUI_SphereDlg, PrimitiveGUI_TorusDlg, RepairGUI_ChangeOrientationDlg, RepairGUI_CloseContourDlg, RepairGUI_DivideEdgeDlg, RepairGUI_FreeBoundDlg, RepairGUI_FreeFacesDlg, RepairGUI_FuseEdgesDlg, RepairGUI_GlueDlg, RepairGUI_LimitToleranceDlg, RepairGUI_RemoveExtraEdgesDlg, RepairGUI_RemoveHolesDlg, RepairGUI_RemoveIntWiresDlg, RepairGUI_RemoveWebsDlg, RepairGUI_SewingDlg, RepairGUI_ShapeProcessDlg, RepairGUI_SuppressFacesDlg, RepairGUI_UnionFacesDlg, TransformationGUI_ExtensionDlg, TransformationGUI_MirrorDlg, TransformationGUI_MultiRotationDlg, TransformationGUI_MultiTranslationDlg, TransformationGUI_OffsetDlg, TransformationGUI_PositionDlg, TransformationGUI_ProjectionDlg, TransformationGUI_ProjectionOnCylDlg, TransformationGUI_RotationDlg, TransformationGUI_ScaleDlg, TransformationGUI_TranslationDlg, XAOPlugin_ExportDlg, and XAOPlugin_ImportDlg.

Signals

void constructorsClicked (int)
 

Public Member Functions

 GEOMBase_Skeleton (GeometryGUI *, QWidget *=0, bool=false, Qt::WindowFlags=0)
 
 ~GEOMBase_Skeleton ()
 
- Public Member Functions inherited from GEOMBase_Helper
 GEOMBase_Helper (SUIT_Desktop *, SUIT_ViewWindow *aVW=0)
 
virtual ~GEOMBase_Helper ()
 

Protected Slots

virtual void ClickOnCancel ()
 
virtual void processPreview ()
 
void LineEditReturnPressed ()
 
void DeactivateActiveDialog ()
 
void ActivateThisDialog ()
 
virtual void ClickOnHelp ()
 

Protected Member Functions

void initSpinBox (QSpinBox *, int, int, int=1)
 
void initSpinBox (SalomeApp_DoubleSpinBox *, double, double, double=0.1, const char *="length_precision")
 
void updateAttributes (GEOM::GEOM_Object_ptr, const QStringList &)
 
void closeEvent (QCloseEvent *)
 
void keyPressEvent (QKeyEvent *)
 
void initName (const QString &=QString())
 
virtual QString getNewObjectName (int CurrObj=-1) const
 
int getConstructorId () const
 
void setConstructorId (const int)
 
void unsetConstructorId ()
 
void showOnlyPreviewControl ()
 
void setHelpFileName (const QString &)
 
GEOMBase_DlgSkeletonmainFrame ()
 
QWidgetcentralWidget ()
 
QPushButton * buttonCancel () const
 
QPushButton * buttonOk () const
 
QPushButton * buttonApply () const
 
QPushButton * buttonHelp () const
 
- Protected Member Functions inherited from GEOMBase_Helper
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, const bool append=false)
 
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)
 
const PrsListgetPreview () const
 
void localSelection (const ObjectList &, const std::list< int >)
 
void localSelection (const ObjectList &, const int)
 
void localSelection (GEOM::GEOM_Object_ptr, const std::list< int >)
 
void localSelection (GEOM::GEOM_Object_ptr, const int)
 
void localSelection (const std::string &, const std::string &, const std::list< int >)
 
void localSelection (const std::list< int >)
 
void localSelection (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
 
SalomeApp_Study * getStudy () const
 
bool checkViewWindow ()
 
bool onAccept (const bool publish=true, const bool useTransaction=true, bool erasePreviewFlag=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 GEOM::GEOM_IOperations_ptr createOperation ()
 
virtual bool isValid (QString &msg)
 
virtual bool execute (ObjectList &objects)
 
virtual void restoreSubShapes (SALOMEDS::SObject_ptr theSObject)
 
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr theObj)
 
virtual QString getObjectName (GEOM::GEOM_Object_ptr object) const
 
virtual bool extractPrefix () const
 
virtual void addSubshapesToStudy ()
 
virtual QList< GEOM::GeomObjPtrgetSourceObjects ()
 
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 hideSourceObjects (QList< GEOM::GeomObjPtr > theObjectList)
 
void SetIsPreview (const bool thePreview)
 
bool IsPreview ()
 
GEOM_DisplayergetDisplayer ()
 
SUIT_Desktop * getDesktop () const
 
virtual void setIsApplyAndClose (const bool theFlag)
 
virtual bool isApplyAndClose () const
 
virtual void setIsOptimizedBrowsing (const bool theFlag)
 
virtual bool isOptimizedBrowsing () const
 
virtual void setIsWaitCursorEnabled (const bool theFlag)
 
virtual bool isWaitCursorEnabled () const
 
virtual void setIsDisableBrowsing (const bool theFlag)
 
virtual bool isDisableBrowsing () const
 
virtual void setIsDisplayResult (const bool theFlag)
 
virtual bool isDisplayResult () const
 

Protected Attributes

QLineEdit * myEditCurrentArgument
 Current LineEdit. More...
 
GeometryGUImyGeomGUI
 reference GEOM GUI More...
 
QString myHelpFileName
 Associated HTML help file name. More...
 
QButtonGroup * myRBGroup
 radio button group More...
 
GEOMBase_DlgSkeletonmyMainFrame
 dialog box's mainframe widget More...
 
QString myHelpContext
 Help context, needed for the customization path where located plugins help HTML pages. More...
 

Private Member Functions

void Init ()
 

Additional Inherited Members

- Static Public Member Functions inherited from GEOMBase_Helper
static SUIT_ViewWindow * getActiveView ()
 
- Protected Types inherited from GEOMBase_Helper
typedef std::list< SALOME_Prs * > PrsList
 
- Static Protected Member Functions inherited from GEOMBase_Helper
static GEOM::GEOM_Gen_ptr getGeomEngine ()
 

Constructor & Destructor Documentation

◆ GEOMBase_Skeleton()

◆ ~GEOMBase_Skeleton()

GEOMBase_Skeleton::~GEOMBase_Skeleton ( )

Member Function Documentation

◆ ActivateThisDialog

void GEOMBase_Skeleton::ActivateThisDialog ( )
protectedslot

◆ buttonApply()

QPushButton * GEOMBase_Skeleton::buttonApply ( ) const
protected

◆ buttonCancel()

QPushButton * GEOMBase_Skeleton::buttonCancel ( ) const
protected

◆ buttonHelp()

QPushButton * GEOMBase_Skeleton::buttonHelp ( ) const
protected

◆ buttonOk()

QPushButton * GEOMBase_Skeleton::buttonOk ( ) const
protected

◆ centralWidget()

QWidget * GEOMBase_Skeleton::centralWidget ( )
protected

◆ ClickOnCancel

void GEOMBase_Skeleton::ClickOnCancel ( )
protectedvirtualslot

◆ ClickOnHelp

void GEOMBase_Skeleton::ClickOnHelp ( )
protectedvirtualslot

◆ closeEvent()

void GEOMBase_Skeleton::closeEvent ( QCloseEvent *  e)
protected

References myGeomGUI.

◆ constructorsClicked

void GEOMBase_Skeleton::constructorsClicked ( int  )
signal

◆ DeactivateActiveDialog

void GEOMBase_Skeleton::DeactivateActiveDialog ( )
protectedslot

◆ getConstructorId()

int GEOMBase_Skeleton::getConstructorId ( ) const
protected

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

References myRBGroup.

◆ getNewObjectName()

QString GEOMBase_Skeleton::getNewObjectName ( int  CurrObj = -1) const
protectedvirtual

returns contents of "Name" field

Reimplemented from GEOMBase_Helper.

Reimplemented in RepairGUI_FreeBoundDlg, MeasureGUI_DistanceDlg, EntityGUI_SubShapeDlg, and BlocksGUI_ExplodeDlg.

References myMainFrame, and GEOMBase_DlgSkeleton::ResultName.

◆ Init()

◆ initName()

void GEOMBase_Skeleton::initName ( const QString &  thePrefix = QString())
protected

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

References GEOMBase::GetDefaultName(), GEOMBase_Helper::getPrefix(), myMainFrame, GEOMBase_DlgSkeleton::ResultName, and GEOMBase_Helper::setPrefix().

◆ initSpinBox() [1/2]

void GEOMBase_Skeleton::initSpinBox ( QSpinBox *  spinBox,
int  min,
int  max,
int  step = 1 
)
protected

◆ initSpinBox() [2/2]

void GEOMBase_Skeleton::initSpinBox ( SalomeApp_DoubleSpinBox *  spinBox,
double  min,
double  max,
double  step = 0.1,
const char *  quantity = "length_precision" 
)
protected

◆ keyPressEvent()

void GEOMBase_Skeleton::keyPressEvent ( QKeyEvent *  e)
protected

References ClickOnHelp().

◆ LineEditReturnPressed

void GEOMBase_Skeleton::LineEditReturnPressed ( )
protectedslot

◆ mainFrame()

GEOMBase_DlgSkeleton * GEOMBase_Skeleton::mainFrame ( )
protected

References myMainFrame.

◆ processPreview

void GEOMBase_Skeleton::processPreview ( )
protectedvirtualslot

◆ setConstructorId()

void GEOMBase_Skeleton::setConstructorId ( const int  id)
protected

set selected "constructor" radio button id

References myRBGroup.

◆ setHelpFileName()

void GEOMBase_Skeleton::setHelpFileName ( const QString &  theName)
protected

References myHelpFileName.

◆ showOnlyPreviewControl()

void GEOMBase_Skeleton::showOnlyPreviewControl ( )
protected

◆ unsetConstructorId()

void GEOMBase_Skeleton::unsetConstructorId ( )
protected

unset selection on all "constructor" radio buttons

References myRBGroup.

◆ updateAttributes()

void GEOMBase_Skeleton::updateAttributes ( GEOM::GEOM_Object_ptr  theObj,
const QStringList &  theParameters 
)
protected

Member Data Documentation

◆ myEditCurrentArgument

QLineEdit* GEOMBase_Skeleton::myEditCurrentArgument
protected

◆ myGeomGUI

GeometryGUI* GEOMBase_Skeleton::myGeomGUI
protected

◆ myHelpContext

QString GEOMBase_Skeleton::myHelpContext
protected

◆ myHelpFileName

QString GEOMBase_Skeleton::myHelpFileName
protected

◆ myMainFrame

GEOMBase_DlgSkeleton* GEOMBase_Skeleton::myMainFrame
protected

◆ myRBGroup

QButtonGroup* GEOMBase_Skeleton::myRBGroup
protected

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