20 #ifndef Selector_WeakName_H_
21 #define Selector_WeakName_H_
23 #include "Selector_Algo.h"
32 TopAbs_ShapeEnum myShapeType;
34 bool myRecomputeWeakIndex;
38 SELECTOR_EXPORT
bool select(
const TopoDS_Shape theContext,
const TopoDS_Shape theValue);
41 SELECTOR_EXPORT
virtual void store()
override;
45 SELECTOR_EXPORT
virtual bool restore()
override;
49 SELECTOR_EXPORT
virtual TDF_Label
restoreByName(std::wstring theName,
53 SELECTOR_EXPORT
virtual bool solve(
const TopoDS_Shape& theContext)
override;
Definition: Selector_Algo.h:37
An interface for generation of the naming name basing on the current selection and document informati...
Definition: Selector_NameGenerator.h:34
Kind of selection algorithm: if other algorithms fail, this stores the geometrical index of the selec...
Definition: Selector_WeakName.h:31
bool select(const TopoDS_Shape theContext, const TopoDS_Shape theValue)
Initializes the selection of this kind.
Definition: Selector_WeakName.cpp:36
virtual bool restore() override
Restores the selected shape by the topological naming kept in the data structure Returns true if it c...
Definition: Selector_WeakName.cpp:76
virtual void store() override
Stores the name to the label and sub-labels tree.
Definition: Selector_WeakName.cpp:67
virtual std::wstring name(Selector_NameGenerator *theNameGenerator) override
Returns the naming name of the selection.
Definition: Selector_WeakName.cpp:134
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_WeakName.cpp:90
virtual bool solve(const TopoDS_Shape &theContext) override
Updates the current shape by the stored topological name.
Definition: Selector_WeakName.cpp:110