VR-Forces 4.1 Class Documentation
DtLine3DObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2006 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtLine3DObject.h,v $ $Revision: 1.6 $ $State: Exp $
7 ******************************************************************************/
8 #pragma once
9 
13 
14 #include <vector>
15 
16 #include <vlutil/vlString.h>
17 
19 
24 
26 
27 #include <vl/envLine.h>
29 
30 namespace vrvControlToolkit
31 {
32 
42  {
43  public:
87  DtLine3DObject(DtExerciseConn* exConn, unsigned id, const DtVdc3DAttachPoint& startAttachment,
88  const DtVdc3DAttachPoint& endAttachment, int numSegments=1,
89  const DtVector& offset = DtVector::zero(),
95  unsigned thickness=1, unsigned pattern=0xffffff, bool flashing = false,
96  bool checkLos = false, bool projected = false);
97 
98 
99  virtual ~DtLine3DObject();
100 
101  private:
106  DtLine3DObject();
107 
111  DtLine3DObject(const DtLine3DObject& orig);
112 
116  DtLine3DObject& operator=(const DtLine3DObject& rhs);
117 
118 
119  public:
125  virtual const DtVdc3DAttachPoint& startAttachment() const;
126 
132  virtual void setStartAttachment(const DtVdc3DAttachPoint& startAttachment);
133 
139  virtual const DtVdc3DAttachPoint& endAttachment() const;
140 
146  virtual void setEndAttachment(const DtVdc3DAttachPoint& endAttachment);
147 
154  virtual const DtVector& offset() const;
155 
161  virtual void setOffset(const DtVector& off);
162 
168  virtual int numSegments() const;
169 
175  virtual void setNumSegments(int numSegments);
176 
184  virtual const DtVdcColor& color(int segment) const;
185  virtual const DtVdcColor& color() const;
186 
194  virtual void setColor (const DtVdcColor& color, int segment);
195  virtual void setColor (const DtVdcColor& color);
196 
204  virtual DtVdcLineSegment::DtVdcSegmentStyle lineStyle(int segment=0) const;
205 
213  virtual void setLineStyle(DtVdcLineSegment::DtVdcSegmentStyle lineStyle,
214  int segment=0);
215 
224  virtual DtVdcLineSegment::DtVdcSegmentArrowStyle arrowStyle(int segment=0)
225  const;
226 
234  virtual void setArrowStyle(DtVdcLineSegment::DtVdcSegmentArrowStyle arrowStyle,
235  int segment=0);
236 
244  virtual unsigned pattern(int segment=0) const;
245 
253  virtual void setPattern(unsigned pattern, int segment=0);
254 
262  virtual unsigned thickness(int segment=0) const;
263 
273  virtual void setThickness(unsigned thickness, int segment=0);
274 
282  virtual double percentage(int segment) const;
283 
293  virtual void setPercentage(double percentage, int segment);
294 
300  virtual bool flashing() const;
301 
307  virtual void setFlashing(bool flashing);
308 
315  virtual bool checkLos() const;
316 
323  virtual void setCheckLos(bool checkLos);
324 
331  virtual bool projected() const;
332 
339  virtual void setProjected (bool projected );
340 
341  virtual void setRemoteGraphicSet(const std::string& setName);
342 
351  virtual void update();
352 
353  protected:
354  void initRecords();
355 
356  protected:
363  std::vector<DtVdcLineSegment> myLineSegments;
364 
365  DtEnvironmentalLineRecord myLineRecord;
367  };
368 
369 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)