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