1 // File: GLViewer_AspectLine.h
2 // Created: November, 2004
4 // Copyright (C) CEA 2004
6 #ifndef GLVIEWER_ASPECTLINE_H
7 #define GLVIEWER_ASPECTLINE_H
14 #pragma warning( disable:4251 )
17 // Class: GLViewer_AspectLine
18 // Descr: Substitution of Prs2d_AspectLine for OpenGL
20 class GLVIEWER_API GLViewer_AspectLine
23 GLViewer_AspectLine();
24 GLViewer_AspectLine( int, float );
25 ~GLViewer_AspectLine();
27 void setLineColors( QColor nc = Qt::black,
29 QColor sc = Qt::red );
30 int setLineWidth( const float );
31 int setLineType( const int );
33 void getLineColors( QColor&, QColor&, QColor& ) const;
34 float getLineWidth() const { return myLineWidth; };
35 int getLineType() const { return myLineType; };
37 QByteArray getByteCopy() const;
39 static GLViewer_AspectLine* fromByteCopy( QByteArray );
46 int myLineType; // 0 - normal, 1 - strip
50 #pragma warning ( default:4251 )