Class Box

Inheritance Relationships

Base Type

Class Documentation

class Box : public shapes::Shape

Definition of a box Aligned with the XYZ axes.

Public Functions

Box()
Box(double x, double y, double z)
void 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.

void 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).

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.

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).

virtual void scaleAndPadd(double scale, double padd) override

Uniformly scale and padd this shape.

virtual Box *clone() const override

Create a copy of this shape.

virtual void print(std::ostream &out = std::cout) const override

Print information about this shape.

void padd(double padding)

Add uniform padding to this shape.

void scale(double scale)

Uniformly scale this shape by a factor.

Public Members

double size[3]

x, y, z dimensions of the box (axis-aligned)

Public Static Attributes

static const std::string STRING_NAME

The type of the shape, as a string.