This file is indexed.

/usr/include/ossim/imaging/ossimGeoAnnotationPolyObject.h is in libossim-dev 1.8.16-3+b1.

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
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
//*******************************************************************
// Copyright (C) 2000 ImageLinks Inc. 
//
// License:  See top level LICENSE.txt file.
//
// Author: Garrett Potts
//
//*************************************************************************
// $Id: ossimGeoAnnotationPolyObject.h 19734 2011-06-06 23:45:36Z dburken $
#ifndef ossimGeoAnnotationPolyObject_HEADER
#define ossimGeoAnnotationPolyObject_HEADER

#include <vector>
#include <ossim/base/ossimGpt.h>
#include <ossim/imaging/ossimGeoAnnotationObject.h>
#include <ossim/imaging/ossimAnnotationPolyObject.h>
 
class OSSIMDLLEXPORT ossimGeoAnnotationPolyObject : public ossimGeoAnnotationObject
{
public:
   enum ossimPolyType
   {
     OSSIM_POLY_EXTERIOR_RING  = 0,
     OSSIM_POLY_INTERIOR_RING = 1
   };

   ossimGeoAnnotationPolyObject(bool enableFill = false,
                                ossim_uint8 r=255,
                                ossim_uint8 g=255,
                                ossim_uint8 b=255,
                                ossim_uint8 thickness=1);

   ossimGeoAnnotationPolyObject(const std::vector<ossimGpt>& groundPts,
                                bool enableFill = false,
                                ossim_uint8 r=255,
                                ossim_uint8 g=255,
                                ossim_uint8 b=255,
                                ossim_uint8 thickness=1);

   ossimGeoAnnotationPolyObject(const ossimGeoAnnotationPolyObject& rhs);


   virtual ossimObject* dup()const;

   virtual void applyScale(double x, double y);

   virtual void transform(ossimImageGeometry* projection);

   virtual std::ostream& print(std::ostream& out)const;

   virtual void draw(ossimRgbImage& anImage)const;

   virtual ossimAnnotationObject* getNewClippedObject(
      const ossimDrect& rect)const;

   virtual bool intersects(const ossimDrect& rect)const;
   
   virtual void getBoundingRect(ossimDrect& rect)const;

   virtual void computeBoundingRect();

   virtual const std::vector<ossimGpt>& getPolygon()const;
   virtual void setPolygon(const std::vector<ossimGpt>& poly);

   virtual void setFillFlag(bool flag);

   virtual void setColor(ossim_uint8 r,
                         ossim_uint8 g,
                         ossim_uint8 b);
   
   virtual void setThickness(ossim_uint8 thickness);

   /**
    * Saves the current state of this object.
    */
   virtual bool saveState(ossimKeywordlist& kwl,
                          const char* prefix=0)const;

   /**
    * Method to the load (recreate) the state of an object from a keyword
    * list.  Return true if ok or false on error.
    */
   virtual bool loadState(const ossimKeywordlist& kwl,
                          const char* prefix=0);

   virtual std::vector<ossimGpt> getPoints() { return thePolygon; }

   virtual ossimPolyType getPolyType () { return m_PolyType; }

   virtual void setPolyType(ossimPolyType polyType) { m_PolyType = polyType; }
   
protected:
   virtual ~ossimGeoAnnotationPolyObject();

   std::vector<ossimGpt>      thePolygon;
   ossimRefPtr<ossimAnnotationPolyObject> theProjectedPolyObject;
   ossimPolyType              m_PolyType;

TYPE_DATA
};

#endif