Correction of Export/Import defines for Win32 platform.
Removed "using namespace std" from header files.
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();
#ifndef DLGREF_SKELETON_QTD_H
#define DLGREF_SKELETON_QTD_H
+#include "GEOM_DlgRef.hxx"
+
#include <qvariant.h>
#include <qdialog.h>
class QCheckBox;
class QPushButton;
-class DlgRef_Skeleton_QTD : public QDialog
+class GEOM_DLGREF_EXPORT DlgRef_Skeleton_QTD : public QDialog
{
Q_OBJECT
// Module : GEOM
// $Header$
-using namespace std;
-
#include <Standard_Stream.hxx>
#include <Standard_Stream.hxx>
#include "GEOM_Client.hxx"
#include <SALOMEconfig.h>
-#include "OpUtil.hxx"
+#include "Basics_Utils.hxx"
#include "utilities.h"
#include <BRep_Builder.hxx>
#define HST_CLIENT_LEN 256
-
+using namespace std;
//=======================================================================
// function : Load()
//=======================================================================
TopoDS_Shape GEOM_Client::Load( GEOM::GEOM_Gen_ptr geom, GEOM::GEOM_Object_ptr aShape )
{
- string hst_client = GetHostname();
+ string hst_client = Kernel_Utils::GetHostname();
Engines::Container_var ctn_server = geom->GetContainerRef();
long pid_server = ctn_server->getPID();
#include <Standard_Macro.hxx>
#endif
-#ifdef WNT
- #if defined GEOMCLIENT_EXPORTS
- #if defined WIN32
- #define GEOMCLIENT_EXPORT __declspec( dllexport )
- #else
- #define GEOMCLIENT_EXPORT
- #endif
- #else
- #if defined WIN32
- #define GEOMCLIENT_EXPORT __declspec( dllimport )
- #else
- #define GEOMCLIENT_EXPORT
- #endif
- #endif
+#ifdef WIN32
+# ifdef GEOMCLIENT_EXPORTS
+# define GEOMCLIENT_EXPORT __declspec( dllexport )
+# else
+# define GEOMCLIENT_EXPORT __declspec( dllimport )
+# endif
#else
- #define GEOMCLIENT_EXPORT
+# define GEOMCLIENT_EXPORT
#endif
//=====================================================================
#if !defined (__GEOM_DISPLAYER_H)
#define __GEOM_DISPLAYER_H
-using namespace std;
-
#include "GEOM_GEOMGUI.hxx"
#include "SALOME_Prs.h"
protected:
Handle(SALOME_InteractiveObject) myIO;
TopoDS_Shape myShape;
- string myName;
+ std::string myName;
int myType;
SALOME_View* myViewFrame;
#pragma warning( disable:4786 )
#endif
-using namespace std;
-
#include <Standard_Stream.hxx>
#include <GEOMImpl_IBlocksOperations.hxx>
#include <Standard_Failure.hxx>
#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
+using namespace std;
+
//=============================================================================
/*!
* constructor:
#ifndef _GEOMImpl_IBlocksOperations_HXX_
#define _GEOMImpl_IBlocksOperations_HXX_
-using namespace std;
-
#include "GEOM_IOperations.hxx"
#include <TopTools_ListOfShape.hxx>
struct BCError {
BCErrorType error;
- list<int> incriminated;
+ std::list<int> incriminated;
};
Standard_EXPORT Standard_Boolean CheckCompoundOfBlocksOld (Handle(GEOM_Object) theCompound,
- list<BCError>& theErrors);
+ std::list<BCError>& theErrors);
Standard_EXPORT Standard_Boolean CheckCompoundOfBlocks (Handle(GEOM_Object) theCompound,
- list<BCError>& theErrors);
+ std::list<BCError>& theErrors);
Standard_EXPORT TCollection_AsciiString PrintBCErrors (Handle(GEOM_Object) theCompound,
- const list<BCError>& theErrors);
+ const std::list<BCError>& theErrors);
Standard_EXPORT Handle(GEOM_Object) RemoveExtraEdges (Handle(GEOM_Object) theShape);
#include <Standard_Failure.hxx>
#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
+using namespace std;
+
//=============================================================================
/*!
* constructor:
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-using namespace std;
-
#ifndef _GEOMImpl_ICurvesOperations_HXX_
#define _GEOMImpl_ICurvesOperations_HXX_
Standard_EXPORT GEOMImpl_ICurvesOperations(GEOM_Engine* theEngine, int theDocID);
Standard_EXPORT ~GEOMImpl_ICurvesOperations();
- Standard_EXPORT Handle(GEOM_Object) MakePolyline (list<Handle(GEOM_Object)> thePoints);
+ Standard_EXPORT Handle(GEOM_Object) MakePolyline (std::list<Handle(GEOM_Object)> thePoints);
Standard_EXPORT Handle(GEOM_Object) MakeCircleThreePnt (Handle(GEOM_Object) thePnt1,
Handle(GEOM_Object) thePnt2,
Handle(GEOM_Object) thePnt3,
bool theSense);
- Standard_EXPORT Handle(GEOM_Object) MakeSplineBezier (list<Handle(GEOM_Object)> thePoints);
- Standard_EXPORT Handle(GEOM_Object) MakeSplineInterpolation (list<Handle(GEOM_Object)> thePoints);
+ Standard_EXPORT Handle(GEOM_Object) MakeSplineBezier (std::list<Handle(GEOM_Object)> thePoints);
+ Standard_EXPORT Handle(GEOM_Object) MakeSplineInterpolation (std::list<Handle(GEOM_Object)> thePoints);
Standard_EXPORT Handle(GEOM_Object) MakeSketcher (const char* theCommand,
- list<double> theWorkingPlane);
+ std::list<double> theWorkingPlane);
Standard_EXPORT Handle(GEOM_Object) MakeSketcherOnPlane (const char* theCommand,
Handle(GEOM_Object) theWorkingPlane);
};
#pragma warning( disable:4786 )
#endif
-using namespace std;
-
#include <Standard_Stream.hxx>
#include <GEOMImpl_IHealingOperations.hxx>
#include <Standard_Failure.hxx>
#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
+using namespace std;
+
//=============================================================================
/*!
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-using namespace std;
-
#ifndef _GEOMImpl_IHealingOperations_HXX_
#define _GEOMImpl_IHealingOperations_HXX_
const Handle(TColStd_HArray1OfExtendedString)& theValues );
// Retrieve default Shape Process parameters (from resource file)
- Standard_EXPORT void GetShapeProcessParameters( list<string>& theOperations,
- list<string>& theParams,
- list<string>& theValues );
+ Standard_EXPORT void GetShapeProcessParameters( std::list<std::string>& theOperations,
+ std::list<std::string>& theParams,
+ std::list<std::string>& theValues );
// Retrieve default Shape Process parameters for given operator
- Standard_EXPORT bool GetOperatorParameters( const string theOperation,
- list<string>& theParams,
- list<string>& theValues );
+ Standard_EXPORT bool GetOperatorParameters( const std::string theOperation,
+ std::list<std::string>& theParams,
+ std::list<std::string>& theValues );
// returns all parameters that are valid for the given operation (Shape Process operator)
- Standard_EXPORT static bool GetParameters( const string theOperation, list<string>& theParams );
+ Standard_EXPORT static bool GetParameters( const std::string theOperation, std::list<std::string>& theParams );
Standard_EXPORT Handle(GEOM_Object) SuppressFaces( Handle(GEOM_Object) theObject,
const Handle(TColStd_HArray1OfInteger)& theFaces);
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-using namespace std;
-
#include <Standard_Stream.hxx>
#include <GEOMImpl_ILocalOperations.hxx>
#include <Standard_Failure.hxx>
#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
+using namespace std;
+
//=============================================================================
/*!
* constructor:
#ifndef _GEOMImpl_ILocalOperations_HXX_
#define _GEOMImpl_ILocalOperations_HXX_
-using namespace std;
-
#include "Utils_SALOME_Exception.hxx"
#include "GEOM_IOperations.hxx"
#include "GEOM_Engine.hxx"
Standard_EXPORT Handle(GEOM_Object) MakeFilletAll (Handle(GEOM_Object) theShape, double theR);
Standard_EXPORT Handle(GEOM_Object) MakeFilletEdges (Handle(GEOM_Object) theShape, double theR,
- list<int> theEdges);
+ std::list<int> theEdges);
Standard_EXPORT Handle(GEOM_Object) MakeFilletEdgesR1R2 (Handle(GEOM_Object) theShape,
double theR1, double theR2,
- list<int> theEdges);
+ std::list<int> theEdges);
Standard_EXPORT Handle(GEOM_Object) MakeFilletFaces (Handle(GEOM_Object) theShape, double theR,
- list<int> theFaces);
+ std::list<int> theFaces);
Standard_EXPORT Handle(GEOM_Object) MakeFilletFacesR1R2 (Handle(GEOM_Object) theShape,
double theR1, double theR2,
- list<int> theFaces);
+ std::list<int> theFaces);
Standard_EXPORT Handle(GEOM_Object) MakeChamferAll (Handle(GEOM_Object) theShape, double theD);
Standard_EXPORT Handle(GEOM_Object) MakeChamferEdge (Handle(GEOM_Object) theShape,
int theFace1, int theFace2);
Standard_EXPORT Handle(GEOM_Object) MakeChamferFaces (Handle(GEOM_Object) theShape,
double theD1, double theD2,
- list<int> theFaces);
+ std::list<int> theFaces);
Standard_EXPORT Handle(GEOM_Object) MakeChamferFacesAD (Handle(GEOM_Object) theShape,
double theD, double theAngle,
- list<int> theFaces);
+ std::list<int> theFaces);
Standard_EXPORT Handle(GEOM_Object) MakeChamferEdges (Handle(GEOM_Object) theShape,
double theD1, double theD2,
- list<int> theEdges);
+ std::list<int> theEdges);
Standard_EXPORT Handle(GEOM_Object) MakeChamferEdgesAD (Handle(GEOM_Object) theShape,
double theD, double theAngle,
- list<int> theEdges);
+ std::list<int> theEdges);
Standard_EXPORT Handle(GEOM_Object) MakeArchimede (Handle(GEOM_Object) theShape,
double theWeight, double theWaterDensity,
double theMeshingDeflection);
// Project : SALOME
// $Header$
-using namespace std;
#include <Standard_Stream.hxx>
#include <BRepClass3d_SolidClassifier.hxx>
#include <Precision.hxx>
+using namespace std;
+
+
//=============================================================================
/*!
* constructor:
#ifndef _GEOMImpl_IShapesOperations_HXX_
#define _GEOMImpl_IShapesOperations_HXX_
-using namespace std;
-
#include "GEOM_IOperations.hxx"
#include "GEOMAlgo_State.hxx"
Standard_EXPORT Handle(GEOM_Object) MakeEdge (Handle(GEOM_Object) thePoint1,
Handle(GEOM_Object) thePoint2);
- Standard_EXPORT Handle(GEOM_Object) MakeWire (list<Handle(GEOM_Object)> theEdgesAndWires);
+ Standard_EXPORT Handle(GEOM_Object) MakeWire (std::list<Handle(GEOM_Object)> theEdgesAndWires);
Standard_EXPORT Handle(GEOM_Object) MakeFace (Handle(GEOM_Object) theWire, const bool isPlanarWanted);
- Standard_EXPORT Handle(GEOM_Object) MakeFaceWires (list<Handle(GEOM_Object)> theWires,
+ Standard_EXPORT Handle(GEOM_Object) MakeFaceWires (std::list<Handle(GEOM_Object)> theWires,
const bool isPlanarWanted);
- Standard_EXPORT Handle(GEOM_Object) MakeShell (list<Handle(GEOM_Object)> theShapes);
+ Standard_EXPORT Handle(GEOM_Object) MakeShell (std::list<Handle(GEOM_Object)> theShapes);
Standard_EXPORT Handle(GEOM_Object) MakeSolidShell (Handle(GEOM_Object) theShell);
- Standard_EXPORT Handle(GEOM_Object) MakeSolidShells (list<Handle(GEOM_Object)> theShells);
+ Standard_EXPORT Handle(GEOM_Object) MakeSolidShells (std::list<Handle(GEOM_Object)> theShells);
- Standard_EXPORT Handle(GEOM_Object) MakeCompound (list<Handle(GEOM_Object)> theShapes);
+ Standard_EXPORT Handle(GEOM_Object) MakeCompound (std::list<Handle(GEOM_Object)> theShapes);
Standard_EXPORT Handle(GEOM_Object) MakeGlueFaces (Handle(GEOM_Object) theShape,
const Standard_Real theTolerance,
Standard_EXPORT Handle(GEOM_Object) MakeGlueFacesByList (Handle(GEOM_Object) theShape,
const Standard_Real theTolerance,
- list<Handle(GEOM_Object)> theFaces,
+ std::list<Handle(GEOM_Object)> theFaces,
const Standard_Boolean doKeepNonSolids);
Standard_EXPORT Handle(TColStd_HSequenceOfTransient) MakeExplode (Handle(GEOM_Object) theShape,
* \retval Handle(TColStd_HSequenceOfTransient) - found shape objects
*/
Standard_EXPORT Handle(TColStd_HSequenceOfTransient)
- GetShapesOnBox(const Handle(GEOM_Object)& theBox,
- const Handle(GEOM_Object)& theShape,
- const Standard_Integer theShapeType,
- GEOMAlgo_State theState);
+ GetShapesOnBox(const Handle(GEOM_Object)& theBox,
+ const Handle(GEOM_Object)& theShape,
+ const Standard_Integer theShapeType,
+ GEOMAlgo_State theState);
/*!
* \brief Find IDs of subshapes complying with given status about surface
Standard_EXPORT static bool CheckTriangulation (const TopoDS_Shape& theShape);
private:
- Handle(GEOM_Object) MakeShape (list<Handle(GEOM_Object)> theShapes,
+ Handle(GEOM_Object) MakeShape (std::list<Handle(GEOM_Object)> theShapes,
const Standard_Integer theObjectType,
const Standard_Integer theFunctionType,
const TCollection_AsciiString& theMethodName);
/*!
* \brief Find IDs of subshapes complying with given status about surface
- * \param theBox - the box to check state of subshapes against
- * \param theShape - the shape to explore
- * \param theShapeType - type of subshape of theShape
- * \param theState - required state
- * \retval Handle(TColStd_HSequenceOfInteger) - IDs of found subshapes
+ * \param theBox - the box to check state of subshapes against
+ * \param theShape - the shape to explore
+ * \param theShapeType - type of subshape of theShape
+ * \param theState - required state
+ * \retval Handle(TColStd_HSequenceOfInteger) - IDs of found subshapes
*/
Handle(TColStd_HSequenceOfInteger) getShapesOnBoxIDs(const Handle(GEOM_Object)& theBox,
const Handle(GEOM_Object)& theShape,
#include "SALOMEDS_Tool.hxx"
+using namespace std;
+
//============================================================================
// function : GEOM_Gen_i()
// purpose : constructor to be called for servant creation.
#include <TColStd_HSequenceOfTransient.hxx>
#include <TColStd_HArray1OfInteger.hxx>
+using namespace std;
+
//=============================================================================
/*!
* constructor:
#include "GEOM_Engine.hxx"
#include "GEOM_Object.hxx"
+using namespace std;
+
//=============================================================================
/*!
* constructor:
#include <TColStd_HSequenceOfTransient.hxx>
+using namespace std;
+
//=============================================================================
/*!
* constructor:
#include "GEOM_Engine.hxx"
#include "GEOM_Object.hxx"
+using namespace std;
+
//=============================================================================
/*!
* constructor:
#include <TColStd_HSequenceOfTransient.hxx>
#include <TColStd_HArray1OfInteger.hxx>
+using namespace std;
+
//=============================================================================
/*!
* constructor:
#pragma warning( disable:4786 )
#endif
+using namespace std;
+
//=============================================================================
/*!
* constructor:
#include <TColStd_MapOfInteger.hxx>
#include <TColStd_DataMapIteratorOfDataMapOfIntegerInteger.hxx>
+using namespace std;
+
enum { ALL_SUBSHAPES = 0, GET_IN_PLACE, SUBSHAPES_OF_SHAPE2 };
GroupGUI_GroupDlg::GroupGUI_GroupDlg(Mode mode, GeometryGUI* theGeometryGUI, QWidget* parent)
#include <TCollection_AsciiString.hxx>
#include <TopoDS_Shape.hxx>
-#ifdef WNT
- #if defined IGESEXPORT_EXPORTS
- #if defined WIN32
- #define IGESEXPORT_EXPORT __declspec( dllexport )
- #else
- #define IGESEXPORT_EXPORT
- #endif
- #else
- #if defined WIN32
- #define IGESEXPORT_EXPORT __declspec( dllimport )
- #else
- #define IGESEXPORT_EXPORT
- #endif
- #endif
+#ifdef WIN32
+# ifdef IGESEXPORT_EXPORTS
+# define IGESEXPORT_EXPORT __declspec( dllexport )
+# else
+# define IGESEXPORT_EXPORT __declspec( dllimport )
+# endif
#else
- #define IGESEXPORT_EXPORT
+# define IGESEXPORT_EXPORT
#endif
//=============================================================================