Warning, file /include/opencascade/Graphic3d_CubeMapPacked.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
0015 #ifndef _Graphic3d_CubeMapPacked_HeaderFile
0016 #define _Graphic3d_CubeMapPacked_HeaderFile
0017
0018 #include <Graphic3d_CubeMap.hxx>
0019 #include <NCollection_Array1.hxx>
0020 #include <OSD_Path.hxx>
0021
0022
0023 class Graphic3d_CubeMapPacked : public Graphic3d_CubeMap
0024 {
0025 DEFINE_STANDARD_RTTIEXT(Graphic3d_CubeMapPacked, Graphic3d_CubeMap)
0026 public:
0027
0028
0029
0030
0031 Standard_EXPORT Graphic3d_CubeMapPacked (const TCollection_AsciiString& theFileName,
0032 const Graphic3d_ValidatedCubeMapOrder& theOrder = Graphic3d_CubeMapOrder::Default());
0033
0034
0035
0036
0037 Standard_EXPORT Graphic3d_CubeMapPacked (const Handle(Image_PixMap)& theImage,
0038 const Graphic3d_ValidatedCubeMapOrder& theOrder = Graphic3d_CubeMapOrder::Default());
0039
0040
0041 Standard_EXPORT virtual Handle(Image_CompressedPixMap) CompressedValue (const Handle(Image_SupportedFormats)& theSupported) Standard_OVERRIDE;
0042
0043
0044
0045
0046
0047 Standard_EXPORT virtual Handle(Image_PixMap) Value (const Handle(Image_SupportedFormats)& theSupported) Standard_OVERRIDE;
0048
0049
0050 ~Graphic3d_CubeMapPacked() {}
0051
0052 private:
0053
0054
0055 static Standard_Boolean checkOrder (const NCollection_Array1<unsigned int>& theOrder);
0056
0057
0058 static Standard_Boolean checkImage (const Handle(Image_PixMap)& theImage,
0059 unsigned int& theTileNumberX);
0060
0061
0062
0063 void tryLoadImage (const Handle(Image_SupportedFormats)& theSupported,
0064 const TCollection_AsciiString &theFilePath);
0065
0066 protected:
0067
0068 Graphic3d_CubeMapOrder myOrder;
0069 unsigned int myTileNumberX;
0070
0071 };
0072
0073 DEFINE_STANDARD_HANDLE(Graphic3d_CubeMapPacked, Graphic3d_CubeMap)
0074
0075 #endif