source: molecuilder/src/unittests/tesselation_insideoutsideunittest.hpp@ 07d2cd

Last change on this file since 07d2cd was 6dd8d3, checked in by heber <heber@…>, 15 years ago

LinkedNodes is now declared inside LinkedCell and some new functions.

  • as prepraratory measure we placed LinkedNodes as typedef into LinkedCell class. This caused same namespace changes elsewhere where LinkedNodes is used.
  • new function GetallNeighbours() which performs going through linked cells.
  • new function GetPointsInsideaSphere() which performs going through linked cells and returns all neighbours up to a given distance to a given center.

Note: New functions are not yet used elsewhere. Unit test has to be written beforehand.

Signed-off-by: heber <heber@…>

  • Property mode set to 100644
File size: 944 bytes
Line 
1/*
2 * tesselation_insideoutsideunittest.hpp
3 *
4 * Created on: Dec 28, 2009
5 * Author: heber
6 */
7
8#ifndef TESSELATION_INSIDEOUTSIDEUNITTEST_HPP_
9#define TESSELATION_INSIDEOUTSIDEUNITTEST_HPP_
10
11/*********************************************** includes ***********************************/
12
13#include <cppunit/extensions/HelperMacros.h>
14
15#include "linkedcell.hpp"
16#include "tesselation.hpp"
17
18/********************************************** Test classes **************************************/
19
20class TesselationInOutsideTest : public CppUnit::TestFixture
21{
22 CPPUNIT_TEST_SUITE( TesselationInOutsideTest) ;
23 CPPUNIT_TEST ( IsInnerPointTest );
24 CPPUNIT_TEST_SUITE_END();
25
26public:
27 void setUp();
28 void tearDown();
29 void IsInnerPointTest();
30
31private:
32 class Tesselation *TesselStruct;
33 LinkedCell::LinkedNodes Corners;
34 class LinkedCell *LinkedList;
35};
36
37
38#endif /* TESSELATION_INSIDEOUTSIDEUNITTEST_HPP_ */
Note: See TracBrowser for help on using the repository browser.