From 59b82b152633243a3a5553ebbe0a70519b2f7e91 Mon Sep 17 00:00:00 2001 From: isk Date: Thu, 25 Jun 2015 12:59:59 +0300 Subject: [PATCH] GetFont method at Graphic3d_AspectText3d is added. --- src/Graphic3d/Graphic3d_AspectText3d.cdl | 5 +++++ src/Graphic3d/Graphic3d_AspectText3d.cxx | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/Graphic3d/Graphic3d_AspectText3d.cdl b/src/Graphic3d/Graphic3d_AspectText3d.cdl index 5e54cf1b92..19c6f3ee76 100644 --- a/src/Graphic3d/Graphic3d_AspectText3d.cdl +++ b/src/Graphic3d/Graphic3d_AspectText3d.cdl @@ -103,6 +103,11 @@ is ---AFont may be to take means from User(example "Courier New") ---or Font name defined in Font_NameOfFont(example Font_NOF_ASCII_MONO) ---or use default font("Courier") + + GetFont (me) returns AsciiString from TCollection; + ---Level: Public + ---Purpose: Returns font name. + ---C++: return const& SetSpace ( me : mutable; diff --git a/src/Graphic3d/Graphic3d_AspectText3d.cxx b/src/Graphic3d/Graphic3d_AspectText3d.cxx index db5a40fcf9..1739b8e751 100644 --- a/src/Graphic3d/Graphic3d_AspectText3d.cxx +++ b/src/Graphic3d/Graphic3d_AspectText3d.cxx @@ -128,6 +128,11 @@ void Graphic3d_AspectText3d::SetFont (const Standard_CString AFont) { MyFont = aTemp; } +const TCollection_AsciiString& Graphic3d_AspectText3d::GetFont() const +{ + return MyFont; +} + void Graphic3d_AspectText3d::SetSpace (const Standard_Real ASpace) { MySpace = ASpace; -- 2.39.5