mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
0022377: EDF 2752 GEOM: Add a preference in order to automatically unpublished parent objects
This commit is contained in:
parent
fdcbb78132
commit
4310bcdf3d
@ -67,6 +67,7 @@
|
|||||||
<parameter name="base_vectors_length" value="1" />
|
<parameter name="base_vectors_length" value="1" />
|
||||||
<parameter name="marker_scale" value="3" />
|
<parameter name="marker_scale" value="3" />
|
||||||
<parameter name="geom_preview" value="true" />
|
<parameter name="geom_preview" value="true" />
|
||||||
|
<parameter name="hide_input_object" value="true" />
|
||||||
<parameter name="material" value="[ Default ]" />
|
<parameter name="material" value="[ Default ]" />
|
||||||
<parameter name="predef_materials" value="true" />
|
<parameter name="predef_materials" value="true" />
|
||||||
<parameter name="edge_width" value="1" />
|
<parameter name="edge_width" value="1" />
|
||||||
|
@ -458,3 +458,14 @@ bool AdvancedGUI_DividedDiskDlg::execute (ObjectList& objects)
|
|||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> AdvancedGUI_DividedDiskDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myPoint << myDir;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -49,6 +49,7 @@ protected:
|
|||||||
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -1252,6 +1252,18 @@ void AdvancedGUI_PipeTShapeDlg::processPreview()
|
|||||||
erasePreview(true);
|
erasePreview(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> AdvancedGUI_PipeTShapeDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
GEOM::GeomObjPtr aGeomObjPtr1(myPoint1), aGeomObjPtr2(myPoint2), aGeomObjPtr3(myPoint3);
|
||||||
|
res << aGeomObjPtr1 << aGeomObjPtr2 << aGeomObjPtr3;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// function : AdvancedGUI_4Spin
|
// function : AdvancedGUI_4Spin
|
||||||
// purpose :
|
// purpose :
|
||||||
|
@ -79,6 +79,7 @@ protected:
|
|||||||
virtual bool isValid (QString&);
|
virtual bool isValid (QString&);
|
||||||
virtual bool execute (ObjectList&);
|
virtual bool execute (ObjectList&);
|
||||||
virtual void restoreSubShapes (SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr);
|
virtual void restoreSubShapes (SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr);
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -264,6 +264,16 @@ void AdvancedGUI_SmoothingSurfaceDlg::addSubshapesToStudy()
|
|||||||
GEOMBase::PublishSubObject( myPoints[i].get() );
|
GEOMBase::PublishSubObject( myPoints[i].get() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> AdvancedGUI_SmoothingSurfaceDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
return myPoints;
|
||||||
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// function : getNbPoints()
|
// function : getNbPoints()
|
||||||
// purpose : Returns the number of points in myPoints list.
|
// purpose : Returns the number of points in myPoints list.
|
||||||
|
@ -46,6 +46,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -622,3 +622,14 @@ void BasicGUI_ArcDlg::addSubshapesToStudy()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BasicGUI_ArcDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myPoint1 << myPoint2 << myPoint3;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -51,6 +51,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -640,3 +640,15 @@ void BasicGUI_CircleDlg::addSubshapesToStudy()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BasicGUI_CircleDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myPoint << myDir << myPoint1 << myPoint2 << myPoint3
|
||||||
|
<< myPoint4 << myPoint5 << myPoint6;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -50,8 +50,8 @@ protected:
|
|||||||
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
|
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -541,6 +541,14 @@ void BasicGUI_CurveDlg::addSubshapesToStudy()
|
|||||||
GEOMBase::PublishSubObject( myPoints[i].get() );
|
GEOMBase::PublishSubObject( myPoints[i].get() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BasicGUI_CurveDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
return myPoints;
|
||||||
|
}
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// function : CreationModeChanged
|
// function : CreationModeChanged
|
||||||
// purpose :
|
// purpose :
|
||||||
|
@ -57,6 +57,7 @@ protected:
|
|||||||
virtual bool isValid (QString&);
|
virtual bool isValid (QString&);
|
||||||
virtual bool execute (ObjectList&);
|
virtual bool execute (ObjectList&);
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -430,3 +430,14 @@ void BasicGUI_EllipseDlg::addSubshapesToStudy()
|
|||||||
GEOMBase::PublishSubObject( myDir.get() );
|
GEOMBase::PublishSubObject( myDir.get() );
|
||||||
GEOMBase::PublishSubObject( myMajor.get() );
|
GEOMBase::PublishSubObject( myMajor.get() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BasicGUI_EllipseDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myPoint << myDir << myMajor;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -50,6 +50,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -432,3 +432,14 @@ void BasicGUI_LineDlg::addSubshapesToStudy()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BasicGUI_LineDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myPoint1 << myPoint2 << myFace1 << myFace2;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -50,7 +50,8 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
void enterEvent( QEvent* );
|
void enterEvent( QEvent* );
|
||||||
|
@ -609,7 +609,17 @@ void BasicGUI_MarkerDlg::addSubshapesToStudy()
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BasicGUI_MarkerDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myShape << myPoint << myVectorX << myVectorY;
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
|
@ -46,47 +46,48 @@ private:
|
|||||||
typedef QMap< int, SalomeApp_DoubleSpinBox* > DataMap;
|
typedef QMap< int, SalomeApp_DoubleSpinBox* > DataMap;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BasicGUI_MarkerDlg( GeometryGUI*, QWidget* );
|
BasicGUI_MarkerDlg( GeometryGUI*, QWidget* );
|
||||||
virtual ~BasicGUI_MarkerDlg();
|
virtual ~BasicGUI_MarkerDlg();
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void displayPreview ( const bool = false,
|
virtual void displayPreview ( const bool = false,
|
||||||
const bool = true,
|
const bool = true,
|
||||||
const bool = true,
|
const bool = true,
|
||||||
const double = -1 );
|
const double = -1 );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void enterEvent( QEvent* );
|
void enterEvent( QEvent* );
|
||||||
void onSelectionDone0();
|
void onSelectionDone0();
|
||||||
|
|
||||||
GEOM::GeomObjPtr myShape;
|
GEOM::GeomObjPtr myShape;
|
||||||
GEOM::GeomObjPtr myPoint;
|
GEOM::GeomObjPtr myPoint;
|
||||||
GEOM::GeomObjPtr myVectorX;
|
GEOM::GeomObjPtr myVectorX;
|
||||||
GEOM::GeomObjPtr myVectorY;
|
GEOM::GeomObjPtr myVectorY;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void onOk();
|
void onOk();
|
||||||
bool onApply();
|
bool onApply();
|
||||||
void onActivate();
|
void onActivate();
|
||||||
void onDeactivate();
|
void onDeactivate();
|
||||||
void onSelectionDone();
|
void onSelectionDone();
|
||||||
void onValueChanged( double );
|
void onValueChanged( double );
|
||||||
void ConstructorsClicked( int );
|
void ConstructorsClicked( int );
|
||||||
void SetEditCurrentArgument();
|
void SetEditCurrentArgument();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DataMap myData;
|
DataMap myData;
|
||||||
int myConstructorId;
|
int myConstructorId;
|
||||||
int myBlockPreview;
|
int myBlockPreview;
|
||||||
|
|
||||||
QFrame* aMainGrp;
|
QFrame* aMainGrp;
|
||||||
DlgRef_1Sel* Group1;
|
DlgRef_1Sel* Group1;
|
||||||
DlgRef_3Sel* Group2;
|
DlgRef_3Sel* Group2;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BASICGUI_MARKERDLG_H
|
#endif // BASICGUI_MARKERDLG_H
|
||||||
|
@ -787,3 +787,15 @@ void BasicGUI_PlaneDlg::addSubshapesToStudy()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BasicGUI_PlaneDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myPoint << myDir << myPoint1 << myPoint2 << myPoint3
|
||||||
|
<< myFace << myVec1 << myVec2 << myLCS;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -53,6 +53,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -933,6 +933,17 @@ void BasicGUI_PointDlg::addSubshapesToStudy()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BasicGUI_PointDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myRefPoint << myEdge << myLine1 << myLine2 << myFace;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// function : ClickParamCoord()
|
// function : ClickParamCoord()
|
||||||
// purpose :
|
// purpose :
|
||||||
|
@ -67,6 +67,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -472,3 +472,14 @@ void BasicGUI_VectorDlg::addSubshapesToStudy()
|
|||||||
GEOMBase::PublishSubObject( myPoint2.get() );
|
GEOMBase::PublishSubObject( myPoint2.get() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BasicGUI_VectorDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myPoint1 << myPoint2;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -51,6 +51,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -501,3 +501,15 @@ void BlocksGUI_BlockDlg::addSubshapesToStudy()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BlocksGUI_BlockDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myFace1 << myFace2 << myFace3
|
||||||
|
<< myFace4 << myFace5 << myFace6;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -51,6 +51,7 @@ protected:
|
|||||||
virtual bool isValid (QString&);
|
virtual bool isValid (QString&);
|
||||||
virtual bool execute (ObjectList&);
|
virtual bool execute (ObjectList&);
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -513,3 +513,15 @@ QString BlocksGUI_ExplodeDlg::getNewObjectName (int) const
|
|||||||
{
|
{
|
||||||
return QString::null;
|
return QString::null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BlocksGUI_ExplodeDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
GEOM::GeomObjPtr aGeomObjPtr(myObject);
|
||||||
|
res << aGeomObjPtr;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -49,6 +49,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual GEOM::GEOM_Object_ptr getFather( GEOM::GEOM_Object_ptr );
|
virtual GEOM::GEOM_Object_ptr getFather( GEOM::GEOM_Object_ptr );
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
virtual QString getNewObjectName (int CurrObj = -1) const;
|
virtual QString getNewObjectName (int CurrObj = -1) const;
|
||||||
|
|
||||||
|
@ -282,3 +282,15 @@ GEOM::GEOM_Object_ptr BlocksGUI_PropagateDlg::getFather( GEOM::GEOM_Object_ptr )
|
|||||||
{
|
{
|
||||||
return myObject;
|
return myObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BlocksGUI_PropagateDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
GEOM::GeomObjPtr aGeomObjPtr(myObject);
|
||||||
|
res << aGeomObjPtr;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -49,6 +49,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual GEOM::GEOM_Object_ptr getFather( GEOM::GEOM_Object_ptr );
|
virtual GEOM::GEOM_Object_ptr getFather( GEOM::GEOM_Object_ptr );
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
|
@ -570,3 +570,14 @@ void BlocksGUI_QuadFaceDlg::addSubshapesToStudy()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BlocksGUI_QuadFaceDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myShape1 << myShape2 << myShape3 << myShape4;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -58,6 +58,7 @@ protected:
|
|||||||
virtual bool isValid (QString&);
|
virtual bool isValid (QString&);
|
||||||
virtual bool execute (ObjectList&);
|
virtual bool execute (ObjectList&);
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -619,3 +619,15 @@ bool BlocksGUI_TrsfDlg::execute (ObjectList& objects)
|
|||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BlocksGUI_TrsfDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
GEOM::GeomObjPtr aGeomObjPtr(myShape);
|
||||||
|
res << aGeomObjPtr;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -56,6 +56,7 @@ protected:
|
|||||||
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
||||||
virtual bool isValid (QString&);
|
virtual bool isValid (QString&);
|
||||||
virtual bool execute (ObjectList&);
|
virtual bool execute (ObjectList&);
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -485,3 +485,14 @@ void BooleanGUI_Dialog::addSubshapesToStudy()
|
|||||||
for ( int i = 0; i < myObjects.count(); i++ )
|
for ( int i = 0; i < myObjects.count(); i++ )
|
||||||
GEOMBase::PublishSubObject( myObjects[i].get() );
|
GEOMBase::PublishSubObject( myObjects[i].get() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BooleanGUI_Dialog::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res(myObjects);
|
||||||
|
res << myObject1;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -52,6 +52,7 @@ protected:
|
|||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
|
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -255,3 +255,12 @@ void BuildGUI_CompoundDlg::restoreSubShapes( SALOMEDS::Study_ptr theStudy,
|
|||||||
mainFrame()->CheckBoxAddPrefix->isChecked() );
|
mainFrame()->CheckBoxAddPrefix->isChecked() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BuildGUI_CompoundDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
return myShapes;
|
||||||
|
}
|
||||||
|
@ -50,6 +50,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
|
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -521,3 +521,14 @@ void BuildGUI_EdgeDlg::addSubshapesToStudy()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BuildGUI_EdgeDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myPoint1 << myPoint2 << myWire << myCurve << myStartPoint;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -52,6 +52,7 @@ protected:
|
|||||||
virtual bool isValid (QString&);
|
virtual bool isValid (QString&);
|
||||||
virtual bool execute (ObjectList&);
|
virtual bool execute (ObjectList&);
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -698,3 +698,14 @@ void BuildGUI_FaceDlg::addSubshapesToStudy()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BuildGUI_FaceDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res(myWires);
|
||||||
|
res << myFace << myWire;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -56,6 +56,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -276,3 +276,12 @@ bool BuildGUI_ShellDlg::execute( ObjectList& objects )
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BuildGUI_ShellDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
return myFacesAndShells;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@ protected:
|
|||||||
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -406,3 +406,12 @@ bool BuildGUI_SolidDlg::execute( ObjectList& objects )
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BuildGUI_SolidDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
return myShells;
|
||||||
|
}
|
||||||
|
@ -48,7 +48,8 @@ protected:
|
|||||||
// redefined from GEOMBase_Helper
|
// redefined from GEOMBase_Helper
|
||||||
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -305,3 +305,12 @@ void BuildGUI_WireDlg::addSubshapesToStudy()
|
|||||||
for ( int i = 0; i < myEdgesAndWires.count(); i++ )
|
for ( int i = 0; i < myEdgesAndWires.count(); i++ )
|
||||||
GEOMBase::PublishSubObject( myEdgesAndWires[i].get() );
|
GEOMBase::PublishSubObject( myEdgesAndWires[i].get() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> BuildGUI_WireDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
return myEdgesAndWires;
|
||||||
|
}
|
||||||
|
@ -51,6 +51,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -948,3 +948,14 @@ bool EntityGUI_FeatureDetectorDlg::execute( ObjectList& objects )
|
|||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> EntityGUI_FeatureDetectorDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myFace;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -65,6 +65,7 @@ protected:
|
|||||||
// redefined from GEOMBase_Helper
|
// redefined from GEOMBase_Helper
|
||||||
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -1982,3 +1982,15 @@ bool EntityGUI_FieldDlg::execute()
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> EntityGUI_FieldDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
GEOM::GeomObjPtr aGeomObjPtr(myShape);
|
||||||
|
res << aGeomObjPtr;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -70,6 +70,7 @@ protected:
|
|||||||
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
||||||
virtual bool isValid (QString&);
|
virtual bool isValid (QString&);
|
||||||
virtual bool execute ();
|
virtual bool execute ();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
|
@ -281,3 +281,14 @@ void EntityGUI_IsolineDlg::ValueChangedInSpinBox(double newValue)
|
|||||||
{
|
{
|
||||||
displayPreview(true);
|
displayPreview(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> EntityGUI_IsolineDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myFace;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -56,6 +56,8 @@ protected:
|
|||||||
|
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -671,3 +671,12 @@ gp_Ax3 EntityGUI_PolylineDlg::WPlaneToLCS(GEOM::GeomObjPtr theGeomObj)
|
|||||||
|
|
||||||
return aLCS;
|
return aLCS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> EntityGUI_PolylineDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
return myWPlaneList;
|
||||||
|
}
|
||||||
|
@ -56,7 +56,8 @@ protected:
|
|||||||
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -948,3 +948,15 @@ void EntityGUI_SubShapeDlg::MeasureToggled()
|
|||||||
myGreaterFilterCombo->setEnabled(myGreaterFilterCheck->isChecked());
|
myGreaterFilterCombo->setEnabled(myGreaterFilterCheck->isChecked());
|
||||||
myApplyFilterButton->setEnabled(myLessFilterCheck->isChecked() || myGreaterFilterCheck->isChecked());
|
myApplyFilterButton->setEnabled(myLessFilterCheck->isChecked() || myGreaterFilterCheck->isChecked());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> EntityGUI_SubShapeDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
GEOM::GeomObjPtr aGeomObjPtr(myObject);
|
||||||
|
res << aGeomObjPtr;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -57,6 +57,7 @@ protected:
|
|||||||
virtual bool execute (ObjectList&);
|
virtual bool execute (ObjectList&);
|
||||||
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
|
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
|
||||||
virtual QString getNewObjectName (int CurrObj = -1) const;
|
virtual QString getNewObjectName (int CurrObj = -1) const;
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
void closeEvent (QCloseEvent*);
|
void closeEvent (QCloseEvent*);
|
||||||
|
|
||||||
|
@ -223,3 +223,14 @@ bool EntityGUI_SurfFromFaceDlg::ClickOnApply()
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> EntityGUI_SurfFromFaceDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myFace;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -51,6 +51,7 @@ protected:
|
|||||||
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -860,6 +860,7 @@ bool GEOMBase_Helper::onAccept( const bool publish, const bool useTransaction, b
|
|||||||
showError();
|
showError();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
QList<GEOM::GeomObjPtr> anObjectList = getSourceObjects( );
|
||||||
addSubshapesToStudy(); // add Sub-shapes if local selection
|
addSubshapesToStudy(); // add Sub-shapes if local selection
|
||||||
const int nbObjs = objects.size();
|
const int nbObjs = objects.size();
|
||||||
QStringList anEntryList;
|
QStringList anEntryList;
|
||||||
@ -921,6 +922,8 @@ bool GEOMBase_Helper::onAccept( const bool publish, const bool useTransaction, b
|
|||||||
}
|
}
|
||||||
anApp->putInfo( QObject::tr("GEOM_PRP_DONE") );
|
anApp->putInfo( QObject::tr("GEOM_PRP_DONE") );
|
||||||
}
|
}
|
||||||
|
if ( anObjectList.count() > 0 )
|
||||||
|
hideSourceObjects( anObjectList );
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1186,6 +1189,17 @@ void GEOMBase_Helper::addSubshapesToStudy()
|
|||||||
//Impemented in Dialogs, called from Accept method
|
//Impemented in Dialogs, called from Accept method
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//================================================================
|
||||||
|
// Function : getSourceObjects
|
||||||
|
// Purpose : Virtual method to get source objects
|
||||||
|
//================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> GEOMBase_Helper::getSourceObjects()
|
||||||
|
{
|
||||||
|
//Impemented in Dialogs, called from Accept method
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
//================================================================
|
//================================================================
|
||||||
// Function : getSelected
|
// Function : getSelected
|
||||||
// Purpose : Get selected object by specified type
|
// Purpose : Get selected object by specified type
|
||||||
@ -1356,6 +1370,19 @@ QList<GEOM::GeomObjPtr> GEOMBase_Helper::getSelected( const QList<TopAbs_ShapeEn
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
//================================================================
|
||||||
|
// Function : hideSourceObject
|
||||||
|
// Purpose :
|
||||||
|
//================================================================
|
||||||
|
void GEOMBase_Helper::hideSourceObjects( QList<GEOM::GeomObjPtr> theObject )
|
||||||
|
{
|
||||||
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
||||||
|
if ( resMgr->booleanValue( "Geometry", "hide_input_object", true) ) {
|
||||||
|
GEOM_Displayer* aDisplayer = getDisplayer();
|
||||||
|
for ( int i = 0; i < theObject.count(); i++ )
|
||||||
|
aDisplayer->Erase( theObject[i].get() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//================================================================
|
//================================================================
|
||||||
// Function : setIsApplyAndClose
|
// Function : setIsApplyAndClose
|
||||||
|
@ -171,6 +171,7 @@ protected:
|
|||||||
virtual QString getObjectName(GEOM::GEOM_Object_ptr object) const;
|
virtual QString getObjectName(GEOM::GEOM_Object_ptr object) const;
|
||||||
virtual bool extractPrefix() const;
|
virtual bool extractPrefix() const;
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
GEOM::GEOM_Object_ptr findObjectInFather( GEOM::GEOM_Object_ptr theFather, const QString& theName );
|
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::GEOM_Object_ptr findObjectInFather( GEOM::GEOM_Object_ptr theFather, int theIndex );
|
||||||
@ -181,6 +182,7 @@ protected:
|
|||||||
QList<GEOM::GeomObjPtr> getSelected( TopAbs_ShapeEnum type, int count, bool strict = true );
|
QList<GEOM::GeomObjPtr> getSelected( TopAbs_ShapeEnum type, int count, bool strict = true );
|
||||||
QList<GEOM::GeomObjPtr> getSelected( const QList<TopAbs_ShapeEnum>& types, int count, bool strict = true );
|
QList<GEOM::GeomObjPtr> getSelected( const QList<TopAbs_ShapeEnum>& types, int count, bool strict = true );
|
||||||
|
|
||||||
|
void hideSourceObjects( QList<GEOM::GeomObjPtr> theObjectList );
|
||||||
void SetIsPreview(const bool thePreview) {isPreview = thePreview;}
|
void SetIsPreview(const bool thePreview) {isPreview = thePreview;}
|
||||||
bool IsPreview() {return isPreview;}
|
bool IsPreview() {return isPreview;}
|
||||||
|
|
||||||
|
@ -3400,6 +3400,10 @@ Please, select face, shell or solid and try again</translation>
|
|||||||
<source>PREF_DIMENSIONS_SHOW_UNITS</source>
|
<source>PREF_DIMENSIONS_SHOW_UNITS</source>
|
||||||
<translation>Show units of measurement</translation>
|
<translation>Show units of measurement</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>PREF_HIDE_INPUT_OBJECT</source>
|
||||||
|
<translation>Hide input objects from the viewer</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>PREF_ISOS</source>
|
<source>PREF_ISOS</source>
|
||||||
<translation>Number of isolines</translation>
|
<translation>Number of isolines</translation>
|
||||||
|
@ -3400,6 +3400,10 @@ Choisissez une face, une coque ou un solide et essayez de nouveau</translation>
|
|||||||
<source>PREF_DIMENSIONS_SHOW_UNITS</source>
|
<source>PREF_DIMENSIONS_SHOW_UNITS</source>
|
||||||
<translation>Afficher les unités</translation>
|
<translation>Afficher les unités</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>PREF_HIDE_INPUT_OBJECT</source>
|
||||||
|
<translation type="unfinished">Hide input objects from the viewer</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>PREF_ISOS</source>
|
<source>PREF_ISOS</source>
|
||||||
<translation>Nombre d'isolignes</translation>
|
<translation>Nombre d'isolignes</translation>
|
||||||
|
@ -3343,6 +3343,10 @@
|
|||||||
<source>PREF_DIMENSIONS_SHOW_UNITS</source>
|
<source>PREF_DIMENSIONS_SHOW_UNITS</source>
|
||||||
<translation>測定単位の表示</translation>
|
<translation>測定単位の表示</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>PREF_HIDE_INPUT_OBJECT</source>
|
||||||
|
<translation type="unfinished">Hide input objects from the viewer</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>PREF_ISOS</source>
|
<source>PREF_ISOS</source>
|
||||||
<translation>輪郭の数</translation>
|
<translation>輪郭の数</translation>
|
||||||
|
@ -2539,6 +2539,9 @@ void GeometryGUI::createPreferences()
|
|||||||
addPreference( tr( "GEOM_PREVIEW" ), operationsGroup,
|
addPreference( tr( "GEOM_PREVIEW" ), operationsGroup,
|
||||||
LightApp_Preferences::Bool, "Geometry", "geom_preview" );
|
LightApp_Preferences::Bool, "Geometry", "geom_preview" );
|
||||||
|
|
||||||
|
addPreference( tr( "PREF_HIDE_INPUT_OBJECT" ), operationsGroup,
|
||||||
|
LightApp_Preferences::Bool, "Geometry", "hide_input_object" );
|
||||||
|
|
||||||
int DependencyViewId = addPreference( tr( "PREF_TAB_DEPENDENCY_VIEW" ) );
|
int DependencyViewId = addPreference( tr( "PREF_TAB_DEPENDENCY_VIEW" ) );
|
||||||
|
|
||||||
int treeGeneralGroup = addPreference( tr( "PREF_GROUP_GENERAL" ), DependencyViewId );
|
int treeGeneralGroup = addPreference( tr( "PREF_GROUP_GENERAL" ), DependencyViewId );
|
||||||
|
@ -404,3 +404,12 @@ void GenerationGUI_FillingDlg::addSubshapesToStudy()
|
|||||||
foreach( GEOM::GeomObjPtr o, myObjects )
|
foreach( GEOM::GeomObjPtr o, myObjects )
|
||||||
GEOMBase::PublishSubObject( o.get() );
|
GEOMBase::PublishSubObject( o.get() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> GenerationGUI_FillingDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
return myObjects;
|
||||||
|
}
|
||||||
|
@ -50,6 +50,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -544,3 +544,16 @@ bool GenerationGUI_PipeDlg::extractPrefix() const
|
|||||||
{
|
{
|
||||||
return myBaseObjects.count() > 1;
|
return myBaseObjects.count() > 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> GenerationGUI_PipeDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res(myBaseObjects);
|
||||||
|
res << myPath << myVec;
|
||||||
|
for (int i = 0; i < myLocations.count(); i++)
|
||||||
|
res << myLocations[i];
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -52,6 +52,7 @@ protected:
|
|||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
virtual bool extractPrefix() const;
|
virtual bool extractPrefix() const;
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -391,3 +391,16 @@ void GenerationGUI_PipePathDlg::addSubshapesToStudy()
|
|||||||
for (i = 0; i < myBase2Objects.count(); i++)
|
for (i = 0; i < myBase2Objects.count(); i++)
|
||||||
GEOMBase::PublishSubObject(myBase2Objects[i].get());
|
GEOMBase::PublishSubObject(myBase2Objects[i].get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> GenerationGUI_PipePathDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res(myBase1Objects);
|
||||||
|
res << myShape ;
|
||||||
|
for (int i = 0; i < myBase2Objects.count(); i++)
|
||||||
|
res << myBase2Objects[i];
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -49,6 +49,7 @@ protected:
|
|||||||
virtual bool isValid (QString&);
|
virtual bool isValid (QString&);
|
||||||
virtual bool execute (ObjectList&);
|
virtual bool execute (ObjectList&);
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -759,3 +759,14 @@ bool GenerationGUI_PrismDlg::extractPrefix() const
|
|||||||
{
|
{
|
||||||
return myBaseObjects.count() > 1;
|
return myBaseObjects.count() > 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> GenerationGUI_PrismDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res(myBaseObjects);
|
||||||
|
res << myVec << myPoint1 << myPoint2 ;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -54,6 +54,7 @@ protected:
|
|||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
virtual bool extractPrefix() const;
|
virtual bool extractPrefix() const;
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -375,3 +375,14 @@ bool GenerationGUI_RevolDlg::extractPrefix() const
|
|||||||
{
|
{
|
||||||
return myBaseObjects.count() > 1;
|
return myBaseObjects.count() > 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> GenerationGUI_RevolDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res(myBaseObjects);
|
||||||
|
res << myAxis;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -51,6 +51,7 @@ protected:
|
|||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
virtual bool extractPrefix() const;
|
virtual bool extractPrefix() const;
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -319,3 +319,21 @@ GEOM::GEOM_Object_ptr GroupGUI_BooleanDlg::getFather(GEOM::GEOM_Object_ptr theOb
|
|||||||
}
|
}
|
||||||
return aFatherObj._retn();
|
return aFatherObj._retn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> GroupGUI_BooleanDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
for (int i = 0; i < myListShapes.length(); i++) {
|
||||||
|
GEOM::GeomObjPtr aGeomObjPtr(myListShapes[i]);
|
||||||
|
res << aGeomObjPtr;
|
||||||
|
}
|
||||||
|
for (int i = 0; i < myListTools.length(); i++) {
|
||||||
|
GEOM::GeomObjPtr aGeomObjPtr(myListTools[i]);
|
||||||
|
res << aGeomObjPtr;
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -53,6 +53,7 @@ protected:
|
|||||||
virtual bool isValid (QString&);
|
virtual bool isValid (QString&);
|
||||||
virtual bool execute (ObjectList&);
|
virtual bool execute (ObjectList&);
|
||||||
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
|
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -224,10 +224,12 @@ GroupGUI_GroupDlg::GroupGUI_GroupDlg (Mode mode, GeometryGUI* theGeometryGUI, QW
|
|||||||
GroupGUI_GroupDlg::~GroupGUI_GroupDlg()
|
GroupGUI_GroupDlg::~GroupGUI_GroupDlg()
|
||||||
{
|
{
|
||||||
GEOM_Displayer* aDisplayer = getDisplayer();
|
GEOM_Displayer* aDisplayer = getDisplayer();
|
||||||
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
||||||
|
bool isHideObjects = resMgr->booleanValue( "Geometry", "hide_input_object", true);
|
||||||
if (myWasHiddenMain) {
|
if (myWasHiddenMain) {
|
||||||
aDisplayer->Erase(myMainObj);
|
|
||||||
myIsHiddenMain = true;
|
myIsHiddenMain = true;
|
||||||
} else {
|
}
|
||||||
|
else if (!isHideObjects) {
|
||||||
aDisplayer->Display(myMainObj);
|
aDisplayer->Display(myMainObj);
|
||||||
myIsHiddenMain = false;
|
myIsHiddenMain = false;
|
||||||
}
|
}
|
||||||
@ -1429,3 +1431,15 @@ void GroupGUI_GroupDlg::MeasureToggled()
|
|||||||
myGreaterFilterCombo->setEnabled(myGreaterFilterCheck->isChecked());
|
myGreaterFilterCombo->setEnabled(myGreaterFilterCheck->isChecked());
|
||||||
myApplyFilterButton->setEnabled(myLessFilterCheck->isChecked() || myGreaterFilterCheck->isChecked());
|
myApplyFilterButton->setEnabled(myLessFilterCheck->isChecked() || myGreaterFilterCheck->isChecked());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> GroupGUI_GroupDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
GEOM::GeomObjPtr aGeomObjPtr1(myMainObj), aGeomObjPtr2(myInPlaceObj);
|
||||||
|
res << aGeomObjPtr1 << aGeomObjPtr2;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -65,6 +65,7 @@ protected:
|
|||||||
virtual bool isValid (QString&);
|
virtual bool isValid (QString&);
|
||||||
virtual bool execute (ObjectList&);
|
virtual bool execute (ObjectList&);
|
||||||
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
|
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
void closeEvent (QCloseEvent*);
|
void closeEvent (QCloseEvent*);
|
||||||
|
|
||||||
|
@ -352,3 +352,14 @@ void MeasureGUI_BndBoxDlg::addSubshapesToStudy()
|
|||||||
{
|
{
|
||||||
GEOMBase::PublishSubObject( myObj.get() );
|
GEOMBase::PublishSubObject( myObj.get() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> MeasureGUI_BndBoxDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myObj;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -52,6 +52,7 @@ protected:
|
|||||||
void redisplayPreview();
|
void redisplayPreview();
|
||||||
virtual void processObject();
|
virtual void processObject();
|
||||||
virtual SALOME_Prs* buildPrs();
|
virtual SALOME_Prs* buildPrs();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -349,3 +349,14 @@ void MeasureGUI_CenterMassDlg::addSubshapesToStudy()
|
|||||||
{
|
{
|
||||||
GEOMBase::PublishSubObject( myObj.get() );
|
GEOMBase::PublishSubObject( myObj.get() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> MeasureGUI_CenterMassDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myObj;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -49,6 +49,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
|
@ -546,6 +546,17 @@ void MeasureGUI_DistanceDlg::addSubshapesToStudy()
|
|||||||
GEOMBase::PublishSubObject( myObj2.get() );
|
GEOMBase::PublishSubObject( myObj2.get() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> MeasureGUI_DistanceDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myObj1 << myObj2;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// function : MeasureGUI_DistanceGroup
|
// function : MeasureGUI_DistanceGroup
|
||||||
// purpose :
|
// purpose :
|
||||||
|
@ -101,6 +101,7 @@ protected:
|
|||||||
virtual bool execute (ObjectList&);
|
virtual bool execute (ObjectList&);
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
virtual QString getNewObjectName (int CurrObj = -1) const;
|
virtual QString getNewObjectName (int CurrObj = -1) const;
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
void redisplayPreview();
|
void redisplayPreview();
|
||||||
virtual void processObject();
|
virtual void processObject();
|
||||||
|
@ -677,3 +677,14 @@ double MeasureGUI_FastCheckIntersectionsDlg::getTolerance()
|
|||||||
return 0.0;
|
return 0.0;
|
||||||
return aVal;
|
return aVal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> MeasureGUI_FastCheckIntersectionsDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myObj1 << myObj2;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -50,6 +50,7 @@ protected:
|
|||||||
virtual bool isValid(QString &);
|
virtual bool isValid(QString &);
|
||||||
virtual bool execute(ObjectList &);
|
virtual bool execute(ObjectList &);
|
||||||
virtual bool extractPrefix() const;
|
virtual bool extractPrefix() const;
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
|
@ -333,3 +333,15 @@ GEOM::GEOM_Object_ptr MeasureGUI_GetNonBlocksDlg::getFather (GEOM::GEOM_Object_p
|
|||||||
{
|
{
|
||||||
return myObj;
|
return myObj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> MeasureGUI_GetNonBlocksDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
GEOM::GeomObjPtr aGeomObjPtr(myObj);
|
||||||
|
res << aGeomObjPtr;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -52,6 +52,7 @@ protected:
|
|||||||
virtual bool isValid (QString &msg);
|
virtual bool isValid (QString &msg);
|
||||||
virtual bool execute (ObjectList&);
|
virtual bool execute (ObjectList&);
|
||||||
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
|
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
|
@ -360,3 +360,15 @@ bool MeasureGUI_NormaleDlg::execute (ObjectList& objects)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> MeasureGUI_NormaleDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
GEOM::GeomObjPtr aGeomObjPtr1(myFace), aGeomObjPtr2(myPoint);
|
||||||
|
res << aGeomObjPtr1 << aGeomObjPtr2;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -45,6 +45,7 @@ protected:
|
|||||||
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -306,3 +306,15 @@ void OperationGUI_ArchimedeDlg::ValueChangedInSpinBox(double newValue)
|
|||||||
{
|
{
|
||||||
processPreview();
|
processPreview();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> OperationGUI_ArchimedeDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
GEOM::GeomObjPtr aGeomObjPtr(myShape);
|
||||||
|
res << aGeomObjPtr;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -47,7 +47,8 @@ protected:
|
|||||||
// redefined from GEOMBase_Helper
|
// redefined from GEOMBase_Helper
|
||||||
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -966,3 +966,15 @@ void OperationGUI_ChamferDlg::RadioButtonPressed()
|
|||||||
|
|
||||||
processPreview();
|
processPreview();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> OperationGUI_ChamferDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
GEOM::GeomObjPtr aGeomObjPtr(myShape);
|
||||||
|
res << aGeomObjPtr;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -66,6 +66,7 @@ protected:
|
|||||||
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
virtual GEOM::GEOM_IOperations_ptr createOperation();
|
||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void ClickOnOk();
|
void ClickOnOk();
|
||||||
|
@ -395,3 +395,14 @@ bool OperationGUI_ExtrudedFeatureDlg::execute (ObjectList& objects)
|
|||||||
// {
|
// {
|
||||||
// GEOMBase::PublishSubObject( myObject2.get() );
|
// GEOMBase::PublishSubObject( myObject2.get() );
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> OperationGUI_ExtrudedFeatureDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
res << myObject1 << myObject2;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
@ -62,6 +62,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
// virtual void addSubshapesToStudy();
|
// virtual void addSubshapesToStudy();
|
||||||
|
virtual QList<GEOM::GeomObjPtr> getSourceObjects();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -425,3 +425,15 @@ double OperationGUI_Fillet1d2dDlg::getRadius() const
|
|||||||
{
|
{
|
||||||
return GroupVertexes->SpinBox_DX->value();
|
return GroupVertexes->SpinBox_DX->value();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : getSourceObjects
|
||||||
|
// purpose : virtual method to get source objects
|
||||||
|
//=================================================================================
|
||||||
|
QList<GEOM::GeomObjPtr> OperationGUI_Fillet1d2dDlg::getSourceObjects()
|
||||||
|
{
|
||||||
|
QList<GEOM::GeomObjPtr> res;
|
||||||
|
GEOM::GeomObjPtr aGeomObjPtr(myShape);
|
||||||
|
res << aGeomObjPtr;
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user