#include <vuGrid.h>
Collaboration diagram for vuGrid:
Public Member Functions | |
vuGrid () | |
Default constructor. | |
vuGrid (const vuGrid &v) | |
Copy contructor. | |
vuGrid (float width, float height, float depth) | |
Constructor taking in member info. | |
vuGrid (float width, float height, float depth, bool isGrid) | |
Constructor taking in member info. | |
~vuGrid () | |
The destructor. | |
vuGrid & | operator= (const vuGrid &v) |
The assignment operator. | |
void | enable () |
Enables grid. | |
void | disable () |
Disables grid. | |
void | toggle () |
Toggles grid enable. | |
float | getWidth () const |
float | getHeight () const |
float | getDepth () const |
bool | getStatus () const |
float | getCenterX () const |
float | getCenterY () const |
float | getCenterZ () const |
bool | operator== (const vuGrid &v) const |
Equality comparison. | |
bool | operator!= (const vuGrid &v) const |
Inequality comparison. | |
void | drawLine (vuVector &start, vuVector &end) const |
void | labelAxes () const |
Labels the x, y, z axes. | |
void | drawAxes () const |
Draws the x, y, z axes. | |
void | drawInOpenGL () const |
Draws the object in OpenGL. | |
Private Attributes | |
float | xWidth |
float | yHeight |
float | zDepth |
bool | isDrawGrid |
Friends | |
ostream & | operator<< (ostream &out, const vuGrid &t) |
Redefines the << (insertion) operator. |
Definition at line 67 of file vuGrid.h.
|
Default constructor.
Definition at line 23 of file vuGrid.cpp. |
|
Copy contructor.
Definition at line 30 of file vuGrid.cpp. |
|
Constructor taking in member info.
Definition at line 38 of file vuGrid.cpp. |
|
Constructor taking in member info.
Definition at line 45 of file vuGrid.cpp. |
|
The destructor.
Definition at line 52 of file vuGrid.cpp. |
|
Disables grid.
Definition at line 76 of file vuGrid.cpp. References isDrawGrid. |
|
Draws the x, y, z axes.
Definition at line 228 of file vuGrid.cpp. References drawLine(), GL_LINES, glBegin(), glEnd(), xWidth, yHeight, and zDepth. Referenced by drawInOpenGL(). |
Here is the call graph for this function:
|
Draws the object in OpenGL. Note that the proper GL initialization function calls must be made before this function is called. For some tutorials on programming with OpenGL, visit nehe.gamedev.net. Definition at line 249 of file vuGrid.cpp. References drawAxes(), and labelAxes(). Referenced by vu111211a::render(). |
Here is the call graph for this function:
|
Definition at line 162 of file vuGrid.cpp. References vuVector::getData(), glColor4f(), and glVertex3fv(). Referenced by drawAxes(), and labelAxes(). |
Here is the call graph for this function:
|
Enables grid.
Definition at line 83 of file vuGrid.cpp. References isDrawGrid. |
|
Definition at line 127 of file vuGrid.cpp. References xWidth. |
|
Definition at line 134 of file vuGrid.cpp. References yHeight. |
|
Definition at line 140 of file vuGrid.cpp. References zDepth. |
|
Definition at line 113 of file vuGrid.cpp. |
|
Definition at line 106 of file vuGrid.cpp. |
|
Definition at line 120 of file vuGrid.cpp. |
|
Definition at line 99 of file vuGrid.cpp. |
|
Labels the x, y, z axes.
Definition at line 176 of file vuGrid.cpp. References drawLine(), GL_LINES, glBegin(), glEnd(), xWidth, and yHeight. Referenced by drawInOpenGL(). |
Here is the call graph for this function:
|
Inequality comparison.
Definition at line 155 of file vuGrid.cpp. References operator==(). |
Here is the call graph for this function:
|
The assignment operator.
Definition at line 60 of file vuGrid.cpp. References isDrawGrid, xWidth, yHeight, and zDepth. |
|
Equality comparison.
Definition at line 146 of file vuGrid.cpp. References xWidth, yHeight, and zDepth. Referenced by operator!=(). |
|
Toggles grid enable.
Definition at line 90 of file vuGrid.cpp. References isDrawGrid. |
|
Redefines the << (insertion) operator.
Definition at line 264 of file vuGrid.cpp. |
|
Definition at line 99 of file vuGrid.h. Referenced by disable(), enable(), operator<<(), operator=(), and toggle(). |
|
Definition at line 78 of file vuGrid.h. Referenced by drawAxes(), getCenterX(), labelAxes(), operator<<(), operator=(), and operator==(). |
|
Definition at line 85 of file vuGrid.h. Referenced by drawAxes(), getCenterY(), labelAxes(), operator<<(), operator=(), and operator==(). |
|
Definition at line 92 of file vuGrid.h. Referenced by drawAxes(), getCenterZ(), operator<<(), operator=(), and operator==(). |