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 _PickNode_h 14 #define _PickNode_h 15 16 17 #include "ProbeNode.h" 18 19 20 // 21 // Class name definition: 22 // 23 #define ClassPickNode "PickNode" 24 25 // 26 // Referenced Classes 27 class Parameter; 28 29 // 30 // PickNode class definition: 31 // 32 class PickNode : public ProbeNode 33 { 34 35 private: 36 // 37 // Private member data: 38 // 39 40 protected: 41 // 42 // Protected member data: 43 // 44 virtual char *netNodeString(const char *prefix); 45 virtual char *valuesString(const char *prefix); 46 47 void incrementIndex(); 48 49 public: 50 // 51 // Constructor: 52 // 53 PickNode(NodeDefinition *nd, Network *net, int instnc); 54 55 // 56 // Destructor: 57 // 58 ~PickNode(); 59 60 virtual boolean initialize(); 61 virtual void initializeAfterNetworkMember(); 62 63 virtual boolean setLabelString(const char *label); 64 65 virtual void setCursorValue(int cursor, double x, double y, double z = 0.0); 66 67 void resetCursor(); 68 void pickFrom(Node *n); 69 70 // 71 // Determine if this node is a node of the given class 72 // 73 virtual boolean isA(Symbol classname); 74 hasJavaRepresentation()75 virtual boolean hasJavaRepresentation() { return TRUE; } getJavaNodeName()76 virtual const char* getJavaNodeName() { return "PickNode"; } 77 78 // 79 // Returns a pointer to the class name. 80 // getClassName()81 const char* getClassName() 82 { 83 return ClassPickNode; 84 } 85 }; 86 87 88 #endif // _PickNode_h 89