@@ -611,6 +611,7 @@ enum Graphic3d_NameOfTextureEnv {
611611%wrap_handle(Graphic3d_AspectMarker3d)
612612%wrap_handle(Graphic3d_AspectText3d)
613613%wrap_handle(Graphic3d_CView)
614+ %wrap_handle(Graphic3d_MediaTextureSet)
614615%wrap_handle(Graphic3d_TextureEnv)
615616%wrap_handle(Graphic3d_TextureMap)
616617%wrap_handle(Graphic3d_CubeMap)
@@ -10345,6 +10346,95 @@ class Graphic3d_FrameStatsDataTmp : public Graphic3d_FrameStatsData {
1034510346 __repr__ = _dumps_object
1034610347 }
1034710348};
10349+ %nodefaultctor Graphic3d_MediaTextureSet;
10350+ class Graphic3d_MediaTextureSet : public Graphic3d_TextureSet , public Media_IFrameQueue {
10351+ public:
10352+ %feature(" compactdefaultargs" ) Duration;
10353+ %feature(" autodoc" , " * Return duration in seconds.
10354+
10355+ :rtype: double
10356+ " ) Duration;
10357+ double Duration ();
10358+ %feature(" compactdefaultargs" ) FrameSize;
10359+ %feature(" autodoc" , " * Return front frame dimensions.
10360+
10361+ :rtype: Graphic3d_Vec2i
10362+ " ) FrameSize;
10363+ Graphic3d_Vec2i FrameSize ();
10364+ %feature(" compactdefaultargs" ) Graphic3d_MediaTextureSet;
10365+ %feature(" autodoc" , " * Empty constructor.
10366+
10367+ :rtype: None
10368+ " ) Graphic3d_MediaTextureSet;
10369+ Graphic3d_MediaTextureSet ();
10370+ %feature(" compactdefaultargs" ) Input;
10371+ %feature(" autodoc" , " * Return input media.
10372+
10373+ :rtype: TCollection_AsciiString
10374+ " ) Input;
10375+ const TCollection_AsciiString & Input ();
10376+ %feature(" compactdefaultargs" ) IsFullRangeYUV;
10377+ %feature(" autodoc" , " * Return True if YUV range is full.
10378+
10379+ :rtype: bool
10380+ " ) IsFullRangeYUV;
10381+ Standard_Boolean IsFullRangeYUV ();
10382+ %feature(" compactdefaultargs" ) IsPlanarYUV;
10383+ %feature(" autodoc" , " * Return True if texture set defined 3 YUV planes.
10384+
10385+ :rtype: bool
10386+ " ) IsPlanarYUV;
10387+ Standard_Boolean IsPlanarYUV ();
10388+ %feature(" compactdefaultargs" ) Notify;
10389+ %feature(" autodoc" , " * Call callback.
10390+
10391+ :rtype: None
10392+ " ) Notify;
10393+ void Notify ();
10394+ %feature(" compactdefaultargs" ) OpenInput;
10395+ %feature(" autodoc" , " * Open specified file. Passing an empty path would close current input.
10396+
10397+ :param thePath:
10398+ :type thePath: TCollection_AsciiString &
10399+ :param theToWait:
10400+ :type theToWait: bool
10401+ :rtype: None
10402+ " ) OpenInput;
10403+ void OpenInput (const TCollection_AsciiString & thePath,Standard_Boolean theToWait);
10404+ %feature(" compactdefaultargs" ) PlayerContext;
10405+ %feature(" autodoc" , " * Return player context; it can be NULL until first OpenInput().
10406+
10407+ :rtype: opencascade::handle<Media_PlayerContext>
10408+ " ) PlayerContext;
10409+ const opencascade::handle<Media_PlayerContext> & PlayerContext ();
10410+ %feature(" compactdefaultargs" ) Progress;
10411+ %feature(" autodoc" , " * Return playback progress in seconds.
10412+
10413+ :rtype: double
10414+ " ) Progress;
10415+ double Progress ();
10416+ %feature(" compactdefaultargs" ) ShaderProgram;
10417+ %feature(" autodoc" , " * Return shader program for displaying texture set.
10418+
10419+ :rtype: opencascade::handle<Graphic3d_ShaderProgram>
10420+ " ) ShaderProgram;
10421+ opencascade::handle<Graphic3d_ShaderProgram> ShaderProgram ();
10422+ %feature(" compactdefaultargs" ) SwapFrames;
10423+ %feature(" autodoc" , " * Swap front/back frames.
10424+
10425+ :rtype: bool
10426+ " ) SwapFrames;
10427+ Standard_Boolean SwapFrames ();
10428+ };
10429+
10430+
10431+ %make_alias(Graphic3d_MediaTextureSet)
10432+
10433+ %extend Graphic3d_MediaTextureSet {
10434+ %pythoncode {
10435+ __repr__ = _dumps_object
10436+ }
10437+ };
1034810438%nodefaultctor Graphic3d_TextureEnv;
1034910439class Graphic3d_TextureEnv : public Graphic3d_TextureRoot {
1035010440 public:
0 commit comments