The MainWindow class.
More...
#include <mainwindow.h>
|
void | displayTotalGPUMemory (float size) |
|
void | displayUsedGPUMemory (float size) |
|
void | displayFPS (int fps) |
|
void | displayGraphicsDeviceInfo (QString string) |
|
|
| MainWindow (QWidget *parent=0) |
|
GLWidget * | getGLWidget () |
|
|
void | openFileAction () |
| File dialog to open data files.
|
|
void | closeAction () |
|
void | renderModeChanged (int index) |
|
void | on_generateTestDataButton_clicked () |
|
void | on_spinBoxLineTriangleStripWidth_valueChanged (double value) |
|
void | on_spinBoxLineWidthPercentageBlack_valueChanged (double value) |
|
void | on_spinBoxLineWidthDepthCueingFactor_valueChanged (double value) |
|
void | on_spinBoxLineHaloMaxDepth_valueChanged (double value) |
|
void | on_pushButtonRestoreDefaults_clicked () |
|
void | on_checkBoxEnableClipping_clicked (bool checked) |
|
void | on_pushButtonSetClipPlaneNormal_clicked () |
|
void | on_horizontalSliderClipPlaneDistance_valueChanged (int value) |
|
glm::vec3 | randomPosInBoundingBox (glm::vec3 boundingBoxMin, glm::vec3 boundingBoxMax) |
| generate a random position within an axis-aligned bounding box More...
|
|
void | generateTestData (int numVertices, glm::vec3 boundingBoxMin, glm::vec3 boundingBoxMax) |
| generate vertices along smooth lines within given bounding box More...
|
|
bool | loadTRKData (QString &filename) |
| Load TrackVis Tractography Track Line Data. More...
|
|
void | generateAdditionalLineVertexData (std::vector< glm::vec3 > linePositions) |
| generate additional line vertex data (directions and uv) from line positions More...
|
|
The MainWindow class.
Class related to the MainWindow Qt User Interface. Contains a GLWidget for OpenGL Drawing.
◆ generateAdditionalLineVertexData
void MainWindow::generateAdditionalLineVertexData |
( |
std::vector< glm::vec3 > |
linePositions | ) |
|
|
protectedslot |
generate additional line vertex data (directions and uv) from line positions
- Parameters
-
linePositions | x,y,z coords of line points |
take x,y,z line points as input and store line vertices, each vertex consists of 8 floats: 3 position, 3 direction to next vertex, 2 uv. NOTE: two copies of all vertices are stored in sequential manner, with uv v-coordinate 0 and 1 to use for drawing as triangle strips (two strip vertices for each line vertex). u-coordinate is same for both and is interpolated along the length of the whole line, v-coordinate is set to 0 for vertex on "right" side of the strip and to 1 for vertex on "left" side. direction to next vertex: take average of direction to current and direction to next for smoother directions.
◆ generateTestData
void MainWindow::generateTestData |
( |
int |
numVertices, |
|
|
glm::vec3 |
boundingBoxMin, |
|
|
glm::vec3 |
boundingBoxMax |
|
) |
| |
|
protectedslot |
generate vertices along smooth lines within given bounding box
- Parameters
-
numVertices | this is only half the number of vertices generated: two copies of each vertex are stored in sequential manner to be able to render triangle strips later |
boundingBoxMin | position defining start of axis aligned bounding box |
boundingBoxMax | position defining end of axis aligned bounding box |
each vertex consists of 8 floats: 3 position, 3 direction to next vertex, 2 uv NOTE: two copies of all vertices are stored in sequential manner, with uv v-coordinate 0 and 1 to use for drawing as triangle strips (two strip vertices for each line vertex)
◆ loadTRKData
bool MainWindow::loadTRKData |
( |
QString & |
filename | ) |
|
|
protectedslot |
◆ randomPosInBoundingBox
glm::vec3 MainWindow::randomPosInBoundingBox |
( |
glm::vec3 |
boundingBoxMin, |
|
|
glm::vec3 |
boundingBoxMax |
|
) |
| |
|
protectedslot |
generate a random position within an axis-aligned bounding box
- Parameters
-
boundingBoxMin | position defining start of axis aligned bounding box |
boundingBoxMax | position defining end of axis aligned bounding box |
The documentation for this class was generated from the following files: