VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWindowLine.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/DtUniqueID.h>
13 #include <vrvCore/DtWindowObject.h>
14 
15 #include <vector>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtWindowLineInstance;
21 
31  {
32  public:
33 
35  DtWindowLine(DtDe& de, DtUniqueID id);
36 
38  virtual ~DtWindowLine();
39 
41  virtual void setVertex(unsigned int vertex, double x, double y );
42 
44  virtual void removeVertex(unsigned int vertex );
45 
48  virtual void setStartVertex(double x, double y);
49 
52  virtual void setEndVertex(double x, double y);
53 
55  virtual void setVisible(bool isVisible);
56 
58  virtual void setWidth(unsigned int width);
59 
61  virtual void setColor( float r, float g, float b, float a );
62 
65  virtual void setStipplePattern( unsigned int pattern );
66 
69  virtual void setStyleSegments( const std::vector<double>& segmentPercentages );
70 
72  virtual void setSegmentColor(unsigned int index, float r, float g, float b, float a);
73 
75  virtual void setSegmentLightningStyle(unsigned int index, bool enableLightningStyle);
76 
78  virtual void setSegmentStartArrow(unsigned int index, bool enableStartArrow);
79 
81  virtual void setSegmentEndArrow(unsigned int index, bool enableEndArrow);
82 
84  virtual void setSegmentStipplePattern(unsigned int index, unsigned int stipplePattern);
85 
87  virtual void setSegmentWidth(unsigned int index, unsigned int width);
88 
91  virtual void setSegmentStartColor( unsigned int segmentIndex, float r,
92  float g, float b, float a );
93 
96  virtual void setSegmentEndColor( unsigned int segmentIndex, float r,
97  float g, float b, float a );
98 
101  virtual void setInstance(DtWindowLineInstance* instance);
102 
104  virtual DtWindowLineInstance* instance();
105 
106  protected:
107 
109  virtual void update();
110 
112  virtual void needsUpdate();
113 
114 
115  protected:
118  };
119 }
120 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)