Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UTypes.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * This Software is part of the AIDA Unified Solids Library package *
4 // * See: https://aidasoft.web.cern.ch/USolids *
5 // ********************************************************************
6 //
7 // $Id:$
8 //
9 // --------------------------------------------------------------------
10 //
11 // UTypes
12 //
13 // Description:
14 //
15 // Internal utility types defined for the unified solids library
16 //
17 // 19.10.12 Marek Gayer
18 // --------------------------------------------------------------------
19 
20 #ifndef USOLIDS_Utypes
21 #define USOLIDS_Utypes
22 
23 #include "UVector3.hh"
24 #include <iostream>
25 #include <string>
26 #include <vector>
27 
28 class __void__;
29 
30 typedef unsigned int UInt_t;
31 
33 {
34  double extent[3]; // half-lengths on the 3 axis (arrays for indexing)
35  double orig[3]; // center coordinates
36 };
37 
38 /*struct UBuffer3DStruct {
39  const int fType; // Primitive type - predefined ones in TBuffer3DTypes.h
40 
41  UInt_t fNbPnts; // Number of points describing the shape
42  UInt_t fNbSegs; // Number of segments describing the shape
43  UInt_t fNbPols; // Number of polygons describing the shape
44 
45  UInt_t fPntsCapacity; // Current capacity of fPnts space
46  UInt_t fSegsCapacity; // Current capacity of fSegs space
47  UInt_t fPolsCapacity; // Current capacity of fSegs space
48 
49  UInt_t fSections; // Section validity flags
50  double *fPnts; // x0, y0, z0, x1, y1, z1, ..... ..... ....
51  int *fSegs; // c0, p0, q0, c1, p1, q1, ..... ..... ....
52  int *fPols; // c0, n0, s0, s1, ... sn, c1, n1, s0, ... sn
53 };
54 */
55 /*
56 struct UFacet2{
57  UInt_t f1;//number of vertices from verticesList forming a facet
58  UInt_t f2;
59  UInt_t f3;
60  UInt_t f4;
61 };
62 struct UPolyhedron2{
63  std::vector<UVector3> vertices;//List of Vertices for Polyhedron used in G4Vis
64  std::vector<UFacet2> facets;//List of Facets;
65 };
66 */
67 
69 //typedef UBuffer3DStruct UBuffer3D;
70 typedef std::string UGeometryType;
71 
72 #endif
double extent[3]
Definition: UTypes.hh:34
double orig[3]
Definition: UTypes.hh:35
unsigned int UInt_t
Definition: UTypes.hh:28
UBBoxStruct UBBox
Definition: UTypes.hh:68
std::string UGeometryType
Definition: UTypes.hh:70