00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Mark Elendt 00008 * Side Effects Software Inc. 00009 * 20 Maud St. 00010 * Toronto, Ontario, M5V 2M5 00011 * Canada 00012 * 416-366-4607 00013 * 00014 * NAME: Geometry Conversion Utility Library (C++) 00015 * 00016 * COMMENTS: 00017 * Save a gdp to RIB. This is not able to load or convert any files. 00018 * 00019 * 00020 */ 00021 00022 #ifndef __GEO_IOBpoly_h__ 00023 #define __GEO_IOBpoly_h__ 00024 00025 #include "GEO_API.h" 00026 #include "GEO_IOTranslator.h" 00027 00028 class GEO_Detail; 00029 00030 class GEO_API GEO_IOBpoly : public GEO_IOTranslator { 00031 public: 00032 GEO_IOBpoly(); 00033 virtual ~GEO_IOBpoly(); 00034 00035 virtual const char *formatName() const; 00036 00037 // Method to check the extension of the name to see if it's one of these... 00038 virtual int checkExtension(const char *name); 00039 virtual int checkMagicNumber(unsigned magic); 00040 00041 // Methods to save Polys/etc. 00042 virtual int fileSave(const GEO_Detail *, ostream &os); 00043 virtual bool fileLoad(GEO_Detail *, UT_IStream &, int); 00044 00045 private: 00046 int myFileType; 00047 int myMagic; 00048 }; 00049 00050 #endif
1.5.9