mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0023690: Miscellaneous minor enhancements in OCAF/XDE
This commit is contained in:
parent
ea9632bc14
commit
d97f89db4f
@ -65,11 +65,13 @@ raises
|
||||
|
||||
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);
|
||||
|
@ -30,24 +30,6 @@
|
||||
#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 ++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
|
||||
|
@ -26,6 +26,14 @@
|
||||
#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; }
|
||||
|
||||
|
@ -64,6 +64,7 @@ is
|
||||
Set (me : mutable; R,G,B : Real from Standard);
|
||||
|
||||
GetColor (me) returns Color from Quantity;
|
||||
---C++: return const &
|
||||
|
||||
GetNOC (me) returns NameOfColor from Quantity;
|
||||
|
||||
|
@ -135,7 +135,7 @@ void XCAFDoc_Color::Set(const Quantity_Color& C)
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Quantity_Color XCAFDoc_Color::GetColor() const
|
||||
const Quantity_Color& XCAFDoc_Color::GetColor() const
|
||||
{
|
||||
return myColor;
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ is
|
||||
---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>
|
||||
|
@ -50,6 +50,7 @@ is
|
||||
|
||||
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
|
||||
|
@ -73,7 +73,7 @@ const Standard_GUID& XCAFDoc_Location::GetID()
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
TopLoc_Location XCAFDoc_Location::Get() const
|
||||
const TopLoc_Location& XCAFDoc_Location::Get() const
|
||||
{
|
||||
return myLocation;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user