Cylinder_section: a section of a cylinder, specified by angle and position.
More...
#include <g_cylinder_section.h>
|
static const char * | read_field_value (std::istream &in, const char *field_name, char *field_buf, size_t buf_len, char separator=':') |
| Reads a line off in into a buffer and returns a pointer to the field value in the buffer. More...
|
|
static const char * | read_field_value (std::istream &in, const char *field_name, char separator=':') |
| Reads a line off in into an internal buffer and returns a pointer to the field value in the buffer. More...
|
|
Vector | p1_ |
|
Vector | p2_ |
|
double | r_ |
|
Cylinder_section: a section of a cylinder, specified by angle and position.
kjb::Cylinder_section::Cylinder_section |
( |
const Vector & |
p1, |
|
|
const Vector & |
p2, |
|
|
double |
radius, |
|
|
double |
angle, |
|
|
const Vector & |
angle_startpt, |
|
|
const Vector & |
angle_endpt |
|
) |
| |
|
inline |
Constructs a cylinder section.
Reads a cylinder section from an input file.
Reads a cylinder section from an input file.
Copy constructor.
- Parameters
-
Cylinder_section::~Cylinder_section |
( |
| ) |
|
|
virtual |
Destructor of a cylinder section.
Frees all space allocated by this Cylinder_section.
double kjb::Cylinder_section::get_angle |
( |
| ) |
const |
|
inline |
const Vector& kjb::Cylinder_section::get_endpoint_of_angle |
( |
| ) |
const |
|
inline |
const Vector& kjb::Cylinder_section::get_startpoint_of_angle |
( |
| ) |
const |
|
inline |
Copies a cylinder section into this one.
Performs a deep copy of the center points of the cylinder bases, the radius, the angle covered by the cylinder, and the bottom edge points.
- Parameters
-
- Returns
- A reference to this Cylinder_section.
void Cylinder_section::read |
( |
std::istream & |
in | ) |
|
|
virtual |
void Cylinder_section::write |
( |
std::ostream & |
out | ) |
const |
|
virtual |
The documentation for this class was generated from the following files: