コード例 #1
0
ファイル: view.cpp プロジェクト: ImpressionMe/Equalizer
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);
    }
}
コード例 #2
0
ファイル: view.cpp プロジェクト: Eyescale/Equalizer
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));
    }
}
コード例 #3
0
ファイル: view.cpp プロジェクト: Eyescale/Equalizer
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());
    }
}
コード例 #4
0
ファイル: channel.cpp プロジェクト: VMML/Equalizer
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 ));
    }
}