Class for manage of presentations in GLViewer.
More...
#include <GLViewer_AspectLine.h>
GLViewer_AspectLine Substitution of Prs2d_AspectLine for OpenGL
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 |
( |
| ) |
|
QByteArray GLViewer_AspectLine::getByteCopy |
( |
| ) |
const |
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.
int GLViewer_AspectLine::getLineType |
( |
| ) |
const |
|
inline |
float GLViewer_AspectLine::getLineWidth |
( |
| ) |
const |
|
inline |
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::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.
int GLViewer_AspectLine::setLineWidth |
( |
const float |
width | ) |
|
QColor GLViewer_AspectLine::myHColor |
|
protected |
int GLViewer_AspectLine::myLineType |
|
protected |
equals 0 for normal line and 1 for strip line
float GLViewer_AspectLine::myLineWidth |
|
protected |
QColor GLViewer_AspectLine::myNColor |
|
protected |
QColor GLViewer_AspectLine::mySColor |
|
protected |
The documentation for this class was generated from the following files: