Panda3D
pta_LMatrix3.h
1 // Filename: pta_LMatrix3.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_LMATRIX3_H
16 #define PTA_LMATRIX3_H
17 
18 #include "pandabase.h"
19 #include "luse.h"
20 #include "pointerToArray.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : PTA_LMatrix3f
24 // Description : A pta of LMatrix3fs. 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<LMatrix3f> >)
32 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase<LMatrix3f>)
33 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray<LMatrix3f>)
34 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray<LMatrix3f>)
35 
36 typedef PointerToArray<LMatrix3f> PTA_LMatrix3f;
37 typedef ConstPointerToArray<LMatrix3f> CPTA_LMatrix3f;
38 
39 ////////////////////////////////////////////////////////////////////
40 // Class : PTA_LMatrix3d
41 // Description : A pta of LMatrix3ds. 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<LMatrix3d> >)
49 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArrayBase<LMatrix3d>)
50 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, PointerToArray<LMatrix3d>)
51 EXPORT_TEMPLATE_CLASS(EXPCL_PANDA_MATHUTIL, EXPTP_PANDA_MATHUTIL, ConstPointerToArray<LMatrix3d>)
52 
53 typedef PointerToArray<LMatrix3d> PTA_LMatrix3d;
54 typedef ConstPointerToArray<LMatrix3d> CPTA_LMatrix3d;
55 
56 #ifndef STDFLOAT_DOUBLE
57 typedef PTA_LMatrix3f PTA_LMatrix3;
58 typedef CPTA_LMatrix3f CPTA_LMatrix3;
59 #else
60 typedef PTA_LMatrix3d PTA_LMatrix3;
61 typedef CPTA_LMatrix3d CPTA_LMatrix3;
62 #endif // STDFLOAT_DOUBLE
63 
64 // Bogus typedefs for interrogate and legacy Python code.
65 #ifdef CPPPARSER
66 typedef PTA_LMatrix3 PTAMat3;
67 typedef CPTA_LMatrix3 CPTAMat3;
68 typedef PTA_LMatrix3d PTAMat3d;
69 typedef CPTA_LMatrix3d CPTAMat3d;
70 #endif // CPPPARSER
71 
72 // Tell GCC that we'll take care of the instantiation explicitly here.
73 #ifdef __GNUC__
74 #pragma interface
75 #endif
76 
77 #endif
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 a 3-by-3 transform matrix.
Definition: lmatrix.h:4375
This is the base class for PointerToArray and ConstPointerToArray.
This is a 3-by-3 transform matrix.
Definition: lmatrix.h:110
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.