Kanzi Connect 3.9.10
kanzi::connect::ReceiverNode3D Class Reference

ReceiverNode3D provides the implementation to render a virtual stream. More...

#include <receiver_node3d.hpp>

Inheritance diagram for kanzi::connect::ReceiverNode3D:
kanzi::connect::ReceiverNodeConceptImpl< Node3D, ReceiverNode3D > kanzi::connect::ReceiverNodeConcept

Static Public Member Functions

static ReceiverNode3DSharedPtr create (Domain *domain, string_view name)
 Creates a ReceiverNode3D node.
 
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 
- Static Public Member Functions inherited from kanzi::connect::ReceiverNodeConceptImpl< Node3D, ReceiverNode3D >
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 
- Static Public Member Functions inherited from kanzi::connect::ReceiverNodeConcept
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 

Protected Member Functions

void arrangeOverride (Vector3 actualSize) override
 kanzi::Node3D::arrangeOverride() implementation.
 
optional< Vector2 > calculateNormalizedTouchPoint (InputManipulator::InputMessageArguments &args)
 Calculates the touch point in normalized stream coordinates, where (0, 0) is top left of the stream and (1, 1) is bottom right.
 
const RenderEntryParameterContainer * generateRenderStatesOverride (DrawObjectsRenderPass &drawPass) override
 kanzi::Node3D::generateRenderStatesOverride() implementation.
 
optional< Box > getBoundingBox () const override
 kanzi::Node3D::getBoundingBox() implementation.
 
Vector3 measureOverride (Vector3 availableSize) override
 kanzi::Node3D::measureOverride() implementation.
 
void onDetached () override
 kanzi::Node::onDetached() implementation.
 
 ReceiverNode3D (Domain *domain, string_view name)
 Constructor.
 
void registerDrawPassOverride (DrawObjectsRenderPassSharedPtr drawPass) override
 kanzi::Node3D::registerDrawPassOverride() implementation.
 
- Protected Member Functions inherited from kanzi::connect::ReceiverNodeConceptImpl< Node3D, ReceiverNode3D >
void onAttached () override
 kanzi::Node::onAttached() implementation.
 
void onDetached () override
 kanzi::Node::onDetached() implementation.
 
void onNodePropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) override
 kanzi::Node::onPropertyChanged implementation.
 
 ReceiverNodeConceptImpl (Domain *domain, string_view name)
 Constructor.
 
void updateTexturesTask (PixelFrameWeakPtr frame)
 Handler for kanzi::PanManipulator::StartedMessage.
 

Protected Attributes

friend ConceptClass
 
- Protected Attributes inherited from kanzi::connect::ReceiverNodeConceptImpl< Node3D, ReceiverNode3D >
MaterialBrushSharedPtr m_brush
 The brush to render the material.
 
MaterialSharedPtr m_material
 Disable these to favor connect input service Default value for kanzi::Node::HitTestableProperty.
 
TextureSharedPtr m_uTexture
 The texture that contains the u-channel of the frame.
 
TextureSharedPtr m_vTexture
 The texture that contains the v-channel of the frame.
 
TextureSharedPtr m_yTexture
 The texture that contains the y-channel of the frame.
 

Additional Inherited Members

- Public Member Functions inherited from kanzi::connect::ReceiverNodeConceptImpl< Node3D, ReceiverNode3D >
string getStreamId () const
 Returns the value of the StreamIdProperty.
 
void initialize ()
 ReceiverNodeConceptImpl specific initialization.
 
void initializeStreamManager (size_t delay)
 
void onFrame (PixelFrameSharedPtr frame)
 Processes frames that are received through a PeerConnection.
 
void setStreamId (const string &streamId)
 Sets the value of the StreamIdProperty.
 
- Static Public Attributes inherited from kanzi::connect::ReceiverNodeConcept
static PropertyType< bool > IsOutputLinearProperty
 Indicates whether the output of the YUV to RGB shader is linear.
 
static PropertyType< string > StreamIdProperty
 Contains the stream ID that the ReceiverNode is configured to receive.
 
static PropertyType< string > StreamTypeProperty
 User defined type for the stream that the StreamingComponent will produce.
 
static PropertyType< ResourceSharedPtruTextureProperty
 Contains the U component texture for the ReceiverNode material.
 
static PropertyType< ResourceSharedPtrvTextureProperty
 Contains the V component texture for the ReceiverNode material.
 
static PropertyType< ResourceSharedPtryTextureProperty
 Contains the Y component texture for the ReceiverNode material.
 
- Protected Types inherited from kanzi::connect::ReceiverNodeConceptImpl< Node3D, ReceiverNode3D >
enum  OutputTextureIndex
 

Detailed Description

ReceiverNode3D provides the implementation to render a virtual stream.

ReceiverNode3D can only be accessed from the Kanzi thread unless otherwise noted.

See also
For 2D receiver, see ReceiverNode2D.

Constructor & Destructor Documentation

◆ ReceiverNode3D()

kanzi::connect::ReceiverNode3D::ReceiverNode3D ( Domain * domain,
string_view name )
explicitprotected

Constructor.

Member Function Documentation

◆ arrangeOverride()

void kanzi::connect::ReceiverNode3D::arrangeOverride ( Vector3 actualSize)
overrideprotected

kanzi::Node3D::arrangeOverride() implementation.

◆ calculateNormalizedTouchPoint()

optional< Vector2 > kanzi::connect::ReceiverNode3D::calculateNormalizedTouchPoint ( InputManipulator::InputMessageArguments & args)
protected

Calculates the touch point in normalized stream coordinates, where (0, 0) is top left of the stream and (1, 1) is bottom right.

Parameters
argsArguments of an input message.
Returns
Normalized touch point if it was successfully calculated, nullopt otherwise.

◆ create()

static ReceiverNode3DSharedPtr kanzi::connect::ReceiverNode3D::create ( Domain * domain,
string_view name )
static

Creates a ReceiverNode3D node.

Parameters
domainThe UI domain to which the node belongs.
nameThe name of the node.
Returns
The created node.

◆ generateRenderStatesOverride()

const RenderEntryParameterContainer * kanzi::connect::ReceiverNode3D::generateRenderStatesOverride ( DrawObjectsRenderPass & drawPass)
overrideprotected

kanzi::Node3D::generateRenderStatesOverride() implementation.

◆ getBoundingBox()

optional< Box > kanzi::connect::ReceiverNode3D::getBoundingBox ( ) const
overrideprotected

kanzi::Node3D::getBoundingBox() implementation.

◆ makeEditorInfo()

static PropertyTypeEditorInfoSharedPtr kanzi::connect::ReceiverNode3D::makeEditorInfo ( )
static

◆ measureOverride()

Vector3 kanzi::connect::ReceiverNode3D::measureOverride ( Vector3 availableSize)
overrideprotected

kanzi::Node3D::measureOverride() implementation.

◆ onDetached()

void kanzi::connect::ReceiverNode3D::onDetached ( )
overrideprotected

kanzi::Node::onDetached() implementation.

◆ registerDrawPassOverride()

void kanzi::connect::ReceiverNode3D::registerDrawPassOverride ( DrawObjectsRenderPassSharedPtr drawPass)
overrideprotected

kanzi::Node3D::registerDrawPassOverride() implementation.

Member Data Documentation

◆ ConceptClass


The documentation for this class was generated from the following file: