Panda3D
eggSingleBase.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 eggSingleBase.h
10  * @author drose
11  * @date 2003-07-21
12  */
13 
14 #ifndef EGGSINGLEBASE_H
15 #define EGGSINGLEBASE_H
16 
17 #include "pandatoolbase.h"
18 
19 #include "eggBase.h"
20 #include "coordinateSystem.h"
21 #include "eggData.h"
22 #include "pointerTo.h"
23 
24 class EggReader;
25 class EggWriter;
26 class EggNode;
27 class PathReplace;
28 
29 /**
30  * This specialization of EggBase is intended for programs that read and/or
31  * write a single egg file. (See EggMultiBase for programs that operate on
32  * multiple egg files at once.)
33  *
34  * This is just a base class; see EggReader, EggWriter, or EggFilter according
35  * to your particular I/O needs.
36  */
37 class EggSingleBase : public EggBase {
38 public:
39  EggSingleBase();
40 
41  virtual EggReader *as_reader();
42  virtual EggWriter *as_writer();
43 
44 protected:
45  virtual bool post_command_line();
46 
47 protected:
48  PT(EggData) _data;
49 };
50 
51 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This specialization of EggBase is intended for programs that read and/or write a single egg file.
Definition: eggSingleBase.h:37
This is the primary interface into all the egg data, and the root of the egg file structure.
Definition: eggData.h:37
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the base class for a program that reads egg files, but doesn't write an egg file.
Definition: eggReader.h:28
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This encapsulates the user's command-line request to replace existing, incorrect pathnames to models ...
Definition: pathReplace.h:36
A base class for things that may be directly added into the egg hierarchy.
Definition: eggNode.h:35
This is a base class for both EggSingleBase and EggMultiBase.
Definition: eggBase.h:29
This is the base class for a program that generates an egg file output, but doesn't read any for inpu...
Definition: eggWriter.h:28
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.