VTK  9.2.6
vtkOpenGLMovieSphere.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkOpenGLMovieSphere.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
34
35#ifndef vtkOpenGLMovieSphere_h
36#define vtkOpenGLMovieSphere_h
37
38#include "vtkNew.h" // for ivars
39#include "vtkOpenGLSkybox.h"
40#include "vtkRenderingFFMPEGOpenGL2Module.h" // For export macro
41#include "vtkSmartPointer.h" // for ivars
42#include <atomic> // for ivars
43#include <mutex> // for ivars
44
47class vtkMutexLock;
48class vtkOpenGLActor;
51
52class VTKRENDERINGFFMPEGOPENGL2_EXPORT vtkOpenGLMovieSphere : public vtkOpenGLSkybox
53{
54public:
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
62 void Render(vtkRenderer* ren, vtkMapper* mapper) override;
63
66
67protected:
70
71 void UpdateUniforms(vtkObject*, unsigned long, void*);
72
79
81
83 unsigned char* TextureData[6];
84 int ReadIndex; // access only within mutex
86
87 std::atomic<int> NewData;
88 std::atomic<int> HaveData;
89
90 int Height;
91 int Width;
95
96private:
98 void operator=(const vtkOpenGLMovieSphere&) = delete;
99};
100
101#endif
Reader for ffmpeg supported formats.
a simple class to control print indentation
Definition vtkIndent.h:40
abstract class specifies interface to map data to graphics primitives
Definition vtkMapper.h:88
mutual exclusion locking class
Allocate and hold a VTK object.
Definition vtkNew.h:62
abstract base class for most VTK objects
Definition vtkObject.h:63
OpenGL actor.
std::atomic< int > NewData
vtkFFMPEGVideoSource * GetVideoSource()
void SetVideoSource(vtkFFMPEGVideoSource *val)
void Render(vtkRenderer *ren, vtkMapper *mapper) override
Actual MovieSphere render method.
vtkNew< vtkTextureObject > Textures[6]
~vtkOpenGLMovieSphere() override
unsigned char * TextureData[6]
void VideoCallback(vtkFFMPEGVideoSourceVideoCallbackData const &cbd)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkOpenGLMovieSphere * New()
std::atomic< int > HaveData
void UpdateUniforms(vtkObject *, unsigned long, void *)
vtkSmartPointer< vtkFFMPEGVideoSource > VideoSource
PolyDataMapper using OpenGL to render.
abstract specification for renderers
Definition vtkRenderer.h:73
Hold a reference to a vtkObjectBase instance.
abstracts an OpenGL texture object.