mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 09:42:03 +05:00
first executable version
This commit is contained in:
parent
3e266f6b54
commit
e0d9c97d8a
@ -63,7 +63,7 @@ private :
|
||||
|
||||
DlgRef_1Sel_QTD* GroupPoints;
|
||||
GEOM::ListOfGO_var myPoints;
|
||||
list<GEOM::GEOM_Object_var> myOrderedSel;//!< This list used for managing orderes selection
|
||||
std::list<GEOM::GEOM_Object_var> myOrderedSel;//!< This list used for managing orderes selection
|
||||
|
||||
private slots:
|
||||
void ClickOnOk();
|
||||
|
@ -10,6 +10,8 @@
|
||||
#ifndef DLGREF_1SEL5SPIN1CHECK_QTD_H
|
||||
#define DLGREF_1SEL5SPIN1CHECK_QTD_H
|
||||
|
||||
#include "GEOM_DlgRef.hxx"
|
||||
|
||||
#include <qvariant.h>
|
||||
#include <qwidget.h>
|
||||
|
||||
@ -24,7 +26,7 @@ class QSpinBox;
|
||||
class QCheckBox;
|
||||
class QLineEdit;
|
||||
|
||||
class DlgRef_1Sel5Spin1Check_QTD : public QWidget
|
||||
class GEOM_DLGREF_EXPORT DlgRef_1Sel5Spin1Check_QTD : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -1,41 +1,41 @@
|
||||
// File : DlgRef_2Sel2Spin.cxx
|
||||
// Author : Dmitry MATVEITCHEV
|
||||
// Module : GEOM
|
||||
// $Header:
|
||||
|
||||
#include "DlgRef_2Sel3Spin2Rb.h"
|
||||
#include <iostream.h>
|
||||
|
||||
#include <qlayout.h>
|
||||
#include <qspinbox.h>
|
||||
#include <qgroupbox.h>
|
||||
#include <qradiobutton.h>
|
||||
|
||||
/*
|
||||
* Constructs a DlgRef_2Sel3Spin2Rb which is a child of 'parent', with the
|
||||
* name 'name' and widget flags set to 'f'
|
||||
*/
|
||||
DlgRef_2Sel3Spin2Rb::DlgRef_2Sel3Spin2Rb(QWidget* parent, const char* name, WFlags fl)
|
||||
:DlgRef_2Sel3Spin2Rb_QTD(parent, name, fl)
|
||||
{
|
||||
SpinBox1->close(TRUE);
|
||||
SpinBox2->close(TRUE);
|
||||
SpinBox3->close(TRUE);
|
||||
RadioButton1->setChecked(true);
|
||||
SpinBox_DX = new DlgRef_SpinBox(GroupBox1, "SpinBox_DX");
|
||||
Layout2->addMultiCellWidget(SpinBox_DX, 0, 0, 2, 4);
|
||||
SpinBox_DY = new DlgRef_SpinBox(GroupBox1, "SpinBox_DY");
|
||||
Layout2->addWidget(SpinBox_DY, 1, 2);
|
||||
SpinBox_DZ = new DlgRef_SpinBox(GroupBox1, "SpinBox_DZ");
|
||||
Layout2->addWidget(SpinBox_DZ, 1, 4);
|
||||
SpinBox_DY->setEnabled(false);
|
||||
SpinBox_DZ->setEnabled(false);
|
||||
}
|
||||
|
||||
/*
|
||||
* Destroys the object and frees any allocated resources
|
||||
*/
|
||||
DlgRef_2Sel3Spin2Rb::~DlgRef_2Sel3Spin2Rb()
|
||||
{
|
||||
// no need to delete child widgets, Qt does it all for us
|
||||
}
|
||||
// File : DlgRef_2Sel2Spin.cxx
|
||||
// Author : Dmitry MATVEITCHEV
|
||||
// Module : GEOM
|
||||
// $Header:
|
||||
|
||||
#include "DlgRef_2Sel3Spin2Rb.h"
|
||||
#include <iostream>
|
||||
|
||||
#include <qlayout.h>
|
||||
#include <qspinbox.h>
|
||||
#include <qgroupbox.h>
|
||||
#include <qradiobutton.h>
|
||||
|
||||
/*
|
||||
* Constructs a DlgRef_2Sel3Spin2Rb which is a child of 'parent', with the
|
||||
* name 'name' and widget flags set to 'f'
|
||||
*/
|
||||
DlgRef_2Sel3Spin2Rb::DlgRef_2Sel3Spin2Rb(QWidget* parent, const char* name, WFlags fl)
|
||||
:DlgRef_2Sel3Spin2Rb_QTD(parent, name, fl)
|
||||
{
|
||||
SpinBox1->close(TRUE);
|
||||
SpinBox2->close(TRUE);
|
||||
SpinBox3->close(TRUE);
|
||||
RadioButton1->setChecked(true);
|
||||
SpinBox_DX = new DlgRef_SpinBox(GroupBox1, "SpinBox_DX");
|
||||
Layout2->addMultiCellWidget(SpinBox_DX, 0, 0, 2, 4);
|
||||
SpinBox_DY = new DlgRef_SpinBox(GroupBox1, "SpinBox_DY");
|
||||
Layout2->addWidget(SpinBox_DY, 1, 2);
|
||||
SpinBox_DZ = new DlgRef_SpinBox(GroupBox1, "SpinBox_DZ");
|
||||
Layout2->addWidget(SpinBox_DZ, 1, 4);
|
||||
SpinBox_DY->setEnabled(false);
|
||||
SpinBox_DZ->setEnabled(false);
|
||||
}
|
||||
|
||||
/*
|
||||
* Destroys the object and frees any allocated resources
|
||||
*/
|
||||
DlgRef_2Sel3Spin2Rb::~DlgRef_2Sel3Spin2Rb()
|
||||
{
|
||||
// no need to delete child widgets, Qt does it all for us
|
||||
}
|
||||
|
@ -1,34 +1,27 @@
|
||||
// File : DlgRef_2Sel3Spin2Rb.h
|
||||
// Author : Dmitry MATVEITCHEV
|
||||
// Module : GEOM
|
||||
// $Header:
|
||||
|
||||
#ifndef DLGREF_2SEL3SPIN2RB_H
|
||||
#define DLGREF_2SEL3SPIN2RB_H
|
||||
|
||||
#include "DlgRef_2Sel3Spin2Rb_QTD.h"
|
||||
#include "DlgRef_SpinBox.h"
|
||||
//#if defined WNT
|
||||
//#include <SALOME_WNT.hxx>
|
||||
//#else
|
||||
//#define SALOME_WNT_EXPORT
|
||||
//#endif
|
||||
#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
|
||||
#define DLGREF_WNT_EXPORT __declspec( dllexport )
|
||||
#else
|
||||
#define DLGREF_WNT_EXPORT
|
||||
#endif
|
||||
class DLGREF_WNT_EXPORT DlgRef_2Sel3Spin2Rb : public DlgRef_2Sel3Spin2Rb_QTD
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgRef_2Sel3Spin2Rb(QWidget* parent = 0, const char* name = 0, WFlags fl = 0);
|
||||
~DlgRef_2Sel3Spin2Rb();
|
||||
|
||||
DlgRef_SpinBox* SpinBox_DX;
|
||||
DlgRef_SpinBox* SpinBox_DY;
|
||||
DlgRef_SpinBox* SpinBox_DZ;
|
||||
};
|
||||
|
||||
#endif // DLGREF_2SEL3SPIN2RB_H
|
||||
// File : DlgRef_2Sel3Spin2Rb.h
|
||||
// Author : Dmitry MATVEITCHEV
|
||||
// Module : GEOM
|
||||
// $Header:
|
||||
|
||||
#ifndef DLGREF_2SEL3SPIN2RB_H
|
||||
#define DLGREF_2SEL3SPIN2RB_H
|
||||
|
||||
#include "GEOM_DlgRef.hxx"
|
||||
|
||||
#include "DlgRef_2Sel3Spin2Rb_QTD.h"
|
||||
#include "DlgRef_SpinBox.h"
|
||||
|
||||
class GEOM_DLGREF_EXPORT DlgRef_2Sel3Spin2Rb : public DlgRef_2Sel3Spin2Rb_QTD
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DlgRef_2Sel3Spin2Rb(QWidget* parent = 0, const char* name = 0, WFlags fl = 0);
|
||||
~DlgRef_2Sel3Spin2Rb();
|
||||
|
||||
DlgRef_SpinBox* SpinBox_DX;
|
||||
DlgRef_SpinBox* SpinBox_DY;
|
||||
DlgRef_SpinBox* SpinBox_DZ;
|
||||
};
|
||||
|
||||
#endif // DLGREF_2SEL3SPIN2RB_H
|
||||
|
@ -10,6 +10,8 @@
|
||||
#ifndef DLGREF_2SEL3SPIN2RB_QTD_H
|
||||
#define DLGREF_2SEL3SPIN2RB_QTD_H
|
||||
|
||||
#include "GEOM_DlgRef.hxx"
|
||||
|
||||
#include <qvariant.h>
|
||||
#include <qwidget.h>
|
||||
|
||||
@ -24,7 +26,7 @@ class QLabel;
|
||||
class QRadioButton;
|
||||
class QSpinBox;
|
||||
|
||||
class DlgRef_2Sel3Spin2Rb_QTD : public QWidget
|
||||
class GEOM_DLGREF_EXPORT DlgRef_2Sel3Spin2Rb_QTD : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -58,8 +58,11 @@
|
||||
#include <Standard_Failure.hxx>
|
||||
#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
|
||||
|
||||
using namespace std;
|
||||
|
||||
static GEOM_Engine* TheEngine = NULL;
|
||||
|
||||
|
||||
static TCollection_AsciiString BuildIDFromObject(Handle(GEOM_Object)& theObject)
|
||||
{
|
||||
TCollection_AsciiString anID(theObject->GetDocID()), anEntry;
|
||||
|
@ -32,7 +32,6 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
||||
class GEOMAlgo_FinderShapeOnQuad: public GEOMAlgo_FinderShapeOn1
|
||||
{
|
||||
public:
|
||||
@ -51,10 +50,10 @@ protected:
|
||||
|
||||
private:
|
||||
|
||||
bool myConcaveQuad;
|
||||
vector<bool> myConcaveSide;
|
||||
vector<gp_Pnt> myPoints;
|
||||
vector<GeomAdaptor_Surface> myPlanes;
|
||||
gp_Vec myQuadNormal;
|
||||
bool myConcaveQuad;
|
||||
std::vector<bool> myConcaveSide;
|
||||
std::vector<gp_Pnt> myPoints;
|
||||
std::vector<GeomAdaptor_Surface> myPlanes;
|
||||
gp_Vec myQuadNormal;
|
||||
};
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user