HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GEO_IOBpoly.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: Geometry Conversion Utility Library (C++)
7  *
8  * COMMENTS:
9  * Save a gdp to RIB. This is not able to load or convert any files.
10  *
11  *
12  */
13 
14 #ifndef __GEO_IOBpoly_h__
15 #define __GEO_IOBpoly_h__
16 
17 #include "GEO_API.h"
18 #include "GEO_IOTranslator.h"
19 
20 class GEO_Detail;
21 
23 {
24 public:
27  , myFileType(-1)
28  , myMagic(0)
29  {}
32  , myFileType(src.myFileType)
33  , myMagic(src.myMagic)
34  { }
35  virtual ~GEO_IOBpoly();
36 
37  /// This method is used to create a copy of the sub-class
38  virtual GEO_IOTranslator *duplicate() const;
39 
40  virtual const char *formatName() const;
41 
42  // Method to check the extension of the name to see if it's one of these...
43  virtual int checkExtension(const char *name);
44  virtual int checkMagicNumber(unsigned magic);
45 
46  // Methods to save Polys/etc.
47  virtual GA_Detail::IOStatus fileSave(const GEO_Detail *, std::ostream &os);
49 
50 private:
51  int myFileType;
52  int myMagic;
53 };
54 
55 #endif
virtual GEO_IOTranslator * duplicate() const =0
This method is used to create a copy of the sub-class.
virtual GA_Detail::IOStatus fileLoad(GEO_Detail *gdp, UT_IStream &is, bool ate_magic)=0
#define GEO_API
Definition: GEO_API.h:10
GLuint const GLchar * name
Definition: glcorearb.h:785
GEO_IOBpoly(const GEO_IOBpoly &src)
Definition: GEO_IOBpoly.h:30
virtual const char * formatName() const =0
virtual int checkExtension(const char *name)=0
virtual int checkMagicNumber(unsigned magic)=0
virtual GA_Detail::IOStatus fileSave(const GEO_Detail *gdp, std::ostream &os)=0
GLenum src
Definition: glcorearb.h:1792