SmallChange
1.0.0
A collection of extensions to Coin3D
|
The SmPopupMenuKit class... More...
#include <SmPopupMenuKit.h>
Public Member Functions | |
SmPopupMenuKit (void) | |
virtual void | audioRender (SoAudioRenderAction *action) |
virtual void | callback (SoCallbackAction *action) |
void | childFinished (SmPopupMenuKit *child) |
virtual void | getBoundingBox (SoGetBoundingBoxAction *action) |
virtual void | getMatrix (SoGetMatrixAction *action) |
virtual void | getPrimitiveCount (SoGetPrimitiveCountAction *action) |
virtual void | GLRender (SoGLRenderAction *action) |
virtual void | handleEvent (SoHandleEventAction *action) |
virtual void | pick (SoPickAction *action) |
virtual void | rayPick (SoRayPickAction *action) |
virtual void | search (SoSearchAction *action) |
void | setNormalizedPosition (const SbVec2f &npt) |
void | setParent (SmPopupMenuKit *kit) |
void | setPickedPoint (const SoPickedPoint *pp, const SbViewportRegion &vp) |
void | setTransparencies (float active, float inactive) |
void | setViewportRegion (const SbViewportRegion &vp) |
Static Public Member Functions | |
static void | initClass (void) |
static void | setSchemeEvalFunctions (int(*scriptcb)(const char *), void(*filecb)(const char *)) |
Public Attributes | |
SoSFBool | closeParent |
SoSFInt32 | frameSize |
SoSFBool | isActive |
SoMFNode | itemData |
SoMFBool | itemDisabled |
SoMFString | itemList |
SoMFString | itemSchemeScript |
SoMFBool | itemTagged |
SoSFString | menuTitle |
SoSFVec2s | offset |
SoSFInt32 | pickedItem |
SoSFFloat | spacing |
SoSFBool | visible |
Protected Member Functions | |
virtual | ~SmPopupMenuKit () |
virtual SbBool | affectsState (void) const |
The SmPopupMenuKit class...
FIXME: doc
SmPopupMenuKit::SmPopupMenuKit | ( | void | ) |
Constructor.
|
protectedvirtual |
Destructor.
void SmPopupMenuKit::setPickedPoint | ( | const SoPickedPoint * | pp, |
const SbViewportRegion & | vp ) |
Convenience function that uses an SoPickedPoint to calculate the position of the tooltip. pp == NULL will deactivate the menu.
Sets the current viewport region. The viewport region will also be picked up when the node is traversed with SoGLRenderAction.
SoSFInt32 SmPopupMenuKit::frameSize |
The amount of extra pixels around the frame. The default value is 3.
SoSFBool SmPopupMenuKit::isActive |
TRUE when menu is active, FALSE otherwise.
SoMFString SmPopupMenuKit::itemData |
Node data for each item. If an item contains an SmPopupMenuKit, a sub menu will be opened when the user selects this item.
SoMFString SmPopupMenuKit::itemList |
The menu items