VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTextProxyGroup.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 
16 
17 #include <tbb/concurrent_unordered_map.h>
18 #include <tbb/concurrent_unordered_set.h>
19 
20 namespace makVrv
21 {
22  class DtTextProxy;
23  class DtTexturedGlyphRenderer;
24 
28  {
29  friend class DtTextRenderer;
30 
31  public:
32  typedef std::vector<DtTextProxy*> TextProxyList;
33 
34  public:
38 
40  const DtTextProxyGroup& other) = delete;
41 
42  DtTextProxyGroup& operator=(
43  const DtTextProxyGroup& other) = delete;
44 
46  public:
47  const DtQuadsRenderData& renderData(void) const;
48 
49  public:
53  virtual void render(DtTexturedGlyphRenderer* renderer, const DtObserverRenderData& channelRenderData);
54 
55  protected:
59  virtual void initializeRenderDataAndComputeFontToUniqueCodePoints(const DtObserverRenderData& channelRenderData, DtFontInterface* defaultFont);
60 
62  virtual void initializeTextureListsAndLoadFontsForRendering(DtTexturedGlyphRenderer* glyphRenderer);
63 
65  virtual void drawProxies(DtTexturedGlyphRenderer* glyphRenderer, const DtObserverRenderData& channelRenderData, DtFontInterface* defaultFont) const;
66 
67  protected:
69 
71 
73 
74  tbb::concurrent_unordered_map<DtFontInterface*, tbb::concurrent_unordered_set<DtUnicodeChar::CodePoint> > myFontToUniqueCodePoints;
75  };
76 }
Contains makVrv::DtTextProxy class.
TextProxyList myProxies
Definition: DtTextProxyGroup.h:68
A glyph renderer which renders the texture associated with a glyph.
Definition: DtTexturedGlyphRenderer.h:28
Contains makVrv::DtAltitudeBasedConfiguration class.
Contains makVrv::DtCommonRenderData class.
A class for rendering text object.
Definition: DtTextRenderer.h:58
#define DT_DLL_VRVGRAPHICS
Contains DLL export macros.
Definition: vrvGraphics.h:19
tbb::concurrent_unordered_map< DtFontInterface *, tbb::concurrent_unordered_set< DtUnicodeChar::CodePoint > > myFontToUniqueCodePoints
Definition: DtTextProxyGroup.h:74
A class with encapsulated a font loaded from disk with a given size.
Definition: DtFontInterface.h:22
DtQuadsRenderData myRenderData
Definition: DtTextProxyGroup.h:72
Definition: DtCommonRenderData.h:19
std::vector< DtTextProxy * > TextProxyList
Definition: DtTextProxyGroup.h:32
DtAltitudeBasedConfigurationCollection myAltitudeBasedConfigurations
Definition: DtTextProxyGroup.h:70
Definition: DtCommonRenderData.h:32
A group of text proxies that share the same set of altitude-based configurations. Groups of text prox...
Definition: DtTextProxyGroup.h:27
std::vector< DtAltitudeBasedConfiguration > DtAltitudeBasedConfigurationCollection
A collection of altitude-based configurations for a text proxy.
Definition: DtAltitudeBasedConfiguration.h:42

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)