StelSphericalIndexMultiRes.hpp   StelSphericalIndexMultiRes.hpp 
skipping to change at line 26 skipping to change at line 26
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
#ifndef _STELSPHERICALINDEXMULTIRES_HPP_ #ifndef _STELSPHERICALINDEXMULTIRES_HPP_
#define _STELSPHERICALINDEXMULTIRES_HPP_ #define _STELSPHERICALINDEXMULTIRES_HPP_
#define MAX_INDEX_LEVEL 8 #define MAX_INDEX_LEVEL 8
#include "StelRegionObject.hpp" #include "StelRegionObject.hpp"
#include "StelSphericalIndex.hpp"
//! @class StelSphericalIndexMultiRes //! @class StelSphericalIndexMultiRes
//! Container allowing to store and query SphericalRegion. //! Container allowing to store and query SphericalRegion.
class StelSphericalIndexMultiRes : public StelSphericalIndex class StelSphericalIndexMultiRes : public StelSphericalIndex
{ {
public: public:
StelSphericalIndexMultiRes(int maxObjectsPerNode = 100); StelSphericalIndexMultiRes(int maxObjectsPerNode = 100);
virtual ~StelSphericalIndexMultiRes(); virtual ~StelSphericalIndexMultiRes();
//! Insert the given object in the StelSphericalIndexMultiRes. //! Insert the given object in the StelSphericalIndexMultiRes.
skipping to change at line 115 skipping to change at line 116
children[3].triangle = SphericalConvexPolygon(e2,e0, e1); children[3].triangle = SphericalConvexPolygon(e2,e0, e1);
Q_ASSERT(children[3].triangle.checkValid()); Q_ASSERT(children[3].triangle.checkValid());
} }
}; };
//! @class RootNode //! @class RootNode
//! The first Node of a tree. It has a special subdivision of the sp here in an octahedron. //! The first Node of a tree. It has a special subdivision of the sp here in an octahedron.
class RootNode : public Node class RootNode : public Node
{ {
public: public:
RootNode(double amargin, int amaxObjectsPerNode, int amaxLevel) : maxObjectsPerNode(), maxLevel(amaxLevel), margin(amargin) RootNode(double amargin, int amaxObjectsPerNode, int amaxLevel) : maxObjectsPerNode(amaxObjectsPerNode), maxLevel(amaxLevel), m argin(amargin)
{ {
} }
//! Create the 8 triangles of the octahedron. //! Create the 8 triangles of the octahedron.
virtual void split() virtual void split()
{ {
static const Vec3d vertice[6] = static const Vec3d vertice[6] =
{ {
Vec3d(0,0,1), Vec3d(1,0,0), Vec3d(0, 1,0), Vec3d(-1,0,0), Vec3d(0,-1,0), Vec3d(0,0,-1) Vec3d(0,0,1), Vec3d(1,0,0), Vec3d(0, 1,0), Vec3d(-1,0,0), Vec3d(0,-1,0), Vec3d(0,0,-1)
}; };
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/