Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryGeometry.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 
18 #ifndef BERRYGEOMETRY_H_
19 #define BERRYGEOMETRY_H_
20 
22 
23 class QRect;
24 class QPoint;
25 class QWidget;
26 
27 namespace berry {
28 
30 {
31 
40  static int GetDimension(const QRect& toMeasure, bool width);
41 
51  static bool IsHorizontal(int berrySideConstant);
52 
66  static QRect GetExtrudedEdge(const QRect& toExtrude, int size,
67  int orientation);
68 
77  static void Normalize(QRect& rect);
78 
89  static int GetClosestSide(const QRect& boundary, const QPoint& toTest);
90 
101  static int GetDistanceFromEdge(const QRect& rectangle, const QPoint& testPoint,
102  int edgeOfInterest);
103 
112  static int GetOppositeSide(int directionConstant);
113 
123  static QRect ToControl(QWidget* coordinateSystem,
124  const QRect& toConvert);
125 
135  static QPoint ToControl(QWidget* coordinateSystem,
136  const QPoint& toConvert);
137 
147  static QRect ToDisplay(QWidget* coordinateSystem,
148  const QRect& toConvert);
149 
159  static QPoint ToDisplay(QWidget* coordinateSystem,
160  const QPoint& toConvert);
161 
162 };
163 
164 }
165 
166 #endif /* BERRYGEOMETRY_H_ */
void Normalize(itk::Image< TPixel, VImageDimension > *itkImage, mitk::Image::Pointer im2, mitk::Image::Pointer mask1, std::string output)
Definition: CLBrainMask.cpp:40
#define BERRY_UI_QT