VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtTransformFrameTaskElement.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 namespace makVrv
17 {
18  class DtVideoFrameBuffer;
19 
25  : public DtImageTaskElement
26  {
27  public:
31 
33  virtual ~DtTransformFrameTaskElement();
34 
36  virtual bool shouldFlipVertically() const;
37 
39  virtual void setShouldFlipVertically( bool flip );
40 
42  virtual bool shouldFlipHorizontally() const;
43 
45  virtual void setShouldFlipHorizontally( bool flip );
46 
48  virtual bool shouldScale() const;
49 
51  virtual void setShouldScale( bool scale );
52 
54  virtual int scaleX() const;
55 
57  virtual void setScaleX( int scaleX );
58 
60  virtual int scaleY() const;
61 
63  virtual void setScaleY( int scaleY );
64 
66  virtual bool shouldResample() const;
67 
69  virtual void setShouldResample( bool resample );
70 
72  virtual int bitsPerPixel() const;
73 
75  virtual void setBitsPerPixel( int bpp );
76 
78  virtual void setShouldRotate( bool rotate );
79 
81  virtual bool shouldRotate() const;
82 
84  virtual void setRotationAngle(float degrees);
85 
87  virtual float rotationAngle() const;
88 
90  void setFromRecord( const makArchives::DtImageTaskRecord& config );
91 
92  protected:
95 
97  void handleProcessFrame(DtVideoFrameBuffer* frame);
98 
99  private:
102 
105 
107  DtTransformFrameTaskElement& operator=(
108  const DtTransformFrameTaskElement& rhs );
109 
110  protected:
111 
117 
118  int myScaleX;
119  int myScaleY;
122  };
123 
130  {
131  public:
133  friend class DtVideoStreamManager;
134 
137 
140 
141  protected:
143  virtual DtImageTaskElement* create( DtDe& de,
144  DtProcessImageTask* owningTask );
145  };
146 }
int myScaleX
Definition: DtTransformFrameTaskElement.h:118
float myRotateAngle
Definition: DtTransformFrameTaskElement.h:121
Record for a sensor definition.
Definition: DtImageTaskRecord.h:20
#define DT_DLL_VRVVIDEOSTREAM
Definition: vrvVideoStream.h:20
bool myShouldResample
Definition: DtTransformFrameTaskElement.h:115
int myScaleY
Definition: DtTransformFrameTaskElement.h:119
bool myShouldFlipHorizontally
Definition: DtTransformFrameTaskElement.h:113
bool myShouldFlipVertically
Definition: DtTransformFrameTaskElement.h:112
A DtTransformFrameTaskElement instance will create a pipeline element that can flip, scale, and/or resample the image being streamed.
Definition: DtTransformFrameTaskElement.h:24
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
bool myShouldRotate
Definition: DtTransformFrameTaskElement.h:116
bool myShouldScale
Definition: DtTransformFrameTaskElement.h:114
A DtTransformFrameTaskElementCreator instance is registered with the image task element factory to cr...
Definition: DtTransformFrameTaskElement.h:128
DtImageTaskElementCreator is the common base class for all image task element creators.
Definition: DtImageTaskElement.h:95
int myBitsPerPixel
Definition: DtTransformFrameTaskElement.h:120
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
Contains DLL export macros.
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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)