16 #ifndef ossimPolyLine_HEADER 17 #define ossimPolyLine_HEADER 63 return theVertexList[index];
67 return theVertexList[index];
79 void getBounds(
double& minX,
89 getIntegerBounds(minX, minY, maxX, maxY);
97 getBoundingRect(result);
102 void roundToIntegerBounds(
bool compress=
true);
105 theVertexList.clear();
109 theVertexList.push_back(pt);
117 theAttributeList.push_back( attribute );
129 return getNumberOfVertices();
133 theVertexList.resize(newSize);
137 return theVertexList;
142 return theVertexList;
146 return theAttributeList;
149 bool clipToRect(vector<ossimPolyLine>& result,
166 return isPointWithin(point);
168 bool isPointWithin(
const ossimDpt& point)
const;
175 bool vertex(
int index,
ossimDpt& tbd_vertex)
const;
184 bool nextVertex(
ossimDpt& tbd_vertex)
const;
191 const ossimPolyLine& operator= (
const vector<ossimDpt>& vertexList);
192 const ossimPolyLine& operator= (
const vector<ossimIpt>& vertexList);
202 return ((*
this)*=
ossimDpt(scale, scale));
208 return ((*
this)*
ossimDpt(scale, scale));
219 const char* prefix=0)
const;
222 const char* prefix=0);
232 return !(*
this == compare_this);
const vector< ossimDpt > & getVertexList() const
bool operator!=(const ossimRefPtr< _Tp1 > &__a, const ossimRefPtr< _Tp2 > &__b) noexcept
void getBoundingRect(ossimDrect &rect) const
Represents serializable keyword/value map.
vector< ossimString > & getAttributeList()
std::ostream & print(H5::H5File *file, std::ostream &out)
Print method.
ossim_int32 theCurrentVertex
ossimRationalNumber operator*(ossim_int32 i, ossimRationalNumber &r)
ossim_uint32 getNumberOfVertices() const
const ossimDpt & operator[](int index) const
vector< ossimDpt > & getVertexList()
unsigned int ossim_uint32
bool pointWithin(const ossimDpt &point) const
vector< ossimDpt > theVertexList
bool operator==(const ossimRefPtr< _Tp1 > &__a, const ossimRefPtr< _Tp2 > &__b) noexcept
bool operator!=(const ossimPolyLine &compare_this) const
vector< ossimString > theAttributeList
ossimDpt & operator[](int index)
void addPoint(const ossimDpt &pt)
ostream & operator<<(ostream &os, const ossimPolyLine &polyLine)
void addPoint(double x, double y)
void print(ostream &os) const
void resize(ossim_uint32 newSize)
ossimDrect getBoundingRect() const
std::basic_ostream< char > ostream
Base class for char output streams.
void addAttribute(const ossimString &attribute)