-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsyscoord.h
55 lines (44 loc) · 1.29 KB
/
syscoord.h
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef SYSCOORD_H
#define SYSCOORD_H
// {{SMILE_PUBLIC_HEADER}}
#include "dslobject.h"
#include "intarray.h"
class DSL_Dmatrix;
class DSL_nodeDefinition;
class DSL_nodeValue;
class DSL_sysCoordinates : public DSL_object
{
protected:
DSL_Dmatrix *link;
DSL_intArray currentPosition;
int currentIntPosition;
DSL_intArray lockedCoords;
public:
DSL_sysCoordinates(void);
DSL_sysCoordinates(DSL_Dmatrix &theLink);
DSL_sysCoordinates(DSL_nodeDefinition &theLink);
DSL_sysCoordinates(DSL_nodeValue &theLink);
void LinkTo(DSL_Dmatrix &theLink);
void LinkTo(DSL_nodeDefinition &theLink);
void LinkTo(DSL_nodeValue &theLink);
int &operator[](int index) {return(currentPosition[index]);};
// navigation
void GoFirst(void);
void GoLast(void);
int GoTo(int theIndex);
int Next(void);
int Previous(void);
int GoToCurrentPosition(void);
// conversion
int Index(void) {return(currentIntPosition);};
DSL_intArray &Coordinates(void) {return(currentPosition);};
// accesing data
double &UncheckedValue(void);
double &CheckedValue(void);
int LockCoordinate(int thisOne);
int UnlockCoordinate(int thisOne);
int UnlockAll(void);
protected:
void Initialize(void);
};
#endif