Definition of a cone Tip is on positive z axis. Center of base is on negative z axis. Origin is halway between tip and center of base.
More...
#include <shapes.h>
|
Cone * | clone () const override |
| Create a copy of this shape. More...
|
|
| Cone () |
|
| Cone (double r, double l) |
|
void | padd (double padding) |
| Add uniform padding to this shape. More...
|
|
void | padd (double paddRadius, double paddLength) |
| Add non-uniform padding to this shape. More...
|
|
void | print (std::ostream &out=std::cout) const override |
| Print information about this shape. More...
|
|
void | scale (double scale) |
| Uniformly scale this shape by a factor. More...
|
|
void | scale (double scaleRadius, double scaleLength) |
| Scale this shape by a non-uniform factor. More...
|
|
void | scaleAndPadd (double scale, double padd) override |
| Uniformly scale and padd this shape. More...
|
|
void | scaleAndPadd (double scaleRadius, double scaleLength, double paddRadius, double paddLength) |
| Scale this shape by a non-uniform factor and then add non-uniform padding. More...
|
|
virtual bool | isFixed () const |
| Return a flag indicating whether this shape can be scaled and/or padded. More...
|
|
void | padd (double padding) |
| Add uniform padding to this shape. More...
|
|
void | scale (double scale) |
| Uniformly scale this shape by a factor. More...
|
|
| Shape () |
|
virtual | ~Shape () |
|
Definition of a cone Tip is on positive z axis. Center of base is on negative z axis. Origin is halway between tip and center of base.
Definition at line 178 of file shapes.h.
◆ Cone() [1/2]
◆ Cone() [2/2]
shapes::Cone::Cone |
( |
double |
r, |
|
|
double |
l |
|
) |
| |
◆ clone()
Cone * shapes::Cone::clone |
( |
| ) |
const |
|
overridevirtual |
◆ padd() [1/2]
Add uniform padding to this shape.
Definition at line 320 of file shapes.cpp.
◆ padd() [2/2]
void shapes::Cone::padd |
( |
double |
paddRadius, |
|
|
double |
paddLength |
|
) |
| |
Add non-uniform padding to this shape.
- Parameters
-
paddRadius | Radius padding (in meters). |
paddLength | Cone length padding (in meters). |
Definition at line 373 of file shapes.cpp.
◆ print()
void shapes::Cone::print |
( |
std::ostream & |
out = std::cout | ) |
const |
|
overridevirtual |
◆ scale() [1/2]
void shapes::Shape::scale |
Uniformly scale this shape by a factor.
Definition at line 315 of file shapes.cpp.
◆ scale() [2/2]
void shapes::Cone::scale |
( |
double |
scaleRadius, |
|
|
double |
scaleLength |
|
) |
| |
Scale this shape by a non-uniform factor.
- Parameters
-
scaleRadius | Radius scaling factor. |
scaleLength | Cone length scaling factor. |
Definition at line 368 of file shapes.cpp.
◆ scaleAndPadd() [1/2]
void shapes::Cone::scaleAndPadd |
( |
double |
scale, |
|
|
double |
padd |
|
) |
| |
|
overridevirtual |
◆ scaleAndPadd() [2/2]
void shapes::Cone::scaleAndPadd |
( |
double |
scaleRadius, |
|
|
double |
scaleLength, |
|
|
double |
paddRadius, |
|
|
double |
paddLength |
|
) |
| |
Scale this shape by a non-uniform factor and then add non-uniform padding.
- Parameters
-
scaleRadius | Radius scaling factor. |
scaleLength | Cone length scaling factor. |
paddRadius | Radius padding (in meters). |
paddLength | Cone length padding (in meters). |
Definition at line 358 of file shapes.cpp.
◆ length
double shapes::Cone::length |
The length (height) of the cone.
Definition at line 218 of file shapes.h.
◆ radius
double shapes::Cone::radius |
The radius of the cone.
Definition at line 221 of file shapes.h.
◆ STRING_NAME
const std::string shapes::Cone::STRING_NAME = "cone" |
|
static |
The type of the shape, as a string.
Definition at line 188 of file shapes.h.
The documentation for this class was generated from the following files: