Test suite for the Envelop Class. More...
#include <TsEnvelop.h>
Public Member Functions | |
| void | setUp () |
| void | tearDown () |
Protected Member Functions | |
| void | tcContains () |
| Test Case: Contains. More... | |
| void | tcDisjoint () |
| Test Case: Disjoint. More... | |
| void | tcEnvelopCopy () |
| Test Case: Copy a envelop. More... | |
| void | tcEnvelopInit () |
| Test Case: Initialize a envelop. More... | |
| void | tcEnvelopInvalid () |
| Test Case: Constructs an envelope with invalid coordinates. More... | |
| void | tcEnvelopValid () |
| Test Case: Constructs an envelope with valid coordinates.. More... | |
| void | tcEquals () |
| Test Case: Check if the envelopes are "spatially equal". More... | |
| void | tcGetLowerLeftCoord2D () |
| Test Case: Get the lower left Coord2D. More... | |
| void | tcGetLowerLeftX () |
| Test Case: Get the lower left X coordinate. More... | |
| void | tcGetLowerLeftY () |
| Test Case: Get the lower left Y coordinate. More... | |
| void | tcGetUpperRightCoord2D () |
| Test Case: Get the lower left X coordinate. More... | |
| void | tcGetUpperRightX () |
| Test Case: Get the lower left X coordinate. More... | |
| void | tcGetUpperRightY () |
| Test Case: Get the lower left X coordinate. More... | |
| void | tcGetWidth_Right_Area () |
| void | tcIntersection () |
| Test Case: Intersection. More... | |
| void | tcIntersects () |
| Test Case: Intersects. More... | |
| void | tcIsValidRect () |
| void | tcMakeInvalid () |
| Test Case: Invalidate the envelop. More... | |
| void | tcSpatialOperations () |
| void | tcSpatialOperations1 () |
| void | tcTouches () |
| Test Case: Touches. More... | |
| void | tcUnion () |
| Test Case: Updates the envelop with another envelop. More... | |
| void | tcWithin () |
| Test Case: Within. More... | |
Test suite for the Envelop Class.
This test suite will check the following:
Definition at line 59 of file TsEnvelop.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void TsEnvelop::setUp | ( | ) |
Definition at line 34 of file TsEnvelop.cpp.
References boxA, boxAeB, boxAeF, boxAEqual, boxAexpandedB, boxB, boxC, boxD, boxE, boxF, boxG, boxGexpandedA, and boxH.
|
protected |
Test Case: Contains.
Definition at line 365 of file TsEnvelop.cpp.
References boxA, boxD, and te::gm::Envelope::contains().
|
protected |
Test Case: Disjoint.
Definition at line 314 of file TsEnvelop.cpp.
References boxA, boxB, boxC, boxD, boxE, boxG, boxH, and te::gm::Envelope::disjoint().
|
protected |
Test Case: Copy a envelop.
Definition at line 100 of file TsEnvelop.cpp.
References te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, and te::gm::Envelope::m_ury.
|
protected |
Test Case: Initialize a envelop.
Definition at line 114 of file TsEnvelop.cpp.
References te::gm::Envelope::init(), te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, and te::gm::Envelope::m_ury.
|
protected |
Test Case: Constructs an envelope with invalid coordinates.
Definition at line 73 of file TsEnvelop.cpp.
References te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, and te::gm::Envelope::m_ury.
|
protected |
Test Case: Constructs an envelope with valid coordinates..
Definition at line 87 of file TsEnvelop.cpp.
References te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, and te::gm::Envelope::m_ury.
|
protected |
Test Case: Check if the envelopes are "spatially equal".
Definition at line 128 of file TsEnvelop.cpp.
References boxA, boxAEqual, and te::gm::Envelope::equals().
|
protected |
Test Case: Get the lower left Coord2D.
Definition at line 193 of file TsEnvelop.cpp.
References te::gm::Envelope::getLowerLeft(), te::gm::Envelope::init(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
protected |
Test Case: Get the lower left X coordinate.
Definition at line 133 of file TsEnvelop.cpp.
References boxB, te::gm::Envelope::getLowerLeftX(), and te::gm::Envelope::init().
|
protected |
Test Case: Get the lower left Y coordinate.
Definition at line 148 of file TsEnvelop.cpp.
References boxB, te::gm::Envelope::getLowerLeftY(), and te::gm::Envelope::init().
|
protected |
Test Case: Get the lower left X coordinate.
Definition at line 205 of file TsEnvelop.cpp.
References te::gm::Envelope::getUpperRight(), te::gm::Envelope::init(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
|
protected |
Test Case: Get the lower left X coordinate.
Definition at line 163 of file TsEnvelop.cpp.
References boxB, te::gm::Envelope::getUpperRightX(), and te::gm::Envelope::init().
|
protected |
Test Case: Get the lower left X coordinate.
Definition at line 178 of file TsEnvelop.cpp.
References boxB, te::gm::Envelope::getUpperRightY(), and te::gm::Envelope::init().
|
protected |
Definition at line 250 of file TsEnvelop.cpp.
References te::gm::Envelope::getArea(), te::gm::Envelope::getHeight(), te::gm::Envelope::getWidth(), and te::gm::Envelope::init().
|
protected |
Test Case: Intersection.
Definition at line 341 of file TsEnvelop.cpp.
References boxA, boxAeB, boxB, boxC, boxF, boxG, boxH, te::gm::Envelope::equals(), te::gm::Envelope::intersection(), te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, and te::gm::Envelope::m_ury.
|
protected |
Test Case: Intersects.
Definition at line 299 of file TsEnvelop.cpp.
References boxA, boxB, boxC, boxE, boxF, boxG, boxH, and te::gm::Envelope::intersects().
|
protected |
Definition at line 236 of file TsEnvelop.cpp.
References te::gm::Envelope::init(), and te::gm::Envelope::isValid().
|
protected |
Test Case: Invalidate the envelop.
Definition at line 217 of file TsEnvelop.cpp.
References te::gm::Envelope::init(), te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, and te::gm::Envelope::makeInvalid().
|
protected |
Definition at line 266 of file TsEnvelop.cpp.
|
protected |
Definition at line 383 of file TsEnvelop.cpp.
|
protected |
Test Case: Touches.
Definition at line 324 of file TsEnvelop.cpp.
References boxA, boxB, boxC, boxE, boxF, boxG, boxH, and te::gm::Envelope::touches().
|
protected |
Test Case: Updates the envelop with another envelop.
Definition at line 374 of file TsEnvelop.cpp.
References boxA, boxAexpandedB, boxB, boxG, boxGexpandedA, te::gm::Envelope::equals(), and te::gm::Envelope::Union().
|
protected |
Test Case: Within.
Definition at line 369 of file TsEnvelop.cpp.
References boxA, boxD, and te::gm::Envelope::within().
| void TsEnvelop::tearDown | ( | ) |
|
private |
Definition at line 189 of file TsEnvelop.h.
Referenced by setUp(), tcContains(), tcDisjoint(), tcEquals(), tcIntersection(), tcIntersects(), tcTouches(), tcUnion(), tcWithin(), and tearDown().
|
private |
Definition at line 200 of file TsEnvelop.h.
Referenced by setUp(), tcIntersection(), and tearDown().
|
private |
Definition at line 201 of file TsEnvelop.h.
Referenced by setUp(), and tearDown().
|
private |
Definition at line 190 of file TsEnvelop.h.
Referenced by setUp(), tcEquals(), and tearDown().
|
private |
Definition at line 202 of file TsEnvelop.h.
Referenced by setUp(), tcUnion(), and tearDown().
|
private |
Definition at line 192 of file TsEnvelop.h.
Referenced by setUp(), tcDisjoint(), tcGetLowerLeftX(), tcGetLowerLeftY(), tcGetUpperRightX(), tcGetUpperRightY(), tcIntersection(), tcIntersects(), tcTouches(), tcUnion(), and tearDown().
|
private |
Definition at line 193 of file TsEnvelop.h.
Referenced by setUp(), tcDisjoint(), tcIntersection(), tcIntersects(), tcTouches(), and tearDown().
|
private |
Definition at line 194 of file TsEnvelop.h.
Referenced by setUp(), tcContains(), tcDisjoint(), tcWithin(), and tearDown().
|
private |
Definition at line 195 of file TsEnvelop.h.
Referenced by setUp(), tcDisjoint(), tcIntersects(), tcTouches(), and tearDown().
|
private |
Definition at line 196 of file TsEnvelop.h.
Referenced by setUp(), tcIntersection(), tcIntersects(), tcTouches(), and tearDown().
|
private |
Definition at line 197 of file TsEnvelop.h.
Referenced by setUp(), tcDisjoint(), tcIntersection(), tcIntersects(), tcTouches(), tcUnion(), and tearDown().
|
private |
Definition at line 203 of file TsEnvelop.h.
|
private |
Definition at line 198 of file TsEnvelop.h.
Referenced by setUp(), tcDisjoint(), tcIntersection(), tcIntersects(), tcTouches(), and tearDown().