VR-Forces 4.1.1 Class Documentation
DtRangeLineVisualizer.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: DtRangeLineVisualizer.h,v $ $Revision: 1.1 $ $State: Exp $
7 *********************************************************************/
11 
12 #pragma once
13 
15 
16 class DtVector;
17 
18 namespace makVrv
19 {
20  class DtSegmentedLineModelAgent;
21  class DtShapeModelAgent;
22  class DtAttachableUpdaterAgent;
23 }
24 
25 namespace exampleRangeLine
26 {
27  class DtRangeLineStateListener;
28 
33  {
34  public:
37  int modelSet);
38 
40  virtual ~DtRangeLineVisualizer();
41 
43  virtual void setColor(float r, float g, float b, float a);
44  void color(float& r, float& g, float& b, float& a) const;
45 
47  virtual void setStartPoint(const DtVector&);
48 
50  virtual void setEndPoint(const DtVector&);
51 
54 
56  virtual void setStartPointOffset(const DtVector&);
57 
60 
62  virtual void setEndPointOffset(const DtVector&);
63 
64  virtual void setSelected( bool b );
65 
66  protected:
67  virtual void createModelAgents();
68  virtual void destroyModelAgents();
69  virtual void setModelDefinitionForAgents();
70 
72 
73  virtual void resetSpatial();
74 
76  virtual makVrv::DtSegmentedLineModelAgent* createLineModelAgent() = 0;
77 
78  protected:
80  makVrv::DtSegmentedLineModelAgent* myLineModelAgent;
81  makVrv::DtAttachableUpdaterAgent* myAttachableUpdaterAgent;
82  };
83 
85 }
86 

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)