+ /// Fills the map by the feature object and shapes, which should be visuaziled
+ /// Gets feature attributes, collect objects to whom the attributes refer
+ /// \param theFeature a current feature
+ /// \param theWorkshop a current workshop
+ /// \param theObjectShapes an output map
+ /// \param theObjectShape an output map of objects
+ static void getFeatureShapes(const FeaturePtr& theFeature,
+ ModuleBase_IWorkshop* theWorkshop,
+ QMap<ObjectPtr, QList<GeomShapePtr> >& theObjectShapes);
+
+ /// Fills the map by the feature object and shapes, which should be visuaziled
+ /// Gets feature attributes, collect objects to whom the attributes refer
+ /// \param theFeature a current feature
+ /// \param theWorkshop a current workshop
+ /// \param theObjectShapes an output map
+ /// \param theObjectShape an output map of objects
+ static void getResultShapes(const FeaturePtr& theFeature,
+ ModuleBase_IWorkshop* theWorkshop,
+ QMap<ObjectPtr, QList<GeomShapePtr> >& theObjectShapes,
+ const bool theListShouldBeCleared = true);
+
+ /// Fills the map by the feature presentation if the feature is presentable
+ /// \param theFeature a current feature
+ /// \param theWorkshop a current workshop
+ /// \param theObjectShapes an output map
+ /// \param theObjectShape an output map of objects
+ static void getPresentationShapes(const FeaturePtr& theFeature,
+ ModuleBase_IWorkshop* theWorkshop,
+ QMap<ObjectPtr, QList<GeomShapePtr> >& theObjectShapes,
+ const bool theListShouldBeCleared = true);
+
+ /// Fills the map by the feature object and shapes, which should be visuaziled
+ /// Gets the active widget, obtain the highlighted presentations if it has such and
+ /// fill map by object and shapes
+ /// \param theWorkshop a current workshop
+ /// \param theObjectShapes an output map of objects
+ static void getHighlightedShapes(ModuleBase_IWorkshop* theWorkshop,
+ QMap<ObjectPtr, QList<GeomShapePtr> >& theObjectShapes);
+
+ /// Returns true if the attribute type belong to reference attribute
+ /// \param theAttribute an attribute
+ /// \return a boolean value
+ static bool isSelectionAttribute(const AttributePtr& theAttribute);
+
+ /// Appends the shape for the result into the container if the result is visible and
+ /// the shape is not null.
+ /// \param theWorkshop a current workshop
+ /// \param theResult an object to be appended
+ /// \param theGeomShape a shape to be appended
+ /// \param theObjectShapes a filled container
+ static void addValue(const ObjectPtr& theObject, const GeomShapePtr& theShape,
+ const FeaturePtr& theFeature, ModuleBase_IWorkshop* theWorkshop,
+ QMap<ObjectPtr, QList<GeomShapePtr> >& theObjectShapes);
+
+ /// Appends the shape for the result into the container if the result is visible and
+ /// the shape is not null.
+ /// \param theWorkshop a current workshop
+ /// \param theObject an object to be appended
+ /// \param theGeomShape a shape to be appended
+ /// \param theObjectShapes a filled container
+ static void appendShapeIfVisible(ModuleBase_IWorkshop* theWorkshop,
+ const ObjectPtr& theObject,
+ GeomShapePtr theGeomShape,
+ QMap<ObjectPtr, QList<GeomShapePtr> >& theObjectShapes);
+
+ /// Fills the list of shapes by map of model objects
+ /// \param theFeatureShape a container to find shapes
+ /// \param theShapesMap an out container
+ static void fillShapeList(const QMap<ObjectPtr, QList<GeomShapePtr> >& theFeatureShapes,
+ ModuleBase_IWorkshop* theWorkshop,
+ NCollection_DataMap<TopoDS_Shape, Handle(AIS_InteractiveObject)>& theShapeToPrsMap);
+
+private:
+ /// list of visualized shapes
+ NCollection_DataMap<TopoDS_Shape, Handle(AIS_InteractiveObject)> myShapeToPrsMap;
+
+ ModuleBase_IWorkshop* myWorkshop; /// current workshop
+ Quantity_Color myShapeColor; /// color of feature depended shapes
+
+ /// flag if the width of a shape object should be used for the shape visualization
+ bool myUseAISWidth;
+
+ friend class PartSet_CustomPrs;