]> OCCT Git - occt-copy.git/commitdiff
GetFont method at Graphic3d_AspectText3d is added.
authorisk <isk@opencascade.com>
Thu, 25 Jun 2015 09:59:59 +0000 (12:59 +0300)
committerisk <isk@opencascade.com>
Thu, 25 Jun 2015 09:59:59 +0000 (12:59 +0300)
src/Graphic3d/Graphic3d_AspectText3d.cdl
src/Graphic3d/Graphic3d_AspectText3d.cxx

index 5e54cf1b925a8ce39f82e5753654e0c80b9911a1..19c6f3ee76e3a674292ffdda0cf2c2d1e031f7d7 100644 (file)
@@ -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;
index db5a40fcf956aa98d815c470ae2120c3480a686e..1739b8e751f089c3e941c6b100a2c4e6f1316640 100644 (file)
@@ -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;