proj home

Files   Classes   Functions   Hierarchy  

cylinder Class Reference

#include <cylinder.h>

Collaboration diagram for cylinder:

List of all members.

Public Member Functions

 cylinder (point3< double > const &nml_, point3< double > const &pos_, doublec radius_, doublec height_)
 Specify the disk in 3D space.
 operator stringc () const
 Serialize this object by writing it out as a string.

Public Attributes

point3< double > nml
 Normal or the disks orientation.
point3< double > pos
 Position.
double radius
 The circles radius.
double height
 The cylinders height.


Detailed Description

Definition at line 7 of file cylinder.h.


Constructor & Destructor Documentation

cylinder::cylinder ( point3< double > const &  nml_,
point3< double > const &  pos_,
doublec  radius_,
doublec  height_ 
)

Specify the disk in 3D space.

Definition at line 7 of file cylinder.cpp.

00013   : nml(nml_), pos(pos_), radius(radius_),
00014   height(height_)
00015 {
00016 }


Member Function Documentation

cylinder::operator stringc (  )  const

Serialize this object by writing it out as a string.

Definition at line 19 of file cylinder.cpp.

References height, nml, pos, radius, point3< T >::x, point3< T >::y, and point3< T >::z.

00020 {
00021   stringstream ss;
00022   ss << nml.x << " " << nml.y << " " << nml.z << "  ";
00023   ss << pos.x << " " << pos.y << " " << pos.z << "  "; 
00024   ss << radius << " " << height;
00025 
00026   return ss.str();
00027 }


Member Data Documentation

The cylinders height.

Definition at line 21 of file cylinder.h.

Referenced by operator stringc(), diskinttest::test03(), diskinttest::update03(), and diskinttest::update03lineline().

Normal or the disks orientation.

Definition at line 12 of file cylinder.h.

Referenced by diskinttest::keyboard03(), operator stringc(), diskinttest::test03(), diskinttest::update03(), and diskinttest::update03lineline().


The documentation for this class was generated from the following files:

Generated on Fri Mar 4 00:49:52 2011 for Chelton Evans Source by  doxygen 1.5.8