13 #ifndef mitkMovieGenerator_h
14 #define mitkMovieGenerator_h
48 static Pointer
New(
void);
66 virtual void SetFileName(
const char *fileName) { strcpy(m_fileName, fileName); }
120 char m_fileName[1024];
#define MITKALGORITHMSEXT_EXPORT
Organizes the rendering process.
Abstract base class for recording movies from OpenGL render windows.
static Pointer New(void)
Factory method returning a platform-specific MovieGenerator.
virtual bool InitGenerator()=0
called directly before the first frame is added, determines movie size from renderer
MovieGenerator()
default constructor
mitkClassMacroItkParent(MovieGenerator, itk::LightObject)
virtual bool WriteCurrentFrameToMovie()
Capture a single frame and add it to the movie.
virtual bool AddFrame(void *data)=0
used to add a frame
Stepper * m_stepper
stores the used stepper
virtual bool TerminateGenerator()=0
called after the last frame is added
virtual bool WriteMovie()
Generate a movie by iterating through all stepper steps.
virtual void SetRenderer(BaseRenderer *renderer)
Set the renderer whose render window will be captured.
unsigned int GetFrameRate()
Get the frame rate of the output movie.
virtual void SetFileName(const char *fileName)
Set the output filename for the movie.
virtual void ReleaseMovieWriter()
Release the movie writer resources after using WriteCurrentFrameToMovie().
BaseRenderer * m_renderer
stores the uses renderer
virtual void SetStepper(Stepper *stepper)
Set the stepper used to control movie generation.
virtual void SetFrameRate(unsigned int rate)
Set the frame rate of the output movie.
Helper class to step through a list.
Find image slices visible on a given plane.