class ModuleBase_ModelWidget;\r
class ModuleBase_Operation;\r
class ModuleBase_IWorkshop;\r
+class ModelAPI_Result;\r
+\r
+class Handle_AIS_InteractiveObject;\r
\r
/**\r
* \ingroup GUI\r
const bool theUpdateViewer) {}\r
\r
/// Modifies the given presentation in the custom way.\r
- virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs,\r
+ virtual bool customisePresentation(std::shared_ptr<ModelAPI_Result> theResult, AISObjectPtr thePrs,\r
GeomCustomPrsPtr theCustomPrs) { return false; };\r
\r
/// Update the object presentable properties such as color, lines width and other\r
/// Create specific for the module presentation\r
/// \param theResult an object for presentation\r
/// \return created presentation or NULL(default value)\r
- virtual Handle(AIS_InteractiveObject) createPresentation(const ResultPtr& theResult);\r
+ virtual Handle_AIS_InteractiveObject createPresentation(\r
+ const std::shared_ptr<ModelAPI_Result>& theResult);\r
\r
//! Returns data object by AIS\r
virtual ObjectPtr findPresentedObject(const AISObjectPtr& theAIS) const = 0;\r
#include "ModuleBase_ISelection.h"
+#include "ModuleBase_ViewerPrs.h"
+
#include <StdSelect_BRepOwner.hxx>
#include <TopoDS_Vertex.hxx>
#include <TopoDS.hxx>
#include "ModuleBase.h"
#include "ModuleBase_Definitions.h"
-#include "ModuleBase_ViewerPrs.h"
#include <ModelAPI_Result.h>
#include <GeomAPI_Shape.h>
#include <QList>
+class ModuleBase_ViewerPrs;
class Handle_SelectMgr_EntityOwner;
/**
#include "ModuleBase.h"
#include "ModuleBase_Definitions.h"
#include <ModuleBase_FilterValidated.h>
-#include <ModuleBase_ViewerPrs.h>
#include <ModelAPI_Object.h>
#include <GeomAPI_AISObject.h>
class ModuleBase_IPropertyPanel;
class ModuleBase_Operation;
class ModuleBase_FilterFactory;
+class ModuleBase_ViewerPrs;
/**
* \ingroup GUI
// Author: Natalia ERMOLAEVA
#include "ModuleBase_ModelWidget.h"
+#include "ModuleBase_ViewerPrs.h"
#include "ModuleBase_Tools.h"
#include <ModelAPI_Data.h>
#define MODULEBASE_MODELWIDGET_H
#include <ModuleBase.h>
-#include <ModuleBase_ViewerPrs.h>
#include <ModuleBase_OperationFeature.h>
#include <ModelAPI_Feature.h>
class Config_WidgetAPI;
class ModuleBase_IWorkshop;
+class ModuleBase_ViewerPrs;
class QKeyEvent;
/**\class ModuleBase_ModelWidget
#include <ModuleBase.h>
#include <ModuleBase_Operation.h>
-#include <ModuleBase_ViewerPrs.h>
#include <ModelAPI_Object.h>
#include <ModelAPI_CompositeFeature.h>
class ModuleBase_ISelection;
class ModuleBase_IViewer;
class ModuleBase_IWorkshop;
+class ModuleBase_ViewerPrs;
class QKeyEvent;
#include <ModuleBase_Tools.h>
#include <ModuleBase_Definitions.h>
#include <ModuleBase_IModule.h>
+#include <ModuleBase_ViewerPrs.h>
#include <ModelAPI_Data.h>
#include <ModelAPI_Object.h>
#include <ModuleBase_WidgetFactory.h>
#include <ModuleBase_IModule.h>
#include <ModuleBase_ResultPrs.h>
+#include <ModuleBase_ViewerPrs.h>
#include <ModelAPI_ResultConstruction.h>
#include "ModuleBase.h"
#include "ModuleBase_WidgetValidated.h"
-#include <ModuleBase_ViewerPrs.h>
#include "ModuleBase_Definitions.h"
#include <ModelAPI_Object.h>
class Config_WidgetAPI;
class QWidget;
class ModuleBase_IWorkshop;
+class ModuleBase_ViewerPrs;
+class ModelAPI_Result;
/**
* \ingroup GUI
/// in the construction.
/// \param theShape a shape
/// \param theResult a selected result
- bool acceptSubShape(const GeomShapePtr& theShape, const ResultPtr& theResult) const;
+ bool acceptSubShape(const GeomShapePtr& theShape,
+ const std::shared_ptr<ModelAPI_Result>& theResult) const;
/// Return an object and geom shape by the viewer presentation
/// \param thePrs a selection
#include <ModuleBase_FilterFactory.h>
#include <ModuleBase_Filter.h>
#include <ModuleBase_IModule.h>
+#include <ModuleBase_ViewerPrs.h>
#include <Config_WidgetAPI.h>
#include <Events_Loop.h>
#include "ModuleBase.h"
#include "ModuleBase_WidgetSelector.h"
#include "ModuleBase_ViewerFilters.h"
-#include <ModuleBase_ViewerPrs.h>
#include <ModelAPI_Object.h>
#include <ModelAPI_Attribute.h>
class QLineEdit;
class QToolButton;
class ModuleBase_IWorkshop;
+class ModuleBase_ViewerPrs;
class ModelAPI_Validator;
/**
#include <ModuleBase_IViewer.h>
#include <ModuleBase_ISelection.h>
#include <ModuleBase_WidgetSelectorStore.h>
+#include <ModuleBase_ViewerPrs.h>
#include <ModelAPI_Session.h>
#include <ModelAPI_Validator.h>
#include <ModuleBase_IWorkshop.h>
#include <ModuleBase_ISelection.h>
+#include <ModuleBase_ViewerPrs.h>
+
#include <ModelAPI_ResultConstruction.h>
#include <AIS_InteractiveObject.hxx>
#include <ModuleBase_OperationFeature.h>
#include <ModuleBase_WidgetFactory.h>
#include <ModuleBase_OperationDescription.h>
+#include <ModuleBase_ViewerPrs.h>
#include <ModelAPI_Object.h>
#include <ModelAPI_Events.h>
class PartSet_CustomPrs;
class PartSet_SketcherMgr;
class PartSet_SketcherReetntrantMgr;
+class ModelAPI_Result;
class QAction;
const bool theUpdateViewer);
/// Modifies the given presentation in the custom way.
- virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs,
+ virtual bool customisePresentation(std::shared_ptr<ModelAPI_Result> theResult,
+ AISObjectPtr thePrs,
std::shared_ptr<GeomAPI_ICustomPrs> theCustomPrs);
/// Update the object presentable properties such as color, lines width and other
/// Create specific for the module presentation
/// \param theResult an object for presentation
/// \return created presentation or NULL(default value)
- virtual Handle(AIS_InteractiveObject) createPresentation(const ResultPtr& theResult);
+ virtual Handle(AIS_InteractiveObject) createPresentation(
+ const std::shared_ptr<ModelAPI_Result>& theResult);
//! Returns data object by AIS
virtual ObjectPtr findPresentedObject(const AISObjectPtr& theAIS) const;
#include "ModuleBase_IModule.h"
#include <ModuleBase_IPropertyPanel.h>
#include <ModuleBase_ModelWidget.h>
+#include <ModuleBase_ViewerPrs.h>
#include <ModelAPI_Result.h>
#include <ModelAPI_Attribute.h>
#include "PartSet.h"
-#include <ModuleBase_ViewerPrs.h>
#include <gp_Pnt.hxx>
#include <QPoint>
class ModuleBase_ViewerPrs;
class ModuleBase_IWorkshop;
class GeomDataAPI_Point2D;
+class GeomAPI_Shape;
class GeomAPI_Pln;
class GeomAPI_Pnt2d;
class GeomAPI_Pnt;
class GeomAPI_Edge;
class GeomAPI_Vertex;
+class ModelAPI_Result;
/*!
* \class PartSet_Tools
/// \param theObject a selected result object
/// \param theSketch a sketch feature
/// \return result of found feature or NULL
- static ResultPtr findFixedObjectByExternal(const TopoDS_Shape& theShape,
+ static std::shared_ptr<ModelAPI_Result> findFixedObjectByExternal(
+ const TopoDS_Shape& theShape,
const ObjectPtr& theObject,
CompositeFeaturePtr theSketch);
/// \param theSketch a sketch feature
/// \param theTemporary the created external object is temporary, execute is not performed for it
/// \return result of created feature
- static ResultPtr createFixedObjectByExternal(const TopoDS_Shape& theShape,
+ static std::shared_ptr<ModelAPI_Result> createFixedObjectByExternal(
+ const TopoDS_Shape& theShape,
const ObjectPtr& theObject,
CompositeFeaturePtr theSketch,
const bool theTemporary = false);
/// \param theSketch - the sketch feature
/// \param theEdge - the edge
/// \return result object with external edge if it is found
- static ResultPtr findExternalEdge(CompositeFeaturePtr theSketch, std::shared_ptr<GeomAPI_Edge> theEdge);
+ static std::shared_ptr<ModelAPI_Result> findExternalEdge(CompositeFeaturePtr theSketch,
+ std::shared_ptr<GeomAPI_Edge> theEdge);
/// Returns Result object if the given sketch contains external vertex equal to the given
/// \param theSketch - the sketch feature
/// \param theVert - the vertex
/// \return result object with external vertex if it is found
- static ResultPtr findExternalVertex(CompositeFeaturePtr theSketch, std::shared_ptr<GeomAPI_Vertex> theVert);
+ static std::shared_ptr<ModelAPI_Result> findExternalVertex(CompositeFeaturePtr theSketch,
+ std::shared_ptr<GeomAPI_Vertex> theVert);
/// Returns whether the selected presentation has a shape with the vertex type
/// \param thePrs a selected presentation
* \param theWorkshop a reference to workshop
* \return a geometry shape
*/
- static GeomShapePtr findShapeBy2DPoint(const AttributePtr& theAttribute,
+ static std::shared_ptr<GeomAPI_Shape> findShapeBy2DPoint(const AttributePtr& theAttribute,
ModuleBase_IWorkshop* theWorkshop);
/**
#include <ModuleBase_ISelection.h>
#include <ModuleBase_WidgetShapeSelector.h>
#include <ModuleBase_OperationFeature.h>
+#include <ModuleBase_ViewerPrs.h>
#include <ModelAPI_AttributeRefAttr.h>
#include <ModelAPI_AttributeSelection.h>
#include <ModuleBase_Tools.h>
#include <ModuleBase_IWorkshop.h>
#include <ModuleBase_ISelection.h>
+#include <ModuleBase_ViewerPrs.h>
#include <Config_WidgetAPI.h>
#include "PartSet.h"
#include <ModuleBase_WidgetMultiSelector.h>
-#include <ModuleBase_ViewerPrs.h>
#include <ModelAPI_CompositeFeature.h>
class PartSet_ExternalObjectsMgr;
+class ModuleBase_ViewerPrs;
/**
* \ingroup Modules
#include <ModuleBase_IViewer.h>
#include <ModuleBase_IViewWindow.h>
#include <ModuleBase_ISelection.h>
+#include <ModuleBase_ViewerPrs.h>
#include <Config_Keywords.h>
#include <Config_WidgetAPI.h>
#include <ModelAPI_Validator.h>
#include <ModuleBase_Definitions.h>
+#include <ModuleBase_ViewerPrs.h>
+
#include <Config_WidgetAPI.h>
#include <PartSet_ExternalObjectsMgr.h>
#include <ModuleBase_Operation.h>
#include <ModuleBase_IPropertyPanel.h>
#include <ModuleBase_OperationFeature.h>
+#include <ModuleBase_ViewerPrs.h>
+
#include <Config_WidgetAPI.h>
#include <Events_Loop.h>
// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
-/*
- * XGUI_ActionsMgr.cpp
- */
-
#ifndef HAVE_SALOME
#include <AppElements_Command.h>
#endif
#include <ModuleBase_IModule.h>
#include <ModuleBase_Tools.h>
#include <ModuleBase_OperationAction.h>
+#include <ModuleBase_ViewerPrs.h>
#include <QAction>
#include <QActionGroup>
#include <ModuleBase_ResultPrs.h>
#include <ModuleBase_Tools.h>
#include <ModuleBase_IModule.h>
+#include <ModuleBase_ViewerPrs.h>
#include <GeomAPI_Shape.h>
#include <GeomAPI_IPresentable.h>
#include <ModelAPI_Result.h>
#include <ModuleBase_Definitions.h>
-#include <ModuleBase_ViewerPrs.h>
#include <GeomAPI_ICustomPrs.h>
#include <QObject>
#include <QColor>
+class ModuleBase_ViewerPrs;
class ModelAPI_Feature;
class XGUI_Workshop;
#include "XGUI_ObjectsBrowser.h"
#include "ModuleBase_ResultPrs.h"
+#include <ModuleBase_ViewerPrs.h>
#include <ModelAPI_Feature.h>
#include <ModelAPI_Tools.h>
#include "XGUI.h"
-#include <ModuleBase_ViewerPrs.h>
#include <ModuleBase_Definitions.h>
#include <ModuleBase_ISelection.h>
class XGUI_Workshop;
class Handle_SelectMgr_EntityOwner;
+class ModuleBase_ViewerPrs;
/**
* \ingroup GUI