VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtSegmentedLine.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2014 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 namespace makVrv
15 {
16 
17  class DtOverlayRenderer;
18  class DtWidgetPicker;
19  class DtLineSegmentInterface;
20  class DtPickableLine;
21 
25  {
26  public:
27 
30 
36 
38  virtual ~DtSegmentedLine();
39 
44  virtual void setEventsEnabled(bool enabled, unsigned long long userData = 0);
45 
47  virtual bool eventsEnabled() const;
48 
53  virtual void setVertexCount(unsigned int vertexCount);
54 
57  virtual unsigned int vertexCount() const;
58 
60  virtual unsigned int segmentCount() const;
61 
63  virtual void set2DPosition(unsigned int vertexIndex, float x1, float y1);
64 
66  virtual void get2DPosition(unsigned int vertexIndex, float& x, float& y) const;
67 
71  virtual void set3DPosition(unsigned int vertexIndex, float x, float y, float z, float w);
72 
74  virtual void get3DPosition(unsigned int vertexIndex, float& x, float& y, float& z, float& w) const;
75 
77  virtual void set3DDirection(unsigned int vertexIndex, float x, float y, float z);
78 
80  virtual void get3DDirection(unsigned int vertexIndex, float& x, float& y, float& z) const;
81 
83  virtual void setDirection2DLength(unsigned int vertexIndex, float length);
84 
86  virtual float direction2DLength(unsigned int vertexIndex) const;
87 
89  virtual void setSegmentColor(unsigned int segment, float r, float g, float b, float a);
90 
92  virtual void setPointColor(unsigned int point, float r, float g, float b, float a);
93 
95  virtual void setStipplePattern(unsigned int segment, unsigned int pattern);
96 
98  virtual void setWidth(unsigned int segment, float w);
99 
103  virtual void setEventWidth(float);
104 
106  virtual DtLineSegmentInterface* createAndInitNewSegment();
107 
110  virtual void setGroup( int );
111 
112  protected:
114  virtual void removeLineSegmentsUntilEndFrom(int segmentCount);
115 
117  virtual void setLineSegment(int, DtLineSegmentInterface*);
118 
121  virtual void slot_pickerDestroyed();
122 
123  protected:
124 
125  typedef std::vector<DtLineSegmentInterface*> LineSegmentList;
126  typedef std::vector<DtPickableLine*> PickableSegmentList;
127 
133  unsigned int myVertexCount;
134  unsigned long long myUserData;
136 
139  int myGroup;
140  };
141 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)