Warning, file /include/opencascade/Image_SupportedFormats.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _Image_SupportedFormats_HeaderFile
0015 #define _Image_SupportedFormats_HeaderFile
0016
0017 #include <Image_CompressedFormat.hxx>
0018 #include <NCollection_Array1.hxx>
0019 #include <Standard_Type.hxx>
0020
0021
0022 class Image_SupportedFormats : public Standard_Transient
0023 {
0024 DEFINE_STANDARD_RTTIEXT(Image_SupportedFormats, Standard_Transient)
0025 public:
0026
0027
0028 Standard_EXPORT Image_SupportedFormats();
0029
0030
0031 bool IsSupported (Image_Format theFormat) const { return myFormats.Value (theFormat); }
0032
0033
0034 void Add (Image_Format theFormat) { myFormats.SetValue (theFormat, true); }
0035
0036
0037 bool HasCompressed() const { return myHasCompressed; }
0038
0039
0040 bool IsSupported (Image_CompressedFormat theFormat) const { return myFormats.Value (theFormat); }
0041
0042
0043 void Add (Image_CompressedFormat theFormat)
0044 {
0045 myFormats.SetValue (theFormat, true);
0046 myHasCompressed = true;
0047 }
0048
0049
0050 void Clear()
0051 {
0052 myFormats.Init (false);
0053 myHasCompressed = false;
0054 }
0055
0056 protected:
0057
0058 NCollection_Array1<bool> myFormats;
0059 Standard_Boolean myHasCompressed;
0060
0061 };
0062
0063 #endif