VR-Forces 4.8 Class Documentation
 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 /******************************************************************************
6 ** $RCSfile: DtVdcLineSegment.h,v $ $Revision: 1.3 $ $State: Exp $
7 ******************************************************************************/
8 #pragma once
9 
13 
16 
17 namespace vrvControlToolkit
18 {
27  {
28  public:
33  typedef enum
34  {
38  DtVdcSegmentStyleLightning
39  } DtVdcSegmentStyle;
40 
45  typedef enum
46  {
54  DtVdcSegmentArrowStyleArrowDouble
55  } DtVdcSegmentArrowStyle;
56 
57  public:
58  DtVdcLineSegment(double percentage, const DtVdcColor& color,
59  unsigned pattern, unsigned thickness, DtVdcSegmentStyle style,
60  DtVdcSegmentArrowStyle arrowStyle);
61 
63 
64  DtVdcLineSegment( const DtVdcLineSegment& orig );
65 
66  DtVdcLineSegment& operator=( const DtVdcLineSegment& orig );
67 
68  const DtVdcColor& color() const;
69  void setColor( const DtVdcColor& color );
70 
71  unsigned pattern() const;
72  void setPattern( unsigned pattern );
73 
74  unsigned thickness() const;
75  void setThickness( unsigned thickness );
76 
77  double percentage() const;
78  void setPercentage ( double percentage );
79 
80  DtVdcSegmentStyle style() const;
81  void setStyle( DtVdcSegmentStyle style );
82 
83  DtVdcSegmentArrowStyle arrowStyle() const;
84  void setArrowStyle( DtVdcSegmentArrowStyle arrowStyle );
85 
86  protected:
88  unsigned myPattern;
89  unsigned myThickness;
90  double myPercentage;
93  };
94 
95 }
DtVdcColor myColor
Definition: DtVdcLineSegment.h:87
DtVdcSegmentArrowStyle myArrowStyle
Definition: DtVdcLineSegment.h:92
DtVdcSegmentArrowStyle
Supported Arrow Segment Styles.
Definition: DtVdcLineSegment.h:45
Arrowhead on the segment end.
Definition: DtVdcLineSegment.h:50
No arrowhead on either end.
Definition: DtVdcLineSegment.h:48
DtLine2DObject and DtLine3DObject helper class.
Definition: DtVdcLineSegment.h:26
Straight line.
Definition: DtVdcLineSegment.h:36
unsigned myPattern
Definition: DtVdcLineSegment.h:88
Arrowhead on the segment start.
Definition: DtVdcLineSegment.h:52
DtVdcSegmentStyle myStyle
Definition: DtVdcLineSegment.h:91
DtVdcColor represents colors for Draw Control Objects.
Definition: DtVdcColor.h:24
double myPercentage
Definition: DtVdcLineSegment.h:90
#define DT_DLL_VRVDRAWCONTROL
Definition: vrvDrawControl.h:15
unsigned myThickness
Definition: DtVdcLineSegment.h:89
DtVdcColor.h contains the class definition for DtVdcColor, which is used to represent colors for all ...
DtVdcSegmentStyle
Supported Line Segment Styles.
Definition: DtVdcLineSegment.h:33

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)