Panda3D
 All Classes Functions Variables Enumerations
pta_LVecBase3.h
1 // Filename: pta_LVecBase3.h
2 // Created by: drose (27Feb10)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PTA_LVECBASE3_H
16 #define PTA_LVECBASE3_H
17 
18 #include "pandabase.h"
19 #include "luse.h"
20 #include "pointerToArray.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : PTA_LVecBase3f
24 // Description : A pta of LVecBase3fs. This class is defined once here,
25 // and exported to PANDA.DLL; other packages that want
26 // to use a pta of this type (whether they need to
27 // export it or not) should include this header file,
28 // rather than defining the pta again.
29 ////////////////////////////////////////////////////////////////////
30 
31 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase<ReferenceCountedVector<LVecBase3f> >)
32 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase<LVecBase3f>)
33 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray<LVecBase3f>)
34 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray<LVecBase3f>)
35 
36 typedef PointerToArray<LVecBase3f> PTA_LVecBase3f;
38 
39 ////////////////////////////////////////////////////////////////////
40 // Class : PTA_LVecBase3d
41 // Description : A pta of LVecBase3ds. This class is defined once here,
42 // and exported to PANDA.DLL; other packages that want
43 // to use a pta of this type (whether they need to
44 // export it or not) should include this header file,
45 // rather than defining the pta again.
46 ////////////////////////////////////////////////////////////////////
47 
48 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase<ReferenceCountedVector<LVecBase3d> >)
49 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase<LVecBase3d>)
50 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray<LVecBase3d>)
51 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray<LVecBase3d>)
52 
53 typedef PointerToArray<LVecBase3d> PTA_LVecBase3d;
55 
56 ////////////////////////////////////////////////////////////////////
57 // Class : PTA_LVecBase3i
58 // Description : A pta of LVecBase3is. This class is defined once here,
59 // and exported to PANDA.DLL; other packages that want
60 // to use a pta of this type (whether they need to
61 // export it or not) should include this header file,
62 // rather than defining the pta again.
63 ////////////////////////////////////////////////////////////////////
64 
65 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToBase<ReferenceCountedVector<LVecBase3i> >)
66 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase<LVecBase3i>)
67 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray<LVecBase3i>)
68 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray<LVecBase3i>)
69 
70 typedef PointerToArray<LVecBase3i> PTA_LVecBase3i;
72 
73 #ifndef STDFLOAT_DOUBLE
74 typedef PTA_LVecBase3f PTA_LVecBase3;
75 typedef CPTA_LVecBase3f CPTA_LVecBase3;
76 #else
77 typedef PTA_LVecBase3d PTA_LVecBase3;
78 typedef CPTA_LVecBase3d CPTA_LVecBase3;
79 #endif // STDFLOAT_DOUBLE
80 
81 // Bogus typedefs for interrogate and legacy Python code.
82 #ifdef CPPPARSER
83 typedef PTA_LVecBase3f PTAVecBase3f;
84 typedef CPTA_LVecBase3f CPTAVecBase3f;
85 typedef PTA_LVecBase3d PTAVecBase3d;
86 typedef CPTA_LVecBase3d CPTAVecBase3d;
87 #endif // CPPPARSER
88 
89 // Tell GCC that we'll take care of the instantiation explicitly here.
90 #ifdef __GNUC__
91 #pragma interface
92 #endif
93 
94 #endif
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105
This is the base class for PointerTo and ConstPointerTo.
Definition: pointerToBase.h:32
A special kind of PointerTo that stores an array of the indicated element type, instead of a single e...
This is the base class for PointerToArray and ConstPointerToArray.
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:1455
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:2756
This defines the object that is actually stored and reference-counted internally by a PointerToArray...
Similar to PointerToArray, except that its contents may not be modified.