SmallChange  1.0.0
A collection of extensions to Coin3D
Loading...
Searching...
No Matches
SmTooltip Class Reference

The SmTooltip class is used to set tooltips for shapes. More...

#include <SmTooltip.h>

Inheritance diagram for SmTooltip:
SoNode

Public Member Functions

 SmTooltip (void)
 

Static Public Member Functions

static void initClass (void)
 

Public Attributes

SoMFString description
 

Protected Member Functions

virtual ~SmTooltip ()
 

Detailed Description

The SmTooltip class is used to set tooltips for shapes.

You'd normally insert a SmTooltipKit node in your scene graph and set its autoTrigger field to TRUE when using this node.

Below is an example scene graph that shows how to use this node:

#Inventor V2.1 ascii

Separator {
  SmTooltip { description "Cube" }
  Cube { }

  Translation { translation 4 0 0 }
  SmTooltip { description "Sphere" }
  Sphere { }

  Translation { translation 4 0 0 }
  SmTooltip { description "Cone" }
  Cone { }

  Translation { translation 4 0 0 }
  SmTooltip { description "Cylinder" }
  Cylinder { }

  SmTooltipKit { autoTrigger TRUE }
}

FIXME: more doc

Constructor & Destructor Documentation

◆ SmTooltip()

SmTooltip::SmTooltip ( void )

Constructor.

◆ ~SmTooltip()

SmTooltip::~SmTooltip ( )
protectedvirtual

Destructor.

Member Data Documentation

◆ description

SoMFString SmTooltip::description

The tooltip string.


The documentation for this class was generated from the following files: