<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\begin{fileverb}
/*----------------------------------------------------------------------*/
/*  FILE:  SegListV4.h                                                  */
/*  WGET:  wget http://oceanai.mit.edu/cpplabs/SegListV4.h              */
/*----------------------------------------------------------------------*/

#ifndef SEGLIST_V4_HEADER
#define SEGLIST_V4_HEADER

#include &lt;string&gt;
#include &lt;vector&gt;
#include "Vertex.h"

class SegListV4 {
 public:
  SegListV4() {};
  ~SegListV4() {};

  void addVertex(Vertex vertex) {m_vertices.push_back(vertex);};

  virtual std::string getSpec() const;   // Only changed line!! now virtual

  virtual double getArea() const {return(0);}; 

  double getMinX() const;
  double getMaxX() const;
  double getMinY() const;
  double getMaxY() const;

 protected:
  std::vector&lt;Vertex&gt; m_vertices;
};
#endif
\end{fileverb}


</pre></body></html>