Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::MovieGeneratorOpenCV Class Reference

#include <mitkMovieGeneratorOpenCV.h>

Inheritance diagram for mitk::MovieGeneratorOpenCV:
Collaboration diagram for mitk::MovieGeneratorOpenCV:

Public Member Functions

 mitkClassMacro (MovieGeneratorOpenCV, MovieGenerator)
 
Pointer Clone () const
 
virtual void SetFileName (const char *fileName) override
 filename under which movie is saved More...
 
void SetFourCCCodec (char *codec)
 
virtual void SetFrameRate (int rate)
 
void SetRemoveColouredFrame (bool)
 
- Public Member Functions inherited from mitk::MovieGenerator
 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 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 ()
 
- Static Public Member Functions inherited from mitk::MovieGenerator
static Pointer New (void)
 

Protected Member Functions

 MovieGeneratorOpenCV ()
 
virtual bool InitGenerator () override
 called directly before the first frame is added More...
 
virtual bool AddFrame (void *data) override
 used to add a frame More...
 
virtual bool TerminateGenerator () override
 called after the last frame is added More...
 
- Protected Member Functions inherited from mitk::MovieGenerator
 MovieGenerator ()
 default constructor More...
 

Protected Attributes

std::string m_sFile
 name of output file More...
 
int m_dwRate
 frame rate More...
 
- Protected Attributes inherited from mitk::MovieGenerator
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 33 of file mitkMovieGeneratorOpenCV.h.

Constructor & Destructor Documentation

mitk::MovieGeneratorOpenCV::MovieGeneratorOpenCV ( )
protected

Definition at line 23 of file mitkMovieGeneratorOpenCV.cpp.

References m_dwRate, and mitk::MovieGenerator::m_initialized.

Member Function Documentation

bool mitk::MovieGeneratorOpenCV::AddFrame ( void *  data)
overrideprotectedvirtual

used to add a frame

Implements mitk::MovieGenerator.

Definition at line 119 of file mitkMovieGeneratorOpenCV.cpp.

Pointer mitk::MovieGeneratorOpenCV::Clone ( ) const
bool mitk::MovieGeneratorOpenCV::InitGenerator ( )
overrideprotectedvirtual

called directly before the first frame is added

Implements mitk::MovieGenerator.

Definition at line 50 of file mitkMovieGeneratorOpenCV.cpp.

mitk::MovieGeneratorOpenCV::mitkClassMacro ( MovieGeneratorOpenCV  ,
MovieGenerator   
)
static Pointer mitk::MovieGeneratorOpenCV::New ( )
static
void mitk::MovieGeneratorOpenCV::SetFileName ( const char *  fileName)
overridevirtual

filename under which movie is saved

Reimplemented from mitk::MovieGenerator.

Definition at line 34 of file mitkMovieGeneratorOpenCV.cpp.

void mitk::MovieGeneratorOpenCV::SetFourCCCodec ( char *  codec)
inline

Definition at line 44 of file mitkMovieGeneratorOpenCV.h.

void mitk::MovieGeneratorOpenCV::SetFrameRate ( int  rate)
virtual

Definition at line 40 of file mitkMovieGeneratorOpenCV.cpp.

void mitk::MovieGeneratorOpenCV::SetRemoveColouredFrame ( bool  RemoveColouredFrame)

if true the movie will be cutted by a 10 pixel margin in order to remove the standard mitk coloured borders default: true

Definition at line 45 of file mitkMovieGeneratorOpenCV.cpp.

bool mitk::MovieGeneratorOpenCV::TerminateGenerator ( )
overrideprotectedvirtual

called after the last frame is added

Implements mitk::MovieGenerator.

Definition at line 128 of file mitkMovieGeneratorOpenCV.cpp.

Member Data Documentation

int mitk::MovieGeneratorOpenCV::m_dwRate
protected

frame rate

Definition at line 74 of file mitkMovieGeneratorOpenCV.h.

Referenced by MovieGeneratorOpenCV().

std::string mitk::MovieGeneratorOpenCV::m_sFile
protected

name of output file

Definition at line 71 of file mitkMovieGeneratorOpenCV.h.


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