VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtVreVideoStream Class Reference

Detailed Description

DtVreVideoStream extends the base DtVideoStream class to fix a bug where closing any channel would break the stopping of video streams. This class overrides the channel destruction handling to ensure that video streams are properly stopped only when their associated channel is destroyed, not when any arbitrary channel is destroyed.

#include <vreVideoStream.h>

Inheritance diagram for makVre::DtVreVideoStream:
[legend]

Public Member Functions

virtual ~DtVreVideoStream () override
 

Protected Member Functions

 DtVreVideoStream (makVrv::DtDe &de, makVrv::DtVideoStreamManager &mgr, const makVrv::DtUnicode &className, const makVrv::DtUnicode &instanceName)
 
virtual void slot_channelToBeDestroyed (makVrv::DtChannelManager *mgr, makVrv::DtChannel *channel) override
 

Private Member Functions

 DtVreVideoStream ()
 
 DtVreVideoStream (const DtVreVideoStream &rhs)
 
DtVreVideoStreamoperator= (const DtVreVideoStream &rhs)
 

Friends

class DtVreVideoStreamCreator
 
class DtVideoStreamManager
 

Constructor & Destructor Documentation

◆ ~DtVreVideoStream()

virtual makVre::DtVreVideoStream::~DtVreVideoStream ( )
overridevirtual

Destructor.

Cleans up resources used by the video stream.

◆ DtVreVideoStream() [1/3]

makVre::DtVreVideoStream::DtVreVideoStream ( makVrv::DtDe & de,
makVrv::DtVideoStreamManager & mgr,
const makVrv::DtUnicode & className,
const makVrv::DtUnicode & instanceName )
protected

Protected constructor.

Parameters
deReference to the display engine
mgrReference to the video stream manager
classNameClass name of the video stream
instanceNameUnique instance name for this video stream

Creates a new video stream with the specified parameters. This constructor is protected and can only be called by the friend DtVreVideoStreamCreator class. The instance name must be unique among all video streams.

References de().

Referenced by DtVreVideoStream(), and operator=().

◆ DtVreVideoStream() [2/3]

makVre::DtVreVideoStream::DtVreVideoStream ( )
private

Default constructor (deleted)

Default construction is not supported for this class.

◆ DtVreVideoStream() [3/3]

makVre::DtVreVideoStream::DtVreVideoStream ( const DtVreVideoStream & rhs)
private

Copy constructor (deleted)

Copy construction is not supported for this class.

References DtVreVideoStream().

Member Function Documentation

◆ slot_channelToBeDestroyed()

virtual void makVre::DtVreVideoStream::slot_channelToBeDestroyed ( makVrv::DtChannelManager * mgr,
makVrv::DtChannel * channel )
overrideprotectedvirtual

Channel destruction handler.

Parameters
mgrPointer to the channel manager
channelPointer to the channel being destroyed

Overridden from the base class to fix a bug where closing any channel would break video stream stopping. This implementation checks that the channel being destroyed is actually the one associated with this video stream before taking action.

◆ operator=()

DtVreVideoStream & makVre::DtVreVideoStream::operator= ( const DtVreVideoStream & rhs)
private

Assignment operator (deleted)

Assignment is not supported for this class.

References DtVreVideoStream().

Friends And Related Symbol Documentation

◆ DtVreVideoStreamCreator

friend class DtVreVideoStreamCreator
friend

Friend declaration for creator class.

Only DtVreVideoStreamCreator can construct a DtVideoStream.

References DtVreVideoStreamCreator.

Referenced by DtVreVideoStreamCreator.

◆ DtVideoStreamManager

friend class DtVideoStreamManager
friend

Friend declaration for manager class.

Only DtVideoStreamManager can save a videoStream.

References DtVideoStreamManager.

Referenced by DtVideoStreamManager.


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