forked from stepcode/stepcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdispnode.cc
More file actions
55 lines (44 loc) · 1.38 KB
/
dispnode.cc
File metadata and controls
55 lines (44 loc) · 1.38 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
/*
* NIST STEP Editor Class Library
* cleditor/dispnode.cc
* 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.cc,v 3.0.1.2 1997/11/05 22:11:39 sauderd DP3.1 $ */
#include "clutils/gennode.h"
#include "clutils/gennodelist.h"
//#include <gennode.inline.h>
#include "clstepcore/dispnode.h"
#include "clstepcore/dispnodelist.h"
// define this to be the name of the display object
class StepEntityEditor;
// This function needs to be defined outside the SCL libraries. It needs to do
// two things:
// 1) unmap the StepEntityEditor window if it is mapped.
// 2) delete the StepEntityEditor window
// To see an example of this function used with the Data Probe look in
// ../clprobe-ui/StepEntEditor.cc Look at DeleteSEE() and ~StepEntityEditor().
extern void DeleteSEE( StepEntityEditor * se );
DisplayNode::~DisplayNode() {
Remove();
if( see ) {
DeleteSEE( ( StepEntityEditor * )see );
//DAS PORT need the cast from void* DeleteSEE(see);
}
}
void DisplayNode::Remove() {
GenericNode::Remove();
// DON'T DO THIS!! displayState = noMapState;
}
int DisplayNode::ChangeState( displayStateEnum s ) {
displayState = s;
return 1;
}
int DisplayNode::ChangeList( DisplayNodeList * cmdList ) {
Remove();
cmdList->Append( this );
return 1;
}