Test suite for the Qt canvas widget. More...
#include <TsCanvas.h>
Public Member Functions | |
| void | setUp () |
| void | tearDown () |
Protected Member Functions | |
| void | tcPerformance () |
| Test Case: it will draw several layers in order to make a benchmark. More... | |
| void | tcTransformation () |
| Test Case: it will test if the transformation from/to device and world is ok. More... | |
Private Member Functions | |
| CPPUNIT_TEST (tcTransformation) | |
| CPPUNIT_TEST (tcPerformance) | |
| CPPUNIT_TEST_SUITE (TsCanvas) | |
| CPPUNIT_TEST_SUITE_END () | |
Test suite for the Qt canvas widget.
This test suite will check the following:
Definition at line 44 of file TsCanvas.h.
|
private |
|
private |
|
private |
|
private |
| void TsCanvas::setUp | ( | ) |
Definition at line 53 of file TsCanvas.cpp.
|
protected |
Test Case: it will draw several layers in order to make a benchmark.
Definition at line 119 of file TsCanvas.cpp.
References te::at::Text::add(), te::qt::widgets::Canvas::calcAspectRatio(), te::da::DataSource::close(), te::common::Convert2String(), te::qt::widgets::Canvas::draw(), ds, dt, te::at::End, te::dt::GEOMETRY_TYPE, te::da::DataSourceCatalog::getDataSetType(), te::da::DataSet::getGeometry(), te::gm::GeometryProperty::getGeometryType(), te::dt::Property::getName(), te::da::DataSourceCatalog::getNumberOfDataSets(), te::qt::widgets::Canvas::getResolution(), te::da::DataSource::getTransactor(), te::dt::Property::getType(), te::gm::Envelope::init(), te::da::DataSet::isEmpty(), te::gm::LineStringType, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::da::DataSourceFactory::make(), te::da::DataSet::moveNext(), te::gm::MultiLineStringType, te::gm::MultiPolygonType, te::at::NormalStyle, te::at::NormalWeight, te::da::DataSource::open(), te::map::PNG, te::gm::PolygonType, pt2, pt3, te::qt::widgets::Canvas::save(), te::at::Element::setAttributes(), te::qt::widgets::Canvas::setLineColor(), te::gm::LineString::setPoint(), te::qt::widgets::Canvas::setPointColor(), te::qt::widgets::Canvas::setPolygonContourColor(), te::qt::widgets::Canvas::setPolygonFillColor(), te::at::Attributes::setTextColor(), te::qt::widgets::Canvas::setWindow(), and te::at::Start.
|
protected |
Test Case: it will test if the transformation from/to device and world is ok.
Definition at line 61 of file TsCanvas.cpp.
References te::qt::widgets::Canvas::draw(), te::gm::LineStringType, p, te::map::PNG, te::gm::PolygonType, te::qt::widgets::Canvas::save(), te::qt::widgets::Canvas::setLineColor(), te::gm::LineString::setPoint(), te::qt::widgets::Canvas::setPolygonContourColor(), te::qt::widgets::Canvas::setPolygonFillColor(), te::gm::CurvePolygon::setRingN(), and te::qt::widgets::Canvas::setWindow().
| void TsCanvas::tearDown | ( | ) |
Definition at line 57 of file TsCanvas.cpp.