[−][src]Struct qt_3d_render::QLayer
The QLayer class provides a way of filtering which entities will be rendered.
C++ class: Qt3DRender::QLayer
.
The QLayer class provides a way of filtering which entities will be rendered.
Qt3DRender::QLayer works in conjunction with the Qt3DRender::QLayerFilter in the FrameGraph.
Qt3DRender::QLayer doesn't define any new properties but is supposed to only be referenced.
#include <Qt3DCore/QEntity> #include <Qt3DRender/QGeometryRenderer> #include <Qt3DRender/QLayer> #include <Qt3DRender/QLayerFilter> #include <Qt3DRender/QViewport>
// Scene Qt3DCore::QEntity *rootEntity = new Qt3DCore::Qt3DCore::QEntity;
Qt3DCore::QEntity renderableEntity = new Qt3DCore::Qt3DCore::QEntity(rootEntity); Qt3DRender::QGeometryRenderer geometryRenderer = new Qt3DCore::QGeometryRenderer(renderableEntity); Qt3DRender::QLayer *layer1 = new Qt3DCore::QLayer(renderableEntity); renderableEntity->addComponent(geometryRenderer); renderableEntity->addComponent(layer1);
...
// FrameGraph Qt3DRender::QViewport viewport = new Qt3DRender::QViewport; Qt3DRender::QLayerFilter layerFilter = new Qt3DRender::QLayerFilter(viewport); layerFilter->addLayer(layer1);
...
Methods
impl QLayer
[src]
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DRender::QLayer::metaObject() const
.
pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QLayer>
[src]
Constructs a new QLayer with the specified parent.
Calls C++ function: [constructor] void Qt3DRender::QLayer::QLayer(Qt3DCore::QNode* parent = …)
.
Constructs a new QLayer with the specified parent.
pub unsafe fn new_0a() -> QBox<QLayer>
[src]
The QLayer class provides a way of filtering which entities will be rendered.
Calls C++ function: [constructor] void Qt3DRender::QLayer::QLayer()
.
The QLayer class provides a way of filtering which entities will be rendered.
Qt3DRender::QLayer works in conjunction with the Qt3DRender::QLayerFilter in the FrameGraph.
Qt3DRender::QLayer doesn't define any new properties but is supposed to only be referenced.
#include <Qt3DCore/QEntity> #include <Qt3DRender/QGeometryRenderer> #include <Qt3DRender/QLayer> #include <Qt3DRender/QLayerFilter> #include <Qt3DRender/QViewport>
// Scene Qt3DCore::QEntity *rootEntity = new Qt3DCore::Qt3DCore::QEntity;
Qt3DCore::QEntity renderableEntity = new Qt3DCore::Qt3DCore::QEntity(rootEntity); Qt3DRender::QGeometryRenderer geometryRenderer = new Qt3DCore::QGeometryRenderer(renderableEntity); Qt3DRender::QLayer *layer1 = new Qt3DCore::QLayer(renderableEntity); renderableEntity->addComponent(geometryRenderer); renderableEntity->addComponent(layer1);
...
// FrameGraph Qt3DRender::QViewport viewport = new Qt3DRender::QViewport; Qt3DRender::QLayerFilter layerFilter = new Qt3DRender::QLayerFilter(viewport); layerFilter->addLayer(layer1);
...
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
Calls C++ function: virtual int Qt3DRender::QLayer::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
Calls C++ function: virtual void* Qt3DRender::QLayer::qt_metacast(const char* arg1)
.
pub unsafe fn recursive(&self) -> bool
[src]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Specifies if the layer is also applied to the entity subtree.
Calls C++ function: bool Qt3DRender::QLayer::recursive() const
.
Specifies if the layer is also applied to the entity subtree.
Access functions:
bool | recursive() const |
void | setRecursive(bool recursive) |
Notifier signal:
void | recursiveChanged() |
pub unsafe fn recursive_changed(&self)
[src]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Specifies if the layer is also applied to the entity subtree.
Calls C++ function: void Qt3DRender::QLayer::recursiveChanged()
.
Specifies if the layer is also applied to the entity subtree.
Access functions:
bool | recursive() const |
void | setRecursive(bool recursive) |
Notifier signal:
void | recursiveChanged() |
pub unsafe fn set_recursive(&self, recursive: bool)
[src]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Specifies if the layer is also applied to the entity subtree.
Calls C++ function: void Qt3DRender::QLayer::setRecursive(bool recursive)
.
Specifies if the layer is also applied to the entity subtree.
Access functions:
bool | recursive() const |
void | setRecursive(bool recursive) |
Notifier signal:
void | recursiveChanged() |
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
Returns a reference to the staticMetaObject
field.
pub unsafe fn tr(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DRender::QLayer::tr(const char* s, const char* c, int n)
.
pub unsafe fn tr_utf8(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DRender::QLayer::trUtf8(const char* s, const char* c, int n)
.
Trait Implementations
impl CppDeletable for QLayer
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void Qt3DRender::QLayer::~QLayer()
.
impl Deref for QLayer
[src]
type Target = QComponent
The resulting type after dereferencing.
fn deref(&self) -> &QComponent
[src]
Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DRender::QLayer* ptr)
.
impl DynamicCast<QLayer> for QComponent
[src]
unsafe fn dynamic_cast(ptr: Ptr<QComponent>) -> Ptr<QLayer>
[src]
Calls C++ function: Qt3DRender::QLayer* dynamic_cast<Qt3DRender::QLayer*>(Qt3DCore::QComponent* ptr)
.
impl DynamicCast<QLayer> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QLayer>
[src]
Calls C++ function: Qt3DRender::QLayer* dynamic_cast<Qt3DRender::QLayer*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QLayer> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QLayer>
[src]
Calls C++ function: Qt3DRender::QLayer* dynamic_cast<Qt3DRender::QLayer*>(QObject* ptr)
.
impl StaticDowncast<QLayer> for QComponent
[src]
unsafe fn static_downcast(ptr: Ptr<QComponent>) -> Ptr<QLayer>
[src]
Calls C++ function: Qt3DRender::QLayer* static_cast<Qt3DRender::QLayer*>(Qt3DCore::QComponent* ptr)
.
impl StaticDowncast<QLayer> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QLayer>
[src]
Calls C++ function: Qt3DRender::QLayer* static_cast<Qt3DRender::QLayer*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QLayer> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QLayer>
[src]
Calls C++ function: Qt3DRender::QLayer* static_cast<Qt3DRender::QLayer*>(QObject* ptr)
.
impl StaticUpcast<QComponent> for QLayer
[src]
unsafe fn static_upcast(ptr: Ptr<QLayer>) -> Ptr<QComponent>
[src]
Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DRender::QLayer* ptr)
.
impl StaticUpcast<QNode> for QLayer
[src]
unsafe fn static_upcast(ptr: Ptr<QLayer>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QLayer* ptr)
.
impl StaticUpcast<QObject> for QLayer
[src]
Auto Trait Implementations
impl RefUnwindSafe for QLayer
impl Send for QLayer
impl Sync for QLayer
impl Unpin for QLayer
impl UnwindSafe for QLayer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,