Panda3D

Loading...
Searching...
No Matches
fltFace.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file fltFace.h
10 * @author drose
11 * @date 2000-08-25
12 */
13
14#ifndef FLTFACE_H
15#define FLTFACE_H
16
17#include "pandatoolbase.h"
18
19#include "fltGeometry.h"
20
21/**
22 * A single face bead, e.g. a polygon.
23 */
24 class FltFace : public FltGeometry {
25 public:
26 FltFace(FltHeader *header);
27
28
29 protected:
30 virtual bool extract_record(FltRecordReader &reader);
31 virtual bool build_record(FltRecordWriter &writer) const;
32
33 public:
34 virtual TypeHandle get_type() const {
35 return get_class_type();
36 }
37 virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
38 static TypeHandle get_class_type() {
39 return _type_handle;
40 }
41 static void init_type() {
42 FltGeometry::init_type();
43 register_type(_type_handle, "FltFace",
44 FltGeometry::get_class_type());
45 }
46
47 private:
48 static TypeHandle _type_handle;
49};
50
51#include "fltFace.I"
52
53#endif
FltHeader
This is the first bead in the file, the top of the bead hierarchy, and the primary interface to readi...
Definition fltHeader.h:44
FltRecordReader
This class turns an istream into a sequence of FltRecords by reading a sequence of Datagrams and extr...
Definition fltRecordReader.h:30
FltRecordWriter
This class writes a sequence of FltRecords to an ostream, handling opcode and size counts properly.
Definition fltRecordWriter.h:31
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
fltFace.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
fltGeometry.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandatoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
register_type
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition register_type.I:22