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/_selection_8h_source.html | 191 +++++++++++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 Doc/doxygen/html/_selection_8h_source.html (limited to 'Doc/doxygen/html/_selection_8h_source.html') diff --git a/Doc/doxygen/html/_selection_8h_source.html b/Doc/doxygen/html/_selection_8h_source.html new file mode 100644 index 0000000..6025ccc --- /dev/null +++ b/Doc/doxygen/html/_selection_8h_source.html @@ -0,0 +1,191 @@ + + + + + +Starshatter_Open: D:/SRC/StarshatterSVN/Magic2/Selection.h Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Starshatter_Open +
+
Open source Starshatter engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
Selection.h
+
+
+Go to the documentation of this file.
1 /* Project Magic 2.0
+
2  Destroyer Studios LLC
+
3  Copyright © 1997-2004. All Rights Reserved.
+
4 
+
5  SUBSYSTEM: Magic.exe
+
6  FILE: Selection.h
+
7  AUTHOR: John DiCamillo
+
8 
+
9 
+
10  OVERVIEW
+
11  ========
+
12  Classes for rendering solid meshes of polygons
+
13 */
+
14 
+
15 #ifndef Selection_h
+
16 #define Selection_h
+
17 
+
18 #include <vector>
+
19 #include "Polygon.h"
+
20 #include "Graphic.h"
+
21 #include "Video.h"
+
22 #include "List.h"
+
23 
+
24 // +--------------------------------------------------------------------+
+
25 
+
26 class Selection;
+
27 class Solid;
+
28 class Model;
+
29 class ModelView;
+
30 class Surface;
+
31 class Segment;
+
32 
+
33 // +--------------------------------------------------------------------+
+
34 
+
35 class Selection : public Graphic
+
36 {
+
37 public:
+
38  static const char* TYPENAME() { return "Selection"; }
+
39 
+
40  Selection();
+
41  virtual ~Selection();
+
42 
+
43  // operations
+
44  virtual void Render(Video* video, DWORD flags);
+
45  virtual bool CheckVisibility(Projector& projector) { return true; }
+
46 
+
47  // accessors / mutators
+
48  void UseModel(Model* m) { model = m; }
+
49  void UseView(ModelView* v){ model_view = v; }
+
50  Model* GetModel() const { return model; }
+
51  List<Poly>& GetPolys() { return polys; }
+
52  std::vector<DWORD>& GetVerts() { return verts; }
+
53 
+
54  virtual void Clear() { polys.clear();
+
55  verts.clear(); }
+
56 
+
57  void AddPoly(Poly* p);
+
58  void AddVert(WORD s, WORD v);
+
59  void RemovePoly(Poly* p);
+
60  void RemoveVert(WORD s, WORD v);
+
61  bool Contains(Poly* p) const;
+
62  bool Contains(WORD s, WORD v) const;
+
63 
+
64 protected:
+ + + +
68  std::vector<DWORD> verts;
+
69 };
+
70 
+
71 // +--------------------------------------------------------------------+
+
72 
+
73 #endif Selection_h
+
74 
+
+
+ + + + -- cgit v1.1