VR-Forces Developer's Guide
 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:
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 DtVector32& offset() const;
155 
161  virtual void setOffset(const DtVector32& 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:
359  DtVector32 myOffset;
363  std::vector<DtVdcLineSegment> myLineSegments;
364 
365  DtEnvironmentalLineRecord myLineRecord;
367  };
368 
369 }
DtVdc3DAttachPoint myEndAttachment
Definition: DtLine3DObject.h:358
bool myProjected
Definition: DtLine3DObject.h:362
bool myFlashing
Definition: DtLine3DObject.h:360
DtVdcSegmentArrowStyle
Supported Arrow Segment Styles.
Definition: DtVdcLineSegment.h:42
Definition: 3dGraphicalObjectLineStateRecord.h:22
No arrowhead on either end.
Definition: DtVdcLineSegment.h:45
Contains the Dt3DGraphicalObjectLineStateRecord class declaration.
bool myCheckLos
Definition: DtLine3DObject.h:361
static const DtVdcColor DtVdcWhite
Constant for the color White.
Definition: DtVdcColor.h:186
std::vector< DtVdcLineSegment > myLineSegments
Definition: DtLine3DObject.h:363
Straight line.
Definition: DtVdcLineSegment.h:33
Definition: Dt3DTwoPositionedObject.h:15
DtVdc3DAttachPoint myStartAttachment
Definition: DtLine3DObject.h:357
DtEnvironmentalLineRecord myLineRecord
Definition: DtLine3DObject.h:365
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:21
#define DT_DLL_VRVDRAWCONTROL
Definition: vrvDrawControl.h:15
DtVector32 myOffset
Definition: DtLine3DObject.h:359
DtVdc3DAttachPoint.h contains the class definition for DtVdc3DAttachPoint, which functions as a discr...
DtVdcLineSegment.h contains the class definition for DtVdcLineSegmen, which represents one segment in...
voidpf uLong offset
Definition: ioapi.h:42
Dt3DGraphicalObjectLineStateRecord myLineStateRecord
Definition: DtLine3DObject.h:366
DtVdcColor.h contains the class definition for DtVdcColor, which is used to represent colors for all ...
DtVdc3DAttachPoint represents the 3 methods for attaching a 3D draw control object in 3-space...
Definition: DtVdc3DAttachPoint.h:33
A 3D Line Stealth Draw Control Object.
Definition: DtLineObjectInterface.h:22
DtVdcSegmentStyle
Supported Line Segment Styles.
Definition: DtVdcLineSegment.h:30
A 3D Line Stealth Draw Control Object.
Definition: DtLine3DObject.h:38

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)