SmallChange
1.0.0
A collection of extensions to Coin3D
|
The ShapeScale class is used for scaling a shape based on projected size. More...
#include <ShapeScale.h>
Static Public Member Functions | |
static void | initClass (void) |
Public Attributes | |
SoSFBool | active |
SoSFFloat | maxScale |
SoSFFloat | minScale |
SoSFFloat | projectedSize |
The ShapeScale class is used for scaling a shape based on projected size.
This nodekit can be inserted in your scene graph to add for instance 3D markers that will be of a constant projected size.
The marker shape is stored in the "shape" part. Any kind of node can be used, even group nodes with several shapes, but the marker shape should be approximately of unit size, and with a center position in (0, 0, 0).
SoSFBool ShapeScale::active |
Turns the scaling on/off. Default value is TRUE.
SoSFFloat ShapeScale::maxScale |
The maximum scale factor applied to the shape. Default value is FLT_MAX.
SoSFFloat ShapeScale::minScale |
The minimum scale factor applied to the shape. Default value is 0.0.
SoSFFloat ShapeScale::projectedSize |
The requested projected size of the shape. Default value is 5.0.