0022819: Redesign of OpenGl driver
[occt.git] / src / OpenGl / OpenGl_Text.hxx
CommitLineData
2166f0fa
SK
1// File: OpenGl_Text.hxx
2// Created: 13 July 2011
3// Author: Sergey ZERCHANINOV
4// Copyright: OPEN CASCADE 2011
5
6#ifndef OpenGl_Text_Header
7#define OpenGl_Text_Header
8
9#include <OpenGl_Element.hxx>
10
11#include <OpenGl_TextParam.hxx>
12
13#include <TCollection_ExtendedString.hxx>
14#include <Graphic3d_Vertex.hxx>
15#include <Graphic3d_HorizontalTextAlignment.hxx>
16#include <Graphic3d_VerticalTextAlignment.hxx>
17
18class OpenGl_Text : public OpenGl_Element
19{
20 public:
21
22 OpenGl_Text (const TCollection_ExtendedString& AText,
23 const Graphic3d_Vertex& APoint,
24 const Standard_Real AHeight,
25 const Graphic3d_HorizontalTextAlignment AHta,
26 const Graphic3d_VerticalTextAlignment AVta);
27 virtual ~OpenGl_Text ();
28
29 virtual void Render (const Handle(OpenGl_Workspace) &AWorkspace) const;
30
31 protected:
32
33 OpenGl_TextParam myParam;
34 TEL_POINT myAttachPnt;
35 const wchar_t *myString;
36
37 public:
38 IMPLEMENT_MEMORY_OPERATORS
39};
40
41#endif //OpenGl_Text_Header