#include <g_cylinder.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...
|
|
kjb::Cylinder::Cylinder |
( |
const Vector & |
p1, |
|
|
const Vector & |
p2, |
|
|
double |
radius |
|
) |
| |
|
inline |
kjb::Cylinder::Cylinder |
( |
const char * |
filename | ) |
|
|
inline |
kjb::Cylinder::Cylinder |
( |
std::istream & |
in | ) |
|
|
inline |
Vector kjb::Cylinder::get_direction |
( |
| ) |
const |
|
inline |
double kjb::Cylinder::get_length |
( |
| ) |
const |
|
inline |
const Vector& kjb::Cylinder::get_p1 |
( |
| ) |
const |
|
inline |
const Vector& kjb::Cylinder::get_p2 |
( |
| ) |
const |
|
inline |
double kjb::Cylinder::get_radius |
( |
| ) |
const |
|
inline |
double kjb::Cylinder::get_width |
( |
| ) |
const |
|
inline |
Copies a Cylinder into this one.
Performs a deep copy of the center points of the bases of the cylinder and of the radius.
- Parameters
-
- Returns
- A reference to this cylinder.
void Cylinder::read |
( |
std::istream & |
in | ) |
|
|
virtual |
virtual void kjb::Cylinder::read |
( |
const char * |
fname | ) |
|
|
inlinevirtual |
Reads this Readable from a file.
- Parameters
-
fname | Input file to read from. |
- Exceptions
-
Reimplemented from kjb::Readable.
void Cylinder::write |
( |
std::ostream & |
out | ) |
const |
|
virtual |
virtual void kjb::Cylinder::write |
( |
const char * |
fname | ) |
const |
|
inlinevirtual |
Writes this Writeable to a file.
- Parameters
-
fname | Output file to write to. |
- Exceptions
-
Reimplemented from kjb::Writeable.
The documentation for this class was generated from the following files: