CustusX  2023.01.05-dev+develop.0da12
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_
int brx
Definition: cxFrame.h:38
int mImagingDepth
Definition: cxFrame.h:43
double mTimestamp
Timestamp in seconds since 1/1/1970 (epoch)
Definition: cxFrame.h:27
Frame()
Definition: cxFrame.h:46
int mHeight
Height in pixels.
Definition: cxFrame.h:29
std::string probeName
Definition: cxFrame.h:42
int bry
Definition: cxFrame.h:39
int urx
Definition: cxFrame.h:36
int mSectorSizeInPercent
Definition: cxFrame.h:44
int blx
Definition: cxFrame.h:40
int ulx
Definition: cxFrame.h:34
int bly
Definition: cxFrame.h:41
int mWidth
Width in pixels.
Definition: cxFrame.h:28
int uly
Definition: cxFrame.h:35
int mPixelFormat
Pixel format in OSType (FourCC)
Definition: cxFrame.h:30
int ury
Definition: cxFrame.h:37
unsigned char * mFirstPixel
Pointer to first pixel in frame.
Definition: cxFrame.h:31
bool mNewStatus
Definition: cxFrame.h:26
Namespace for all CustusX production code.