VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTextLayoutInterface.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2023 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vrvGraphics/DtFont.h>
15 
16 #include <vrvUtil/DtUnicode.h>
17 
18 namespace makVrv
19 {
20  class DtTextProxy;
21  class DtTexturedGlyphRenderer;
22  struct DtQuadsRenderData;
23  struct DtObserverRenderData;
24 
27  {
28  public:
31 
33  virtual ~DtTextLayoutInterface() {};
34 
37  const DtTextLayoutInterface &other) = delete;
38 
40  DtTextLayoutInterface &operator=(
41  const DtTextLayoutInterface &other) = delete;
42 
44  virtual void renderText(DtTexturedGlyphRenderer*, const DtTextProxy* text, DtFontInterface* font, const DtBoundingBox& bBox,
45  const DtObserverRenderData& channelRenderData, int proxyIndex, DtQuadsRenderData* renderData) = 0;
46 
55  virtual DtBoundingBox calculateBoundingBox(DtFontInterface* font, const DtUnicode& string,
56  const DtPen& pen = DtPen(), unsigned int pos = 0, int len = -1) const = 0;
57 
58  virtual bool isShaped(void) const = 0;
59  };
60 }
Generic base class for text layout renderers.
Definition: DtTextLayoutInterface.h:26
A unicode string. DtUnicode stores a UTF-16 encoded unicode string. Code Point, a Unicode character...
Definition: DtUnicode.h:33
A glyph renderer which renders the texture associated with a glyph.
Definition: DtTexturedGlyphRenderer.h:28
A class for controlling text owned by the TextRenderer.
Definition: DtTextProxy.h:33
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
A class with encapsulated a font loaded from disk with a given size.
Definition: DtFontInterface.h:22
Contains makVrv::DtGLFontManager class.
DtTextLayoutInterface()
CTOR.
Definition: DtTextLayoutInterface.h:30
Definition: DtCommonRenderData.h:20
A pen object with parameters on how to draw text.
Definition: DtBoundingBox.h:80
virtual ~DtTextLayoutInterface()
DTOR.
Definition: DtTextLayoutInterface.h:33
Contains makVrv::DtFont class.
Definition: DtCommonRenderData.h:33
A simple bounding box.
Definition: DtBoundingBox.h:101

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)