From 8898ad9b25fca6afe2374d293a981db02a83d7e9 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 31 May 2012 14:46:27 +0000 Subject: Committing the documentation to svn to have it accessible online --- Doc/doxygen/html/_detail_set_8h_source.html | 190 ++++++++++++++++++++++++++++ 1 file changed, 190 insertions(+) create mode 100644 Doc/doxygen/html/_detail_set_8h_source.html (limited to 'Doc/doxygen/html/_detail_set_8h_source.html') diff --git a/Doc/doxygen/html/_detail_set_8h_source.html b/Doc/doxygen/html/_detail_set_8h_source.html new file mode 100644 index 0000000..3314fc3 --- /dev/null +++ b/Doc/doxygen/html/_detail_set_8h_source.html @@ -0,0 +1,190 @@ + + + + + +Starshatter_Open: D:/SRC/StarshatterSVN/Stars45/DetailSet.h Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Starshatter_Open +
+
Open source Starshatter engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
DetailSet.h
+
+
+Go to the documentation of this file.
1 /* Project Starshatter 4.5
+
2  Destroyer Studios LLC
+
3  Copyright © 1997-2004. All Rights Reserved.
+
4 
+
5  SUBSYSTEM: Stars.exe
+
6  FILE: DetailSet.h
+
7  AUTHOR: John DiCamillo
+
8 
+
9 
+
10  OVERVIEW
+
11  ========
+
12  Level of Detail Manger class
+
13 */
+
14 
+
15 #ifndef DetailSet_h
+
16 #define DetailSet_h
+
17 
+
18 #include "Types.h"
+
19 #include "Geometry.h"
+
20 #include "Graphic.h"
+
21 #include "List.h"
+
22 
+
23 // +--------------------------------------------------------------------+
+
24 
+
25 class Sim;
+
26 class SimRegion;
+
27 
+
28 // +--------------------------------------------------------------------+
+
29 
+
30 class DetailSet
+
31 {
+
32 public:
+
33  enum { MAX_DETAIL = 4 };
+
34 
+
35  DetailSet();
+
36  virtual ~DetailSet();
+
37 
+
38  int DefineLevel(double r, Graphic* g=0, Point* offset=0, Point* spin=0);
+
39  void AddToLevel(int level, Graphic* g, Point* offset=0, Point* spin=0);
+
40  int NumLevels() const { return levels; }
+
41  int NumModels(int level) const;
+
42 
+
43  void ExecFrame(double seconds);
+
44  void SetLocation(SimRegion* rgn, const Point& loc);
+
45  static void SetReference(SimRegion* rgn, const Point& loc);
+
46 
+
47  int GetDetailLevel();
+
48  Graphic* GetRep(int level, int n=0);
+
49  Point GetOffset(int level, int n=0);
+
50  Point GetSpin(int level, int n=0);
+
51  void Destroy();
+
52 
+
53 protected:
+ + +
56  double rad[MAX_DETAIL];
+
57 
+ + +
60 
+
61  int index;
+
62  int levels;
+ + +
65 
+
66  static SimRegion* ref_rgn;
+
67  static Point ref_loc;
+
68 };
+
69 
+
70 // +--------------------------------------------------------------------+
+
71 
+
72 #endif DetailSet_h
+
73 
+
+
+ + + + -- cgit v1.1