#include <mainwindow.h>
Public Member Functions | |
| MainWindow (QWidget *parent=0) | |
| MainWindow::MainWindow.   | |
| ~MainWindow () | |
| void | draw_border (float x_min, float x_max, float y_min, float y_max, float z_min, float z_max) | 
| void | draw_sampled_data (int ZAX, int ZAY, int ZAZ, int ***bounding) | 
| MainWindow::draw_sampled_data.   | |
| MainWindow (QWidget *parent=0) | |
| ~MainWindow () | |
| void | draw_border (float x_min, float x_max, float y_min, float y_max, float z_min, float z_max) | 
| void | draw_sampled_data (int ZAX, int ZAY, int ZAZ, int ***bounding) | 
Data Fields | |
| QString | file | 
| int *** | bounding | 
| int | norm_faktor | 
| float | diameter_x | 
| float | diameter_y | 
| float | diameter_z | 
| int | counter | 
| float | x_min_init | 
| float | x_max_init | 
| float | y_min_init | 
| float | y_max_init | 
| float | z_min_init | 
| float | z_max_init | 
| help * | myhelp | 
| about * | myAbout | 
Private Attributes | |
| Ui::MainWindow * | ui | 
Definition at line 14 of file mainwindow.h.
      
  | 
  explicit | 
This is the MainWindow with the logic for tychoBCG3D, TYCHO's 3D-boundary condition generator for STL- and point data.
Basically a boundary is mapped on a regular 3D grid. This regular grid can be stored as a TYCHO boundary file, ready to use in a TYCHO simulation.
| parent | 
Definition at line 27 of file mainwindow.cpp.
References alter_resolution_x(), alter_resolution_y(), alter_resolution_z(), ambientColor(), calculateNormalVector(), changePointSize(), counter, modelColor(), norm_faktor, on_actionMake_Boundary_Conditions_triggered(), on_actionMake_Soundemitter_triggered(), on_actionQuit_triggered(), on_actionReset_Bounding_Box_triggered(), on_resize_bounding_box_text_lines(), openfile_point_data(), openfile_stl_data(), set_drawer(), setbackroundColor(), setShininess(), showAbout(), showHelp(), and ui.
| MainWindow::~MainWindow | ( | ) | 
      
  | 
  explicit | 
| MainWindow::~MainWindow | ( | ) | 
      
  | 
  privateslot | 
MainWindow::alter_resolution_x.
This routine assists to set up a cubish regular grid
Definition at line 1006 of file mainwindow.cpp.
References ui.
Referenced by MainWindow(), on_actionReset_Bounding_Box_triggered(), and on_resize_bounding_box_text_lines().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
MainWindow::alter_resolution_y.
This routine assists to set up a cubish regular grid
Definition at line 1037 of file mainwindow.cpp.
References ui.
Referenced by MainWindow(), on_actionReset_Bounding_Box_triggered(), and on_resize_bounding_box_text_lines().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
MainWindow::alter_resolution_z.
This routine assists to set up a cubish regular grid
Definition at line 1068 of file mainwindow.cpp.
References ui.
Referenced by MainWindow(), on_actionReset_Bounding_Box_triggered(), and on_resize_bounding_box_text_lines().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
      
  | 
  privateslot | 
