VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
entityExtentVisualizer.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 <vrfGuiCore/vrfGuiCore.h>
14 #include <vrvCore/DtSceneObjectAgent.hpp>
15 #include <matrix/vlVector.h>
16 
17 namespace makVrv
18 {
19  class DtModelAgent;
20  class DtAttachableUpdaterAgent;
21 }
22 
23 namespace makVrf
24 {
28  {
29  public:
32  int modelSet);
33 
35  virtual ~DtEntityExtentVisualizer();
36 
38  virtual void setDimensions(const DtVector& dim);
39 
42  virtual void setOffset(const DtVector& offset);
43 
45  virtual void setColor(float r,float g,float b,float a);
46 
48  virtual void setShowExtents(bool);
49 
51  virtual void setShowOnlyIfSelected(bool);
52  bool showOnlyIfSelected() const
53  {
54  return myShowOnlyIfSelected;
55  }
56 
57  virtual void setVisible(bool yesNo);
58 
60  virtual void setSelected(bool);
61 
62  protected:
63  virtual void createModelAgents();
64 
65  virtual void destroyModelAgents();
66 
67  virtual void setModelDefinitionForAgents();
68 
70  virtual makVrv::DtModelAgent* createExtentModelAgent() = 0;
71 
72  protected:
73  makVrv::DtModelAgent* myEntityExtentModelAgent;
74  makVrv::DtAttachableUpdaterAgent* myUpdater;
75  makVrv::DtSceneObjectAgent* myExtentVisualizerAgent;
76  float myColor[4];
80  };
81 }
82 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)