Panda3D
 All Classes Functions Variables Enumerations
fltTransformRecord.cxx
1 // Filename: fltTransformRecord.cxx
2 // Created by: drose (24Aug00)
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 #include "fltTransformRecord.h"
16 
17 TypeHandle FltTransformRecord::_type_handle;
18 
19 ////////////////////////////////////////////////////////////////////
20 // Function: FltTransformRecord::Constructor
21 // Access: Public
22 // Description:
23 ////////////////////////////////////////////////////////////////////
24 FltTransformRecord::
25 FltTransformRecord(FltHeader *header) : FltRecord(header) {
26  _matrix = LMatrix4d::ident_mat();
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: FltTransformRecord::get_matrix
31 // Access: Public
32 // Description: Returns the transform matrix represented by this
33 // particular component of the transform.
34 ////////////////////////////////////////////////////////////////////
36 get_matrix() const {
37  return _matrix;
38 }
This is a 4-by-4 transform matrix.
Definition: lmatrix.h:4716
This is the first bead in the file, the top of the bead hierarchy, and the primary interface to readi...
Definition: fltHeader.h:48
static const LMatrix4d & ident_mat()
Returns an identity matrix.
Definition: lmatrix.h:5168
The base class for all kinds of records in a MultiGen OpenFlight file.
Definition: fltRecord.h:40
const LMatrix4d & get_matrix() const
Returns the transform matrix represented by this particular component of the transform.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85