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:
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 }
DtVdc3DAttachPoint myEndAttachment
Definition: DtLine3DObject.h:356
bool myProjected
Definition: DtLine3DObject.h:360
bool myFlashing
Definition: DtLine3DObject.h:358
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:359
static const DtVdcColor DtVdcWhite
Constant for the color White.
Definition: DtVdcColor.h:186
std::vector< DtVdcLineSegment > myLineSegments
Definition: DtLine3DObject.h:361
Straight line.
Definition: DtVdcLineSegment.h:33
Definition: Dt3DTwoPositionedObject.h:15
DtVdc3DAttachPoint myStartAttachment
Definition: DtLine3DObject.h:355
DtEnvironmentalLineRecord myLineRecord
Definition: DtLine3DObject.h:363
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:21
#define DT_DLL_VRVDRAWCONTROL
Definition: vrvDrawControl.h:15
DtVector32 myOffset
Definition: DtLine3DObject.h:357
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:364
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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)