VR-Forces 4.1.1 Class Documentation
DtEntityExtentVisualizer.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2012 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: DtEntityExtentVisualizer.h,v $ $Revision: 1.1 $ $State: Exp $
7 *********************************************************************/
11 
12 #pragma once
13 
14 #include <vrfGuiCore/vrfGuiCore.h>
16 #include <vrvCore/DtSceneObjectAgent.hpp>
17 #include <matrix/vlVector.h>
19 
22 
23 namespace makVrv
24 {
25  class DtModelAgent;
26  class DtAttachableUpdaterAgent;
27 }
28 
29 namespace makVrf
30 {
34  {
35  public:
38  int modelSet);
39 
41  virtual ~DtEntityExtentVisualizer();
42 
44  virtual void setDimensions(const DtVector& dim);
45 
48  virtual void setOffset(const DtVector& offset);
49 
51  virtual void setColor(float r,float g,float b,float a);
52 
54  virtual void setShowExtents(bool);
55 
57  virtual void setShowOnlyIfSelected(bool);
58  bool showOnlyIfSelected() const
59  {
60  return myShowOnlyIfSelected;
61  }
62 
63  virtual void setVisible(bool yesNo);
64 
66  virtual void setSelected(bool);
67 
68  virtual void setLockUpdates(bool b);
69  bool updatesLocked() const;
70 
71  protected:
72  virtual void createModelAgents();
73 
74  virtual void destroyModelAgents();
75 
76  virtual void setModelDefinitionForAgents();
77 
79  virtual makVrv::DtModelAgent* createExtentModelAgent() = 0;
80 
81  protected:
82  makVrv::DtModelAgent* myEntityExtentModelAgent;
83  makVrv::DtAttachableUpdaterAgent* myUpdater;
84  makVrv::DtSceneObjectAgent* myExtentVisualizerAgent;
85  float myColor[4];
89 
91  };
92 }
93 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)