VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtVdcLineSegment.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 #pragma once
6 
10 
13 
14 namespace vrvControlToolkit
15 {
24  {
25  public:
30  typedef enum
31  {
35  DtVdcSegmentStyleLightning
36  } DtVdcSegmentStyle;
37 
42  typedef enum
43  {
51  DtVdcSegmentArrowStyleArrowDouble
52  } DtVdcSegmentArrowStyle;
53 
54  public:
55  DtVdcLineSegment(double percentage, const DtVdcColor& color,
56  unsigned pattern, unsigned thickness, DtVdcSegmentStyle style,
57  DtVdcSegmentArrowStyle arrowStyle);
58 
60 
61  DtVdcLineSegment( const DtVdcLineSegment& orig );
62 
63  DtVdcLineSegment& operator=( const DtVdcLineSegment& orig );
64 
65  const DtVdcColor& color() const;
66  void setColor( const DtVdcColor& color );
67 
68  unsigned pattern() const;
69  void setPattern( unsigned pattern );
70 
71  unsigned thickness() const;
72  void setThickness( unsigned thickness );
73 
74  double percentage() const;
75  void setPercentage ( double percentage );
76 
77  DtVdcSegmentStyle style() const;
78  void setStyle( DtVdcSegmentStyle style );
79 
80  DtVdcSegmentArrowStyle arrowStyle() const;
81  void setArrowStyle( DtVdcSegmentArrowStyle arrowStyle );
82 
83  protected:
85  unsigned myPattern;
86  unsigned myThickness;
87  double myPercentage;
90  };
91 
92 }
DtVdcColor myColor
Definition: DtVdcLineSegment.h:84
DtVdcSegmentArrowStyle myArrowStyle
Definition: DtVdcLineSegment.h:89
DtVdcSegmentArrowStyle
Supported Arrow Segment Styles.
Definition: DtVdcLineSegment.h:42
Arrowhead on the segment end.
Definition: DtVdcLineSegment.h:47
No arrowhead on either end.
Definition: DtVdcLineSegment.h:45
DtLine2DObject and DtLine3DObject helper class.
Definition: DtVdcLineSegment.h:23
Straight line.
Definition: DtVdcLineSegment.h:33
unsigned myPattern
Definition: DtVdcLineSegment.h:85
Arrowhead on the segment start.
Definition: DtVdcLineSegment.h:49
DtVdcSegmentStyle myStyle
Definition: DtVdcLineSegment.h:88
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:21
double myPercentage
Definition: DtVdcLineSegment.h:87
#define DT_DLL_VRVDRAWCONTROL
Definition: vrvDrawControl.h:15
unsigned myThickness
Definition: DtVdcLineSegment.h:86
DtVdcColor.h contains the class definition for DtVdcColor, which is used to represent colors for all ...
DtVdcSegmentStyle
Supported Line Segment Styles.
Definition: DtVdcLineSegment.h:30

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)