PROTO Tooltip
VRML PROTO (based on IndexedFaceSet
) that generates a rounded rectangle with a tip that visually links to an arbitrary 3D position.
The side where the tip is attached to the rectangle is automatically deduced from the relative position of the target.
EXTERNPROTO Tooltip [
exposedField SFVec3f center
exposedField SFVec3f tip
exposedField SFVec2f size
exposedField SFFloat radius
field SFBool solid
] "proto.Tooltip.wrl#Tooltip"
center
3D position of the center of the rounded rectangle.
Definition:
exposedField
SFVec3f
0 0 0
tip
3D position of the tip of the triangle attached outside the rounded rectangle.
Definition:
exposedField
SFVec3f
0 0 0
size
Width & height of the inner area of the rounded rectangle.
You could use MonospaceText.bboxSize
to fit a tooltip around an arbitrary text.
Definition:
exposedField
SFVec3f
2 2
radius
Radius of the rounded border of the rectangle.
Definition:
exposedField
SFVec3f
1
solid
Like IndexedFaceSet.solid
, renders both sides (FALSE
) or only the front side (TRUE
).
Definition:
field
SFBool
TRUE