We want to be consistent with the previous layout, to avoid needlessly breaking existing codes. The header update means client codes are not required to include all of the stepcode library includes explicitly - i.e., stepcode itself does not force this requirement with its own internal includes. However, if client codes do not want to add the library prefixes to their own includes as we have for stepcode, they should still be able to add the various includes and work as before. Adjust the include directory names accordingly.
91 lines
2.3 KiB
C++
91 lines
2.3 KiB
C++
|
|
#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 "clstepcore/STEPattribute.h"*/
|
|
/*#include <STEPentity.h>*/
|
|
#include "clstepcore/sdai.h"
|
|
|
|
#include "clutils/gennode.h"
|
|
#include "clutils/gennodelist.h"
|
|
//#include <gennode.inline.h>
|
|
#include "cleditor/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
|