Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqMovieFrame Class Reference

A Qt frame which that allows the user to select multiple files or a config file to display and animate images. More...

#include <TxqMovieFrame.h>

Inheritance diagram for TxqMovieFrame::

TxqVcrFrame TxqMasterIoFrame TxqFrame QFrame List of all members.

Public Slots

virtual void startBrowser (const QString &home, const QString &title)
 start the browser. More...

void setPixmapMemory (int id)
 slot to set if wanting to read the pixmaps from memory or file. More...

void openControlDlog (int indx)
 slot to open the movie control dialog. More...

void runModel ()
 slot to run the model. More...

void stepModel ()
 slot to step the model. More...

void stopModel ()
 slot to stop the model. More...

void restartModel ()
 slot to restart the model. More...

void openInputFile ()
 slot to open an input file. More...

void openConfigFile ()
 slot to open the config file. More...

void openInputTextFile ()
 slot to open the input text file. More...

void getMaxMovieIters ()
 slot to get the maximum number of movie frames. More...

void getMovieConfigFileDlog ()
 slot to get the output movie config filename and directory. More...

void getMovieImageFileDlog ()
 slot to get the movie image file output directory and type. More...

void removeWindow (int index)
 slot to remove a window from the vector list invoked when a TxqImageFrame is closed. More...


Signals

void restartEvent ()
 signal to restart the model. More...

void startEvent ()
 signal to start the model. More...


Public Methods

 TxqMovieFrame (QWidget *parent=0, const char *nm=0, WFlags f=WType_TopLevel)
 The TxqMovieFrame constructor takes a QWidget w a name nm and a window flag f All other options must be set from member methods. More...

virtual ~TxqMovieFrame ()
 The TxqMovieFrame destructor. More...

void setInitialState ()
 Set the initial state of the buttons. More...

void updateStatusBar (const QString &label)
 Update the status bar with a new string. More...

void start ()
 Start the timer. More...

void stop ()
 Stop the timer. More...

void timerEvent (QTimerEvent *t)
 The timer event will do a frame step. More...

void destroy ()
 Delete the widget. More...

void destroy (bool destroyWindow, bool destroySubWindows)
 Declare the base class destroy method. More...

int getModelState ()
 Get the model state. More...


Protected Slots

void changeDir ()
 slot to change the button's direction. More...

void clearImageMemory ()
 slot to clear the image memory maps. More...

void applyOptions ()
 slot to apply the options. More...


Protected Methods

void moveImageFrame (int index)
 move the image frame at position index in the imageFrames vector. More...

virtual void addMenuBarItems ()
 Add the menu bar items. More...

void addOpenMenuItems ()
 Add the open menu items. More...

void addEditMenuItems ()
 Add the Edit menu items. More...

void addViewMenuItems ()
 Add to the base View menu. More...

void enableOpenMenu ()
 enable the open menu. More...

void disableOpenMenu ()
 Disable the open menu. More...

void createOpenMenu ()
 Create the Open menu. More...

void addDirButton ()
 Add the direction button. More...

void addButtonSlots ()
 Add the VCR button slots. More...

void addStatusObjects ()
 Add the file label to the status bar. More...

void addFileMenuItems ()
 Add to the base File menu. More...

QStringList getMovieImageFiles (QDir d, QString prefix, QString ext)
 Get the movie image filenames corresponding the the input prefix and extension. More...

void setImageNames ()
 Set the image file names which includes the imageExtension, the baseName and imageDir. More...

void setMovieState ()
 Set the model state after a dialog open. More...

void addMovieFrames ()
 Add movie frames to the vector list from a filename list. More...


Protected Attributes

int maxIters
 The maximum number of iterations the default is unlimited. More...

int iterPerUpdate
 The number of iterations per graphics update the default is 1;. More...

int maxMovieIters
 The maximum number of move frames. More...

QPushButton* dirButton
 The direction button, Forward, or Reverse. More...


Private Methods

void execLoop ()
 execute the loop. More...


