SGMatModelGroup Class Reference

A collection of related objects with the same visual range. More...

#include <matmodel.hxx>

Inheritance diagram for SGMatModelGroup:
SGReferenced

List of all members.

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.
SGMatModelget_object (int index) const
 Get a specific object.

Friends

class SGMaterial

Detailed Description

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.


Member Function Documentation

SGMatModel * SGMatModelGroup::get_object ( int  index  )  const

Get a specific object.

Parameters:
index The object's index, zero-based.
Returns:
The object selected.

Definition at line 217 of file matmodel.cxx.

int SGMatModelGroup::get_object_count (  )  const

Get the number of objects in the group.

Returns:
The number of objects.

Definition at line 211 of file matmodel.cxx.

double SGMatModelGroup::get_range_m (  )  const

Get the visual range of the object in meters.

Returns:
The visual range.

Definition at line 205 of file matmodel.cxx.


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

Generated on 23 Feb 2010 for SimGear by  doxygen 1.6.1