VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTexturedQuad.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 
15 #include <string>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtChannel;
21 
22  //DtTexturedQuad - Class represents a logo. Creates, locates and draws the logo.
25  {
26  public:
27  DtTexturedQuad( DtDe& de );
28  virtual ~DtTexturedQuad();
29 
30  virtual void createQuad( DtChannel* channel ) = 0;
31  virtual void setTexture( const std::string& textureName );
32  virtual void setPosition( float lowerLeftX, float lowerLeftY );
33  virtual void setDimensions( float imageWidth, float imageHeight );
34 
35  protected:
37  std::string myTextureName;
38  float myLowerLeftX;
39  float myLowerLeftY;
40  float myImageWidth;
42  };
43 
47  {
48  public:
49 
52  static DtTexturedQuadCreator& instance(DtDe& de);
53 
55  static void registerInstance(DtDe& de, DtTexturedQuadCreator* anInstance);
56 
58  virtual DtTexturedQuad* create(DtDe& de) = 0;
59  };
60 
61 }
62 
63 
Abstract creator base class.
Definition: DtTexturedQuad.h:46
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
DtDe & myDe
Definition: DtTexturedQuad.h:36
float myImageHeight
Definition: DtTexturedQuad.h:41
The abstract Channel Class.
Definition: DtChannel.h:35
float myLowerLeftX
Definition: DtTexturedQuad.h:38
float myImageWidth
Definition: DtTexturedQuad.h:40
Contains makVrv::DtVirtualBaseClass class.
std::string myTextureName
Definition: DtTexturedQuad.h:37
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Definition: DtTexturedQuad.h:24
float myLowerLeftY
Definition: DtTexturedQuad.h:39
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:70
Contains DLL export macros.

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)