Private Attributes

int frameAdvance
 The frame advance integer The normal mode is to set to 1 to play forward. More...

int frameLoop
 The frame loop parameter. More...

int frameStep
 The frame step parameter, 1 will advance one frame at at time. More...

int frameNumber
 The current frame number in the animation. More...

int startFrame
 The start frame number in the animation. More...

int endFrame
 The end frame number in the animation. More...

TxAttributeSetcntrlOptions
 The movie control attributes. More...

int timer_id
 The timer id number. More...

QPopupMenu* openMenu
 The open popup menu. More...

QString movieConfigFileName
 The movie config filename. More...

QString imageFileName
 The movie image filename. More...

vector<QStringList> imageFileNames
 The vector list of image filenames. More...

vector<TxqImageFrame*> imageFrames
 The vector of image frames. More...

QString imageExt
 The movie image filename extension in upper case, for example ".PPM". More...

QString imagePrefix
 The movie image filename prefix including absolute path directory. More...

QDir imageDir
 The image directory. More...

QString baseName
 The base name of the input filename. More...

int modelState
 The model state. More...

int movieFrameCount
 The movie frame count. More...

int maxFrameCount
 The maximum frame count. More...

QString startDirName
 The starting search directory name. More...

int memoryId
 The setPixmapMemory id number. More...

int cntrlId
 The control id. More...


Detailed Description

A Qt frame which that allows the user to select multiple files or a config file to display and animate images.

Copyright 2001 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
TxqMovieFrame.h,v 1.14 2001/10/12 22:46:21 kgl Exp

Definition at line 49 of file TxqMovieFrame.h.


Constructor & Destructor Documentation

TxqMovieFrame::TxqMovieFrame ( QWidget * parent = 0,
const char * nm = 0,
WFlags f = WType_TopLevel )
 

The TxqMovieFrame constructor takes a QWidget w a name nm and a window flag f All other options must be set from member methods.

Parameters:
parent   The parent Qt widget.
nm   The name of the Qt widget.
f   The window flags.

TxqMovieFrame::~TxqMovieFrame ( ) [virtual]
 

The TxqMovieFrame destructor.


Member Function Documentation

void TxqMovieFrame::addButtonSlots ( ) [protected]
 

Add the VCR button slots.

void TxqMovieFrame::addDirButton ( ) [protected]
 

Add the direction button.

void TxqMovieFrame::addEditMenuItems ( ) [protected, virtual]
 

Add the Edit menu items.

Reimplemented from TxqFrame.

void TxqMovieFrame::addFileMenuItems ( ) [protected, virtual]
 

Add to the base File menu.

Reimplemented from TxqFrame.

void TxqMovieFrame::addMenuBarItems ( ) [protected, virtual]
 

Add the menu bar items.

Reimplemented from TxqMasterIoFrame.

void TxqMovieFrame::addMovieFrames ( ) [protected]
 

Add movie frames to the vector list from a filename list.

void TxqMovieFrame::addOpenMenuItems ( ) [protected]
 

Add the open menu items.

void TxqMovieFrame::addStatusObjects ( ) [protected]
 

Add the file label to the status bar.

void TxqMovieFrame::addViewMenuItems ( ) [protected, virtual]
 

Add to the base View menu.

Reimplemented from TxqMasterIoFrame.

void TxqMovieFrame::applyOptions ( ) [protected, slot]
 

slot to apply the options.

void TxqMovieFrame::changeDir ( ) [protected, slot]
 

slot to change the button's direction.

void TxqMovieFrame::clearImageMemory ( ) [protected, slot]
 

slot to clear the image memory maps.

void TxqMovieFrame::createOpenMenu ( ) [protected]
 

Create the Open menu.

void TxqMovieFrame::destroy ( bool destroyWindow,
bool destroySubWindows ) [inline]
 

Declare the base class destroy method.

Parameters:
destroyWindow   the bool to destroy this window.
destroySubWindows   the bool to destroy the sub windows of this class

