Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef GLVIEWER_ASPECTLINE_H
00028 #define GLVIEWER_ASPECTLINE_H
00029
00030 #include "GLViewer.h"
00031
00032 #include <QColor>
00033
00034 #ifdef WIN32
00035 #pragma warning( disable:4251 )
00036 #endif
00037
00043 class GLVIEWER_API GLViewer_AspectLine
00044 {
00045 public:
00047
00048
00049
00050
00051
00052 GLViewer_AspectLine();
00054
00058 GLViewer_AspectLine( int theType, float theWidth );
00059
00061 ~GLViewer_AspectLine();
00062
00064
00069 void setLineColors( QColor nc = Qt::black,
00070 QColor hc = Qt::cyan,
00071 QColor sc = Qt::red );
00073 int setLineWidth( const float theWidth );
00075
00078 int setLineType( const int theType );
00079
00081
00086 void getLineColors( QColor& theNC, QColor& theHC, QColor& theSC ) const;
00088 float getLineWidth() const { return myLineWidth; };
00090 int getLineType() const { return myLineType; };
00091
00093
00096 QByteArray getByteCopy() const;
00097
00099
00102 static GLViewer_AspectLine* fromByteCopy( QByteArray );
00103
00104 protected:
00106 QColor myNColor;
00108 QColor myHColor;
00110 QColor mySColor;
00112 float myLineWidth;
00114
00115 int myLineType;
00116 };
00117
00118 #ifdef WIN32
00119 #pragma warning ( default:4251 )
00120 #endif
00121
00122 #endif