SHAPER  9.12.0
Selector_NameGenerator Class Referenceabstract

An interface for generation of the naming name basing on the current selection and document information. More...

Inheritance diagram for Selector_NameGenerator:
Inheritance graph

Public Member Functions

 Selector_NameGenerator ()
 empty constructor, nothing to add More...
 
virtual std::wstring contextName (const TDF_Label theSelectionLab)=0
 This method returns the context name by the label of the sub-selected shape. More...
 
virtual bool restoreContext (std::wstring theName, TDF_Label &theContext, TDF_Label &theValue)=0
 This method restores by the context and value name the context label and sub-label where the value is. More...
 
virtual bool isLater (const TDF_Label theResult1, const TDF_Label theResult2) const =0
 Returns true if the first result is older than the second one in the tree of features. More...
 

Detailed Description

An interface for generation of the naming name basing on the current selection and document information.

This requires higher-level data access, so, the caller of "name" method of Selector must implement this helper-class abstract methods.

Constructor & Destructor Documentation

◆ Selector_NameGenerator()

Selector_NameGenerator::Selector_NameGenerator ( )
inline

empty constructor, nothing to add

Member Function Documentation

◆ contextName()

virtual std::wstring Selector_NameGenerator::contextName ( const TDF_Label  theSelectionLab)
pure virtual

This method returns the context name by the label of the sub-selected shape.

Implemented in Model_AttributeSelection.

◆ restoreContext()

virtual bool Selector_NameGenerator::restoreContext ( std::wstring  theName,
TDF_Label &  theContext,
TDF_Label &  theValue 
)
pure virtual

This method restores by the context and value name the context label and sub-label where the value is.

Returns true if it is valid.

Implemented in Model_AttributeSelection.

◆ isLater()

virtual bool Selector_NameGenerator::isLater ( const TDF_Label  theResult1,
const TDF_Label  theResult2 
) const
pure virtual

Returns true if the first result is older than the second one in the tree of features.

Implemented in Model_AttributeSelection.