VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
statePropertyDecorationVisualizer.h
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright (c) 2018 MAK Technologies, Inc.
3  * All rights reserved.
4  **************************************************************************/
5 
6 #pragma once
7 
10 
13 
14 namespace makVrv
15 {
16  class DtProjectedWidgetModelAgent;
17 }
18 
19 namespace makVrf
20 {
21  class DtVrfAttributeGroupWidgetAgent;
22  class DtStatePropertyDecoration;
23 
27  {
28  public:
31  int modelSet);
32 
35 
37  virtual const makVrv::DtStateVisualizer::TypeInfo& typeInfo() const;
38 
40  static const makVrv::DtStateVisualizer::TypeInfo& theTypeInfo();
41 
42  static const makVrv::DtVisualizerSchema& theExtendedDataVisualizerSchema();
43 
44  DtVrfAttributeGroupWidgetAgent* widget()
45  {
46  return myWidgetAgent;
47  }
48 
50  {
51  return myListener;
52  }
53 
55  {
56  return mySimulation;
57  }
58 
59  virtual void setSelected(bool);
60 
61  protected:
62 
64  virtual void setScale(float f);
65 
66  virtual void createModelAgents();
67  virtual void destroyModelAgents();
68  virtual void setModelDefinitionForAgents();
69 
70  virtual void createDefaultDecorations();
71 
72  virtual void slot_visualizationChanged(DtStatePropertyDecoration*, bool);
73 
74  virtual void updateOrigin();
75 
76  protected:
77  makVrv::DtProjectedWidgetModelAgent* myProjectedWidgetAgent;
78  DtVrfAttributeGroupWidgetAgent* myWidgetAgent;
79  float myScale;
80  struct Decoration
81  {
82  Decoration() : decoration(0), visible(false) {};
83  Decoration(DtStatePropertyDecoration* d, bool b) : decoration(d), visible(b) {};
84  Decoration(const Decoration& orig) : decoration(orig.decoration), visible(orig.visible) {};
85 
86  DtStatePropertyDecoration* decoration;
87  bool visible;
88  };
89 
90  std::vector<Decoration> myDecorations;
91 
93  unsigned int mySelectedGroupId;
94 
96  unsigned int mySelectedTextGroupId;
97 
100 
103 
106 
109  };
110 
113 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)