/usr/include/oce/AIS_TextLabel.hxx is in liboce-visualization-dev 0.18.2-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94  | // Created on: 2014-11-10
// Copyright (c) 2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _AIS_TextLabel_HeaderFile
#define _AIS_TextLabel_HeaderFile
#include <AIS_InteractiveObject.hxx>
#include <gp_Pnt.hxx>
#include <Graphic3d_VerticalTextAlignment.hxx>
#include <Graphic3d_HorizontalTextAlignment.hxx>
#include <Font_FontAspect.hxx>
#include <TCollection_ExtendedString.hxx>
//! Presentation of the text.
class AIS_TextLabel : public AIS_InteractiveObject
{
public:
  //! Default constructor
  Standard_EXPORT AIS_TextLabel();
  //! Setup color of entire text.
  Standard_EXPORT virtual void SetColor (const Quantity_Color& theColor) Standard_OVERRIDE;
  //! Setup color of entire text.
  Standard_EXPORT virtual void SetColor (const Quantity_NameOfColor theColor) Standard_OVERRIDE;
  //! Setup text.
  Standard_EXPORT void SetText (const TCollection_ExtendedString& theText);
  //! Setup position.
  Standard_EXPORT void SetPosition (const gp_Pnt& thePosition);
  //! Setup horizontal justification.
  Standard_EXPORT void SetHJustification (const Graphic3d_HorizontalTextAlignment theHJust);
  //! Setup vertical justification.
  Standard_EXPORT void SetVJustification (const Graphic3d_VerticalTextAlignment theVJust);
  //! Setup angle.
  Standard_EXPORT void SetAngle (const Standard_Real theAngle);
  //! Setup zoomable property.
  Standard_EXPORT void SetZoomable (const Standard_Boolean theIsZoomable);
  //! Setup height.
  Standard_EXPORT void SetHeight (const Standard_Real theHeight);
  //! Setup font aspect.
  Standard_EXPORT void SetFontAspect (const Font_FontAspect theFontAspect);
  //! Setup font.
  Standard_EXPORT void SetFont (Standard_CString theFont);
private:
  //! Compute
  Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager3d)& thePresentationManager,
                                        const Handle(Prs3d_Presentation)&           thePresentation,
                                        const Standard_Integer                      theMode) Standard_OVERRIDE;
  //! Compute selection
  Standard_EXPORT virtual void ComputeSelection (const Handle(SelectMgr_Selection)& theSelection,
                                                 const Standard_Integer             theMode) Standard_OVERRIDE;
protected:
  TCollection_ExtendedString myText;
  gp_Pnt                     myPosition;
  TCollection_AsciiString    myFont;
  Font_FontAspect            myFontAspect;
public:
  //! CASCADE RTTI
  DEFINE_STANDARD_RTTI(AIS_TextLabel);
};
DEFINE_STANDARD_HANDLE(AIS_TextLabel, AIS_InteractiveObject)
#endif // _AIS_TextLabel_HeaderFile
 |