Exemple #1
0
void SimpleStageBase::onCreate(const SimpleStage *source)
{
    Inherited::onCreate(source);

    if(source != NULL)
    {
        SimpleStage *pThis = static_cast<SimpleStage *>(this);

        pThis->setCamera(source->getCamera());

        pThis->setBackground(source->getBackground());

        MFUnrecForegroundPtr::const_iterator ForegroundsIt  =
            source->_mfForegrounds.begin();
        MFUnrecForegroundPtr::const_iterator ForegroundsEnd =
            source->_mfForegrounds.end  ();

        while(ForegroundsIt != ForegroundsEnd)
        {
            pThis->pushToForegrounds(*ForegroundsIt);

            ++ForegroundsIt;
        }
    }
}
void SimpleStageBase::onCreate(const SimpleStage *source)
{
    Inherited::onCreate(source);

    if(source != NULL)
    {
        SimpleStage *pThis = static_cast<SimpleStage *>(this);

        pThis->setCamera(source->getCamera());

        pThis->setBackground(source->getBackground());
    }
}
Exemple #3
0
void SimpleStageBase::execSyncV(      FieldContainer    &oFrom,
                                        ConstFieldMaskArg  whichField,
                                        AspectOffsetStore &oOffsets,
                                        ConstFieldMaskArg  syncMode,
                                  const UInt32             uiSyncInfo)
{
    SimpleStage *pThis = static_cast<SimpleStage *>(this);

    pThis->execSync(static_cast<SimpleStage *>(&oFrom),
                    whichField,
                    oOffsets,
                    syncMode,
                    uiSyncInfo);
}