|
VR-Engage
2.2
|
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>
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) | |
| DtVreVideoStream & | operator= (const DtVreVideoStream &rhs) |
Friends | |
| class | DtVreVideoStreamCreator |
| class | DtVideoStreamManager |
|
overridevirtual |
Destructor.
Cleans up resources used by the video stream.
|
protected |
Protected constructor.
| de | Reference to the display engine |
| mgr | Reference to the video stream manager |
| className | Class name of the video stream |
| instanceName | Unique 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=().
|
private |
Default constructor (deleted)
Default construction is not supported for this class.
|
private |
Copy constructor (deleted)
Copy construction is not supported for this class.
References DtVreVideoStream().
|
overrideprotectedvirtual |
Channel destruction handler.
| mgr | Pointer to the channel manager |
| channel | Pointer 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.
|
private |
Assignment operator (deleted)
Assignment is not supported for this class.
References DtVreVideoStream().
|
friend |
Friend declaration for creator class.
Only DtVreVideoStreamCreator can construct a DtVideoStream.
References DtVreVideoStreamCreator.
Referenced by DtVreVideoStreamCreator.
|
friend |
Friend declaration for manager class.
Only DtVideoStreamManager can save a videoStream.
References DtVideoStreamManager.
Referenced by DtVideoStreamManager.