VR-Vantage API Documentation
DtVrlinkElement.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: $ $Revision: $ $State: $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvVrl/vrvVrl.h>
16 #include <vrvCore/DtUniqueID.h>
18 #include <vrvCore/DtElementEntry.h>
19 #include <vrvUtil/DtUnicode.h>
20 
21 #include <vector>
22 
23 class DtEntityType;
24 
25 namespace makVrv
26 {
27  class DtBaseConnection;
28 
33  {
34  public:
35 
38 
39  virtual ~DtVrlinkElement();
40 
42  virtual void visualize(const DtSharedModelSetSettings::ModelSetVisualizedMap& sets);
43 
45  virtual void setVisible( bool visible );
46 
48  bool visible() const;
49 
52  inline DtElementID elementID() const
53  {
54  return myElementId;
55  }
56 
59  const DtUnicode& definition() const;
60 
62  virtual DtElementEntry::ObjectType elementType() const = 0;
63 
68  virtual void changeElementAttribute( const DtElementAttribute* attr );
69 
70  protected:
71 
73  void reportElementCreated();
75  void reportDisplayName();
77  void reportOverlayNameChanged();
79  void reportVisibility();
81  void reportDamageStateChanged();
82 
83  void updateEntityType( const DtEntityType& type );
84 
86  void slot_updateDisplayNameRaw(const char* text);
87 
89  void slot_updateOverlayNameRaw(const char* text);
90 
92  void slot_updateDisplayName(const std::string& text);
93 
95  void slot_updateOverlayName(const std::string& pname);
96 
98  void slot_updateDamageState(const unsigned int state);
99 
100  virtual void getDefinitions( std::vector<DtUnicode>& definitions ) = 0;
101  virtual void setModelSetEnabled( int modelSet, bool enabled ) = 0;
102 
103  protected:
107  std::string myDisplayName;
108  std::string myElementOverlayName;
109  unsigned int myDamageState;
112  };
113 
114 }
115 


Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)