is
Create returns Label from TDF;
- ---Purpose: Constructs an empty label object.
+ ---Purpose: Constructs an empty label object.
+ ---C++: inline
Create(aNode : LabelNodePtr from TDF) returns Label from TDF
is private;
---Purpose: Reserved to the friends.
+ ---C++: inline
Nullify(me : in out);
#include <Standard_ImmutableObject.hxx>
-//=======================================================================
-//function : TDF_Label
-//purpose :
-//=======================================================================
-
-TDF_Label::TDF_Label()
-:myLabelNode(NULL)
-{}
-
-//=======================================================================
-//function : TDF_Label
-//purpose :
-//=======================================================================
-
-TDF_Label::TDF_Label(const TDF_LabelNodePtr& aNode)
-:myLabelNode(aNode)
-{}
-
// Attribute methods ++++++++++++++++++++++++++++++++++++++++++++++++++++
#include <TDF_LabelNode.hxx>
#include <TDF_TagSource.hxx>
+inline TDF_Label::TDF_Label()
+:myLabelNode(NULL)
+{}
+
+inline TDF_Label::TDF_Label(const TDF_LabelNodePtr& aNode)
+:myLabelNode(aNode)
+{}
+
inline void TDF_Label::Nullify()
{ myLabelNode = NULL; }
Set (me : mutable; R,G,B : Real from Standard);
GetColor (me) returns Color from Quantity;
+ ---C++: return const &
GetNOC (me) returns NameOfColor from Quantity;
//purpose :
//=======================================================================
- Quantity_Color XCAFDoc_Color::GetColor() const
+const Quantity_Color& XCAFDoc_Color::GetColor() const
{
return myColor;
}
---Purpose: Returns True if label <L> has a color assignment
-- of the type <type>
- GetColor (me: mutable; L: Label from TDF;
+ GetColor (myclass; L: Label from TDF;
type : ColorType from XCAFDoc;
colorL: out Label from TDF) returns Boolean;
---Purpose: Returns label with color assigned to <L> as <type>
Get (me)
returns Location from TopLoc;
+ ---C++: return const &
--IsCaptured(me) returns Boolean;
---Purpose: Returns True if there is a reference on the same label
//purpose :
//=======================================================================
- TopLoc_Location XCAFDoc_Location::Get() const
+const TopLoc_Location& XCAFDoc_Location::Get() const
{
return myLocation;
}