Definition at line 109 of file TxqMovieFrame.h.

void TxqMovieFrame::destroy ( )
 

Delete the widget.

void TxqMovieFrame::disableOpenMenu ( ) [protected]
 

Disable the open menu.

void TxqMovieFrame::enableOpenMenu ( ) [protected]
 

enable the open menu.

void TxqMovieFrame::execLoop ( ) [private]
 

execute the loop.

void TxqMovieFrame::getMaxMovieIters ( ) [slot]
 

slot to get the maximum number of movie frames.

The default is 0 which set the frame count to unlimited and will be terminated only when the application quits or movie generation is turned off.

int TxqMovieFrame::getModelState ( )
 

Get the model state.

Parameters:
return   the model state.

void TxqMovieFrame::getMovieConfigFileDlog ( ) [slot]
 

slot to get the output movie config filename and directory.

void TxqMovieFrame::getMovieImageFileDlog ( ) [slot]
 

slot to get the movie image file output directory and type.

QStringList TxqMovieFrame::getMovieImageFiles ( QDir d,
QString prefix,
QString ext ) [protected]
 

Get the movie image filenames corresponding the the input prefix and extension.

Parameters:
d   the input image prefix
prefix   the input image extension
Returns:
ext the QStringList of filenames

void TxqMovieFrame::moveImageFrame ( int index ) [protected]
 

move the image frame at position index in the imageFrames vector.

Parameters:
index   th position index number

void TxqMovieFrame::openConfigFile ( ) [slot]
 

slot to open the config file.

void TxqMovieFrame::openControlDlog ( int indx ) [slot]
 

slot to open the movie control dialog.

Parameters:
index   the id number of the view menu to access the menu item.

void TxqMovieFrame::openInputFile ( ) [slot]
 

slot to open an input file.

void TxqMovieFrame::openInputTextFile ( ) [slot]
 

slot to open the input text file.

void TxqMovieFrame::removeWindow ( int index ) [slot]
 

slot to remove a window from the vector list invoked when a TxqImageFrame is closed.

Parameters:
index   the index number of the TxqImageFrame to remove.

void TxqMovieFrame::restartEvent ( ) [signal]
 

signal to restart the model.

void TxqMovieFrame::restartModel ( ) [slot]
 

slot to restart the model.

void TxqMovieFrame::runModel ( ) [slot]
 

slot to run the model.

void TxqMovieFrame::setImageNames ( ) [protected]
 

Set the image file names which includes the imageExtension, the baseName and imageDir.

void TxqMovieFrame::setInitialState ( )
 

Set the initial state of the buttons.

void TxqMovieFrame::setMovieState ( ) [protected]
 

Set the model state after a dialog open.

void TxqMovieFrame::setPixmapMemory ( int id ) [slot]
 

slot to set if wanting to read the pixmaps from memory or file.

Parameters:
id   the id number of the view menu to access the menu item.

void TxqMovieFrame::start ( )
 

Start the timer.

void TxqMovieFrame::startBrowser ( const QString & home,
const QString & title ) [virtual, slot]
 

start the browser.

Parameters:
home   the home directory as a string
title   the title for the browser

Reimplemented from TxqMasterIoFrame.

void TxqMovieFrame::startEvent ( ) [signal]
 

signal to start the model.

void TxqMovieFrame::stepModel ( ) [slot]
 

slot to step the model.

void TxqMovieFrame::stop ( )
 

Stop the timer.

void TxqMovieFrame::stopModel ( ) [slot]
 

slot to stop the model.

void TxqMovieFrame::timerEvent ( QTimerEvent * t )
 

The timer event will do a frame step.

Parameters:
t   the QTimerEvent pointer.

void TxqMovieFrame::updateStatusBar ( const QString & label )
 

Update the status bar with a new string.

Parameters:
label   the string to display on the statusBar.


Member Data Documentation

QString TxqMovieFrame::baseName [private]
 

The base name of the input filename.

Definition at line 432 of file TxqMovieFrame.h.

