VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLine3DObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
11 
12 #include <vector>
13 
14 #include <vlutil/vlString.h>
15 
17 
22 
24 
25 #include <vl/environmentalLineRecord.h>
27 
28 namespace vrvControlToolkit
29 {
30 
40  {
41  public:
85  DtLine3DObject(DtExerciseConn* exConn, unsigned id, const DtVdc3DAttachPoint& startAttachment,
86  const DtVdc3DAttachPoint& endAttachment, int numSegments=1,
87  const DtVector& offset = DtVector::zero(),
93  unsigned thickness=1, unsigned pattern=0xffffff, bool flashing = false,
94  bool checkLos = false, bool projected = false);
95 
96 
97  virtual ~DtLine3DObject();
98 
99  private:
104  DtLine3DObject();
105 
109  DtLine3DObject(const DtLine3DObject& orig);
110 
114  DtLine3DObject& operator=(const DtLine3DObject& rhs);
115 
116 
117  public:
123  virtual const DtVdc3DAttachPoint& startAttachment() const;
124 
130  virtual void setStartAttachment(const DtVdc3DAttachPoint& startAttachment);
131 
137  virtual const DtVdc3DAttachPoint& endAttachment() const;
138 
144  virtual void setEndAttachment(const DtVdc3DAttachPoint& endAttachment);
145 
152  virtual const DtVector32& offset() const;
153 
159  virtual void setOffset(const DtVector32& off);
160 
166  virtual int numSegments() const;
167 
173  virtual void setNumSegments(int numSegments);
174 
182  virtual const DtVdcColor& color(int segment) const;
183  virtual const DtVdcColor& color() const;
184 
192  virtual void setColor (const DtVdcColor& color, int segment);
193  virtual void setColor (const DtVdcColor& color);
194 
202  virtual DtVdcLineSegment::DtVdcSegmentStyle lineStyle(int segment=0) const;
203 
211  virtual void setLineStyle(DtVdcLineSegment::DtVdcSegmentStyle lineStyle,
212  int segment=0);
213 
222  virtual DtVdcLineSegment::DtVdcSegmentArrowStyle arrowStyle(int segment=0)
223  const;
224 
232  virtual void setArrowStyle(DtVdcLineSegment::DtVdcSegmentArrowStyle arrowStyle,
233  int segment=0);
234 
242  virtual unsigned pattern(int segment=0) const;
243 
251  virtual void setPattern(unsigned pattern, int segment=0);
252 
260  virtual unsigned thickness(int segment=0) const;
261 
271  virtual void setThickness(unsigned thickness, int segment=0);
272 
280  virtual double percentage(int segment) const;
281 
291  virtual void setPercentage(double percentage, int segment);
292 
298  virtual bool flashing() const;
299 
305  virtual void setFlashing(bool flashing);
306 
313  virtual bool checkLos() const;
314 
321  virtual void setCheckLos(bool checkLos);
322 
329  virtual bool projected() const;
330 
337  virtual void setProjected (bool projected );
338 
339  virtual void setRemoteGraphicSet(const std::string& setName);
340 
349  virtual void update();
350 
351  protected:
352  void initRecords();
353 
354  protected:
357  DtVector32 myOffset;
361  std::vector<DtVdcLineSegment> myLineSegments;
362 
363  DtEnvironmentalLineRecord myLineRecord;
365  };
366 
367 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)