HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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.
22
class
GU_API
GU_IOWavefrontUtil
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
:
42
UT_StringHolder
myDefaultGroup
;
43
};
44
45
#endif
UT_IStream
Definition:
UT_IStream.h:56
UT_StringHolder
Definition:
UT_StringHolder.h:999
GU_IOWavefrontUtil::myDefaultGroup
UT_StringHolder myDefaultGroup
Definition:
GU_IOWavefront.h:42
GU_API
#define GU_API
Definition:
GU_API.h:14
GU_IOWavefrontUtil::setDefaultGroup
void setDefaultGroup(const UT_StringHolder &group)
Controls what is output after the default g line when writing.
Definition:
GU_IOWavefront.h:38
UT_StringHolder.h
GU_Detail
Definition:
GU_Detail.h:154
GU_IOWavefrontUtil
Definition:
GU_IOWavefront.h:22
GU_API.h
GU
GU_IOWavefront.h
Generated on Sun Nov 17 2024 03:01:17 for HDK by
1.8.6