VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtEntity2dImageFacade.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 #include <vrvUtil/DtUnicode.h>
15 #include <string>
16 
17 namespace makVrv
18 {
19  class DtProjectedWidgetModelAgent;
20  class DtWidgetAgent;
21 
26  {
27  public:
28 
31  DtElementID id, bool distribute = false);
32 
34  DtEntity2dImageFacade(DtAgentManagerInterface& sceneInterface, int modelSet,
35  DtElementID id, bool distribute = false);
36 
37 
39  virtual ~DtEntity2dImageFacade();
40 
43 
44 
46 
47 
48  virtual void setIconModelDefinition( const std::string& def );
49  virtual std::string iconModelDefinition() const;
51 
53 
54 
55 
56  virtual void setDestroyedIconModelDefinition( const std::string& def );
57  virtual std::string destroyedIconModelDefinition() const;
59 
61 
62 
63  virtual void setScale( float scale );
64  float scale() const;
66 
68 
69 
70  virtual void setImageSize( int sizeX, int sizeY );
71  virtual void getImageSize( int& sizeX, int& sizeY );
73 
75 
76  protected:
77 
78  virtual void updateIcon();
79 
80  protected:
81  DtProjectedWidgetModelAgent* myProjectIconModelAgent;
82  DtWidgetAgent* myIcon;
83  DtWidgetAgent* myDestroyedIcon;
84  float myScale;
85 
86  unsigned int myIconGroup;
87  unsigned int myDestroyedIconGroup;
88 
89  int mySizeX;
90  int mySizeY;
91 
92  std::string myIconModelDefinition;
94  };
95 }
96 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)