Changes the ambient color in the GL Viewer
Definition at line 1098 of file mainwindow.cpp.
References ui.
Referenced by MainWindow().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
MainWindow::calculateNormalVector.
Calculates a normal vector for STL data
Definition at line 1157 of file mainwindow.cpp.
References ui.
Referenced by MainWindow().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
Sets the point size with tie dial on the main window
Definition at line 1281 of file mainwindow.cpp.
References ui.
Referenced by MainWindow().
| void MainWindow::draw_border | ( | float | x_min, | 
| float | x_max, | ||
| float | y_min, | ||
| float | y_max, | ||
| float | z_min, | ||
| float | z_max | ||
| ) | 
| void MainWindow::draw_border | ( | float | x_min, | 
| float | x_max, | ||
| float | y_min, | ||
| float | y_max, | ||
| float | z_min, | ||
| float | z_max | ||
| ) | 
| void MainWindow::draw_sampled_data | ( | int | ZAX, | 
| int | ZAY, | ||
| int | ZAZ, | ||
| int *** | bounding | ||
| ) | 
MainWindow::draw_sampled_data.
Set-up the data for drwaing the sampled boundary condition
| ZAX | |
| ZAY | |
| ZAZ | |
| bounding | 
Definition at line 1226 of file mainwindow.cpp.
References ui.
Referenced by on_actionMake_Boundary_Conditions_triggered(), and on_actionMake_Soundemitter_triggered().
| void MainWindow::draw_sampled_data | ( | int | ZAX, | 
| int | ZAY, | ||
| int | ZAZ, | ||
| int *** | bounding | ||
| ) | 
      
  | 
  privateslot | 
      
  | 
  privateslot | 
Changes the model color in the GL Viewer
Definition at line 1118 of file mainwindow.cpp.
References ui.
Referenced by MainWindow().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
MainWindow::on_actionMake_Boundary_Conditions_triggered.
Samples the triangles or point data to the grid
Definition at line 551 of file mainwindow.cpp.
References bounding, counter, diameter_x, diameter_y, diameter_z, draw_sampled_data(), file, and ui.
Referenced by MainWindow().
      
  | 
  privateslot | 
MainWindow::on_actionMake_Boundary_Conditions_triggered.
Samples the triangles or point data to the grid
Definition at line 778 of file mainwindow.cpp.
References bounding, counter, diameter_x, diameter_y, diameter_z, draw_sampled_data(), file, and ui.
Referenced by MainWindow().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
      
  | 
  privateslot | 
MainWindow::on_actionReset_Bounding_Box_triggered.
Resets the bounding box to the starting values
Definition at line 521 of file mainwindow.cpp.
References alter_resolution_x(), alter_resolution_y(), alter_resolution_z(), ui, x_max_init, x_min_init, y_max_init, y_min_init, z_max_init, and z_min_init.
Referenced by MainWindow().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
MainWindow::on_resize_bounding_box_text_lines.
resizes the bounding box values and initiates an update in the GL viewer
Definition at line 501 of file mainwindow.cpp.
References alter_resolution_x(), alter_resolution_y(), alter_resolution_z(), and ui.
Referenced by MainWindow().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
MainWindow::openfile_point_data.
Open point data and shifts the coordiante system to the centre and norms it to norm_faktor.
Definition at line 106 of file mainwindow.cpp.
References counter, diameter_x, diameter_y, diameter_z, file, norm_faktor, ui, x_max_init, x_min_init, y_max_init, y_min_init, z_max_init, and z_min_init.
Referenced by MainWindow().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
      
  | 
  privateslot | 
MainWindow::openfile_stl_data.
Opens stl data and shifts the coordiante system to the centre and norms it to norm_faktor
Definition at line 239 of file mainwindow.cpp.
References counter, diameter_x, diameter_y, diameter_z, file, norm_faktor, ui, x_max_init, x_min_init, y_max_init, y_min_init, z_max_init, and z_min_init.
Referenced by MainWindow().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
To choose what should be drawn (the STL/Point- or sampled data)
Definition at line 1269 of file mainwindow.cpp.
References ui.
Referenced by MainWindow().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
MainWindow::setbackroundColor.
Changes the backroung color in the GL Viewer
Definition at line 1138 of file mainwindow.cpp.
References ui.
Referenced by MainWindow().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
Sets the shininess with the dial on the main window
Definition at line 1292 of file mainwindow.cpp.
References ui.
Referenced by MainWindow().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
Show the about
Definition at line 1315 of file mainwindow.cpp.
References myAbout.
Referenced by MainWindow().
      
  | 
  privateslot | 
      
  | 
  privateslot | 
