friend class Model_ValidatorsFactory;
friend class Model_SelectionNaming;
friend class Model_ResultConstruction;
+ friend class Model_ResultBody;
public:
/// The simplest constructor. "setLabel" must be called just after to initialize correctly.
MODEL_EXPORT virtual bool isValid();
/// Returns the label where the shape must be stored (used in ResultBody)
- TDF_Label& shapeLab()
+ TDF_Label shapeLab() const
{
- return myLab;
+ return myLab.IsNull() ? myLab : myLab.Father().FindChild(2);
}
/// Initializes object by the attributes: must be called just after the object is created