Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#include <Interface_SignLabel.ixx>
#include <Interface_InterfaceModel.hxx>
#include <TCollection_HAsciiString.hxx>
Interface_SignLabel::Interface_SignLabel () { }
Standard_CString Interface_SignLabel::Name () const
{ return "Entity Label"; }
TCollection_AsciiString Interface_SignLabel::Text
(const Handle(Standard_Transient)& ent,
const Handle(Standard_Transient)& context) const
{
TCollection_AsciiString atext;
Handle(Interface_InterfaceModel) model =
Handle(Interface_InterfaceModel)::DownCast(context);
if (ent.IsNull() || model.IsNull()) return atext;
Handle(TCollection_HAsciiString) lab = model->StringLabel (ent);
if (!lab.IsNull()) atext = lab->String();
return atext;
}