Definition of a box Aligned with the XYZ axes.  
 More...
#include <shapes.h>
|  | 
|  | Box () | 
|  | 
|  | Box (double x, double y, double z) | 
|  | 
| Box * | clone () const override | 
|  | Create a copy of this shape.  More... 
 | 
|  | 
| void | padd (double padding) | 
|  | Add uniform padding to this shape.  More... 
 | 
|  | 
| void | padd (double paddX, double paddY, double paddZ) | 
|  | 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 scaleX, double scaleY, double scaleZ) | 
|  | 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 scaleX, double scaleY, double scaleZ, double paddX, double paddY, double paddZ) | 
|  | 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 box Aligned with the XYZ axes. 
Definition at line 226 of file shapes.h.
◆ Box() [1/2]
◆ Box() [2/2]
      
        
          | shapes::Box::Box | ( | double | x, | 
        
          |  |  | double | y, | 
        
          |  |  | double | z | 
        
          |  | ) |  |  | 
      
 
 
◆ clone()
  
  | 
        
          | Box * shapes::Box::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::Box::padd | ( | double | paddX, | 
        
          |  |  | double | paddY, | 
        
          |  |  | double | paddZ | 
        
          |  | ) |  |  | 
      
 
Add non-uniform padding to this shape. 
- Parameters
- 
  
    | paddX | Padding in x-dimension (in meters). |  | paddY | Padding in y-dimension (in meters). |  | paddZ | Padding in z-dimension (in meters). |  
 
Definition at line 400 of file shapes.cpp.
 
 
◆ print()
  
  | 
        
          | void shapes::Box::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::Box::scale | ( | double | scaleX, | 
        
          |  |  | double | scaleY, | 
        
          |  |  | double | scaleZ | 
        
          |  | ) |  |  | 
      
 
Scale this shape by a non-uniform factor. 
- Parameters
- 
  
    | scaleX | Scale in x-dimension. |  | scaleY | Scale in y-dimension. |  | scaleZ | Scale in z-dimension. |  
 
Definition at line 395 of file shapes.cpp.
 
 
◆ scaleAndPadd() [1/2]
  
  | 
        
          | void shapes::Box::scaleAndPadd | ( | double | scale, |  
          |  |  | double | padd |  
          |  | ) |  |  |  | overridevirtual | 
 
 
◆ scaleAndPadd() [2/2]
      
        
          | void shapes::Box::scaleAndPadd | ( | double | scaleX, | 
        
          |  |  | double | scaleY, | 
        
          |  |  | double | scaleZ, | 
        
          |  |  | double | paddX, | 
        
          |  |  | double | paddY, | 
        
          |  |  | double | paddZ | 
        
          |  | ) |  |  | 
      
 
Scale this shape by a non-uniform factor and then add non-uniform padding. 
- Parameters
- 
  
    | scaleX | Scale in x-dimension. |  | scaleY | Scale in y-dimension. |  | scaleZ | Scale in z-dimension. |  | paddX | Padding in x-dimension (in meters). |  | paddY | Padding in y-dimension (in meters). |  | paddZ | Padding in z-dimension (in meters). |  
 
Definition at line 383 of file shapes.cpp.
 
 
◆ size
      
        
          | double shapes::Box::size[3] | 
      
 
x, y, z dimensions of the box (axis-aligned) 
Definition at line 270 of file shapes.h.
 
 
◆ STRING_NAME
  
  | 
        
          | const std::string shapes::Box::STRING_NAME = "box" |  | static | 
 
The type of the shape, as a string. 
Definition at line 236 of file shapes.h.
 
 
The documentation for this class was generated from the following files: