VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtLineSegmentInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
6 
7 #pragma once
9 
10 namespace makVrv
11 {
12  class DtOverlayRenderer;
13 
17  {
18  public:
21 
24 
29  virtual void setGroup(float group) = 0;
30 
32  virtual int group() const = 0;
33 
35  virtual void set2DPositions(float x1, float y1,float x2, float y2) = 0;
36 
38  virtual void set2DPosition(unsigned int index0or1, float x, float y) = 0;
39 
40  //Set the position of the vertex.
41  virtual void get2DPosition(unsigned int index0or1, float& x, float& y ) const = 0;
42 
44  virtual void setColors(float r1, float g1, float b1, float a1,
45  float r2, float g2, float b2, float a2) = 0;
46 
49  virtual void set3DPosition(int index0or1,float dx, float dy, float z, float w) = 0;
50 
51  //Get the 3D position of the line.
52  virtual void get3DPosition(int index0or1,float& dx, float& dy, float& z, float& w) const = 0;
53 
55  virtual void set3DDirection(unsigned int index0or1, float x, float y, float z) = 0;
56 
58  virtual void get3DDirection(unsigned int index0or1, float& x, float& y, float& z) const = 0;
59 
61  virtual void setDirection2DLength(unsigned int index0or1, float length) = 0;
62 
64  virtual float direction2DLength(unsigned int index0or1) const = 0;
65 
66  //Set the vertex color.
67  virtual void setColor(unsigned int index0or1,float r, float g, float b, float a) = 0;
68 
69  //Get the vertex color.
70  virtual void getColor(unsigned int index0or1,float& r, float& g, float& b, float& a) const = 0;
71 
72  //Set the line color.
73  inline void setColor(float r, float g, float b, float a)
74  {
75  setColors(r,g,b,a,r,g,b,a);
76  }
77 
80  virtual void setWidth(float w) = 0;
81 
83  virtual float width() const = 0;
84 
91  virtual void setStippleParameters(unsigned int scale,unsigned short pattern) = 0;
92 
95  virtual void getStippleParameters(unsigned int& scale, unsigned short& pattern) const = 0;
96  };
97 
98 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)