VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)