Panda3D

eggToSomethingConverter.cxx
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 eggToSomethingConverter.cxx
10 * @author drose
11 * @date 2001-04-26
12 */
13
14 #include "eggToSomethingConverter.h"
15
16 #include "eggData.h"
17
18 /**
19 *
20 */
21 EggToSomethingConverter::
22 EggToSomethingConverter() {
23 _egg_data = nullptr;
24 _error = false;
25 }
26
27 /**
28 *
29 */
30 EggToSomethingConverter::
31 EggToSomethingConverter(const EggToSomethingConverter &copy) {
32 _egg_data = nullptr;
33 _error = false;
34 }
35
36 /**
37 *
38 */
39 EggToSomethingConverter::
40 ~EggToSomethingConverter() {
41 clear_egg_data();
42 }
43
44 /**
45 * Sets the egg data that will be filled in when convert_file() is called.
46 * This must be called before convert_file().
47 */
48 void EggToSomethingConverter::
49 set_egg_data(EggData *egg_data) {
50 _egg_data = egg_data;
51 }
52
53 /**
54 * Returns a space-separated list of extension, in addition to the one
55 * returned by get_extension(), that are recognized by this converter.
56 */
57 std::string EggToSomethingConverter::
58 get_additional_extensions() const {
59 return std::string();
60 }
61
62 /**
63 * Returns true if this file type can transparently save compressed files
64 * (with a .pz extension), false otherwise.
65 */
66 bool EggToSomethingConverter::
67 supports_compressed() const {
68 return false;
69 }
EggData
This is the primary interface into all the egg data, and the root of the egg file structure.
Definition: eggData.h:37
EggToSomethingConverter
This is a base class for a family of converter classes that manage a conversion from egg format to so...
Definition: eggToSomethingConverter.h:34
EggToSomethingConverter::supports_compressed
virtual bool supports_compressed() const
Returns true if this file type can transparently save compressed files (with a .pz extension),...
Definition: eggToSomethingConverter.cxx:67
EggToSomethingConverter::clear_egg_data
void clear_egg_data()
Sets the EggData to NULL and makes the converter invalid.
Definition: eggToSomethingConverter.I:36
EggToSomethingConverter::get_additional_extensions
virtual std::string get_additional_extensions() const
Returns a space-separated list of extension, in addition to the one returned by get_extension(),...
Definition: eggToSomethingConverter.cxx:58
EggToSomethingConverter::set_egg_data
void set_egg_data(EggData *egg_data)
Sets the egg data that will be filled in when convert_file() is called.
Definition: eggToSomethingConverter.cxx:49
eggData.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
eggToSomethingConverter.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.