1 #ifndef SMALLCHANGE_SMPOPUPMENUKIT_H 2 #define SMALLCHANGE_SMPOPUPMENUKIT_H 36 #include <Inventor/nodekits/SoSubKit.h> 37 #include <Inventor/nodekits/SoBaseKit.h> 38 #include <Inventor/fields/SoMFNode.h> 39 #include <Inventor/fields/SoSFBool.h> 40 #include <Inventor/fields/SoSFTime.h> 41 #include <Inventor/fields/SoSFInt32.h> 42 #include <Inventor/fields/SoSFFloat.h> 43 #include <Inventor/fields/SoSFVec2s.h> 44 #include <Inventor/fields/SoSFString.h> 45 #include <Inventor/fields/SoMFString.h> 46 #include <Inventor/fields/SoMFBool.h> 47 #include <SmallChange/basic.h> 49 class SmPopupMenuKitP;
60 SO_KIT_CATALOG_ENTRY_HEADER(topSeparator);
61 SO_KIT_CATALOG_ENTRY_HEADER(resetTransform);
62 SO_KIT_CATALOG_ENTRY_HEADER(transparencyType);
63 SO_KIT_CATALOG_ENTRY_HEADER(position);
64 SO_KIT_CATALOG_ENTRY_HEADER(depthBuffer);
65 SO_KIT_CATALOG_ENTRY_HEADER(lightModel);
66 SO_KIT_CATALOG_ENTRY_HEADER(camera);
67 SO_KIT_CATALOG_ENTRY_HEADER(texture);
68 SO_KIT_CATALOG_ENTRY_HEADER(shapeHints);
69 SO_KIT_CATALOG_ENTRY_HEADER(pickStyle);
70 SO_KIT_CATALOG_ENTRY_HEADER(materialBinding);
71 SO_KIT_CATALOG_ENTRY_HEADER(backgroundMaterial);
72 SO_KIT_CATALOG_ENTRY_HEADER(backgroundTexture);
73 SO_KIT_CATALOG_ENTRY_HEADER(justification);
74 SO_KIT_CATALOG_ENTRY_HEADER(backgroundShape);
75 SO_KIT_CATALOG_ENTRY_HEADER(textSeparator);
76 SO_KIT_CATALOG_ENTRY_HEADER(textFont);
77 SO_KIT_CATALOG_ENTRY_HEADER(textColor);
78 SO_KIT_CATALOG_ENTRY_HEADER(textPickStyle);
79 SO_KIT_CATALOG_ENTRY_HEADER(itemSeparator);
80 SO_KIT_CATALOG_ENTRY_HEADER(activeMaterial);
81 SO_KIT_CATALOG_ENTRY_HEADER(activeShape);
82 SO_KIT_CATALOG_ENTRY_HEADER(borderShape);
83 SO_KIT_CATALOG_ENTRY_HEADER(titleSeparator);
101 static void setSchemeEvalFunctions(
int (*scriptcb)(
const char *),
102 void (*filecb)(
const char *));
110 void setTransparencies(
float active,
float inactive);
112 void setNormalizedPosition(
const SbVec2f & npt);
137 void updateBackground(
void);
138 void updateActiveItem(
void);
139 void itemPicked(
const int idx);
141 static void items_changed_cb(
void * closure,
SoSensor * s);
142 static void oneshot_cb(
void * closure,
SoSensor * s);
143 static void trigger_cb(
void * closure,
SoSensor * s);
144 static void activeitemchanged_cb(
void * closure,
SoSensor * s);
145 static void opensub_cb(
void * closure,
SoSensor * s);
146 static void isactive_cb(
void * closure,
SoSensor * s);
147 friend class SmPopupMenuKitP;
148 SmPopupMenuKitP * pimpl;
152 #endif // SMALLCHANGE_SMPOPUPMENUKIT_H
virtual void search(SoSearchAction *action)
virtual SbBool affectsState(void) const
virtual void handleEvent(SoHandleEventAction *action)
virtual void getPrimitiveCount(SoGetPrimitiveCountAction *action)
virtual void audioRender(SoAudioRenderAction *action)
virtual void getMatrix(SoGetMatrixAction *action)
virtual void GLRender(SoGLRenderAction *action)
virtual void pick(SoPickAction *action)
static void initClass(void)
virtual void callback(SoCallbackAction *action)
virtual void getBoundingBox(SoGetBoundingBoxAction *action)
virtual void rayPick(SoRayPickAction *action)