VR-Forces 4.8 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) 2020 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 
42  {
43  public:
44 
46  DtWindowLine(DtDe& de, DtUniqueID id);
47 
49  virtual ~DtWindowLine();
50 
52  virtual void setVertex(unsigned int vertex, double x, double y );
53 
55  virtual void removeVertex(unsigned int vertex );
56 
59  virtual void setStartVertex(double x, double y);
60 
63  virtual void setEndVertex(double x, double y);
64 
66  virtual void setVisible(bool isVisible);
67 
69  virtual void setWidth(unsigned int width);
70 
72  virtual void setColor( float r, float g, float b, float a );
73 
76  virtual void setStipplePattern( unsigned int pattern );
77 
80  virtual void setStyleSegments( const std::vector<double>& segmentPercentages );
81 
83  virtual void setSegmentColor(unsigned int index, float r, float g, float b, float a);
84 
86  virtual void setSegmentLightningStyle(unsigned int index, bool enableLightningStyle);
87 
89  virtual void setSegmentStartArrow(unsigned int index, bool enableStartArrow);
90 
92  virtual void setSegmentEndArrow(unsigned int index, bool enableEndArrow);
93 
95  virtual void setSegmentStipplePattern( unsigned int index, unsigned int stipplePattern );
96 
98  virtual void setSegmentStipplePattern(unsigned int index, unsigned int stippleScale,
99  unsigned int stipplePattern);
100 
102  virtual void setSegmentWidth(unsigned int index, unsigned int width);
103 
106  virtual void setSegmentStartColor( unsigned int segmentIndex, float r,
107  float g, float b, float a );
108 
111  virtual void setSegmentEndColor( unsigned int segmentIndex, float r,
112  float g, float b, float a );
113 
116  virtual void setInstance(DtWindowLineInstance* instance);
117 
119  virtual DtWindowLineInstance* instance();
120 
121  protected:
123  virtual void update();
124 
126  virtual void needsUpdate();
127  protected:
130  };
131 }
132 
bool myConnectedToPostUpdate
Definition: DtWindowLine.h:129
A model-like object that draws a 2D line.
Definition: DtWindowLine.h:41
Base class for a graphical object that exists in a window Implements a parenting system for DtWindowO...
Definition: DtWindowObject.h:24
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
unsigned long long DtUniqueID
Definition: DtUniqueID.h:22
Interface for a DtWindowLineInstance - an attachable model instance that draws a 2D line...
Definition: DtWindowLineInstance.h:27
Contains makVrv::DtUniqueID type.
DtWindowLineInstance * myInstance
Definition: DtWindowLine.h:128
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
Contains makVrv::DtWindowObject class.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)