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.H < prev    next >
C/C++ Source or Header  |  1994-08-06  |  2KB  |  77 lines

  1.  
  2. #ifndef dispnode_h
  3. #define dispnode_h
  4.  
  5. /*
  6. * NIST STEP Editor Class Library
  7. * cleditor/dispnode.h
  8. * February, 1994
  9. * David Sauder
  10. * K. C. Morris
  11.  
  12. * Development of this software was funded by the United States Government,
  13. * and is not subject to copyright.
  14. */
  15.  
  16. /* $Id: dispnode.h,v 2.0.1.1 1994/04/05 16:41:43 sauderd Exp $ */ 
  17.  
  18. #ifdef __O3DB__
  19. #include <OpenOODB.h>
  20. #endif
  21.  
  22. /*#include <STEPattribute.h>*/
  23. /*#include <STEPentity.h>*/
  24. #include <sdai.h>
  25.  
  26. #include <gennode.h>
  27. #include <gennodel.h>
  28. #include <gennodei.h>
  29. #include <editorde.h>
  30. //#include <mgrnode.h>
  31. class MgrNode;
  32.  
  33. //////////////////////////////////////////////////////////////////////////////
  34. // class DisplayNode
  35. //////////////////////////////////////////////////////////////////////////////
  36.  
  37. class DisplayNode : public GenericNode
  38. {
  39. protected:
  40.     friend class GenNodeList;
  41.     friend class DisplayNodeList;
  42.  
  43.     MgrNode *mn;
  44.     void *see;
  45.     displayStateEnum displayState; // = { mappedWrite, mappedView, notMapped }
  46.  
  47. public:
  48.     // this should probably only be used to create head nodes for dispnodelists
  49.     DisplayNode()    { displayState = noMapState; }
  50.     DisplayNode(MgrNode *node)    { mn = node; displayState = noMapState; }
  51.     ~DisplayNode();
  52.  
  53.     void SEE(void *s)        { see = s; }
  54.     virtual void *SEE()        { return see; };
  55.  
  56.     void MgrNode(MgrNode *node)    { mn = node; }
  57.     class MgrNode *MgrNode()        { return mn; }
  58.  
  59.     displayStateEnum DisplayState()         { return displayState; }
  60.     int DisplayListMember(displayStateEnum ds) { return (displayState == ds); }
  61.  
  62.     int ChangeState(displayStateEnum s);
  63.     int ChangeList(DisplayNodeList *cmdList);
  64.  
  65.     void Remove();
  66.  
  67. protected:
  68. };
  69.  
  70. //////////////////////////////////////////////////////////////////////////////
  71. // class DisplayNode inline functions
  72. // these functions don't rely on any inline functions (its own or
  73. //    other classes) that aren't in this file except for Generic functions
  74. //////////////////////////////////////////////////////////////////////////////
  75.  
  76. #endif
  77.