#include <matmodel.hxx>
Inheritance diagram for SGMatModelGroup:

Public Member Functions | |
| virtual | ~SGMatModelGroup () |
| double | get_range_m () const |
| Get the visual range of the object in meters. | |
| int | get_object_count () const |
| Get the number of objects in the group. | |
| SGMatModel * | get_object (int index) const |
| Get a specific object. | |
Protected Member Functions | |
| SGMatModelGroup (SGPropertyNode *node) | |
Friends | |
| class | SGMaterial |
Grouping objects with the same range together significantly reduces the memory requirements of randomly-placed objects. Each SGMaterial instance keeps a (possibly-empty) list of object groups for placing randomly on the scenery.
Definition at line 160 of file matmodel.hxx.
| double SGMatModelGroup::get_range_m | ( | ) | const |
Get the visual range of the object in meters.
Definition at line 246 of file matmodel.cxx.
Referenced by SGLeafUserData::setup_triangle().
| int SGMatModelGroup::get_object_count | ( | ) | const |
Get the number of objects in the group.
Definition at line 252 of file matmodel.cxx.
Referenced by SGTriUserData::fill_in_triangle().
| SGMatModel * SGMatModelGroup::get_object | ( | int | index | ) | const |
Get a specific object.
| index | The object's index, zero-based. |
Definition at line 258 of file matmodel.cxx.
Referenced by SGTriUserData::fill_in_triangle().
1.5.1