VTK  9.1.0
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=========================================================================*/
32#ifndef vtkOpenGLMovieSphere_h
33#define vtkOpenGLMovieSphere_h
34
35#include "vtkNew.h" // for ivars
36#include "vtkOpenGLSkybox.h"
37#include "vtkRenderingFFMPEGOpenGL2Module.h" // For export macro
38#include <atomic> // for ivars
39#include <mutex> // for ivars
40
43class vtkMutexLock;
44class vtkOpenGLActor;
47
48class VTKRENDERINGFFMPEGOPENGL2_EXPORT vtkOpenGLMovieSphere : public vtkOpenGLSkybox
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
58 void Render(vtkRenderer* ren, vtkMapper* mapper) override;
59
61
62protected:
65
66 void UpdateUniforms(vtkObject*, unsigned long, void*);
67
74
76
78 unsigned char* TextureData[6];
79 int ReadIndex; // access only within mutex
81
82 std::atomic<int> NewData;
83 std::atomic<int> HaveData;
84
85 int Height;
86 int Width;
89
90private:
92 void operator=(const vtkOpenGLMovieSphere&) = delete;
93};
94
95#endif
Reader for ffmpeg supported formats.
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:171
mutual exclusion locking class
Definition: vtkMutexLock.h:81
Allocate and hold a VTK object.
Definition: vtkNew.h:165
abstract base class for most VTK objects
Definition: vtkObject.h:82
OpenGL actor.
OpenGL MovieSphere, an optimized VR sphere for movies.
std::atomic< int > NewData
void SetVideoSource(vtkFFMPEGVideoSource *val)
void Render(vtkRenderer *ren, vtkMapper *mapper) override
Actual MovieSphere render method.
~vtkOpenGLMovieSphere() override
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 *)
PolyDataMapper using OpenGL to render.
OpenGL Skybox.
abstract specification for renderers
Definition: vtkRenderer.h:182
abstracts an OpenGL texture object.