HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_IOWavefront.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GU_IOWavefront.h ( GA Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GU_IOWAVEFRONT__
12 #define __GU_IOWAVEFRONT__
13 
14 class GU_Detail;
15 class UT_IStream;
16 
17 #include "GU_API.h"
18 #include <UT/UT_StringHolder.h>
19 
20 /// Utility classes to load and save .obj files. Note this is not a
21 /// standard IO extension itself.
23 {
24 public:
25  /// Write the gdp to the os as a .obj.
26  /// Note this does not apply any conversion or reversal of polygons,
27  /// the caller is expected to have done this.
28  /// NOTE: This writes with the streams current precision, default
29  /// precision is insufficent so you may need to do:
30  /// os.precision(SYS_FLT_DIG);
31  int write(const GU_Detail &gdp, std::ostream &os);
32 
33  /// Read the .obj directly into a gdp. This does not do any
34  /// reversal
35  bool read(GU_Detail &gdp, UT_IStream &is);
36 
37  /// Controls what is output after the default g line when writing
38  void setDefaultGroup(const UT_StringHolder &group)
39  { myDefaultGroup = group; }
40 
41 protected:
43 };
44 
45 #endif
UT_StringHolder myDefaultGroup
#define GU_API
Definition: GU_API.h:14
void setDefaultGroup(const UT_StringHolder &group)
Controls what is output after the default g line when writing.