/**************************************************************************** ** ** Copyright (C) 2018 Klaralvdalens Datakonsult AB (KDAB). ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt3D module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:COMM$ ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** $QT_END_LICENSE$ ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ****************************************************************************/ #include #ifndef QT3DRENDER_QSETFENCE_H #define QT3DRENDER_QSETFENCE_H QT_BEGIN_NAMESPACE namespace Qt3DRender { class QSetFencePrivate; class Q_3DRENDERSHARED_EXPORT QSetFence : public QFrameGraphNode { Q_OBJECT Q_PROPERTY(HandleType handleType READ handleType NOTIFY handleTypeChanged) Q_PROPERTY(QVariant handle READ handle NOTIFY handleChanged) public: enum HandleType { NoHandle, OpenGLFenceId }; Q_ENUM(HandleType) // LCOV_EXCL_LINE explicit QSetFence(Qt3DCore::QNode *parent = nullptr); ~QSetFence(); HandleType handleType() const; QVariant handle() const; Q_SIGNALS: void handleTypeChanged(HandleType handleType); void handleChanged(QVariant handle); protected: explicit QSetFence(QSetFencePrivate &dd, Qt3DCore::QNode *parent = nullptr); void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change) override; private: Q_DECLARE_PRIVATE(QSetFence) Qt3DCore::QNodeCreatedChangeBasePtr createNodeCreationChange() const override; }; } // Qt3DRender QT_END_NAMESPACE #endif // QT3DRENDER_QSETFENCE_H