1 |
// (c) Tuomas J. Lukka and Asko Soukka |
// (c) Tuomas J. Lukka and Asko Soukka |
2 |
|
|
3 |
#include <Vob/Transform.hxx> |
#include <vector> |
4 |
|
#include <vob/Transform.hxx> |
5 |
|
#include <vob/Primitives.hxx> |
6 |
|
|
7 |
namespace Vob { |
namespace Vob { |
8 |
|
|
9 |
typedef Transform *(*TransformFactory)(int i); |
enum { |
10 |
|
CSFLAG_ACTIVE = 0x80000000, |
11 |
|
CSFLAGS = 0xf0000000 |
12 |
|
}; |
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
typedef Primitives::HierarchicalTransform *(*TransformFactory)(int i); |
17 |
|
|
18 |
/** A class that manages a set of coordinate systems. |
/** A class that manages a set of coordinate systems. |
19 |
*/ |
*/ |
20 |
class Coorder { |
class Coorder { |
21 |
vector<Transform *> cs; |
std::vector<Transform *> cs; |
22 |
vector<float> params; |
std::vector<float> params; |
23 |
|
|
24 |
int maxcs; |
int maxcs; |
25 |
|
|
|
int nparams(int typecode) ; |
|
|
int nprevious(int typecode) ; |
|
|
|
|
26 |
TransformFactory transformFactory; |
TransformFactory transformFactory; |
27 |
|
|
28 |
Coorder *cs1_tmp ; |
Coorder *cs1_tmp ; |
73 |
bool operator!=(const iterator &it) const { return ind != it.ind; } |
bool operator!=(const iterator &it) const { return ind != it.ind; } |
74 |
|
|
75 |
}; |
}; |
76 |
|
|
77 |
/** Return an iterator pointing to the first coordinate system |
/** Return an iterator pointing to the first coordinate system |
78 |
* (not root, i.e. not 0). |
* (not root, i.e. not 0). |
79 |
*/ |
*/ |