Building a Node Kit
Let us explain the concept of creating a node kit by using a simple
example. We assume that it is not necessary to explain the use of a
node kit.
We would like to create a node kit which creates a candle. The use of
the CandleKit is simple like:
CandleKit *candle = new CandleKit();
candle->ref();
The node kit itself consists out of two ShapeKits which have as default
shape two cylinders. The shape can be redefined like in all
SoShapeKits.
The class definition shows that the kit is a
sub class of SoBaseKit.
The constructor initialize the kit and set
the default representation. If you don't want to compile it by
yourself, download it.
Jens Herder