Version: 9.12.0
EntityGUI_PolylineDlg Class Reference

#include <EntityGUI_PolylineDlg.h>

Inheritance diagram for EntityGUI_PolylineDlg:
Inheritance graph

Public Member Functions

 EntityGUI_PolylineDlg (GeometryGUI *, QWidget *=0, bool=false, Qt::WindowFlags=0)
 
virtual ~EntityGUI_PolylineDlg ()
 
void deleteSelected ()
 
bool deleteEnabled ()
 
void setPreviewZLayer (int theLayer)
 
int getPreviewZLayer () const
 
- Public Member Functions inherited from GEOMBase_Skeleton
 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

void ClickOnOk ()
 
bool ClickOnApply ()
 
void processStartedSubOperation (QWidget *, bool)
 
void processFinishedSubOperation (QWidget *)
 
void SetEditCurrentArgument (bool)
 
void SelectionIntoArgument (bool isForced=false)
 
void ActivateThisDialog ()
 
void ActivateLocalCS ()
 
- Protected Slots inherited from GEOMBase_Skeleton
virtual void ClickOnCancel ()
 
virtual void processPreview ()
 
void LineEditReturnPressed ()
 
void DeactivateActiveDialog ()
 
void ActivateThisDialog ()
 
virtual void ClickOnHelp ()
 

Protected Member Functions

virtual GEOM::GEOM_IOperations_ptr createOperation ()
 
virtual bool isValid (QString &)
 
virtual bool execute (ObjectList &)
 
virtual QList< GEOM::GeomObjPtrgetSourceObjects ()
 
void setPreviewManager (OCCViewer_ViewManager *theManager)
 This method sets/gets the view manager to control the temporary displayed objects on Z layer. More...
 
OCCViewer_ViewManager * getPreviewManager ()
 
bool isCheckToSelect ()
 This method defines a state of selection button. More...
 
- Protected Member Functions inherited from GEOMBase_Skeleton
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 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 ()
 
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
 

Private Member Functions

void Init ()
 
void Clear ()
 
void enterEvent (QEvent *)
 
void GetCurveParams (GEOM::ListOfListOfDouble &theCoords, GEOM::string_array &theNames, GEOM::short_array &theTypes, GEOM::ListOfBool &theCloseds)
 This method converts the curve into curve parameters required to construct an object using the interface GEOM_ICurvesOperations::MakePolyline2DOnPlane. More...
 
gp_Ax3 GetActiveLocalCS ()
 This method returns the current local coordinate system. More...
 
GEOM::GeomObjPtr GetActiveWPlane ()
 This method returns the current working plane. More...
 
void AddLocalCS (GEOM::GeomObjPtr theSelectedObject, const bool IsPlane, const gp_Ax3 &theLCS)
 This method add a local coordinate system of the selected object. More...
 
gp_Ax3 WPlaneToLCS (GEOM::GeomObjPtr theGeomObj)
 This method converts the working plane object into the local coordinate system of the polyline. More...
 
void displayPreview ()
 This method displays the AIS_InteractiveObject(s) to preview on the Z layer and sets VIOLET color. More...
 
void erasePreview ()
 This method erases AIS_InteractiveObject(s) from AIS_InteractiveContext and release memory. More...
 

Private Attributes

CurveCreator_CurvemyCurve
 
CurveCreator_WidgetmyEditorWidget
 
QGroupBoxmyAddElementBox
 
QComboBox * myPlnComboBox
 
QPushButton * myPlnButton
 
QPushButton * myPlnSelButton
 
QPushButton * myPolylineSelButton
 
QLineEdit * myWPlaneLineEdit
 
QLineEdit * myPolylineEdit
 
QLineEdit * myEditCurrentArgument
 
QList< gp_Ax3 > myLCSList
 
QList< GEOM::GeomObjPtrmyWPlaneList
 
OCCViewer_ViewManager * myPreviewManager
 
int myPreviewZLayer
 

Additional Inherited Members

- Signals inherited from GEOMBase_Skeleton
void constructorsClicked (int)
 
- 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 ()
 
- Protected Attributes inherited from GEOMBase_Skeleton
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...
 

Constructor & Destructor Documentation

◆ EntityGUI_PolylineDlg()

◆ ~EntityGUI_PolylineDlg()

EntityGUI_PolylineDlg::~EntityGUI_PolylineDlg ( )
virtual

Member Function Documentation

◆ ActivateLocalCS

◆ ActivateThisDialog

void EntityGUI_PolylineDlg::ActivateThisDialog ( )
protectedslot

◆ AddLocalCS()

void EntityGUI_PolylineDlg::AddLocalCS ( GEOM::GeomObjPtr  theSelectedObject,
const bool  IsPlane,
const gp_Ax3 &  theLCS 
)
private
Parameters
theSelectedObjectthe selected object. It can be a planar face or an imported polyline.
IsPlanetrue for planar face; false for imported polyline.
theLCSthe local coordinate system.

References ActivateLocalCS(), GEOMBase::GetName(), myLCSList, myPlnComboBox, and myWPlaneList.

◆ Clear()

void EntityGUI_PolylineDlg::Clear ( )
private

◆ ClickOnApply

bool EntityGUI_PolylineDlg::ClickOnApply ( )
protectedslot

◆ ClickOnOk

void EntityGUI_PolylineDlg::ClickOnOk ( )
protectedslot

◆ createOperation()

GEOM::GEOM_IOperations_ptr EntityGUI_PolylineDlg::createOperation ( )
protectedvirtual

Reimplemented from GEOMBase_Helper.

References GEOMBase_Helper::getGeomEngine().

◆ deleteEnabled()

bool EntityGUI_PolylineDlg::deleteEnabled ( )

◆ deleteSelected()

void EntityGUI_PolylineDlg::deleteSelected ( )

◆ displayPreview()

void EntityGUI_PolylineDlg::displayPreview ( )
private

◆ enterEvent()

void EntityGUI_PolylineDlg::enterEvent ( QEvent *  )
private

◆ erasePreview()

void EntityGUI_PolylineDlg::erasePreview ( )
private

◆ execute()

bool EntityGUI_PolylineDlg::execute ( ObjectList objects)
protectedvirtual

◆ GetActiveLocalCS()

gp_Ax3 EntityGUI_PolylineDlg::GetActiveLocalCS ( )
private
Returns
local coordinate system.

References GeometryGUI::GetWorkingPlane(), GEOMBase_Skeleton::myGeomGUI, myLCSList, and myPlnComboBox.

◆ GetActiveWPlane()

GEOM::GeomObjPtr EntityGUI_PolylineDlg::GetActiveWPlane ( )
private

Can be null.

Returns
the current working plane.

References myPlnComboBox, and myWPlaneList.

◆ GetCurveParams()

void EntityGUI_PolylineDlg::GetCurveParams ( GEOM::ListOfListOfDouble theCoords,
GEOM::string_array theNames,
GEOM::short_array theTypes,
GEOM::ListOfBool theCloseds 
)
private
Parameters
theCurvea curve object, that contains data.
theCoordsListthe list of coordinates list. theCoordsList[0] is the coordinates list of the first section. theCoordsList[1] is for the second section etc. Output parameter.
theNamesListthe list of names. The order corresponds to theCoordsList. Output parameter.
theTypesListthe list of curve types. The order corresponds to theCoordsList. Output parameter.
theClosedListthe list of Closed flags. The order corresponds to theCoordsList. Output parameter.

References CurveCreator_Curve::getCoords(), CurveCreator_Curve::getNbSections(), CurveCreator_Curve::getSectionName(), CurveCreator_Curve::getSectionType(), GEOM::Interpolation, CurveCreator_Curve::isClosed(), myCurve, GEOM::Polyline, CurveCreator::Polyline, and CurveCreator::Spline.

◆ getPreviewManager()

