-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathIGeometry.h
More file actions
40 lines (29 loc) · 882 Bytes
/
IGeometry.h
File metadata and controls
40 lines (29 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright Ryan Schmidt 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include "config.h"
#include <Wm4Vector3.h>
#include <vector>
namespace rms {
/*
* currently assumes T is something we can use to index into a vector (hence MaxID() function)
*/
template <class T>
class INeighbourSource
{
public:
virtual void GetNeighbours( T nID, std::vector<T> & vNbrIDs ) = 0;
virtual T MaxID() = 0;
virtual bool IsOrdered() { return false; }
};
/*
* currently assumes T is something we can use to index into a vector (hence MaxID() function)
*/
template<class T>
class IPositionSource {
public:
virtual void GetPosition( T nID, Wml::Vector3f & vPosition, Wml::Vector3f * pNormal = NULL ) = 0;
virtual T MaxID() = 0;
};
} // end namespace rms