/usr/include/ossim/base/ossimROIEvent.h is in libossim-dev 2.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | //----------------------------------------------------------------------------
//
// License: See top level LICENSE.txt file.
//
// Author: Scott Bortman
//
// Description: Region Of Interest (ROI) Event
//
// $Id: ossimROIEvent.h 9094 2006-06-13 19:12:40Z dburken $
//----------------------------------------------------------------------------
#ifndef ossimROIEvent_HEADER
#define ossimROIEvent_HEADER
#include <ossim/base/ossimEvent.h>
#include <ossim/base/ossimIpt.h>
#include <vector>
class ossimPolygon;
class ossimPolyLine;
class ossimIrect;
class OSSIMDLLEXPORT ossimROIEvent : public ossimEvent
{
public:
ossimROIEvent( ossimObject* object=NULL,
long id=OSSIM_EVENT_NULL_ID );
ossimROIEvent( const ossimROIEvent& rhs );
virtual ossimObject* dup() const;
enum ossimRegionType
{
OSSIM_RECTANGLE_ROI = 0,
OSSIM_POLYGON_ROI = 1,
OSSIM_POLYLINE_ROI = 2
};
const std::vector<ossimIpt>& getPoints()const;
void getPoint(std::vector<ossimIpt>& points)const ;
void setPoints( const std::vector<ossimIpt>& points );
void setRect(const ossimIrect& rect);
void setEventType( ossimRegionType eventType );
ossimRegionType getEventType()const;
void setTypeToPolygon();
void setTypeToRectangle();
void setTypeToPolyline();
bool isRectangleRegion()const;
bool isPolygonRegion()const;
bool isPolylineRegion()const;
void getRect(ossimIrect& rect)const;
void getPolygon(ossimPolygon& polygon)const;
void getPolyLine(ossimPolyLine& polyline)const;
/**
* @param flag If true indicates region of interest is moving and size is
* not to change.
*/
void setMovingFlag(bool flag);
/**
* @return Returns theMoving flag. If true indicates region of interest
* is moving and size is not to change.
*/
bool getMovingFlag() const;
protected:
std::vector<ossimIpt> thePoints;
ossimRegionType theType;
// Indicates moving so keep the same size on a redraw.
bool theMovingFlag;
TYPE_DATA
};
#endif
|