20 #ifndef Selector_Container_H_
21 #define Selector_Container_H_
23 #include "Selector_AlgoWithSubs.h"
34 TopAbs_ShapeEnum myShapeType;
37 SELECTOR_EXPORT
bool select(
const TopoDS_Shape theContext,
const TopoDS_Shape theValue);
40 SELECTOR_EXPORT
virtual void store()
override;
44 SELECTOR_EXPORT
virtual bool restore()
override;
48 SELECTOR_EXPORT
virtual TDF_Label
restoreByName(std::wstring theName,
52 SELECTOR_EXPORT
virtual bool solve(
const TopoDS_Shape& theContext)
override;
Kind of selection algorithm: generic algorithm that contains sub-algorithms inside.
Definition: Selector_AlgoWithSubs.h:33
Definition: Selector_Algo.h:37
Kind of selection algorithm: selected shape is a container of sub-shapes that must be named one by on...
Definition: Selector_Container.h:33
virtual TDF_Label restoreByName(std::wstring theName, const TopAbs_ShapeEnum theShapeType, Selector_NameGenerator *theNameGenerator) override
Restores the selected shape by the topological name string.
Definition: Selector_Container.cpp:82
virtual std::wstring name(Selector_NameGenerator *theNameGenerator) override
Returns the naming name of the selection.
Definition: Selector_Container.cpp:181
virtual void store() override
Stores the name to the label and sub-labels tree.
Definition: Selector_Container.cpp:54
virtual bool restore() override
Restores the selected shape by the topological naming kept in the data structure Returns true if it c...
Definition: Selector_Container.cpp:66
bool select(const TopoDS_Shape theContext, const TopoDS_Shape theValue)
Initializes the selection of this kind.
Definition: Selector_Container.cpp:39
virtual bool solve(const TopoDS_Shape &theContext) override
Updates the current shape by the stored topological name.
Definition: Selector_Container.cpp:133
An interface for generation of the naming name basing on the current selection and document informati...
Definition: Selector_NameGenerator.h:34