
A FrameOstream class that sends images to SDL windows. More...
#include <GUI/SDLdisplayStream.H>


Classes | |
| struct | WindowMap | 
Public Member Functions | |
| SDLdisplayStream (OptionManager &mgr) | |
| Constructor.   | |
| virtual | ~SDLdisplayStream () | 
| Virtual destructor.   | |
| virtual void | writeFrame (const GenericFrame &image, const std::string &shortname, const FrameInfo &auxinfo=FrameOstream::defaultInfo) | 
| Write a frame to the named onscreen window.   | |
| virtual bool | isVoid () const | 
| Returns true if the user has clicked a close button on any open window.   | |
| virtual void | closeStream (const std::string &shortname) | 
| Close the SDL window, regardless of the value of shortname.   | |
A FrameOstream class that sends images to SDL windows.
Definition at line 47 of file SDLdisplayStream.H.
| SDLdisplayStream::SDLdisplayStream | ( | OptionManager & | mgr | ) | 
Constructor.
Definition at line 68 of file SDLdisplayStream.C.
References ModelComponent::addSubComponent(), and nub::soft_ref< T >::reset().
| SDLdisplayStream::~SDLdisplayStream | ( | ) |  [virtual] | 
        
Virtual destructor.
Definition at line 79 of file SDLdisplayStream.C.
| void SDLdisplayStream::closeStream | ( | const std::string & | shortname | ) |  [virtual] | 
        
Close the SDL window, regardless of the value of shortname.
Implements FrameOstream.
Definition at line 180 of file SDLdisplayStream.C.
References nub::soft_ref< T >::reset().
| bool SDLdisplayStream::isVoid | ( | ) |  const [virtual] | 
        
Returns true if the user has clicked a close button on any open window.
Reimplemented from FrameOstream.
Definition at line 164 of file SDLdisplayStream.C.
| void SDLdisplayStream::writeFrame | ( | const GenericFrame & | image, | |
| const std::string & | shortname, | |||
| const FrameInfo & |  auxinfo = FrameOstream::defaultInfo | |||
| ) |  [virtual] | 
        
Write a frame to the named onscreen window.
If no such window yet exists, it will be created on the fly.
Implements FrameOstream.
Definition at line 84 of file SDLdisplayStream.C.
References ModelComponent::addSubComponent(), ASSERT, GenericFrame::asVideo(), GenericFrame::getDims(), ModelComponent::getManager(), VideoFrame::getMode(), OModelParam< T >::getVal(), GenericFrame::GRAY_F32, GenericFrame::GRAY_U16, GenericFrame::GRAY_U8, Dims::h(), MC_RECURSE, GenericFrame::nativeType(), SDLdisplay::NEXT_VSYNC, GenericFrame::NONE, nub::soft_ref< T >::reset(), GenericFrame::RGB_F32, GenericFrame::RGB_U16, GenericFrame::RGB_U8, GenericFrame::RGBD, and Dims::w().
 1.6.3