Definition of a cylinder Length is along z axis. Origin is at center of mass.  
 More...
#include <shapes.h>
|  | 
| Cylinder * | clone () const override | 
|  | Create a copy of this shape.  More... 
 | 
|  | 
|  | Cylinder () | 
|  | 
|  | Cylinder (double r, double l) | 
|  | The radius and the length of the cylinder.  More... 
 | 
|  | 
| 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 () | 
|  | 
|  | 
| static const std::string | STRING_NAME = "cylinder" | 
|  | The type of the shape, as a string.  More... 
 | 
|  | 
Definition of a cylinder Length is along z axis. Origin is at center of mass. 
Definition at line 127 of file shapes.h.
◆ Cylinder() [1/2]
      
        
          | shapes::Cylinder::Cylinder | ( |  | ) |  | 
      
 
 
◆ Cylinder() [2/2]
      
        
          | shapes::Cylinder::Cylinder | ( | double | r, | 
        
          |  |  | double | l | 
        
          |  | ) |  |  | 
      
 
The radius and the length of the cylinder. 
Definition at line 148 of file shapes.cpp.
 
 
◆ clone()
  
  | 
        
          | Cylinder * shapes::Cylinder::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::Cylinder::padd | ( | double | paddRadius, | 
        
          |  |  | double | paddLength | 
        
          |  | ) |  |  | 
      
 
Add non-uniform padding to this shape. 
- Parameters
- 
  
    | paddRadius | Radius padding (in meters). |  | paddLength | Cylinder length padding (in meters). |  
 
Definition at line 348 of file shapes.cpp.
 
 
◆ print()
  
  | 
        
          | void shapes::Cylinder::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::Cylinder::scale | ( | double | scaleRadius, | 
        
          |  |  | double | scaleLength | 
        
          |  | ) |  |  | 
      
 
Scale this shape by a non-uniform factor. 
- Parameters
- 
  
    | scaleRadius | Radius scaling factor. |  | scaleLength | Cylinder length scaling factor. |  
 
Definition at line 343 of file shapes.cpp.
 
 
◆ scaleAndPadd() [1/2]
  
  | 
        
          | void shapes::Cylinder::scaleAndPadd | ( | double | scale, |  
          |  |  | double | padd |  
          |  | ) |  |  |  | overridevirtual | 
 
 
◆ scaleAndPadd() [2/2]
      
        
          | void shapes::Cylinder::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 | Cylinder length scaling factor. |  | paddRadius | Radius padding (in meters). |  | paddLength | Cylinder length padding (in meters). |  
 
Definition at line 333 of file shapes.cpp.
 
 
◆ length
      
        
          | double shapes::Cylinder::length | 
      
 
The length of the cylinder. 
Definition at line 169 of file shapes.h.
 
 
◆ radius
      
        
          | double shapes::Cylinder::radius | 
      
 
The radius of the cylinder. 
Definition at line 172 of file shapes.h.
 
 
◆ STRING_NAME
  
  | 
        
          | const std::string shapes::Cylinder::STRING_NAME = "cylinder" |  | static | 
 
The type of the shape, as a string. 
Definition at line 139 of file shapes.h.
 
 
The documentation for this class was generated from the following files: