#include <BRepBuilderAPI_MakeVertex.hxx>
#include <BRep_Tool.hxx>
-#if OCC_VERSION_MAJOR >= 5
-#include <BRepAlgo.hxx>
-#else
#include <BRepAlgoAPI.hxx>
-#endif
#include <Geom_Curve.hxx>
#include <qbuttongroup.h>
: QDialog( parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu )
{
- QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "GeometryGUI",tr("ICON_DLG_POINT")));
- QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap( "GeometryGUI",tr("ICON_SELECT")));
- QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap( "GeometryGUI",tr("ICON_DLG_POINT_EDGE")));
+ QPixmap image0(QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr("ICON_DLG_POINT")));
+ QPixmap image1(QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr("ICON_SELECT")));
+ QPixmap image2(QAD_Desktop::getResourceManager()->loadPixmap( "GEOM",tr("ICON_DLG_POINT_EDGE")));
if ( !name )
setName( "GeometryGUI_PointDlg" );
Constructor1->setChecked( TRUE );
/* filter for the second constructor */
- Engines::Component_var comp = QAD_Application::getDesktop()->getEngine("FactoryServer", "Geometry");
+ Engines::Component_var comp = QAD_Application::getDesktop()->getEngine("FactoryServer", "GEOM");
myGeom = GEOM::GEOM_Gen::_narrow(comp);
myEdgeFilter = new GEOM_ShapeTypeFilter( TopAbs_EDGE, myGeom );
//=================================================================================
bool GeometryGUI_PointDlg::CalculateVertexOnCurve(const TopoDS_Edge& anEdge, const Standard_Real aParameter, TopoDS_Shape& resultVertex)
{
-#if OCC_VERSION_MAJOR >= 5
- if( anEdge.IsNull() || !BRepAlgo::IsValid(anEdge) )
-#else
if( anEdge.IsNull() || !BRepAlgoAPI::IsValid(anEdge) )
-#endif
return false ;
Standard_Real first, last ;