1 /***********************************************************************/ 2 /* Open Visualization Data Explorer */ 3 /* (C) Copyright IBM Corp. 1989,1999 */ 4 /* ALL RIGHTS RESERVED */ 5 /* This code licensed under the */ 6 /* "IBM PUBLIC LICENSE - Open Visualization Data Explorer" */ 7 /***********************************************************************/ 8 9 #include <dxconfig.h> 10 #include "../base/defines.h" 11 12 13 #ifndef _ColormapDefinition_h 14 #define _ColormapDefinition_h 15 16 17 #include "DrivenDefinition.h" 18 19 20 // 21 // Class name definition: 22 // 23 #define ClassColormapDefinition "ColormapDefinition" 24 25 // 26 // Referenced classes 27 class Network; 28 29 // 30 // ColormapDefinition class definition: 31 // 32 class ColormapDefinition : public DrivenDefinition 33 { 34 private: 35 // 36 // Private member data: 37 // 38 39 protected: 40 // 41 // Allocate a new Node of the corresponding type. 42 // 43 virtual Node *newNode(Network *net, int instance = -1); 44 45 public: 46 // 47 // Constructor: 48 // 49 ColormapDefinition(); 50 51 // 52 // Destructor: 53 // ~ColormapDefinition()54 ~ColormapDefinition(){} 55 56 // 57 // Create a new Module and DrivenDefinition of 'this' type. 58 // 59 static NodeDefinition *AllocateDefinition(); 60 61 #if 0 // Moved to DrivenNode 6/30/93 62 virtual boolean isAllowedInMacro() { return FALSE; } 63 #endif 64 65 // 66 // Returns a pointer to the class name. 67 // getClassName()68 const char* getClassName() 69 { 70 return ClassColormapDefinition; 71 } 72 }; 73 74 75 #endif // _ColormapDefinition_h 76