From: kgv Date: Sat, 9 Jul 2016 13:57:04 +0000 (+0300) Subject: 0027632: Visualization, XCAFPrs_AISObject - provide method for assigning new Label... X-Git-Tag: V7_1_0_beta~253 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=593dfe97eaa790412932bb0a68104e4bd80a08da;p=occt.git 0027632: Visualization, XCAFPrs_AISObject - provide method for assigning new Label in the document --- 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;