home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftptest.leeds.ac.uk
/
2015.02.ftptest.leeds.ac.uk.tar
/
ftptest.leeds.ac.uk
/
bionet
/
CAE-GROUP
/
SCL-WIN3x
/
SCL.EXE
/
DISPNODE.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-06
|
1KB
|
61 lines
/*
* NIST STEP Editor Class Library
* cleditor/dispnode.cc
* February, 1994
* 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 2.0.1.1 1994/04/05 16:42:26 sauderd Exp $ */
#include <gennode.h>
#include <gennodel.h>
#include <gennodei.h>
#include <dispnode.h>
#include <dispnodl.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;
}