]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
add method for polygon
authorptv <ptv@opencascade.com>
Fri, 25 Nov 2005 08:04:15 +0000 (08:04 +0000)
committerptv <ptv@opencascade.com>
Fri, 25 Nov 2005 08:04:15 +0000 (08:04 +0000)
src/GLViewer/GLViewer_Geom.h

index 759daef1a570b47a85a951575f24560f1c5987ec..3551ce86fd7f137312a3ba542dc53940e46d998a 100644 (file)
@@ -169,6 +169,9 @@ public:
   GLViewer_Poly( const GLViewer_PntList* thePoints );
   virtual ~GLViewer_Poly();
 
+  //! Adds point to polygon
+  void              AddPoint( GLViewer_Pnt& pnt ) { myPoints->append( pnt ); }
+
   //! Returns number of point
   int               Count() const { return myPoints->count(); }
 
@@ -184,7 +187,6 @@ public:
   // Returns true if intersection of this polygon with a segment or a ray not empty
   virtual bool      HasIntersection( const GLViewer_Segment& theSegment ) const;
 
-
 private:
   GLViewer_PntList* myPoints;
 };