#include "solid_objects.h"Include dependency graph for solid_objects.cpp:

Go to the source code of this file.
Functions | |
| void | SolidObject_create (SolidObject *so, int N, int M) |
| Creates a solid object. | |
| void | SolidObject_delete (SolidObject *so) |
| Deletes a solid object. | |
| void | cross_product (float *va, float *vb, float *vc) |
| Computes the cross-product. | |
| void | one_normal (float *v1, float *v2, float *v3, float *v4, float *vn) |
| Computes normal vector for one vertex. | |
| void | SolidObject_compute_normals (SolidObject *so) |
| Computes the normals for a SolidObject. | |
| void | SolidObject_draw (SolidObject *so) |
| void | Sail_create_and_draw (datas *d) |
| Create and draw the sail. | |
| void | RelativeWind_draw (datas *d) |
| Draws relative wind vector. | |
| void | Target_draw (float x, float y) |
| Draws a "target instrument" on the screen. | |
| void | VSlider_draw (float x) |
| Draws a "vertical slider instrument" on the screen. | |
| void | HSlider_draw (float x) |
| Draws a "horizontal slider instrument" on the screen. | |
| void | Girouette_draw (datas *d) |
| Draws a girouette on the screen. | |
| void | Boat_draw () |
| Draws the boat. | |
| void | Boat_delete () |
| Deletes the boat. | |
| void | Boat_create (datas *d) |
| Creates and defines all boat related SolidObject objects. | |
Variables | |
| SolidObject | hullStruct |
| central hydroptere hull | |
| SolidObject * | hull = &hullStruct |
| SolidObject | rSwimmStruct |
| right swimmer | |
| SolidObject * | rSwimm = &rSwimmStruct |
| SolidObject | lSwimmStruct |
| left swimmer | |
| SolidObject * | lSwimm = &lSwimmStruct |
| SolidObject | bridgeMainStruct |
| front bridge | |
| SolidObject * | bridgeMain = &bridgeMainStruct |
| SolidObject | bridge2Struct |
| bridge 2 | |
| SolidObject * | bridge2 = &bridge2Struct |
| SolidObject | mastStruct |
| mast | |
| SolidObject * | mast = &mastStruct |
| SolidObject | foilRightStruct |
| right foil | |
| SolidObject * | foilr = &foilRightStruct |
| SolidObject | foilLeftStruct |
| left foil | |
| SolidObject * | foill = &foilLeftStruct |
| SolidObject | yawStruct |
| yaw | |
| SolidObject * | yaw = &yawStruct |
| SolidObject | pitchStruct |
| pitch | |
| SolidObject * | pitch = &pitchStruct |
Definition in file solid_objects.cpp.
|
|
Creates and defines all boat related SolidObject objects.
Create and fill all boat informations (coordinates,...)
Definition at line 538 of file solid_objects.cpp. References SolidObject::B, bridge2, bridgeMain, foill, foilr, SolidObject::G, hull, datas::Long, lSwimm, mast, pitch, SolidObject::R, rSwimm, SolidObject_create(), SolidObject::X, datas::x_yaw, SolidObject::Y, datas::y_yaw, yaw, SolidObject::Z, and datas::z_foils. Referenced by mexFunction(). |
|
|
Deletes the boat. Deletes all SolidObject objects used in drawing the boat using SolidObject_delete() Definition at line 514 of file solid_objects.cpp. References bridge2, bridgeMain, foill, foilr, hull, lSwimm, mast, pitch, rSwimm, SolidObject_delete(), and yaw. Referenced by mexFunction(). |
|
|
Draws the boat. Draws the boat once it has been created and defined by Boat_create(). This function uses calls to SolidObject_draw(). The code of this function contains OpenGL code. Definition at line 494 of file solid_objects.cpp. References bridge2, bridgeMain, foill, foilr, hull, lSwimm, mast, pitch, rSwimm, SolidObject_draw(), and yaw. Referenced by DrawGLScene(). |
|
||||||||||||||||
|
Computes the cross-product.
Definition at line 118 of file solid_objects.cpp. Referenced by Girouette_draw(), one_normal(), and Sail_create_and_draw(). |
|
|
Draws a girouette on the screen. Draws a girouette instrument indicating relative wind direction as an on screen instrument. The code of this function contains OpenGL code.
Definition at line 402 of file solid_objects.cpp. References datas::angle_girouette, cross_product(), datas::dx, datas::dy, f(), datas::tanAngle_sail, datas::Wind_x, and datas::Wind_y. Referenced by DrawGLScene(). |
|
|
Draws a "horizontal slider instrument" on the screen. Draws a horizontal slider. The code of this function contains OpenGL code.
Definition at line 372 of file solid_objects.cpp. References f(). Referenced by DrawGLScene(). |
|
||||||||||||||||||||||||
|
Computes normal vector for one vertex.
Definition at line 125 of file solid_objects.cpp. References cross_product(), and f(). Referenced by SolidObject_compute_normals(). |
|
|
Draws relative wind vector. Draws a relative wind vector at the top of the mast. The code of this function contains OpenGL code.
Definition at line 292 of file solid_objects.cpp. References datas::dx, datas::dy, f(), datas::L_mast, datas::phi, datas::psi, datas::theta, datas::Wind_x, datas::Wind_y, datas::x_sail, datas::y_sail, and datas::z_foils. Referenced by DrawGLScene(). |
|
|
Create and draw the sail. The sail is not a SolidObject. It is redefined each time it is drawn (its position relative to the boat can change). The code of this function contains OpenGL code.
Definition at line 261 of file solid_objects.cpp. References datas::Baume, cross_product(), f(), datas::L_mast, datas::tanAngle_sail, datas::x_sail, datas::y_sail, and datas::z_foils. Referenced by DrawGLScene(). |
|
|
Computes the normals for a SolidObject. Once all X-, Y- Z- coordinates of a SolidObjects have been defined, the vertex-normal vectors in the SolidObject can be automatically filled by calling this function.
Definition at line 155 of file solid_objects.cpp. References SolidObject::M, SolidObject::N, SolidObject::nX, SolidObject::nY, SolidObject::nZ, one_normal(), SolidObject::X, SolidObject::Y, and SolidObject::Z. |
|
||||||||||||||||
|
Creates a solid object.
Initializes memory for a 3D object
Definition at line 46 of file solid_objects.cpp. References SolidObject::B, SolidObject::G, SolidObject::M, SolidObject::N, SolidObject::nX, SolidObject::nY, SolidObject::nZ, SolidObject::R, SolidObject::X, SolidObject::Y, and SolidObject::Z. Referenced by Boat_create(). |
|
|
Deletes a solid object.
Free memory used by a 3D object Definition at line 82 of file solid_objects.cpp. References SolidObject::B, SolidObject::G, SolidObject::N, SolidObject::nX, SolidObject::nY, SolidObject::nZ, SolidObject::R, SolidObject::X, SolidObject::Y, and SolidObject::Z. Referenced by Boat_delete(). |
|
|
Definition at line 228 of file solid_objects.cpp. References SolidObject::B, SolidObject::G, SolidObject::M, SolidObject::N, SolidObject::nX, SolidObject::nY, SolidObject::nZ, SolidObject::R, SolidObject::X, SolidObject::Y, and SolidObject::Z. Referenced by Boat_draw(). |
|
||||||||||||
|
Draws a "target instrument" on the screen. Draws a circular target with a cross inside. The code of this function contains OpenGL code.
Definition at line 309 of file solid_objects.cpp. References f(). Referenced by DrawGLScene(). |
|
|
Draws a "vertical slider instrument" on the screen. Draws a vertical slider. The code of this function contains OpenGL code.
Definition at line 343 of file solid_objects.cpp. References f(). Referenced by DrawGLScene(). |
|
|
Definition at line 27 of file solid_objects.cpp. Referenced by Boat_create(), Boat_delete(), and Boat_draw(). |
|
|
bridge 2
Definition at line 26 of file solid_objects.cpp. |
|
|
Definition at line 24 of file solid_objects.cpp. Referenced by Boat_create(), Boat_delete(), and Boat_draw(). |
|
|
front bridge
Definition at line 23 of file solid_objects.cpp. |
|
|
Definition at line 36 of file solid_objects.cpp. Referenced by Boat_create(), Boat_delete(), and Boat_draw(). |
|
|
left foil
Definition at line 35 of file solid_objects.cpp. |
|
|
Definition at line 33 of file solid_objects.cpp. Referenced by Boat_create(), Boat_delete(), and Boat_draw(). |
|
|
right foil
Definition at line 32 of file solid_objects.cpp. |
|
|
Definition at line 15 of file solid_objects.cpp. Referenced by Boat_create(), Boat_delete(), and Boat_draw(). |
|
|
central hydroptere hull
Definition at line 14 of file solid_objects.cpp. |
|
|
Definition at line 21 of file solid_objects.cpp. Referenced by Boat_create(), Boat_delete(), and Boat_draw(). |
|
|
left swimmer
Definition at line 20 of file solid_objects.cpp. |
|
|
Definition at line 30 of file solid_objects.cpp. Referenced by Boat_create(), Boat_delete(), and Boat_draw(). |
|
|
mast
Definition at line 29 of file solid_objects.cpp. |
|
|
Definition at line 42 of file solid_objects.cpp. Referenced by Boat_create(), Boat_delete(), and Boat_draw(). |
|
|
pitch
Definition at line 41 of file solid_objects.cpp. |
|
|
Definition at line 18 of file solid_objects.cpp. Referenced by Boat_create(), Boat_delete(), and Boat_draw(). |
|
|
right swimmer
Definition at line 17 of file solid_objects.cpp. |
|
|
Definition at line 39 of file solid_objects.cpp. Referenced by Boat_create(), Boat_delete(), and Boat_draw(). |
|
|
yaw
Definition at line 38 of file solid_objects.cpp. |
1.4.6-NO