TsEnvelop Class Reference

Test suite for the Envelop Class. More...

#include <TsEnvelop.h>

Inheritance diagram for TsEnvelop:

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

Private Member Functions

 CPPUNIT_TEST (tcEnvelopInvalid)
 
 CPPUNIT_TEST (tcEnvelopValid)
 
 CPPUNIT_TEST (tcEnvelopCopy)
 
 CPPUNIT_TEST (tcEnvelopInit)
 
 CPPUNIT_TEST (tcEquals)
 
 CPPUNIT_TEST (tcGetLowerLeftX)
 
 CPPUNIT_TEST (tcGetLowerLeftY)
 
 CPPUNIT_TEST (tcGetUpperRightX)
 
 CPPUNIT_TEST (tcGetUpperRightY)
 
 CPPUNIT_TEST (tcGetLowerLeftCoord2D)
 
 CPPUNIT_TEST (tcGetUpperRightCoord2D)
 
 CPPUNIT_TEST (tcMakeInvalid)
 
 CPPUNIT_TEST (tcIsValidRect)
 
 CPPUNIT_TEST (tcGetWidth_Right_Area)
 
 CPPUNIT_TEST (tcIntersects)
 
 CPPUNIT_TEST (tcDisjoint)
 
 CPPUNIT_TEST (tcTouches)
 
 CPPUNIT_TEST (tcIntersection)
 
 CPPUNIT_TEST (tcContains)
 
 CPPUNIT_TEST (tcWithin)
 
 CPPUNIT_TEST (tcUnion)
 
 CPPUNIT_TEST (tcSpatialOperations1)
 
 CPPUNIT_TEST_SUITE (TsEnvelop)
 
 CPPUNIT_TEST_SUITE_END ()
 

Private Attributes

te::gm::EnvelopeboxA
 
te::gm::EnvelopeboxAeB
 
te::gm::EnvelopeboxAeF
 
te::gm::EnvelopeboxAEqual
 
te::gm::EnvelopeboxAexpandedB
 
te::gm::EnvelopeboxB
 
te::gm::EnvelopeboxC
 
te::gm::EnvelopeboxD
 
te::gm::EnvelopeboxE
 
te::gm::EnvelopeboxF
 
te::gm::EnvelopeboxG
 
te::gm::EnvelopeboxGexpandedA
 
te::gm::EnvelopeboxH
 

Detailed Description

Test suite for the Envelop Class.

This test suite will check the following:

Definition at line 59 of file TsEnvelop.h.

Member Function Documentation

TsEnvelop::CPPUNIT_TEST ( tcEnvelopInvalid  )
private
TsEnvelop::CPPUNIT_TEST ( tcEnvelopValid  )
private
TsEnvelop::CPPUNIT_TEST ( tcEnvelopCopy  )
private
TsEnvelop::CPPUNIT_TEST ( tcEnvelopInit  )
private
TsEnvelop::CPPUNIT_TEST ( tcEquals  )
private
TsEnvelop::CPPUNIT_TEST ( tcGetLowerLeftX  )
private
TsEnvelop::CPPUNIT_TEST ( tcGetLowerLeftY  )
private
TsEnvelop::CPPUNIT_TEST ( tcGetUpperRightX  )
private
TsEnvelop::CPPUNIT_TEST ( tcGetUpperRightY  )
private
TsEnvelop::CPPUNIT_TEST ( tcGetLowerLeftCoord2D  )
private
TsEnvelop::CPPUNIT_TEST ( tcGetUpperRightCoord2D  )
private
TsEnvelop::CPPUNIT_TEST ( tcMakeInvalid  )
private
TsEnvelop::CPPUNIT_TEST ( tcIsValidRect  )
private
TsEnvelop::CPPUNIT_TEST ( tcGetWidth_Right_Area  )
private
TsEnvelop::CPPUNIT_TEST ( tcIntersects  )
private
TsEnvelop::CPPUNIT_TEST ( tcDisjoint  )
private
TsEnvelop::CPPUNIT_TEST ( tcTouches  )
private
TsEnvelop::CPPUNIT_TEST ( tcIntersection  )
private
TsEnvelop::CPPUNIT_TEST ( tcContains  )
private
TsEnvelop::CPPUNIT_TEST ( tcWithin  )
private
TsEnvelop::CPPUNIT_TEST ( tcUnion  )
private
TsEnvelop::CPPUNIT_TEST ( tcSpatialOperations1  )
private
TsEnvelop::CPPUNIT_TEST_SUITE ( TsEnvelop  )
private
TsEnvelop::CPPUNIT_TEST_SUITE_END ( )
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.

void TsEnvelop::tcContains ( )
protected

Test Case: Contains.

Definition at line 365 of file TsEnvelop.cpp.

References boxA, boxD, and te::gm::Envelope::contains().

void TsEnvelop::tcDisjoint ( )
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().

void TsEnvelop::tcEnvelopCopy ( )
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.

void TsEnvelop::tcEnvelopInit ( )
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.

void TsEnvelop::tcEnvelopInvalid ( )
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.

void TsEnvelop::tcEnvelopValid ( )
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.

void TsEnvelop::tcEquals ( )
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().

void TsEnvelop::tcGetLowerLeftCoord2D ( )
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.

void TsEnvelop::tcGetLowerLeftX ( )
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().

void TsEnvelop::tcGetLowerLeftY ( )
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().

void TsEnvelop::tcGetUpperRightCoord2D ( )
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.

void TsEnvelop::tcGetUpperRightX ( )
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().

void TsEnvelop::tcGetUpperRightY ( )
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().

void TsEnvelop::tcGetWidth_Right_Area ( )
protected
void TsEnvelop::tcIntersection ( )
protected
void TsEnvelop::tcIntersects ( )
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().

void TsEnvelop::tcIsValidRect ( )
protected

Definition at line 236 of file TsEnvelop.cpp.

References te::gm::Envelope::init(), and te::gm::Envelope::isValid().

void TsEnvelop::tcMakeInvalid ( )
protected
void TsEnvelop::tcSpatialOperations ( )
protected

Definition at line 266 of file TsEnvelop.cpp.

void TsEnvelop::tcSpatialOperations1 ( )
protected

Definition at line 383 of file TsEnvelop.cpp.

void TsEnvelop::tcTouches ( )
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().

void TsEnvelop::tcUnion ( )
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().

void TsEnvelop::tcWithin ( )
protected

Test Case: Within.

Definition at line 369 of file TsEnvelop.cpp.

References boxA, boxD, and te::gm::Envelope::within().

void TsEnvelop::tearDown ( )

Definition at line 55 of file TsEnvelop.cpp.

References boxA, boxAeB, boxAeF, boxAEqual, boxAexpandedB, boxB, boxC, boxD, boxE, boxF, boxG, and boxH.

Member Data Documentation

te::gm::Envelope* TsEnvelop::boxA
private
te::gm::Envelope* TsEnvelop::boxAeB
private

Definition at line 200 of file TsEnvelop.h.

Referenced by setUp(), tcIntersection(), and tearDown().

te::gm::Envelope* TsEnvelop::boxAeF
private

Definition at line 201 of file TsEnvelop.h.

Referenced by setUp(), and tearDown().

te::gm::Envelope* TsEnvelop::boxAEqual
private

Definition at line 190 of file TsEnvelop.h.

Referenced by setUp(), tcEquals(), and tearDown().

te::gm::Envelope* TsEnvelop::boxAexpandedB
private

Definition at line 202 of file TsEnvelop.h.

Referenced by setUp(), tcUnion(), and tearDown().

te::gm::Envelope* TsEnvelop::boxC
private

Definition at line 193 of file TsEnvelop.h.

Referenced by setUp(), tcDisjoint(), tcIntersection(), tcIntersects(), tcTouches(), and tearDown().

te::gm::Envelope* TsEnvelop::boxD
private

Definition at line 194 of file TsEnvelop.h.

Referenced by setUp(), tcContains(), tcDisjoint(), tcWithin(), and tearDown().

te::gm::Envelope* TsEnvelop::boxE
private

Definition at line 195 of file TsEnvelop.h.

Referenced by setUp(), tcDisjoint(), tcIntersects(), tcTouches(), and tearDown().

te::gm::Envelope* TsEnvelop::boxF
private

Definition at line 196 of file TsEnvelop.h.

Referenced by setUp(), tcIntersection(), tcIntersects(), tcTouches(), and tearDown().

te::gm::Envelope* TsEnvelop::boxG
private

Definition at line 197 of file TsEnvelop.h.

Referenced by setUp(), tcDisjoint(), tcIntersection(), tcIntersects(), tcTouches(), tcUnion(), and tearDown().

te::gm::Envelope* TsEnvelop::boxGexpandedA
private

Definition at line 203 of file TsEnvelop.h.

Referenced by setUp(), and tcUnion().

te::gm::Envelope* TsEnvelop::boxH
private

Definition at line 198 of file TsEnvelop.h.

Referenced by setUp(), tcDisjoint(), tcIntersection(), tcIntersects(), tcTouches(), and tearDown().


The documentation for this class was generated from the following files: