Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

Observer Class Reference

#include <observer.h>

Inheritance diagram for Observer:

FrameBar VideoView FrameView GstVideoView List of all members.

Public Member Functions

virtual void updateAdd (const vector< char * > &frames, unsigned int index, Frontend *frontend)=0
virtual void updateRemove (unsigned int fromFrame, unsigned int toFrame)=0
virtual void updateMove (unsigned int fromFrame, unsigned int toFrame, unsigned int movePosition)=0
virtual void updateNewActiveFrame (int frameNumber)=0
virtual void updateClear ()=0
virtual void updatePlayFrame (int frameNumber)=0
virtual void updateNewScene (int index)=0
virtual void updateRemoveScene (int sceneNumber)=0
virtual void updateMoveScene (int sceneNumber, int movePosition)=0
virtual void updateNewActiveScene (int sceneNumber, vector< char * > framePaths, Frontend *frontend)=0
virtual void updateAnimationChanged (int frameNumber)=0

Detailed Description

The observer interface. All classes who wants to be notified when something changes in the animationmodel has to implement from this class.

The observers implemented with this class also has to be attatched to the animationmodel.

The observer is implemented with strong use of the push model. Although this decreases the flexibility we gain alot in efficiency which is more important to us.

Author:
Bjoern Erik Nilsen & Fredrik Berg Kjoelstad


Member Function Documentation

virtual void Observer::updateAdd const vector< char * > &  frames,
unsigned int  index,
Frontend frontend
[pure virtual]
 

Abstract function for recieving notification about new frames added to the model.

Parameters:
frames the frames which has been added to the model.
index the place the frame has been added
frontend the GUI frontend which is used to displaying progress on timeconsuming operations

Implemented in FrameBar, FrameView, and VideoView.

virtual void Observer::updateAnimationChanged int  frameNumber  )  [pure virtual]
 

Abstract function for recieving notification when the disk representation of the animation is changed by other programs.

Parameters:
frameNumber the index of the frame which has been changed. (active scene is assumed).

Implemented in FrameBar, and FrameView.

virtual void Observer::updateClear  )  [pure virtual]
 

Abstract function for receiving notification when the model is erased.

Implemented in FrameBar, FrameView, and VideoView.

virtual void Observer::updateMove unsigned int  fromFrame,
unsigned int  toFrame,
unsigned int  movePosition
[pure virtual]
 

Abstract function for recieving notification when frames are moved in the model.

Parameters:
fromFrame index of the first selected frame
toFrame index of the last selected frame
movePosition index to where the selection should be move to

Implemented in FrameBar, FrameView, and VideoView.

virtual void Observer::updateMoveScene int  sceneNumber,
int  movePosition
[pure virtual]
 

Abstract function for recieving notification when a scene in the animation has been moved.

Parameters:
sceneNumber the scene which have been moved.
movePosition the position the scene has been moved to.

Implemented in FrameBar, FrameView, and VideoView.

virtual void Observer::updateNewActiveFrame int  frameNumber  )  [pure virtual]
 

Abstract function for recieving notification when a new frame are selected.

Parameters:
frameNumber the new active frame.

Implemented in FrameBar, FrameView, and VideoView.

virtual void Observer::updateNewActiveScene int  sceneNumber,
vector< char * >  framePaths,
Frontend frontend
[pure virtual]
 

Abstract function for recieving notification when a new scene is set as the current "active" scene.

Parameters:
sceneNumber the new active scene.
framePaths a vector containing the paths to the frames.
frontend the frontend for processing events while adding frames.

Implemented in FrameBar, FrameView, and VideoView.

virtual void Observer::updateNewScene int  index  )  [pure virtual]
 

Abstract function for recieving notification when a new scene is created at location index.

Parameters:
index the location where the new scene is created.

Implemented in FrameBar, FrameView, and VideoView.

virtual void Observer::updatePlayFrame int  frameNumber  )  [pure virtual]
 

Abstract function for recieving notification when a frame is to be played.

Parameters:
frameNumber the frame to be played

Implemented in FrameBar, FrameView, and VideoView.

virtual void Observer::updateRemove unsigned int  fromFrame,
unsigned int  toFrame
[pure virtual]
 

Abstract function for recieving notification about frames removed from the model.

Parameters:
fromFrame the first frame of those removed
toFrame the last frame of those removed

Implemented in FrameBar, FrameView, and VideoView.

virtual void Observer::updateRemoveScene int  sceneNumber  )  [pure virtual]
 

Abstract function for recieving notification when a scene is removed from the model.

Parameters:
sceneNumber the scene which has been removed from the model.

Implemented in FrameBar, FrameView, and VideoView.


The documentation for this class was generated from the following file:
Generated on Thu May 19 01:51:22 2005 for stopmotion.kdevelop by  doxygen 1.4.2