Show the help
Definition at line 1302 of file mainwindow.cpp.
References myhelp.
Referenced by MainWindow().
| int *** MainWindow::bounding | 
Definition at line 23 of file mainwindow.h.
Referenced by on_actionMake_Boundary_Conditions_triggered(), and on_actionMake_Soundemitter_triggered().
| int MainWindow::counter | 
Definition at line 28 of file mainwindow.h.
Referenced by MainWindow(), on_actionMake_Boundary_Conditions_triggered(), on_actionMake_Soundemitter_triggered(), openfile_point_data(), and openfile_stl_data().
| float MainWindow::diameter_x | 
Definition at line 25 of file mainwindow.h.
Referenced by on_actionMake_Boundary_Conditions_triggered(), on_actionMake_Soundemitter_triggered(), openfile_point_data(), and openfile_stl_data().
| float MainWindow::diameter_y | 
Definition at line 26 of file mainwindow.h.
Referenced by on_actionMake_Boundary_Conditions_triggered(), on_actionMake_Soundemitter_triggered(), openfile_point_data(), and openfile_stl_data().
| float MainWindow::diameter_z | 
Definition at line 27 of file mainwindow.h.
Referenced by on_actionMake_Boundary_Conditions_triggered(), on_actionMake_Soundemitter_triggered(), openfile_point_data(), and openfile_stl_data().
| QString MainWindow::file | 
Definition at line 22 of file mainwindow.h.
Referenced by on_actionMake_Boundary_Conditions_triggered(), on_actionMake_Soundemitter_triggered(), openfile_point_data(), and openfile_stl_data().
| about * MainWindow::myAbout | 
Definition at line 32 of file mainwindow.h.
Referenced by showAbout().
| help * MainWindow::myhelp | 
Definition at line 31 of file mainwindow.h.
Referenced by showHelp().
| int MainWindow::norm_faktor | 
Definition at line 24 of file mainwindow.h.
Referenced by MainWindow(), openfile_point_data(), and openfile_stl_data().
      
  | 
  private | 
Definition at line 38 of file mainwindow.h.
Referenced by alter_resolution_x(), alter_resolution_y(), alter_resolution_z(), ambientColor(), calculateNormalVector(), changePointSize(), draw_sampled_data(), MainWindow(), modelColor(), on_actionMake_Boundary_Conditions_triggered(), on_actionMake_Soundemitter_triggered(), on_actionReset_Bounding_Box_triggered(), on_resize_bounding_box_text_lines(), openfile_point_data(), openfile_stl_data(), set_drawer(), setbackroundColor(), setShininess(), and ~MainWindow().
| float MainWindow::x_max_init | 
Definition at line 29 of file mainwindow.h.
Referenced by on_actionReset_Bounding_Box_triggered(), openfile_point_data(), and openfile_stl_data().
| float MainWindow::x_min_init | 
Definition at line 29 of file mainwindow.h.
Referenced by on_actionReset_Bounding_Box_triggered(), openfile_point_data(), and openfile_stl_data().
| float MainWindow::y_max_init | 
Definition at line 29 of file mainwindow.h.
Referenced by on_actionReset_Bounding_Box_triggered(), openfile_point_data(), and openfile_stl_data().
| float MainWindow::y_min_init | 
Definition at line 29 of file mainwindow.h.
Referenced by on_actionReset_Bounding_Box_triggered(), openfile_point_data(), and openfile_stl_data().
| float MainWindow::z_max_init | 
Definition at line 29 of file mainwindow.h.
Referenced by on_actionReset_Bounding_Box_triggered(), openfile_point_data(), and openfile_stl_data().
| float MainWindow::z_min_init | 
Definition at line 29 of file mainwindow.h.
Referenced by on_actionReset_Bounding_Box_triggered(), openfile_point_data(), and openfile_stl_data().
 1.8.1.1