Panda3D
eggToSomethingConverter.I
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.I
10  * @author drose
11  * @date 2012-09-26
12  */
13 
14 /**
15  * Resets the error flag to the no-error state. had_error() will return false
16  * until a new error is generated.
17  */
18 INLINE void EggToSomethingConverter::
20  _error = false;
21 }
22 
23 /**
24  * Returns true if an error was detected during the conversion process, false
25  * otherwise.
26  */
27 INLINE bool EggToSomethingConverter::
28 had_error() const {
29  return _error;
30 }
31 
32 /**
33  * Sets the EggData to NULL and makes the converter invalid.
34  */
35 INLINE void EggToSomethingConverter::
37  set_egg_data(nullptr);
38 }
39 
40 /**
41  * Returns the EggData structure.
42  */
45  return _egg_data;
46 }
47 
48 /**
49  * Specifies the units that the EggData has already been scaled to. This is
50  * informational only; if the target file format supports it, this information
51  * will be written to the header.
52  */
55  _output_units = output_units;
56 }
57 
58 /**
59  * Returns the value supplied to set_output_units().
60  */
63  return _output_units;
64 }
bool had_error() const
Returns true if an error was detected during the conversion process, false otherwise.
This is the primary interface into all the egg data, and the root of the egg file structure.
Definition: eggData.h:37
DistanceUnit
This enumerated type lists all the kinds of units we're likely to come across in model conversion pro...
Definition: distanceUnit.h:23
void clear_error()
Resets the error flag to the no-error state.
void set_egg_data(EggData *egg_data)
Sets the egg data that will be filled in when convert_file() is called.
DistanceUnit get_output_units() const
Returns the value supplied to set_output_units().
void set_output_units(DistanceUnit output_units)
Specifies the units that the EggData has already been scaled to.
void clear_egg_data()
Sets the EggData to NULL and makes the converter invalid.
EggData * get_egg_data()
Returns the EggData structure.