int TxqMovieFrame::cntrlId [private]
 

The control id.

Definition at line 462 of file TxqMovieFrame.h.

TxAttributeSet * TxqMovieFrame::cntrlOptions [private]
 

The movie control attributes.

Definition at line 381 of file TxqMovieFrame.h.

QPushButton * TxqMovieFrame::dirButton [protected]
 

The direction button, Forward, or Reverse.

Definition at line 337 of file TxqMovieFrame.h.

int TxqMovieFrame::endFrame [private]
 

The end frame number in the animation.

Definition at line 376 of file TxqMovieFrame.h.

int TxqMovieFrame::frameAdvance [private]
 

The frame advance integer The normal mode is to set to 1 to play forward.

When set to -1, the movie will play in reverse.

Definition at line 351 of file TxqMovieFrame.h.

int TxqMovieFrame::frameLoop [private]
 

The frame loop parameter.

1 if the movie is continous looping.

Definition at line 356 of file TxqMovieFrame.h.

int TxqMovieFrame::frameNumber [private]
 

The current frame number in the animation.

Definition at line 366 of file TxqMovieFrame.h.

int TxqMovieFrame::frameStep [private]
 

The frame step parameter, 1 will advance one frame at at time.

Definition at line 361 of file TxqMovieFrame.h.

QDir TxqMovieFrame::imageDir [private]
 

The image directory.

Definition at line 427 of file TxqMovieFrame.h.

QString TxqMovieFrame::imageExt [private]
 

The movie image filename extension in upper case, for example ".PPM".

Definition at line 417 of file TxqMovieFrame.h.

QString TxqMovieFrame::imageFileName [private]
 

The movie image filename.

Definition at line 401 of file TxqMovieFrame.h.

vector< QStringList > TxqMovieFrame::imageFileNames [private]
 

The vector list of image filenames.

Definition at line 406 of file TxqMovieFrame.h.

vector< TxqImageFrame *> TxqMovieFrame::imageFrames [private]
 

The vector of image frames.

Definition at line 411 of file TxqMovieFrame.h.

QString TxqMovieFrame::imagePrefix [private]
 

The movie image filename prefix including absolute path directory.

Definition at line 422 of file TxqMovieFrame.h.

int TxqMovieFrame::iterPerUpdate [protected]
 

The number of iterations per graphics update the default is 1;.

Definition at line 326 of file TxqMovieFrame.h.

int TxqMovieFrame::maxFrameCount [private]
 

The maximum frame count.

Definition at line 447 of file TxqMovieFrame.h.

int TxqMovieFrame::maxIters [protected]
 

The maximum number of iterations the default is unlimited.

Definition at line 320 of file TxqMovieFrame.h.

int TxqMovieFrame::maxMovieIters [protected]
 

The maximum number of move frames.

The default 0 which is unlimited.

Definition at line 332 of file TxqMovieFrame.h.

int TxqMovieFrame::memoryId [private]
 

The setPixmapMemory id number.

Definition at line 457 of file TxqMovieFrame.h.

int TxqMovieFrame::modelState [private]
 

The model state.

Definition at line 437 of file TxqMovieFrame.h.

QString TxqMovieFrame::movieConfigFileName [private]
 

The movie config filename.

Definition at line 396 of file TxqMovieFrame.h.

int TxqMovieFrame::movieFrameCount [private]
 

The movie frame count.

Definition at line 442 of file TxqMovieFrame.h.

QPopupMenu * TxqMovieFrame::openMenu [private]
 

The open popup menu.

Definition at line 391 of file TxqMovieFrame.h.

QString TxqMovieFrame::startDirName [private]
 

The starting search directory name.

Definition at line 452 of file TxqMovieFrame.h.

int TxqMovieFrame::startFrame [private]
 

The start frame number in the animation.

Definition at line 371 of file TxqMovieFrame.h.

int TxqMovieFrame::timer_id [private]
 

The timer id number.

Definition at line 386 of file TxqMovieFrame.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.