Starshatter_Open
Open source Starshatter engine
|
#include <DetailSet.h>
Public Types | |
enum | { MAX_DETAIL = 4 } |
Public Member Functions | |
DetailSet () | |
virtual | ~DetailSet () |
int | DefineLevel (double r, Graphic *g=0, Point *offset=0, Point *spin=0) |
void | AddToLevel (int level, Graphic *g, Point *offset=0, Point *spin=0) |
int | NumLevels () const |
int | NumModels (int level) const |
void | ExecFrame (double seconds) |
void | SetLocation (SimRegion *rgn, const Point &loc) |
int | GetDetailLevel () |
Graphic * | GetRep (int level, int n=0) |
Point | GetOffset (int level, int n=0) |
Point | GetSpin (int level, int n=0) |
void | Destroy () |
Static Public Member Functions | |
static void | SetReference (SimRegion *rgn, const Point &loc) |
Protected Attributes | |
List< Graphic > | rep [MAX_DETAIL] |
List< Point > | off [MAX_DETAIL] |
double | rad [MAX_DETAIL] |
List< Point > | spin |
List< Point > | rate |
int | index |
int | levels |
SimRegion * | rgn |
Point | loc |
Static Protected Attributes | |
static SimRegion * | ref_rgn = 0 |
static Point | ref_loc |
Definition at line 30 of file DetailSet.h.
anonymous enum |
Definition at line 33 of file DetailSet.h.
DetailSet::DetailSet | ( | ) |
Definition at line 28 of file DetailSet.cpp.
|
virtual |
Definition at line 38 of file DetailSet.cpp.
Definition at line 89 of file DetailSet.cpp.
Definition at line 46 of file DetailSet.cpp.
void DetailSet::Destroy | ( | ) |
Definition at line 213 of file DetailSet.cpp.
void DetailSet::ExecFrame | ( | double | seconds | ) |
Definition at line 134 of file DetailSet.cpp.
int DetailSet::GetDetailLevel | ( | ) |
Definition at line 161 of file DetailSet.cpp.
Point DetailSet::GetOffset | ( | int | level, |
int | n = 0 |
||
) |
Definition at line 193 of file DetailSet.cpp.
Graphic * DetailSet::GetRep | ( | int | level, |
int | n = 0 |
||
) |
Definition at line 184 of file DetailSet.cpp.
Point DetailSet::GetSpin | ( | int | level, |
int | n = 0 |
||
) |
Definition at line 202 of file DetailSet.cpp.
|
inline |
Definition at line 40 of file DetailSet.h.
int DetailSet::NumModels | ( | int | level | ) | const |
Definition at line 123 of file DetailSet.cpp.
Definition at line 143 of file DetailSet.cpp.
Definition at line 152 of file DetailSet.cpp.
|
protected |
Definition at line 61 of file DetailSet.h.
|
protected |
Definition at line 62 of file DetailSet.h.
|
protected |
Definition at line 64 of file DetailSet.h.
|
protected |
Definition at line 55 of file DetailSet.h.
|
protected |
Definition at line 56 of file DetailSet.h.
Definition at line 59 of file DetailSet.h.
|
staticprotected |
Definition at line 67 of file DetailSet.h.
|
staticprotected |
Definition at line 66 of file DetailSet.h.
|
protected |
Definition at line 54 of file DetailSet.h.
|
protected |
Definition at line 63 of file DetailSet.h.
Definition at line 58 of file DetailSet.h.