Public Member Functions | |
| LineRectangleClipper (const Geom::Rectangle< T > &) | |
| void | setLine (const Geom::Point2D< T > &start, const Geom::Point2D< T > &stop) |
| bool | isIntersecting () const |
| bool | isStartChanged () const |
| bool | isStopChanged () const |
| const Geom::Point2D< T > & | getStart () const |
| const Geom::Point2D< T > & | getStop () const |
Protected Member Functions | |
| const T | castDouble2T (double) const |
Protected Attributes | |
| bool | isintersecting_ |
| bool | startchanged_ |
| bool | stopchanged_ |
| Geom::Point2D< T > | start_ |
| Geom::Point2D< T > | stop_ |
| Geom::Rectangle< T > | rect_ |
Clips a line between two points by a rectangle. The line may be completely outside, completely inside or partially inside. If partially inside, new endpoints are calculated.
| LineRectangleClipper< T >::LineRectangleClipper | ( | const Geom::Rectangle< T > & | r | ) | [inline] |
| const T LineRectangleClipper< T >::castDouble2T | ( | double | d | ) | const [inline, protected] |
| const Geom::Point2D< T > & LineRectangleClipper< T >::getStart | ( | ) | const [inline] |
| const Geom::Point2D< T > & LineRectangleClipper< T >::getStop | ( | ) | const [inline] |
| bool LineRectangleClipper< T >::isIntersecting | ( | ) | const [inline] |
| bool LineRectangleClipper< T >::isStartChanged | ( | ) | const [inline] |
| bool LineRectangleClipper< T >::isStopChanged | ( | ) | const [inline] |
| void LineRectangleClipper< T >::setLine | ( | const Geom::Point2D< T > & | start, | |
| const Geom::Point2D< T > & | stop | |||
| ) | [inline] |
bool LineRectangleClipper< T >::isintersecting_ [protected] |
Geom::Rectangle<T> LineRectangleClipper< T >::rect_ [protected] |
Geom::Point2D<T> LineRectangleClipper< T >::start_ [protected] |
bool LineRectangleClipper< T >::startchanged_ [protected] |
Geom::Point2D<T> LineRectangleClipper< T >::stop_ [protected] |
bool LineRectangleClipper< T >::stopchanged_ [protected] |
1.7.1