<parameter name="base_vectors_length" value="1" />
<parameter name="marker_scale" value="3" />
<parameter name="geom_preview" value="true" />
+ <parameter name="hide_input_object" value="true" />
<parameter name="material" value="[ Default ]" />
<parameter name="predef_materials" value="true" />
<parameter name="edge_width" value="1" />
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;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
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
// purpose :
virtual bool isValid (QString&);
virtual bool execute (ObjectList&);
virtual void restoreSubShapes (SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr);
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
GEOMBase::PublishSubObject( myPoints[i].get() );
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> AdvancedGUI_SmoothingSurfaceDlg::getSourceObjects()
+{
+ return myPoints;
+}
+
//=================================================================================
// function : getNbPoints()
// purpose : Returns the number of points in myPoints list.
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
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;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
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;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
-
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
GEOMBase::PublishSubObject( myPoints[i].get() );
}
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> BasicGUI_CurveDlg::getSourceObjects()
+{
+ return myPoints;
+}
//=================================================================================
// function : CreationModeChanged
// purpose :
virtual bool isValid (QString&);
virtual bool execute (ObjectList&);
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
GEOMBase::PublishSubObject( myDir.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;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
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;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
-
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
+
private:
void Init();
void enterEvent( QEvent* );
default:
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;
}
//=================================================================================
typedef QMap< int, SalomeApp_DoubleSpinBox* > DataMap;
public:
- BasicGUI_MarkerDlg( GeometryGUI*, QWidget* );
- virtual ~BasicGUI_MarkerDlg();
- void Init();
+ BasicGUI_MarkerDlg( GeometryGUI*, QWidget* );
+ virtual ~BasicGUI_MarkerDlg();
+ void Init();
protected:
- virtual GEOM::GEOM_IOperations_ptr createOperation();
- virtual bool isValid( QString& );
- virtual bool execute( ObjectList& );
- virtual void displayPreview ( const bool = false,
- const bool = true,
- const bool = true,
- const double = -1 );
- virtual void addSubshapesToStudy();
+ virtual GEOM::GEOM_IOperations_ptr createOperation();
+ virtual bool isValid( QString& );
+ virtual bool execute( ObjectList& );
+ virtual void displayPreview ( const bool = false,
+ const bool = true,
+ const bool = true,
+ const double = -1 );
+ virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
- void enterEvent( QEvent* );
- void onSelectionDone0();
+ void enterEvent( QEvent* );
+ void onSelectionDone0();
- GEOM::GeomObjPtr myShape;
- GEOM::GeomObjPtr myPoint;
- GEOM::GeomObjPtr myVectorX;
- GEOM::GeomObjPtr myVectorY;
+ GEOM::GeomObjPtr myShape;
+ GEOM::GeomObjPtr myPoint;
+ GEOM::GeomObjPtr myVectorX;
+ GEOM::GeomObjPtr myVectorY;
private slots:
- void onOk();
- bool onApply();
- void onActivate();
- void onDeactivate();
- void onSelectionDone();
- void onValueChanged( double );
- void ConstructorsClicked( int );
- void SetEditCurrentArgument();
+ void onOk();
+ bool onApply();
+ void onActivate();
+ void onDeactivate();
+ void onSelectionDone();
+ void onValueChanged( double );
+ void ConstructorsClicked( int );
+ void SetEditCurrentArgument();
private:
- DataMap myData;
- int myConstructorId;
- int myBlockPreview;
+ DataMap myData;
+ int myConstructorId;
+ int myBlockPreview;
- QFrame* aMainGrp;
- DlgRef_1Sel* Group1;
- DlgRef_3Sel* Group2;
+ QFrame* aMainGrp;
+ DlgRef_1Sel* Group1;
+ DlgRef_3Sel* Group2;
};
#endif // BASICGUI_MARKERDLG_H
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;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
}
}
+//=================================================================================
+// 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()
// purpose :
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
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;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
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;
+}
virtual bool isValid (QString&);
virtual bool execute (ObjectList&);
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
{
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;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual GEOM::GEOM_Object_ptr getFather( GEOM::GEOM_Object_ptr );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
virtual QString getNewObjectName (int CurrObj = -1) const;
{
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;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual GEOM::GEOM_Object_ptr getFather( GEOM::GEOM_Object_ptr );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private slots:
void ClickOnOk();
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;
+}
virtual bool isValid (QString&);
virtual bool execute (ObjectList&);
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
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;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid (QString&);
virtual bool execute (ObjectList&);
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
for ( int i = 0; i < myObjects.count(); i++ )
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;
+}
virtual bool execute( ObjectList& );
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
mainFrame()->CheckBoxAddPrefix->isChecked() );
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> BuildGUI_CompoundDlg::getSourceObjects()
+{
+ return myShapes;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
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;
+}
virtual bool isValid (QString&);
virtual bool execute (ObjectList&);
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
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;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
return true;
}
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> BuildGUI_ShellDlg::getSourceObjects()
+{
+ return myFacesAndShells;
+}
+
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
return true;
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> BuildGUI_SolidDlg::getSourceObjects()
+{
+ return myShells;
+}
// redefined from GEOMBase_Helper
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
- virtual bool execute( ObjectList& );
+ virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
for ( int i = 0; i < myEdgesAndWires.count(); i++ )
GEOMBase::PublishSubObject( myEdgesAndWires[i].get() );
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> BuildGUI_WireDlg::getSourceObjects()
+{
+ return myEdgesAndWires;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
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;
+}
// redefined from GEOMBase_Helper
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
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;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid (QString&);
virtual bool execute ();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private slots:
void ClickOnOk();
{
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;
+}
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
+
private:
void Init();
return aLCS;
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> EntityGUI_PolylineDlg::getSourceObjects()
+{
+ return myWPlaneList;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
-
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
+
private:
void Init();
myGreaterFilterCombo->setEnabled(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;
+}
virtual bool execute (ObjectList&);
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
virtual QString getNewObjectName (int CurrObj = -1) const;
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
void closeEvent (QCloseEvent*);
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;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
showError();
}
else {
+ QList<GEOM::GeomObjPtr> anObjectList = getSourceObjects( );
addSubshapesToStudy(); // add Sub-shapes if local selection
const int nbObjs = objects.size();
QStringList anEntryList;
}
anApp->putInfo( QObject::tr("GEOM_PRP_DONE") );
}
+ if ( anObjectList.count() > 0 )
+ hideSourceObjects( anObjectList );
result = true;
}
else
//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
// Purpose : Get selected object by specified type
}
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
virtual QString getObjectName(GEOM::GEOM_Object_ptr object) const;
virtual bool extractPrefix() const;
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, int theIndex );
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 );
+ void hideSourceObjects( QList<GEOM::GeomObjPtr> theObjectList );
void SetIsPreview(const bool thePreview) {isPreview = thePreview;}
bool IsPreview() {return isPreview;}
<source>PREF_DIMENSIONS_SHOW_UNITS</source>
<translation>Show units of measurement</translation>
</message>
+ <message>
+ <source>PREF_HIDE_INPUT_OBJECT</source>
+ <translation>Hide input objects from the viewer</translation>
+ </message>
<message>
<source>PREF_ISOS</source>
<translation>Number of isolines</translation>
<source>PREF_DIMENSIONS_SHOW_UNITS</source>
<translation>Afficher les unités</translation>
</message>
+ <message>
+ <source>PREF_HIDE_INPUT_OBJECT</source>
+ <translation type="unfinished">Hide input objects from the viewer</translation>
+ </message>
<message>
<source>PREF_ISOS</source>
<translation>Nombre d'isolignes</translation>
<source>PREF_DIMENSIONS_SHOW_UNITS</source>
<translation>測定単位の表示</translation>
</message>
+ <message>
+ <source>PREF_HIDE_INPUT_OBJECT</source>
+ <translation type="unfinished">Hide input objects from the viewer</translation>
+ </message>
<message>
<source>PREF_ISOS</source>
<translation>輪郭の数</translation>
addPreference( tr( "GEOM_PREVIEW" ), operationsGroup,
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 treeGeneralGroup = addPreference( tr( "PREF_GROUP_GENERAL" ), DependencyViewId );
foreach( GEOM::GeomObjPtr o, myObjects )
GEOMBase::PublishSubObject( o.get() );
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> GenerationGUI_FillingDlg::getSourceObjects()
+{
+ return myObjects;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
{
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;
+}
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
virtual bool extractPrefix() const;
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
for (i = 0; i < myBase2Objects.count(); i++)
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;
+}
virtual bool isValid (QString&);
virtual bool execute (ObjectList&);
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
{
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;
+}
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
virtual bool extractPrefix() const;
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
{
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;
+}
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
virtual bool extractPrefix() const;
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
}
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;
+}
virtual bool isValid (QString&);
virtual bool execute (ObjectList&);
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
GroupGUI_GroupDlg::~GroupGUI_GroupDlg()
{
GEOM_Displayer* aDisplayer = getDisplayer();
+ SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
+ bool isHideObjects = resMgr->booleanValue( "Geometry", "hide_input_object", true);
if (myWasHiddenMain) {
- aDisplayer->Erase(myMainObj);
myIsHiddenMain = true;
- } else {
+ }
+ else if (!isHideObjects) {
aDisplayer->Display(myMainObj);
myIsHiddenMain = false;
}
myGreaterFilterCombo->setEnabled(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;
+}
virtual bool isValid (QString&);
virtual bool execute (ObjectList&);
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
void closeEvent (QCloseEvent*);
{
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;
+}
void redisplayPreview();
virtual void processObject();
virtual SALOME_Prs* buildPrs();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
{
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;
+}
virtual bool isValid( QString& );
virtual void addSubshapesToStudy();
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private slots:
void ClickOnOk();
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
// purpose :
virtual bool execute (ObjectList&);
virtual void addSubshapesToStudy();
virtual QString getNewObjectName (int CurrObj = -1) const;
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
void redisplayPreview();
virtual void processObject();
return 0.0;
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;
+}
virtual bool isValid(QString &);
virtual bool execute(ObjectList &);
virtual bool extractPrefix() const;
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private slots:
{
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;
+}
virtual bool isValid (QString &msg);
virtual bool execute (ObjectList&);
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private slots:
void ClickOnOk();
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;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
{
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;
+}
// redefined from GEOMBase_Helper
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
- virtual bool execute( ObjectList& );
+ virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
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;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private slots:
void ClickOnOk();
// {
// 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;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
// virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
{
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;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private slots:
void ClickOnOk();
processPreview();
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> OperationGUI_FilletDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ GEOM::GeomObjPtr aGeomObjPtr(myShape);
+ res << aGeomObjPtr;
+ return res;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private slots:
void ClickOnOk();
//bool IsEnabled = GroupPoints->ComboBox1->currentIndex() < 3;
processPreview();
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> OperationGUI_GetShapesOnShapeDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ GEOM::GeomObjPtr aGeomObjPtr1(myObject1), aGeomObjPtr2(myObject2);
+ res << aGeomObjPtr1 << aGeomObjPtr2;
+ return res;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
return aPref;
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> OperationGUI_GetSharedShapesDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ GEOM::ListOfGO aListPtr(myListShapes);
+ for (int i = 0; i < aListPtr.length(); i++) {
+ GEOM::GeomObjPtr aGeomObjPtr(aListPtr[i]);
+ res << aGeomObjPtr;
+ }
+ return res;
+}
virtual bool execute (ObjectList&);
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
QString getPrefixByType() const;
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
return aLimit;
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> OperationGUI_PartitionDlg::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;
+ }
+ for (int i = 0; i < myListRemoveInside.length(); i++) {
+ GEOM::GeomObjPtr aGeomObjPtr(myListRemoveInside[i]);
+ res << aGeomObjPtr;
+ }
+ for (int i = 0; i < myListKeepInside.length(); i++) {
+ GEOM::GeomObjPtr aGeomObjPtr(myListKeepInside[i]);
+ res << aGeomObjPtr;
+ }
+ return res;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
return isOK;
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> OperationGUI_TransferDataDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ res << myObject1 << myObject2;
+ return res;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
GEOMBase::PublishSubObject( myPoint2.get() );
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> PrimitiveGUI_BoxDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ res << myPoint1 << myPoint2;
+ return res;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
GEOMBase::PublishSubObject( myDir.get() );
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> PrimitiveGUI_ConeDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ res << myPoint << myDir;
+ return res;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
}
}
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> PrimitiveGUI_CylinderDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ res << myPoint << myDir;
+ return res;
+}
+
//=================================================================================
// function : ActivateAngle()
// purpose : enable the
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
break;
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> PrimitiveGUI_DiskDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ res << myPoint << myDir << myPoint1 << myPoint2 << myPoint3;
+ return res;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
-
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
GEOMBase::PublishSubObject( myFace.get() );
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> PrimitiveGUI_FaceDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ res << myEdge << myFace;
+ return res;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
GEOMBase::PublishSubObject( myPoint.get() );
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> PrimitiveGUI_SphereDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ res << myPoint;
+ return res;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
GEOMBase::PublishSubObject( myDir.get() );
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> PrimitiveGUI_TorusDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ res << myPoint << myDir;
+ return res;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
{
mainFrame()->GroupBoxName->setEnabled( isCreateCopy );
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_ChangeOrientationDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ GEOM::GeomObjPtr aGeomObjPtr(myObject);
+ res << aGeomObjPtr;
+ return res;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
this, SLOT(SelectionIntoArgument()));
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_CloseContourDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ GEOM::GeomObjPtr aGeomObjPtr(myObject);
+ res << aGeomObjPtr;
+ return res;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
for ( int i = 0; i < myPoints.count(); ++i )
GEOMBase::PublishSubObject( myPoints[i].get() );
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_DivideEdgeDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res(myPoints);
+ GEOM::GeomObjPtr aGeomObjPtr(myObject);
+ res << aGeomObjPtr;
+ return res;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
{
return myObj;
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_FreeBoundDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ GEOM::GeomObjPtr aGeomObjPtr(myObj);
+ res << aGeomObjPtr;
+ return res;
+}
virtual bool execute (ObjectList&);
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
virtual QString getNewObjectName (int CurrObj = -1) const;
-
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
+
private:
void Init();
void enterEvent (QEvent*);
{
return myObj;
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_FreeFacesDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ GEOM::GeomObjPtr aGeomObjPtr(myObj);
+ res << aGeomObjPtr;
+ return res;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr);
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
for (int i = 0; i < myPoints.count(); i++)
GEOMBase::PublishSubObject(myPoints[i].get());
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_FuseEdgesDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res(myPoints);
+ GEOM::GeomObjPtr aGeomObjPtr(myShape);
+ res << aGeomObjPtr;
+ return res;
+}
virtual bool isValid (QString&);
virtual bool execute (ObjectList&);
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private slots:
void ClickOnOk();
clearTemporary();
GEOMBase_Skeleton::ClickOnCancel();
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_GlueDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res(myObjects);
+ for (int i = 0; i < myTmpObjs.count(); i++)
+ res << myTmpObjs[i];
+ return res;
+}
virtual bool isValid (QString&);
virtual bool execute (ObjectList&);
virtual void restoreSubShapes (SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr);
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
mainFrame()->CheckBoxAddPrefix->isChecked());
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_LimitToleranceDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ GEOM::GeomObjPtr aGeomObjPtr(myObject);
+ res << aGeomObjPtr;
+ return res;
+}
virtual bool isValid (QString&);
virtual bool execute (ObjectList&);
virtual void restoreSubShapes (SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr);
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
mainFrame()->CheckBoxAddPrefix->isChecked() );
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_RemoveExtraEdgesDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ GEOM::GeomObjPtr aGeomObjPtr(myObject);
+ res << aGeomObjPtr;
+ return res;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
msg = tr("GEOM_FREE_BOUNDS_ERROR");
SUIT_MessageBox::information(this, tr("GEOM_FREE_BOUNDS_TLT"), msg);
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_RemoveHolesDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ GEOM::GeomObjPtr aGeomObjPtr(myObject);
+ res << aGeomObjPtr;
+ return res;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
this, SLOT(SelectionIntoArgument()));
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_RemoveIntWiresDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ GEOM::GeomObjPtr aGeomObjPtr(myObject);
+ res << aGeomObjPtr;
+ return res;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
mainFrame()->CheckBoxAddPrefix->isChecked());
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_RemoveWebsDlg::getSourceObjects()
+{
+ return myObjects;
+}
virtual bool isValid (QString&);
virtual bool execute (ObjectList&);
virtual void restoreSubShapes (SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr);
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
msg = tr( "GEOM_FREE_BOUNDS_ERROR" );
SUIT_MessageBox::information( this, tr( "GEOM_FREE_BOUNDS_TLT" ), msg );
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_SewingDlg::getSourceObjects()
+{
+ return myObjects;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
}
myOpList->blockSignals( false );
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_ShapeProcessDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ GEOM::ListOfGO aListPtr(myObjects);
+ for (int i = 0; i < aListPtr.length(); i++) {
+ GEOM::GeomObjPtr aGeomObjPtr(aListPtr[i]);
+ res << aGeomObjPtr;
+ }
+ return res;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void init();
mainFrame()->CheckBoxAddPrefix->isChecked());
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_SuppressFacesDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ GEOM::GeomObjPtr aGeomObjPtr(myObject);
+ res << aGeomObjPtr;
+ return res;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
mainFrame()->CheckBoxAddPrefix->isChecked() );
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> RepairGUI_UnionFacesDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ GEOM::GeomObjPtr aGeomObjPtr(myObject);
+ res << aGeomObjPtr;
+ return res;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
return res;
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> TransformationGUI_ExtensionDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ res << myBase;
+ return res;
+}
virtual GEOM::GEOM_IOperations_ptr createOperation();
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
}
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> TransformationGUI_MirrorDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res(myObjects);
+ res << myArgument;
+ return res;
+}
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
}
}
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> TransformationGUI_MultiRotationDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ res << myBase << myVector;
+ return res;
+}
+
//=================================================================================
// function : restoreSubShapes
// purpose :
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
}
}
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> TransformationGUI_MultiTranslationDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ res << myBase << myVectorU << myVectorV;
+ return res;
+}
+
//=================================================================================
// function : restoreSubShapes
// purpose :
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
{
mainFrame()->GroupBoxName->setEnabled( GroupPoints->CheckButton1->isChecked() );
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> TransformationGUI_OffsetDlg::getSourceObjects()
+{
+ return myObjects;
+}
virtual bool isValid( QString& );
virtual bool execute( ObjectList& );
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
if ( getConstructorId() == 2 )
GEOMBase::PublishSubObject( myPath.get() );
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> TransformationGUI_PositionDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res(myObjects);
+ res << myStartLCS << myEndLCS << myPath;
+ return res;
+}
virtual bool execute( ObjectList& );
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
GEOMBase::PublishSubObject( myObject1.get() );
GEOMBase::PublishSubObject( myObject2.get() );
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> TransformationGUI_ProjectionDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res;
+ res << myObject1 << myObject2;
+ return res;
+}
virtual bool isValid (QString&);
virtual bool execute (ObjectList&);
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
}
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> TransformationGUI_RotationDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res(myObjects);
+ res << myAxis << myCentPoint << myPoint1 << myPoint2;
+ return res;
+}
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
GEOMBase::PublishSubObject( myPoint.get() );
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> TransformationGUI_ScaleDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res(myObjects);
+ res << myPoint;
+ return res;
+}
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();
GEOMBase_Helper::displayPreview( aPrs, false, true );
}
}
+
+//=================================================================================
+// function : getSourceObjects
+// purpose : virtual method to get source objects
+//=================================================================================
+QList<GEOM::GeomObjPtr> TransformationGUI_TranslationDlg::getSourceObjects()
+{
+ QList<GEOM::GeomObjPtr> res(myObjects);
+ res << myVector << myPoint1 << myPoint2;
+ return res;
+}
virtual bool execute( ObjectList& );
virtual void addSubshapesToStudy();
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
private:
void Init();