next up previous
Next: 4.2.3 Output related classes Up: 4.2 Class descriptions Previous: 4.2.1 Image related classes


4.2.2 Input related classes

Figure 8: An OMT class diagram showing the relationships of the input related classes.
\resizebox*{1\textwidth}{!}{\includegraphics{omt-input.eps}}

The main input class is the abstract class Input, shown with its children in Figure 8. This class defines what it is to be an input module, and all input modules will have Input as an ancestor. It defines a single abstract method, GetImage(), which when called will return either a StereoImage object that is the next (possibly stereo) image from this input source, or NULL if there are no more images available.

The IndycamInput class will interface the required system libraries in order to capture images from the SGI system's Indycam. Its GetImage() method will never normally return NULL, as subsequent image captures can always be made and only in the case of, for instance, hardware errors will NULL be returned.

The ImageFileInput class will read a standard image file (in a common file format, such as SGI's RGB format or JPEG format) and then its GetImage() method will return this image the first time it is called, and NULL thereafter.

The MovieFileInput class will read a standard movie or animation file (in a common file format, such as MPEG or Quicktime MOV) and then its GetImage() method will return each of the frames of the movie in order, returning NULL when the sequence of frames is exhausted.

The NetworkInput class will interface with a remote instance of the Stereocam system (specifically, one using the NetworkOutput class, described in Section 4.2.3), and its GetImage() method will return the images sent from the remote Stereocam instance, returning NULL when the supply is exhausted (or the network connection is broken or severed).


next up previous
Next: 4.2.3 Output related classes Up: 4.2 Class descriptions Previous: 4.2.1 Image related classes
Kevin Pulo
2000-08-22