VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWebSocketTaskElement.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 
15 
16 #include <string>
17 
18 struct libwebsocket_context;
19 
20 namespace makVrv
21 {
27  : public DtImageTaskElement
28  {
29  public:
33 
34  virtual ~DtWebSocketTaskElement();
35 
37  virtual void setFromRecord( const makArchives::DtImageTaskRecord& config );
38 
40  virtual bool configure();
41 
42  DtLocklessQueue<std::string>& queue() {return *myCommandQueue;}
43 
44  protected:
47 
48  void handlePreFrame();
49 
50  void handleProcessFrame(DtVideoFrameBuffer* frame);
51 
52  bool generateAndWriteHtml();
53 
54  protected:
55  libwebsocket_context* myContext;
57  int myPort;
58  };
59 
66  {
67  public:
69  friend class DtVideoStreamManager;
70 
73 
76 
77  protected:
79  virtual DtImageTaskElement* create( DtDe& de, DtProcessImageTask* owningTask );
80  };
81 }
int myPort
Definition: DtWebSocketTaskElement.h:57
libwebsocket_context * myContext
Definition: DtWebSocketTaskElement.h:55
DtLocklessQueue< std::string > * myCommandQueue
Definition: DtWebSocketTaskElement.h:56
Contains DLL export macros.
Record for a sensor definition.
Definition: DtImageTaskRecord.h:20
#define DT_DLL_VRVWEBSOCKET
Definition: vrvWebSocket.h:20
A DtWebSocketTaskElementCreator instance is registered with the image task element factory to create ...
Definition: DtWebSocketTaskElement.h:64
DtVideoStreamManager is a singleton class that manages DtVideoStreams in VR-Vantage.
Definition: DtVideoStreamManager.h:35
The DtImageTaskElement is an abstract base class for all image task elements. It defines the common i...
Definition: DtImageTaskElement.h:25
A DtWebSocketTaskElement instance will create a pipeline element that can listen for an web connectio...
Definition: DtWebSocketTaskElement.h:26
DtImageTaskElementCreator is the common base class for all image task element creators.
Definition: DtImageTaskElement.h:95
DtProcessImageTask creates and manages all the process image pipeline elements.
Definition: DtProcessImageTask.h:35
Contains declarations needed to initialize the freeImage library.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
DtLocklessQueue< std::string > & queue()
Definition: DtWebSocketTaskElement.h:42
The image as initially captured from the camera is placed into a DtVideoFrameBuffer. Instances of DtVideoFrameBuffer are placed on a queue for further processing by the process image task elements.
Definition: DtVideoFrameBuffer.h:20

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)