![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtVdcLineSegment.h,v $ $Revision: 1.3 $ $State: Exp $ 00007 ******************************************************************************/ 00008 #pragma once 00009 00013 00014 #include <vrvDrawControl/vrvDrawControlDefines.h> 00015 #include <vrvDrawControl/DtVdcColor.h> 00016 00017 namespace vrvControlToolkit 00018 { 00026 class DT_DLL_VRVDRAWCONTROL DtVdcLineSegment 00027 { 00028 public: 00033 typedef enum 00034 { 00036 DtVdcSegmentStyleStraight, 00038 DtVdcSegmentStyleLightning 00039 } DtVdcSegmentStyle; 00040 00045 typedef enum 00046 { 00048 DtVdcSegmentArrowStyleNoArrow, 00050 DtVdcSegmentArrowStyleArrowEnd, 00052 DtVdcSegmentArrowStyleArrowStart, 00054 DtVdcSegmentArrowStyleArrowDouble 00055 } DtVdcSegmentArrowStyle; 00056 00057 public: 00058 DtVdcLineSegment(double percentage, DtVdcColor color, unsigned pattern, 00059 unsigned thickness, DtVdcSegmentStyle style, 00060 DtVdcSegmentArrowStyle arrowStyle); 00061 00062 DtVdcLineSegment(); 00063 00064 DtVdcLineSegment( const DtVdcLineSegment& orig ); 00065 00066 DtVdcLineSegment operator=( const DtVdcLineSegment& orig ); 00067 00068 const DtVdcColor& color() const; 00069 void setColor( const DtVdcColor& color ); 00070 00071 unsigned pattern() const; 00072 void setPattern( unsigned pattern ); 00073 00074 unsigned thickness() const; 00075 void setThickness( unsigned thickness ); 00076 00077 double percentage() const; 00078 void setPercentage ( double percentage ); 00079 00080 DtVdcSegmentStyle style() const; 00081 void setStyle( DtVdcSegmentStyle style ); 00082 00083 DtVdcSegmentArrowStyle arrowStyle() const; 00084 void setArrowStyle( DtVdcSegmentArrowStyle arrowStyle ); 00085 00086 protected: 00087 DtVdcColor myColor; 00088 unsigned myPattern; 00089 unsigned myThickness; 00090 double myPercentage; 00091 DtVdcSegmentStyle myStyle; 00092 DtVdcSegmentArrowStyle myArrowStyle; 00093 }; 00094 00095 }