Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::MovieGenerator Class Referenceabstract

#include <mitkMovieGenerator.h>

Inheritance diagram for mitk::MovieGenerator:
Collaboration diagram for mitk::MovieGenerator:

Public Member Functions

 mitkClassMacroItkParent (MovieGenerator, itk::LightObject)
 
virtual void SetStepper (Stepper *stepper)
 stepper used to control movie generation More...
 
virtual void SetRenderer (BaseRenderer *renderer)
 renderer to record More...
 
virtual void SetFileName (const char *fileName)
 filename under which movie is saved More...
 
virtual bool WriteMovie ()
 uses given stepper and filename to create a movie from the active OpenGL context More...
 
virtual bool WriteCurrentFrameToMovie ()
 alternative way, which does not use a stepper; More...
 
virtual void ReleaseMovieWriter ()
 releases a movie writer after usage of WriteCurrentFrameToMovie() More...
 
virtual void SetFrameRate (unsigned int rate)
 
unsigned int GetFrameRate ()
 

Static Public Member Functions

static Pointer New (void)
 

Protected Member Functions

 MovieGenerator ()
 default constructor More...
 
virtual bool InitGenerator ()=0
 called directly before the first frame is added, determines movie size from renderer More...
 
virtual bool AddFrame (void *data)=0
 used to add a frame More...
 
virtual bool TerminateGenerator ()=0
 called after the last frame is added More...
 

Protected Attributes

char m_fileName [1024]
 stores the movie filename More...
 
Stepperm_stepper
 stores the used stepper More...
 
BaseRendererm_renderer
 stores the uses renderer More...
 
int m_width
 InitGenerator() stores movie size in those variables. More...
 
int m_height
 
bool m_initialized
 
unsigned int m_FrameRate
 

Detailed Description

Definition at line 28 of file mitkMovieGenerator.h.

Constructor & Destructor Documentation

mitk::MovieGenerator::MovieGenerator ( )
protected

default constructor

Definition at line 35 of file mitkMovieGenerator.cpp.

References m_fileName.

Member Function Documentation

virtual bool mitk::MovieGenerator::AddFrame ( void *  data)
protectedpure virtual

used to add a frame

Implemented in mitk::MovieGeneratorOpenCV, and mitk::MovieGeneratorWin32.

unsigned int mitk::MovieGenerator::GetFrameRate ( )

Definition at line 140 of file mitkMovieGenerator.cpp.

virtual bool mitk::MovieGenerator::InitGenerator ( )
protectedpure virtual

called directly before the first frame is added, determines movie size from renderer

Implemented in mitk::MovieGeneratorOpenCV, and mitk::MovieGeneratorWin32.

mitk::MovieGenerator::mitkClassMacroItkParent ( MovieGenerator  ,
itk::LightObject   
)
mitk::MovieGenerator::Pointer mitk::MovieGenerator::New ( void  )
static

Definition at line 41 of file mitkMovieGenerator.cpp.

References mitk::MovieGeneratorWin32::New().

void mitk::MovieGenerator::ReleaseMovieWriter ( )
virtual

releases a movie writer after usage of WriteCurrentFrameToMovie()

Definition at line 129 of file mitkMovieGenerator.cpp.

virtual void mitk::MovieGenerator::SetFileName ( const char *  fileName)
inlinevirtual

filename under which movie is saved

Reimplemented in mitk::MovieGeneratorOpenCV, and mitk::MovieGeneratorWin32.

Definition at line 41 of file mitkMovieGenerator.h.

void mitk::MovieGenerator::SetFrameRate ( unsigned int  rate)
virtual

Definition at line 135 of file mitkMovieGenerator.cpp.

virtual void mitk::MovieGenerator::SetRenderer ( BaseRenderer renderer)
inlinevirtual

renderer to record

Definition at line 39 of file mitkMovieGenerator.h.

virtual void mitk::MovieGenerator::SetStepper ( Stepper stepper)
inlinevirtual

stepper used to control movie generation

Definition at line 37 of file mitkMovieGenerator.h.

virtual bool mitk::MovieGenerator::TerminateGenerator ( )
protectedpure virtual

called after the last frame is added

Implemented in mitk::MovieGeneratorOpenCV, and mitk::MovieGeneratorWin32.

bool mitk::MovieGenerator::WriteCurrentFrameToMovie ( )
virtual

alternative way, which does not use a stepper;

Definition at line 102 of file mitkMovieGenerator.cpp.

References mitk::RenderingManager::ForceImmediateUpdate(), mitk::RenderingManager::GetInstance(), and GL_BGR.

bool mitk::MovieGenerator::WriteMovie ( )
virtual

uses given stepper and filename to create a movie from the active OpenGL context

Definition at line 62 of file mitkMovieGenerator.cpp.

References mitk::RenderingManager::ForceImmediateUpdate(), mitk::RenderingManager::GetInstance(), and GL_BGR.

Member Data Documentation

char mitk::MovieGenerator::m_fileName[1024]
protected

stores the movie filename

Definition at line 70 of file mitkMovieGenerator.h.

Referenced by MovieGenerator().

unsigned int mitk::MovieGenerator::m_FrameRate
protected

Definition at line 83 of file mitkMovieGenerator.h.

int mitk::MovieGenerator::m_height
protected

Definition at line 79 of file mitkMovieGenerator.h.

bool mitk::MovieGenerator::m_initialized
protected
BaseRenderer* mitk::MovieGenerator::m_renderer
protected

stores the uses renderer

Definition at line 76 of file mitkMovieGenerator.h.

Stepper* mitk::MovieGenerator::m_stepper
protected

stores the used stepper

Definition at line 73 of file mitkMovieGenerator.h.

int mitk::MovieGenerator::m_width
protected

InitGenerator() stores movie size in those variables.

Definition at line 79 of file mitkMovieGenerator.h.


The documentation for this class was generated from the following files: