File indexing completed on 2025-01-18 10:03:48
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef _Graphic3d_MediaTexture_HeaderFile
0016 #define _Graphic3d_MediaTexture_HeaderFile
0017
0018 #include <Graphic3d_Texture2D.hxx>
0019 #include <Standard_Mutex.hxx>
0020
0021 class Media_Frame;
0022
0023
0024 class Graphic3d_MediaTexture : public Graphic3d_Texture2D
0025 {
0026 DEFINE_STANDARD_RTTIEXT(Graphic3d_MediaTexture, Graphic3d_Texture2D)
0027 public:
0028
0029
0030 Standard_EXPORT Graphic3d_MediaTexture (const Handle(Standard_HMutex)& theMutex,
0031 Standard_Integer thePlane = -1);
0032
0033
0034 Standard_EXPORT virtual Handle(Image_PixMap) GetImage (const Handle(Image_SupportedFormats)& theSupported) Standard_OVERRIDE;
0035
0036
0037 const Handle(Media_Frame)& Frame() const { return myFrame; }
0038
0039
0040 void SetFrame (const Handle(Media_Frame)& theFrame) { myFrame = theFrame; }
0041
0042
0043 void GenerateNewId() { generateId(); }
0044
0045 protected:
0046
0047 mutable Handle(Standard_HMutex) myMutex;
0048 Handle(Media_Frame) myFrame;
0049 Standard_Integer myPlane;
0050 mutable Handle(Image_PixMap) myPixMapWrapper;
0051
0052 };
0053
0054 #endif