Panda3D
 All Classes Functions Variables Enumerations
eggSingleBase.h
1 // Filename: eggSingleBase.h
2 // Created by: drose (21Jul03)
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 EGGSINGLEBASE_H
16 #define EGGSINGLEBASE_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "eggBase.h"
21 #include "coordinateSystem.h"
22 #include "eggData.h"
23 #include "pointerTo.h"
24 
25 class EggReader;
26 class EggWriter;
27 class EggNode;
28 class PathReplace;
29 
30 ////////////////////////////////////////////////////////////////////
31 // Class : EggSingleBase
32 // Description : This specialization of EggBase is intended for
33 // programs that read and/or write a single egg file.
34 // (See EggMultiBase for programs that operate on
35 // multiple egg files at once.)
36 //
37 // This is just a base class; see EggReader, EggWriter,
38 // or EggFilter according to your particular I/O needs.
39 ////////////////////////////////////////////////////////////////////
40 class EggSingleBase : public EggBase {
41 public:
42  EggSingleBase();
43 
44  virtual EggReader *as_reader();
45  virtual EggWriter *as_writer();
46 
47 protected:
48  virtual bool post_command_line();
49 
50 protected:
51  PT(EggData) _data;
52 };
53 
54 #endif
55 
56 
This specialization of EggBase is intended for programs that read and/or write a single egg file...
Definition: eggSingleBase.h:40
This is the primary interface into all the egg data, and the root of the egg file structure...
Definition: eggData.h:41
virtual EggReader * as_reader()
Returns this object as an EggReader pointer, if it is in fact an EggReader, or NULL if it is not...
virtual EggWriter * as_writer()
Returns this object as an EggWriter pointer, if it is in fact an EggWriter, or NULL if it is not...
This is the base class for a program that reads egg files, but doesn't write an egg file...
Definition: eggReader.h:30
This encapsulates the user's command-line request to replace existing, incorrect pathnames to models ...
Definition: pathReplace.h:40
A base class for things that may be directly added into the egg hierarchy.
Definition: eggNode.h:38
This is a base class for both EggSingleBase and EggMultiBase.
Definition: eggBase.h:32
This is the base class for a program that generates an egg file output, but doesn't read any for inpu...
Definition: eggWriter.h:30