NorMIT-nav  22.09
An IGT application
cxFrame.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXFRAME_H_
13 #define CXFRAME_H_
14 
15 #include "cxGrabberExport.h"
16 
17 namespace cx
18 {
19 
23 class cxGrabber_EXPORT Frame
24 {
25 public:
26  bool mNewStatus;
27  double mTimestamp;
28  int mWidth;
29  int mHeight;
31  unsigned char* mFirstPixel;
32  double mSpacing[2];
33  float mOrigin[2];
34  int ulx;
35  int uly;
36  int urx;
37  int ury;
38  int brx;
39  int bry;
40  int blx;
41  int bly;
42  std::string probeName;
43  int mImagingDepth; //Imaging depth in mm
44  int mSectorSizeInPercent; //Size of sector in percent compared to full
45 
46  Frame():
47  mNewStatus(false),
48  mTimestamp(0.0),
49  mWidth(0),
50  mHeight(0),
51  mPixelFormat(0),
52  mFirstPixel(NULL),
53  mSpacing(),
54  mOrigin(),
55  ulx(0),
56  uly(0),
57  urx(0),
58  ury(0),
59  brx(0),
60  bry(0),
61  blx(0),
62  bly(0),
63  mImagingDepth(0),
64  mSectorSizeInPercent(0) {}
65 };
66 }//namespace cx
67 
68 #endif //CXFRAME_H_
cx::Frame::ury
int ury
Definition: cxFrame.h:37
cx::Frame::mTimestamp
double mTimestamp
Timestamp in seconds since 1/1/1970 (epoch)
Definition: cxFrame.h:27
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cx::Frame
Definition: cxFrame.h:23
cx::Frame::probeName
std::string probeName
Definition: cxFrame.h:42
cx::Frame::bly
int bly
Definition: cxFrame.h:41
cx::Frame::bry
int bry
Definition: cxFrame.h:39
cx::Frame::uly
int uly
Definition: cxFrame.h:35
cx::Frame::mImagingDepth
int mImagingDepth
Definition: cxFrame.h:43
cx::Frame::mWidth
int mWidth
Width in pixels.
Definition: cxFrame.h:28
cx::Frame::mFirstPixel
unsigned char * mFirstPixel
Pointer to first pixel in frame.
Definition: cxFrame.h:31
cx::Frame::mHeight
int mHeight
Height in pixels.
Definition: cxFrame.h:29
cx::Frame::blx
int blx
Definition: cxFrame.h:40
cx::Frame::mSectorSizeInPercent
int mSectorSizeInPercent
Definition: cxFrame.h:44
cx::Frame::mNewStatus
bool mNewStatus
Definition: cxFrame.h:26
cx::Frame::urx
int urx
Definition: cxFrame.h:36
cx::Frame::brx
int brx
Definition: cxFrame.h:38
cx::Frame::ulx
int ulx
Definition: cxFrame.h:34
cx::Frame::mPixelFormat
int mPixelFormat
Pixel format in OSType (FourCC)
Definition: cxFrame.h:30
cx::Frame::Frame
Frame()
Definition: cxFrame.h:46