mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0022819: Redesign of OpenGl driver
This commit is contained in:
41
src/OpenGl/OpenGl_Text.hxx
Normal file
41
src/OpenGl/OpenGl_Text.hxx
Normal file
@@ -0,0 +1,41 @@
|
||||
// File: OpenGl_Text.hxx
|
||||
// Created: 13 July 2011
|
||||
// Author: Sergey ZERCHANINOV
|
||||
// Copyright: OPEN CASCADE 2011
|
||||
|
||||
#ifndef OpenGl_Text_Header
|
||||
#define OpenGl_Text_Header
|
||||
|
||||
#include <OpenGl_Element.hxx>
|
||||
|
||||
#include <OpenGl_TextParam.hxx>
|
||||
|
||||
#include <TCollection_ExtendedString.hxx>
|
||||
#include <Graphic3d_Vertex.hxx>
|
||||
#include <Graphic3d_HorizontalTextAlignment.hxx>
|
||||
#include <Graphic3d_VerticalTextAlignment.hxx>
|
||||
|
||||
class OpenGl_Text : public OpenGl_Element
|
||||
{
|
||||
public:
|
||||
|
||||
OpenGl_Text (const TCollection_ExtendedString& AText,
|
||||
const Graphic3d_Vertex& APoint,
|
||||
const Standard_Real AHeight,
|
||||
const Graphic3d_HorizontalTextAlignment AHta,
|
||||
const Graphic3d_VerticalTextAlignment AVta);
|
||||
virtual ~OpenGl_Text ();
|
||||
|
||||
virtual void Render (const Handle(OpenGl_Workspace) &AWorkspace) const;
|
||||
|
||||
protected:
|
||||
|
||||
OpenGl_TextParam myParam;
|
||||
TEL_POINT myAttachPnt;
|
||||
const wchar_t *myString;
|
||||
|
||||
public:
|
||||
IMPLEMENT_MEMORY_OPERATORS
|
||||
};
|
||||
|
||||
#endif //OpenGl_Text_Header
|
Reference in New Issue
Block a user