Beispiel #1
0
View::View( Layout* parent )
        : Super( parent )
        , _private( 0 )
{
    const Global* global = Global::instance();
    for( unsigned i = 0; i < SATTR_ALL; ++i )
    {
        const SAttribute attr = static_cast< SAttribute >( i );
        setSAttribute( attr, global->getViewSAttribute( attr ));
    }

    // All processes must share a common, unique pixelstream name
    if( getSAttribute( View::SATTR_PIXELSTREAM_NAME ).empty( ))
    {
        const std::string name = "Equalizer_" +
                                 lunchbox::make_UUID().getShortString();
        setSAttribute( View::SATTR_PIXELSTREAM_NAME, name);
    }
}
Beispiel #2
0
View::View(Layout* parent)
    : Super(parent)
    , _private(0)
{
    const Global* global = Global::instance();
    for (unsigned i = 0; i < SATTR_ALL; ++i)
    {
        const SAttribute attr = static_cast<SAttribute>(i);
        setSAttribute(attr, global->getViewSAttribute(attr));
    }
}
Beispiel #3
0
void View::init()
{
    // All contributors to the same view must share the same Deflect ID for
    // streaming to the same target.
    if (!getenv("DEFLECT_ID") && getSAttribute(View::SATTR_DEFLECT_ID).empty())
    {
        setSAttribute(View::SATTR_DEFLECT_ID,
                      getName().empty() ? "View " + getID().getShortString()
                                        : getName());
    }
}
Beispiel #4
0
Channel::Channel( Window* parent )
        : Super( parent )
        , _active( 0 )
        , _view( 0 )
        , _segment( 0 )
        , _state( STATE_STOPPED )
        , _lastDrawCompound( 0 )
        , _private( 0 )
{
    const Global* global = Global::instance();
    for( unsigned i = 0; i < IATTR_ALL; ++i )
    {
        const IAttribute attr = static_cast< IAttribute >( i );
        setIAttribute( attr, global->getChannelIAttribute( attr ));
    }
    for( unsigned i = 0; i < SATTR_ALL; ++i )
    {
        const SAttribute attr = static_cast< SAttribute >( i );
        setSAttribute( attr, global->getChannelSAttribute( attr ));
    }
}