HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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  ~GEO_IOBpoly() override;
36 
37  /// This method is used to create a copy of the sub-class
38  GEO_IOTranslator *duplicate() const override;
39 
40  const char *formatName() const override;
41 
42  // Method to check the extension of the name to see if it's one of these...
43  int checkExtension(const char *name) override;
44  int checkMagicNumber(unsigned magic) override;
45 
46  // Methods to save Polys/etc.
48  std::ostream &os) override;
50 
51 private:
52  int myFileType;
53  int myMagic;
54 };
55 
56 #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:14
GLuint const GLchar * name
Definition: glcorearb.h:786
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:1793