EditFieldHandlePtr NewtonParticleAffectorBase::editHandleBeacon         (void)
{
    SFUnrecNodePtr::EditHandlePtr returnValue(
        new  SFUnrecNodePtr::EditHandle(
             &_sfBeacon,
             this->getType().getFieldDesc(BeaconFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&NewtonParticleAffector::setBeacon,
                    static_cast<NewtonParticleAffector *>(this), _1));

    editSField(BeaconFieldMask);

    return returnValue;
}
EditFieldHandlePtr TransformAnimatorBase::editHandleZRotationSequence(void)
{
    SFUnrecKeyframeNumberSequenceReal32Ptr::EditHandlePtr returnValue(
        new  SFUnrecKeyframeNumberSequenceReal32Ptr::EditHandle(
             &_sfZRotationSequence,
             this->getType().getFieldDesc(ZRotationSequenceFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&TransformAnimator::setZRotationSequence,
                    static_cast<TransformAnimator *>(this), _1));

    editSField(ZRotationSequenceFieldMask);

    return returnValue;
}
EditFieldHandlePtr ParticlesBase::editHandleNormals        (void)
{
    SFUnrecChildGeoVectorPropertyPtr::EditHandlePtr returnValue(
        new  SFUnrecChildGeoVectorPropertyPtr::EditHandle(
             &_sfNormals,
             this->getType().getFieldDesc(NormalsFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&Particles::setNormals,
                    static_cast<Particles *>(this), _1));

    editSField(NormalsFieldMask);

    return returnValue;
}
EditFieldHandlePtr CSMViewportBase::editHandleRoot           (void)
{
    SFUnrecNodePtr::EditHandlePtr returnValue(
        new  SFUnrecNodePtr::EditHandle(
             &_sfRoot,
             this->getType().getFieldDesc(RootFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&CSMViewport::setRoot,
                    static_cast<CSMViewport *>(this), _1));

    editSField(RootFieldMask);

    return returnValue;
}
EditFieldHandlePtr CSMViewportBase::editHandleBackground     (void)
{
    SFUnrecBackgroundPtr::EditHandlePtr returnValue(
        new  SFUnrecBackgroundPtr::EditHandle(
             &_sfBackground,
             this->getType().getFieldDesc(BackgroundFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&CSMViewport::setBackground,
                    static_cast<CSMViewport *>(this), _1));

    editSField(BackgroundFieldMask);

    return returnValue;
}
EditFieldHandlePtr AbstractDocumentBase::editHandleRootElement    (void)
{
    SFUnrecElementPtr::EditHandlePtr returnValue(
        new  SFUnrecElementPtr::EditHandle(
             &_sfRootElement,
             this->getType().getFieldDesc(RootElementFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&AbstractDocument::setRootElement,
                    static_cast<AbstractDocument *>(this), _1));

    editSField(RootElementFieldMask);

    return returnValue;
}
HardwareContextTaskTransitPtr HardwareContextTaskQueue::popTask(void)
{
    _pStoreSema->wait();

    _pStoreLock->acquire();

    OSG_ASSERT(_qTaskStore.size() != 0);

    HardwareContextTaskTransitPtr returnValue(_qTaskStore.front());

    _qTaskStore.pop_front();

    _pStoreLock->release();

    return returnValue;
}
EditFieldHandlePtr MaterialDrawableBase::editHandleMaterial       (void)
{
    SFUnrecMaterialPtr::EditHandlePtr returnValue(
        new  SFUnrecMaterialPtr::EditHandle(
             &_sfMaterial,
             this->getType().getFieldDesc(MaterialFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&MaterialDrawable::setMaterial,
                    static_cast<MaterialDrawable *>(this), _1));

    editSField(MaterialFieldMask);

    return returnValue;
}
EditFieldHandlePtr SkeletonDrawableBase::editHandleSkeleton       (void)
{
    SFUnrecSkeletonBlendedGeometryPtr::EditHandlePtr returnValue(
        new  SFUnrecSkeletonBlendedGeometryPtr::EditHandle(
             &_sfSkeleton,
             this->getType().getFieldDesc(SkeletonFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&SkeletonDrawable::setSkeleton,
                    static_cast<SkeletonDrawable *>(this), _1));

    editSField(SkeletonFieldMask);

    return returnValue;
}
EditFieldHandlePtr ProjectionCameraDecoratorBase::editHandleUser           (void)
{
    SFUnrecNodePtr::EditHandlePtr returnValue(
        new  SFUnrecNodePtr::EditHandle(
             &_sfUser,
             this->getType().getFieldDesc(UserFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&ProjectionCameraDecorator::setUser,
                    static_cast<ProjectionCameraDecorator *>(this), _1));

    editSField(UserFieldMask);

    return returnValue;
}
EditFieldHandlePtr GeoMultiPropertyBase::editHandleContainer      (void)
{
    SFUnrecGeoMultiPropertyDataPtr::EditHandlePtr returnValue(
        new  SFUnrecGeoMultiPropertyDataPtr::EditHandle(
             &_sfContainer,
             this->getType().getFieldDesc(ContainerFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&GeoMultiProperty::setContainer,
                    static_cast<GeoMultiProperty *>(this), _1));

    editSField(ContainerFieldMask);

    return returnValue;
}
EditFieldHandlePtr FBOViewportBase::editHandleFrameBufferObject(void)
{
    SFUnrecFrameBufferObjectPtr::EditHandlePtr returnValue(
        new  SFUnrecFrameBufferObjectPtr::EditHandle(
             &_sfFrameBufferObject,
             this->getType().getFieldDesc(FrameBufferObjectFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&FBOViewport::setFrameBufferObject,
                    static_cast<FBOViewport *>(this), _1));

    editSField(FrameBufferObjectFieldMask);

    return returnValue;
}
Exemple #13
0
EditFieldHandlePtr LightBase::editHandleLightEngine    (void)
{
    SFUnrecLightEnginePtr::EditHandlePtr returnValue(
        new  SFUnrecLightEnginePtr::EditHandle(
             &_sfLightEngine,
             this->getType().getFieldDesc(LightEngineFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&Light::setLightEngine,
                    static_cast<Light *>(this), _1));

    editSField(LightEngineFieldMask);

    return returnValue;
}
EditFieldHandlePtr RenderBufferBase::editHandleImage          (void)
{
    SFUnrecImagePtr::EditHandlePtr returnValue(
        new  SFUnrecImagePtr::EditHandle(
             &_sfImage,
             this->getType().getFieldDesc(ImageFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&RenderBuffer::setImage,
                    static_cast<RenderBuffer *>(this), _1));

    editSField(ImageFieldMask);

    return returnValue;
}
EditFieldHandlePtr GeometryBase::editHandleLengths        (void)
{
    SFUnrecChildGeoIntegralPropertyPtr::EditHandlePtr returnValue(
        new  SFUnrecChildGeoIntegralPropertyPtr::EditHandle(
             &_sfLengths,
             this->getType().getFieldDesc(LengthsFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&Geometry::setLengths,
                    static_cast<Geometry *>(this), _1));

    editSField(LengthsFieldMask);

    return returnValue;
}
EditFieldHandlePtr DisplayFilterStageDataBase::editHandleTarget         (void)
{
    SFUnrecFrameBufferObjectPtr::EditHandlePtr returnValue(
        new  SFUnrecFrameBufferObjectPtr::EditHandle(
             &_sfTarget,
             this->getType().getFieldDesc(TargetFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&DisplayFilterStageData::setTarget,
                    static_cast<DisplayFilterStageData *>(this), _1));

    editSField(TargetFieldMask);

    return returnValue;
}
EditFieldHandlePtr CameraDecoratorBase::editHandleBeacon         (void)
{
    SFWeakNodePtr::EditHandlePtr returnValue(
        new  SFWeakNodePtr::EditHandle(
             &_sfBeacon,
             this->getType().getFieldDesc(BeaconFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&CameraDecorator::setBeacon,
                    static_cast<CameraDecorator *>(this), _1));

    editSField(BeaconFieldMask);

    return returnValue;
}
EditFieldHandlePtr DisplayFilterStageDataBase::editHandleColorFilterTexture(void)
{
    SFUnrecTextureObjChunkPtr::EditHandlePtr returnValue(
        new  SFUnrecTextureObjChunkPtr::EditHandle(
             &_sfColorFilterTexture,
             this->getType().getFieldDesc(ColorFilterTextureFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&DisplayFilterStageData::setColorFilterTexture,
                    static_cast<DisplayFilterStageData *>(this), _1));

    editSField(ColorFilterTextureFieldMask);

    return returnValue;
}
EditFieldHandlePtr ComponentTreeModelBase::editHandleInternalRootComponent(void)
{
    SFUnrecComponentPtr::EditHandlePtr returnValue(
        new  SFUnrecComponentPtr::EditHandle(
             &_sfInternalRootComponent,
             this->getType().getFieldDesc(InternalRootComponentFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&ComponentTreeModel::setInternalRootComponent,
                    static_cast<ComponentTreeModel *>(this), _1));

    editSField(InternalRootComponentFieldMask);

    return returnValue;
}
EditFieldHandlePtr CSMDrawManagerBase::editHandleAppDrawer      (void)
{
    SFUnrecCSMDrawerPtr::EditHandlePtr returnValue(
        new  SFUnrecCSMDrawerPtr::EditHandle(
             &_sfAppDrawer,
             this->getType().getFieldDesc(AppDrawerFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&CSMDrawManager::setAppDrawer,
                    static_cast<CSMDrawManager *>(this), _1));

    editSField(AppDrawerFieldMask);

    return returnValue;
}
EditFieldHandlePtr FrameBufferObjectBase::editHandleStencilAttachment(void)
{
    SFUnrecFrameBufferAttachmentPtr::EditHandlePtr returnValue(
        new  SFUnrecFrameBufferAttachmentPtr::EditHandle(
             &_sfStencilAttachment,
             this->getType().getFieldDesc(StencilAttachmentFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&FrameBufferObject::setStencilAttachment,
                    static_cast<FrameBufferObject *>(this), _1));

    editSField(StencilAttachmentFieldMask);

    return returnValue;
}
Exemple #22
0
EditFieldHandlePtr WindowBase::editHandleRenderOptions  (void)
{
    SFUnrecRenderOptionsPtr::EditHandlePtr returnValue(
        new  SFUnrecRenderOptionsPtr::EditHandle(
             &_sfRenderOptions,
             this->getType().getFieldDesc(RenderOptionsFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&Window::setRenderOptions,
                    static_cast<Window *>(this), _1));

    editSField(RenderOptionsFieldMask);

    return returnValue;
}
EditFieldHandlePtr CSMViewportBase::editHandleCamera         (void)
{
    SFUnrecCameraPtr::EditHandlePtr returnValue(
        new  SFUnrecCameraPtr::EditHandle(
             &_sfCamera,
             this->getType().getFieldDesc(CameraFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&CSMViewport::setCamera,
                    static_cast<CSMViewport *>(this), _1));

    editSField(CameraFieldMask);

    return returnValue;
}
EditFieldHandlePtr ClusterWindowBase::editHandleComposer       (void)
{
    SFUnrecImageComposerPtr::EditHandlePtr returnValue(
        new  SFUnrecImageComposerPtr::EditHandle(
             &_sfComposer,
             this->getType().getFieldDesc(ComposerFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&ClusterWindow::setComposer,
                    static_cast<ClusterWindow *>(this), _1));

    editSField(ComposerFieldMask);

    return returnValue;
}
EditFieldHandlePtr CSMSceneParameterBase::editHandleSceneRef       (void)
{
    SFUnrecNodePtr::EditHandlePtr returnValue(
        new  SFUnrecNodePtr::EditHandle(
             &_sfSceneRef,
             this->getType().getFieldDesc(SceneRefFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&CSMSceneParameter::setSceneRef,
                    static_cast<CSMSceneParameter *>(this), _1));

    editSField(SceneRefFieldMask);

    return returnValue;
}
EditFieldHandlePtr FogStageDataBase::editHandleFogMaterial    (void)
{
    SFUnrecChunkMaterialPtr::EditHandlePtr returnValue(
        new  SFUnrecChunkMaterialPtr::EditHandle(
             &_sfFogMaterial,
             this->getType().getFieldDesc(FogMaterialFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&FogStageData::setFogMaterial,
                    static_cast<FogStageData *>(this), _1));

    editSField(FogMaterialFieldMask);

    return returnValue;
}
EditFieldHandlePtr TransformAnimatorBase::editHandleScaleSequence  (void)
{
    SFUnrecKeyframeVectorSequenceVec3fPtr::EditHandlePtr returnValue(
        new  SFUnrecKeyframeVectorSequenceVec3fPtr::EditHandle(
             &_sfScaleSequence,
             this->getType().getFieldDesc(ScaleSequenceFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&TransformAnimator::setScaleSequence,
                    static_cast<TransformAnimator *>(this), _1));

    editSField(ScaleSequenceFieldMask);

    return returnValue;
}
EditFieldHandlePtr FogStageDataBase::editHandleRenderTarget   (void)
{
    SFUnrecFrameBufferObjectPtr::EditHandlePtr returnValue(
        new  SFUnrecFrameBufferObjectPtr::EditHandle(
             &_sfRenderTarget,
             this->getType().getFieldDesc(RenderTargetFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&FogStageData::setRenderTarget,
                    static_cast<FogStageData *>(this), _1));

    editSField(RenderTargetFieldMask);

    return returnValue;
}
EditFieldHandlePtr TexGenChunkBase::editHandleQBeacon        (void)
{
    SFWeakNodePtr::EditHandlePtr returnValue(
        new  SFWeakNodePtr::EditHandle(
             &_sfQBeacon,
             this->getType().getFieldDesc(QBeaconFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&TexGenChunk::setQBeacon,
                    static_cast<TexGenChunk *>(this), _1));

    editSField(QBeaconFieldMask);

    return returnValue;
}
EditFieldHandlePtr ShadowBorderBase::editHandleInsideBorder   (void)
{
    SFUnrecBorderPtr::EditHandlePtr returnValue(
        new  SFUnrecBorderPtr::EditHandle(
             &_sfInsideBorder,
             this->getType().getFieldDesc(InsideBorderFieldId),
             this));

    returnValue->setSetMethod(
        boost::bind(&ShadowBorder::setInsideBorder,
                    static_cast<ShadowBorder *>(this), _1));

    editSField(InsideBorderFieldMask);

    return returnValue;
}