Panda3D
fltFace.h
1 // Filename: fltFace.h
2 // Created by: drose (25Aug00)
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 FLTFACE_H
16 #define FLTFACE_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "fltGeometry.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : FltFace
24 // Description : A single face bead, e.g. a polygon.
25 ////////////////////////////////////////////////////////////////////
26 class FltFace : public FltGeometry {
27 public:
28  FltFace(FltHeader *header);
29 
30 
31 protected:
32  virtual bool extract_record(FltRecordReader &reader);
33  virtual bool build_record(FltRecordWriter &writer) const;
34 
35 public:
36  virtual TypeHandle get_type() const {
37  return get_class_type();
38  }
39  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
40  static TypeHandle get_class_type() {
41  return _type_handle;
42  }
43  static void init_type() {
44  FltGeometry::init_type();
45  register_type(_type_handle, "FltFace",
46  FltGeometry::get_class_type());
47  }
48 
49 private:
50  static TypeHandle _type_handle;
51 };
52 
53 #include "fltFace.I"
54 
55 #endif
56 
57 
This class writes a sequence of FltRecords to an ostream, handling opcode and size counts properly...
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
A single face bead, e.g.
Definition: fltFace.h:26
This is a base class for both FltFace and FltMesh, which are two different kinds of geometric primiti...
Definition: fltGeometry.h:36
This is the first bead in the file, the top of the bead hierarchy, and the primary interface to readi...
Definition: fltHeader.h:48
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85