VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWindowTextInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 #include <vrvCore/DtWindowText.h>
15 #include <vrvMath/DtMatrix3.h>
17 #include <vector>
18 
19 namespace makVrv
20 {
25  {
26  public:
28  virtual ~DtWindowTextInstance();
29 
31  virtual void setVisible(bool isVisible) = 0;
32 
34  virtual void setTopLeftCorner( float x, float y ) = 0;
35 
36  virtual bool calculateSize(float& width, float& height) const = 0;
37 
39  virtual void setColor(float r,float g,float b,float a) = 0;
40 
42  virtual void setText(const std::string& textString) = 0;
43 
48  virtual void setFont(const std::string& fontFile, float sizeInPoints) = 0;
49 
51  virtual void setTextBoxWidth(float widthInPixels) = 0;
52 
54  virtual void setAlignment(DtWindowText::TextAlignment alignment) = 0;
55 
58  virtual void setTransform( DtMatrix3<double> transform ) = 0;
59 
61  virtual void update() = 0;
62 
64  virtual void setClipBox( DtVector2<double> bottomLeftLocation, DtVector2<double> topRightLocation ) = 0;
65 
68  virtual void setGroup( int groupId ) = 0;
69 
74  virtual void setChannelOverlay( const std::string& displayName,
75  const std::string& windowName, const std::string& channelName ) = 0;
76  };
77 
81  {
82  public:
85 
87  virtual ~DtWindowTextInstanceCreator();
88 
90  static DtWindowTextInstanceCreator& instance( DtDe& de );
91 
93  static void registerInstance( DtDe& de, DtWindowTextInstanceCreator* instance );
94 
96  virtual DtWindowTextInstance* create();
97  protected:
99  };
100 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
3 dimensional matrix
Creator for DtWindowTextInstance, will throw if you create on it. osg creator is registered in vrvOsg...
Definition: DtWindowTextInstance.h:80
Interface for a DtWindowTextInstance An object that draws a 2D text.
Definition: DtWindowTextInstance.h:24
Contains makVrv::DtWindowText class.
Interface for classes with settable visibility, such as a 3D model or 2D graphic. ...
Definition: DtSetVisibilityInterface.h:22
Contains makVrv::DtVirtualBaseClass class.
DtDe & myDe
Definition: DtWindowTextInstance.h:98
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Contains the DtSetVisibilityInterface.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
TextAlignment
Definition: DtWindowText.h:41
Contains DLL export macros.

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)