OCCViewer_ViewManager * EntityGUI_PolylineDlg::getPreviewManager ( )
protected

References myPreviewManager.

◆ getPreviewZLayer()

int EntityGUI_PolylineDlg::getPreviewZLayer ( ) const

References myPreviewZLayer.

◆ getSourceObjects()

QList< GEOM::GeomObjPtr > EntityGUI_PolylineDlg::getSourceObjects ( )
protectedvirtual

Reimplemented from GEOMBase_Helper.

References myWPlaneList.

◆ Init()

◆ isCheckToSelect()

bool EntityGUI_PolylineDlg::isCheckToSelect ( )
protected
Returns
true if selection button is checked, otherwise false.

References myPlnSelButton, and myPolylineSelButton.

◆ isValid()

bool EntityGUI_PolylineDlg::isValid ( QString &  )
protectedvirtual

Reimplemented from GEOMBase_Helper.

◆ processFinishedSubOperation

void EntityGUI_PolylineDlg::processFinishedSubOperation ( QWidget theWidget)
protectedslot

References myAddElementBox, and myEditorWidget.

◆ processStartedSubOperation

void EntityGUI_PolylineDlg::processStartedSubOperation ( QWidget theWidget,
bool  theIsEdit 
)
protectedslot

References myAddElementBox, and myEditorWidget.

◆ SelectionIntoArgument

◆ SetEditCurrentArgument

void EntityGUI_PolylineDlg::SetEditCurrentArgument ( bool  )
protectedslot

◆ setPreviewManager()

void EntityGUI_PolylineDlg::setPreviewManager ( OCCViewer_ViewManager *  theManager)
protected
Parameters
theManagerthe view manager.

References getPreviewManager(), Handle(), myPreviewManager, and setPreviewZLayer().

◆ setPreviewZLayer()

void EntityGUI_PolylineDlg::setPreviewZLayer ( int  theLayer)

References myPreviewZLayer.

◆ WPlaneToLCS()

gp_Ax3 EntityGUI_PolylineDlg::WPlaneToLCS ( GEOM::GeomObjPtr  theGeomObj)
private
Parameters
theGeomObjthe working plane
Returns
the local coordinate system

References GEOM_Client::get_client(), GeometryGUI::GetGeomGen(), GEOM_Client::GetShape(), and GEOMBase_Skeleton::myGeomGUI.

Member Data Documentation

◆ myAddElementBox

QGroupBox* EntityGUI_PolylineDlg::myAddElementBox
private

◆ myCurve

CurveCreator_Curve* EntityGUI_PolylineDlg::myCurve
private

◆ myEditCurrentArgument

QLineEdit* EntityGUI_PolylineDlg::myEditCurrentArgument
private

◆ myEditorWidget

CurveCreator_Widget* EntityGUI_PolylineDlg::myEditorWidget
private

◆ myLCSList

QList<gp_Ax3> EntityGUI_PolylineDlg::myLCSList
private

◆ myPlnButton

QPushButton* EntityGUI_PolylineDlg::myPlnButton
private

◆ myPlnComboBox

QComboBox* EntityGUI_PolylineDlg::myPlnComboBox
private

◆ myPlnSelButton

QPushButton* EntityGUI_PolylineDlg::myPlnSelButton
private

◆ myPolylineEdit

QLineEdit* EntityGUI_PolylineDlg::myPolylineEdit
private

◆ myPolylineSelButton

QPushButton* EntityGUI_PolylineDlg::myPolylineSelButton
private

◆ myPreviewManager

OCCViewer_ViewManager* EntityGUI_PolylineDlg::myPreviewManager
private

◆ myPreviewZLayer

int EntityGUI_PolylineDlg::myPreviewZLayer
private

◆ myWPlaneLineEdit

QLineEdit* EntityGUI_PolylineDlg::myWPlaneLineEdit
private

◆ myWPlaneList

QList<GEOM::GeomObjPtr> EntityGUI_PolylineDlg::myWPlaneList
private

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