From 593dfe97eaa790412932bb0a68104e4bd80a08da Mon Sep 17 00:00:00 2001 From: kgv Date: Sat, 9 Jul 2016 16:57:04 +0300 Subject: [PATCH] 0027632: Visualization, XCAFPrs_AISObject - provide method for assigning new Label in the document --- src/XCAFPrs/XCAFPrs_AISObject.hxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/XCAFPrs/XCAFPrs_AISObject.hxx b/src/XCAFPrs/XCAFPrs_AISObject.hxx index f4dcb42ac1..c59c84da7f 100644 --- a/src/XCAFPrs/XCAFPrs_AISObject.hxx +++ b/src/XCAFPrs/XCAFPrs_AISObject.hxx @@ -29,7 +29,14 @@ public: Standard_EXPORT XCAFPrs_AISObject (const TDF_Label& theLabel); //! Returns the label which was visualised by this presentation - Standard_EXPORT inline TDF_Label GetLabel() const { return myLabel; } + const TDF_Label& GetLabel() const { return myLabel; } + + //! Assign the label to this presentation + //! (but does not mark it outdated with SetToUpdate()). + void SetLabel (const TDF_Label& theLabel) + { + myLabel = theLabel; + } protected: @@ -48,7 +55,7 @@ protected: //! By default, the style uses white color for curves and surfaces. Standard_EXPORT virtual void DefaultStyle (XCAFPrs_Style& theStyle) const; -private: +protected: TDF_Label myLabel;