#include <cylinder.h>
Public Member Functions | |
| gl_cylinder (cylinder< T, S > *c) | |
| Constructor which converts a cylinder into a gl_cylinder. | |
| gl_cylinder () | |
| Default constructor. | |
Static Public Member Functions | |
| ap_array< gl_cylinder< T, S > > * | convert (ap_array< cylinder< T, S > > *c) |
| Function to convert an array of cylinders to an array of gl_cylinders. | |
| void | convert (ap_array< cylinder< T, S > > *c, ap_array< gl_cylinder< T, S > > *g) |
| Function to convert an array of cylinders to an array of gl_cylinders. | |
Public Attributes | |
| double | x |
| x coordinate for the cylinder base | |
| double | y |
| y coordinate for the cylinder base | |
| double | z |
| z coordinate for the cylinder base | |
| double | height |
| height of the cylinder | |
| double | axis [3] |
| Axis of rotation from (0,0,1). | |
| double | angle |
| Degrees to rotate from (0,0,1). | |
| double | radius |
| Radius of the cylinder. | |
| int | color |
| Color index for the cylinder. | |
This file defines a gl_cylinder class designed to hold values computed from cylinders which are convenient for display with OpenGL. It is defined as a template class where the type T is for coordinates and the type S is for sizes. These types are actually used only for specifying types of cylinders. The coordinates within gl_cylinder are all doubles. This means that it might be more reasonable to make gl_cylinder be a non-template class and provide some template functions to convert between cylinder and gl_cylinder.
|
||||||||||
|
Constructor which converts a cylinder into a gl_cylinder.
|
|
|||||||||
|
Default constructor.
|
|
||||||||||
|
Function to convert an array of cylinders to an array of gl_cylinders.
|
|
||||||||||||||||
|
Function to convert an array of cylinders to an array of gl_cylinders.
|
|
|||||
|
x coordinate for the cylinder base
|
|
|||||
|
y coordinate for the cylinder base
|
|
|||||
|
z coordinate for the cylinder base
|
|
|||||
|
height of the cylinder
|
|
|||||
|
Axis of rotation from (0,0,1).
|
|
|||||
|
Degrees to rotate from (0,0,1).
|
|
|||||
|
Radius of the cylinder.
|
|
|||||
|
Color index for the cylinder.
|
1.3.2