Filter Library Camera Interface Physics

ToolCilRectangle.h

00001 /*
00002  * ToolCilRectangle.h - convert CRect to rectangle CIL type.
00003  *
00004  * This file is part of the Camera Filter Library.
00005  * Computer Aided Measurement Environment for Realtime Atomic imaging (Camera)
00006  *
00007  * Copyright (C) 2004-2005, Leiden Probe Microscopy.
00008  * Copyright (C) 2004-2005, Universiteit Leiden.
00009  *
00010  * Authors: Martin J. Moene (original)
00011  *
00012  * $Id: ToolCilRectangle.h 202 2005-05-12 11:00:48Z moene $
00013  */
00014 
00015 #ifndef CFL_TOOLCILRECTANGLE_H
00016 #define CFL_TOOLCILRECTANGLE_H
00017 
00018 #include <cil/Rectangle.h>              // for class cil::rectangle
00019 
00020 #if _MSC_VER > 1000
00021 #pragma once
00022 #endif // _MSC_VER > 1000
00023 
00024 /**
00025  * ScanBaseBuffer Channel conversion shim.
00026  */
00027 
00028 inline cil::rectangle to_rectangle( const CRect& rcArea )
00029 {
00030    return cil::rectangle( rcArea.left, rcArea.top, rcArea.right, rcArea.bottom );
00031 }
00032 
00033 #endif // #ifndef CFL_TOOLCILRECTANGLE_H
00034 
00035 /*
00036  * end of file
00037  */
00038 

Camera Filter Library documentation © 2004-2007 by Leiden Probe Microscopy