-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathdispnode.h
More file actions
90 lines (71 loc) · 2.26 KB
/
dispnode.h
File metadata and controls
90 lines (71 loc) · 2.26 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#ifndef dispnode_h
#define dispnode_h
/*
* NIST STEP Editor Class Library
* cleditor/dispnode.h
* April 1997
* David Sauder
* K. C. Morris
* Development of this software was funded by the United States Government,
* and is not subject to copyright.
*/
/* $Id: dispnode.h,v 3.0.1.2 1997/11/05 22:11:39 sauderd DP3.1 $ */
#include <sc_export.h>
/*#include <STEPattribute.h>*/
/*#include <STEPentity.h>*/
#include <sdai.h>
#include <gennode.h>
#include <gennodelist.h>
//#include <gennode.inline.h>
#include <editordefines.h>
//#include <mgrnode.h>
class MgrNode;
//////////////////////////////////////////////////////////////////////////////
// class DisplayNode
//////////////////////////////////////////////////////////////////////////////
class SC_CORE_EXPORT DisplayNode : public GenericNode {
protected:
friend class GenNodeList;
friend class DisplayNodeList;
MgrNode * mn;
void * see;
displayStateEnum displayState; // = { mappedWrite, mappedView, notMapped }
public:
// this should probably only be used to create head nodes for dispnodelists
DisplayNode() {
displayState = noMapState;
}
DisplayNode( MgrNode * node ) {
mn = node;
displayState = noMapState;
}
~DisplayNode();
void SEE( void * s ) {
see = s;
}
virtual void * SEE() {
return see;
}
void mgrNode( MgrNode * node ) {
mn = node;
}
class MgrNode * mgrNode() {
return mn;
}
displayStateEnum DisplayState() {
return displayState;
}
int DisplayListMember( displayStateEnum ds ) {
return ( displayState == ds );
}
int ChangeState( displayStateEnum s );
int ChangeList( DisplayNodeList * cmdList );
void Remove();
protected:
};
//////////////////////////////////////////////////////////////////////////////
// class DisplayNode inline functions
// these functions don't rely on any inline functions (its own or
// other classes) that aren't in this file except for Generic functions
//////////////////////////////////////////////////////////////////////////////
#endif