VR-Forces Developer's Guide
 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 
43  {
44  public:
45 
47  DtWindowLine(DtDe& de, DtUniqueID id);
48 
50  virtual ~DtWindowLine();
51 
53  virtual void setVertex(unsigned int vertex, double x, double y );
54 
56  virtual void removeVertex(unsigned int vertex );
57 
60  virtual void setStartVertex(double x, double y);
61 
64  virtual void setEndVertex(double x, double y);
65 
67  virtual void setVisible(bool isVisible);
68 
70  virtual void setWidth(unsigned int width);
71 
73  virtual void setColor( float r, float g, float b, float a );
74 
77  virtual void setStipplePattern( unsigned int pattern );
78 
81  virtual void setStyleSegments( const std::vector<double>& segmentPercentages );
82 
84  virtual void setSegmentColor(unsigned int index, float r, float g, float b, float a);
85 
87  virtual void setSegmentLightningStyle(unsigned int index, bool enableLightningStyle);
88 
90  virtual void setSegmentStartArrow(unsigned int index, bool enableStartArrow);
91 
93  virtual void setSegmentEndArrow(unsigned int index, bool enableEndArrow);
94 
96  virtual void setSegmentStipplePattern( unsigned int index, unsigned int stipplePattern );
97 
99  virtual void setSegmentStipplePattern(unsigned int index, unsigned int stippleScale,
100  unsigned int stipplePattern);
101 
103  virtual void setSegmentWidth(unsigned int index, unsigned int width);
104 
107  virtual void setSegmentStartColor( unsigned int segmentIndex, float r,
108  float g, float b, float a );
109 
112  virtual void setSegmentEndColor( unsigned int segmentIndex, float r,
113  float g, float b, float a );
114 
117  virtual void setGroup( int groupId );
118 
123  virtual void setChannelOverlay( const std::string& displayName,
124  const std::string& windowName, const std::string& channelName ) override;
125  protected:
127  virtual void update();
128 
130  virtual void needsUpdate();
131  protected:
134  };
135 }
136 
bool myConnectedToPostUpdate
Definition: DtWindowLine.h:133
A model-like object that draws a 2D line.
Definition: DtWindowLine.h:42
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:19
Interface for a DtWindowLineInstance - an attachable model instance that draws a 2D line...
Definition: DtWindowLineInstance.h:28
Contains makVrv::DtUniqueID type.
DtWindowLineInstance * myInstance
Definition: DtWindowLine.h:132
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
Contains makVrv::DtWindowObject class.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)