| 1 |
|
| MODULE = Geo::Geos PACKAGE = Geo::Geos::Noding::SegmentIntersectionDetector |
| 2 |
|
| PROTOTYPES: DISABLE |
| 3 |
|
| |
| 4 |
|
| Sv new(SV*,SV* liObj) { |
| 5 |
2 |
▶ | LineIntersector& li = xs::in<LineIntersector&>(liObj); |
Branch: 1 branch
| Branch | True | False | Total |
| LineIntersector& li = xs::in<LineIntersector&>(liObj); |
2 |
0 |
2 |
|
| 6 |
2 |
▶ | Sv wrapped = xs::out<>(new SegmentIntersectionDetector(&li)); |
Branch: 3 branches
| Branch | True | False | Total |
| Sv wrapped = xs::out<>(new SegmentIntersectionDetector(&li)); |
2 |
0 |
2 |
| Sv wrapped = xs::out<>(new SegmentIntersectionDetector(&li)); |
2 |
0 |
2 |
| Sv wrapped = xs::out<>(new SegmentIntersectionDetector(&li)); |
0 |
0 |
0 |
|
| 7 |
2 |
▶ | wrapped.payload_attach(SvRV(liObj), &payload_marker); |
Branch: 1 branch
| Branch | True | False | Total |
| wrapped.payload_attach(SvRV(liObj), &payload_marker); |
2 |
0 |
2 |
|
| 8 |
2 |
▶ | RETVAL = wrapped; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = wrapped; |
2 |
0 |
2 |
|
| 9 |
|
| } |
| 10 |
|
| |
| 11 |
|
| |
| 12 |
0 |
| bool SegmentIntersectionDetector::hasIntersection () |
| 13 |
|
| |
| 14 |
1 |
| bool SegmentIntersectionDetector::hasProperIntersection () |
| 15 |
|
| |
| 16 |
1 |
| bool SegmentIntersectionDetector::hasNonProperIntersection () |
| 17 |
|
| |
| 18 |
0 |
| void SegmentIntersectionDetector::setFindProper(bool findProper) |
| 19 |
|
| |
| 20 |
0 |
| void SegmentIntersectionDetector::setFindAllIntersectionTypes (bool findAllTypes) |
| 21 |
|
| |
| 22 |
|
| xs::Array SegmentIntersectionDetector::getIntersectionSegments (){ |
| 23 |
1 |
▶ | RETVAL = Helper::convert_copy(THIS->getIntersectionSegments()); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = Helper::convert_copy(THIS->getIntersectionSegments()); |
1 |
0 |
1 |
|
| 24 |
|
| } |
| 25 |
|
| |
| 26 |
|
| Coordinate* SegmentIntersectionDetector::getIntersection() { |
| 27 |
1 |
| auto c = THIS->getIntersection(); |
| 28 |
1 |
| if (c) RETVAL = new Coordinate(*c); |
| 29 |
1 |
▶ | else XSRETURN_UNDEF; |
Branch: 2 branches
| Branch | True | False | Total |
| else XSRETURN_UNDEF; |
1 |
0 |
1 |
| else XSRETURN_UNDEF; |
1 |
0 |
1 |
|
| 30 |
0 |
| } |
| 31 |
|
| |
| 32 |
|
| |
| 33 |
0 |
▶ | int CLONE_SKIP (...) { PERL_UNUSED_VAR(items); RETVAL = 1; } |
Branch: 1 branch
| Branch | True | False | Total |
| int CLONE_SKIP (...) { PERL_UNUSED_VAR(items); RETVAL = 1; } |
0 |
0 |
0 |
|
| 34 |
|
| |
| 35 |
|
| BOOT { |
| 36 |
46 |
▶ | Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentIntersector"); |
Branch: 2 branches
| Branch | True | False | Total |
| Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentIntersector"); |
46 |
0 |
46 |
| Stash(__PACKAGE__).inherit("Geo::Geos::Noding::SegmentIntersector"); |
46 |
0 |
46 |
|
| 37 |
|
| } |