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

The ShapeScale class is used for scaling a shape based on projected size. More...

#include <ShapeScale.h>

Inheritance diagram for ShapeScale:

Static Public Member Functions

static void initClass (void)
 

Public Attributes

SoSFBool active
 
SoSFFloat maxScale
 
SoSFFloat minScale
 
SoSFFloat projectedSize
 

Detailed Description

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).

Member Data Documentation

◆ active

SoSFBool ShapeScale::active

Turns the scaling on/off. Default value is TRUE.

◆ maxScale

SoSFFloat ShapeScale::maxScale

The maximum scale factor applied to the shape. Default value is FLT_MAX.

◆ minScale

SoSFFloat ShapeScale::minScale

The minimum scale factor applied to the shape. Default value is 0.0.

◆ projectedSize

SoSFFloat ShapeScale::projectedSize

The requested projected size of the shape. Default value is 5.0.


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