The base class for all Qt3D backend nodes. 更多...
头: | #include <Qt3DCore/QBackendNode> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS 3DCore)
target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
qmake: | QT += 3dcore |
enum | Mode { ReadOnly, ReadWrite } |
bool | isEnabled () const |
Qt3DCore::QBackendNode::Mode | mode () const |
Qt3DCore::QNodeId | peerId () const |
void | setEnabled (bool enabled ) |
virtual void | syncFromFrontEnd (const Qt3DCore::QNode * frontEnd , bool firstTime ) |
The mode for the backend node.
常量 | 值 |
---|---|
Qt3DCore::QBackendNode::ReadOnly
|
0
|
Qt3DCore::QBackendNode::ReadWrite
|
1
|
[noexcept]
bool
QBackendNode::
isEnabled
() const
返回
true
if the backend node is enabled.
[noexcept]
Qt3DCore::QBackendNode::Mode
QBackendNode::
mode
() const
Returns the mode of the backend mode.
[noexcept]
Qt3DCore::QNodeId
QBackendNode::
peerId
() const
Returns the peer id of the backend node.
[noexcept]
void
QBackendNode::
setEnabled
(
bool
enabled
)
Enables or disables the backend node by enabled .
另请参阅 isEnabled ().
[虚拟]
void
QBackendNode::
syncFromFrontEnd
(const
Qt3DCore::QNode
*
frontEnd
,
bool
firstTime
)
QBackendNode::syncFromFrontEnd frontEnd firstTime
This is called by the aspect when a frontEnd node needs to synchronize it's changes with the backend (normally due to property changes).
firstTime will be true if the backend node was just created