A collection of related objects with the same visual range. More...
#include <matmodel.hxx>
Public Member Functions | |
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. | |
Friends | |
class | SGMaterial |
A collection of related objects with the same visual range.
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 152 of file matmodel.hxx.
SGMatModel * SGMatModelGroup::get_object | ( | int | index | ) | const |
Get a specific object.
index | The object's index, zero-based. |
Definition at line 217 of file matmodel.cxx.
int SGMatModelGroup::get_object_count | ( | ) | const |
Get the number of objects in the group.
Definition at line 211 of file matmodel.cxx.
double SGMatModelGroup::get_range_m | ( | ) | const |
Get the visual range of the object in meters.
Definition at line 205 of file matmodel.cxx.