/usr/include/ossim/imaging/ossimAnnotationMultiLineObject.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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts
//
//*************************************************************************
// $Id: ossimAnnotationMultiLineObject.h 9968 2006-11-29 14:01:53Z gpotts $
#ifndef ossimAnnotationMultiLineObject_HEADER
#define ossimAnnotationMultiLineObject_HEADER
#include <ossim/imaging/ossimAnnotationObject.h>
#include <ossim/base/ossimIpt.h>
#include <ossim/base/ossimPolyLine.h>
class OSSIMDLLEXPORT ossimAnnotationMultiLineObject : public ossimAnnotationObject
{
public:
ossimAnnotationMultiLineObject();
ossimAnnotationMultiLineObject(const std::vector<ossimPolyLine>& lineList,
unsigned char r=255,
unsigned char g=255,
unsigned char b=255,
long thickness=1)
:ossimAnnotationObject(r, g, b, thickness),
thePolyLineList(lineList)
{
computeBoundingRect();
}
ossimAnnotationMultiLineObject(const ossimPolyLine& lineList,
unsigned char r=255,
unsigned char g=255,
unsigned char b=255,
long thickness=1)
:ossimAnnotationObject(r, g, b, thickness)
{
thePolyLineList.push_back(lineList);
computeBoundingRect();
}
ossimAnnotationMultiLineObject(const ossimAnnotationMultiLineObject& rhs)
:ossimAnnotationObject(rhs),
thePolyLineList(rhs.thePolyLineList),
theBoundingRect(rhs.theBoundingRect)
{
}
virtual ossimObject* dup()const
{
return new ossimAnnotationMultiLineObject(*this);
}
virtual void applyScale(double x,
double y);
virtual ossimAnnotationObject* getNewClippedObject(const ossimDrect& rect)const;
virtual bool intersects(const ossimDrect& rect)const;
virtual void draw(ossimRgbImage& anImage)const;
virtual std::ostream& print(std::ostream& out)const;
virtual void getBoundingRect(ossimDrect& rect)const
{
rect = theBoundingRect;
}
virtual bool isPointWithin(const ossimDpt& imagePoint)const;
virtual void computeBoundingRect();
virtual const vector<ossimPolyLine>& getPolyLineList()const
{
return thePolyLineList;
}
virtual vector<ossimPolyLine>& getPolyLineList()
{
return thePolyLineList;
}
virtual void setPolyLine(const ossimPolyLine& line)
{
thePolyLineList.clear();
thePolyLineList.push_back(line);
}
protected:
vector<ossimPolyLine> thePolyLineList;
ossimDrect theBoundingRect;
TYPE_DATA
};
#endif
|