RectSegment Class Documentation

class RectSegment : Segment

Namespace:datalogics_interface

Inherits from:
Segment

Detailed Description

A rectangle path operator.

RectSegment represents a single path, or line, within a rectangle, with coordinates xy, xy for the beginning and end of the line.

Uses types

Constructor & Destructor Documentation

RectSegment

RectSegment(const Point & pt, double width, double height)

Parameters

pt: const Point &

the lower left corner of the rectangle.

width: double

the width of the rectangle.

height: double

the height of the rectangle.

Append a rectangle to the current path as a complete subpath, with lower-left corner point and dimensions width and height in user space.

RectSegment

RectSegment(double x, double y, double width, double height)

Parameters

x: double

the lower left corner of the rectangle.

y: double

the width of the rectangle.

width: double

the height of the rectangle.

height: double

Append a rectangle to the current path as a complete subpath, with lower-left corner point and dimensions width and height in user space.

~RectSegment

~RectSegment()

Member Function Documentation

height

double height()

Returns:

double

The height of the rectangle.

point

Point point()

Returns:

Point

The lower-left corner of the rectangle.

to_string

std::string to_string()

Returns:

std::string

Represents a segment, or a single line, within a path.

width

double width()

Returns:

double

The width of the rectangle.