Class for manage of presentations in GLViewer. More...
#include <GLViewer_AspectLine.h>
Public Member Functions | |
| GLViewer_AspectLine () | |
| A default constructor. More... | |
| GLViewer_AspectLine (int theType, float theWidth) | |
| A conctructor by type and width of line. More... | |
| ~GLViewer_AspectLine () | |
| A destructor. More... | |
| void | setLineColors (QColor nc=Qt::black, QColor hc=Qt::cyan, QColor sc=Qt::red) |
| A function for installing the line colors. More... | |
| int | setLineWidth (const float theWidth) |
| A function for installing the line width. More... | |
| int | setLineType (const int theType) |
| A function for installing the line type. More... | |
| void | getLineColors (QColor &theNC, QColor &theHC, QColor &theSC) const |
| A function for getting line colors information. More... | |
| float | getLineWidth () const |
| A function for getting information about line width. More... | |
| int | getLineType () const |
| A function for getting information about line type. More... | |
| QByteArray | getByteCopy () const |
| A function for coding object to the byte copy. More... | |
Static Public Member Functions | |
| static GLViewer_AspectLine * | fromByteCopy (QByteArray) |
| A function for decoding object from the byte copy. More... | |
Protected Attributes | |
| QColor | myNColor |
| A normal color. More... | |
| QColor | myHColor |
| A highlight color. More... | |
| QColor | mySColor |
| A select color. More... | |
| float | myLineWidth |
| A line width. More... | |
| int | myLineType |
| A line type. More... | |
Class for manage of presentations in GLViewer.
\Class GLViewer_AspectLine Substitution of Prs2d_AspectLine for OpenGL
| GLViewer_AspectLine::GLViewer_AspectLine | ( | ) |
A default constructor.
Default constructor
References myHColor, myLineType, myLineWidth, myNColor, and mySColor.
| GLViewer_AspectLine::GLViewer_AspectLine | ( | int | type, |
| float | width | ||
| ) |
A conctructor by type and width of line.
| theType | equals 0 for normal line and 1 for strip line |
| theWidth | is a width of new line |
Constructor
| type | 0 for normal line and 1 for strip line |
| width | - width of line |
References myHColor, myLineType, myLineWidth, myNColor, and mySColor.
| GLViewer_AspectLine::~GLViewer_AspectLine | ( | ) |
A destructor.
Destructor
|
static |
A function for decoding object from the byte copy.
A function is used for copy-past technollogy in past method
Sets line aspect from binary representation
References GLViewer_AspectLine(), and setLineColors().
| QByteArray GLViewer_AspectLine::getByteCopy | ( | ) | const |
A function for coding object to the byte copy.
A function is used for copy-past technollogy in copy method
References myHColor, myLineType, myLineWidth, myNColor, and mySColor.
| void GLViewer_AspectLine::getLineColors | ( | QColor & | nc, |
| QColor & | hc, | ||
| QColor & | sc | ||
| ) | const |
|
inline |
A function for getting information about line type.
|
inline |
A function for getting information about line width.
| void GLViewer_AspectLine::setLineColors | ( | QColor | nc = Qt::black, |
| QColor | hc = Qt::cyan, |
||
| QColor | sc = Qt::red |
||
| ) |
| int GLViewer_AspectLine::setLineType | ( | const int | type | ) |
A function for installing the line type.
| theType | equals 0 for normal line and 1 for strip line |
Sets type of line
| type | 0 for normal line and 1 for strip line |
References myLineType.
| int GLViewer_AspectLine::setLineWidth | ( | const float | width | ) |
A function for installing the line width.
Sets width of line
| width | - new width of line |
References myLineWidth.
|
protected |
A highlight color.
|
protected |
A line type.
equals 0 for normal line and 1 for strip line
|
protected |
A line width.
|
protected |
A normal color.
|
protected |
A select color.