VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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>
17 
20 
21 namespace makVrv
22 {
23  class DtModelAgent;
24  class DtAttachableUpdaterAgent;
25 }
26 
27 namespace makVrf
28 {
32  {
33  public:
36  int modelSet);
37 
39  virtual ~DtEntityExtentVisualizer();
40 
42  virtual void setDimensions(const DtVector& dim);
43 
46  virtual void setOffset(const DtVector& offset);
47 
49  virtual void setColor(float r,float g,float b,float a);
50 
52  virtual void setShowExtents(bool);
53 
55  virtual void setShowOnlyIfSelected(bool);
56  bool showOnlyIfSelected() const
57  {
58  return myShowOnlyIfSelected;
59  }
60 
61  virtual void setVisible(bool yesNo);
62 
64  virtual void setSelected(bool);
65 
66  protected:
67  virtual void createModelAgents();
68 
69  virtual void destroyModelAgents();
70 
71  virtual void setModelDefinitionForAgents();
72 
74  virtual makVrv::DtModelAgent* createExtentModelAgent() = 0;
75 
76  protected:
77  makVrv::DtModelAgent* myEntityExtentModelAgent;
78  makVrv::DtAttachableUpdaterAgent* myUpdater;
79  makVrv::DtSceneObjectAgent* myExtentVisualizerAgent;
80  float myColor[4];
84  };
85 }
86 

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)