<commit_before>/****************************************************************************

 This file is part of the GLC-lib library.
 Copyright (C) 2005-2008 <NAME> (<EMAIL>)
 Version 1.2.0, packaged on September 2009.

 http://glc-lib.sourceforge.net

 GLC-lib is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 GLC-lib is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with GLC-lib; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

 *****************************************************************************/
//! \file glc_polyline.h interface for the GLC_Polylines class.

#ifndef GLC_POLYLINES_H_
#define GLC_POLYLINES_H_

#include "glc_geometry.h"

#include "../glc_config.h"

//////////////////////////////////////////////////////////////////////
//! \class GLC_Polylines
/*! \brief GLC_Polylines : OpenGL 3D Polylines*/

/*! An GLC_Polylines is a group of wire polyline
 * All polylines of this class have the same color*/
//////////////////////////////////////////////////////////////////////
class GLC_LIB_EXPORT GLC_Polylines : public GLC_Geometry
{
//////////////////////////////////////////////////////////////////////
/*! @name Constructor / Destructor */
//@{
//////////////////////////////////////////////////////////////////////
public:
	//! Construct an empty polylines
	GLC_Polylines();

	//! Copy constructor
	GLC_Polylines(const GLC_Polylines& polyline);

	//! Destructor
	virtual ~GLC_Polylines();
//@}

//////////////////////////////////////////////////////////////////////
/*! \name Get Functions*/
//@{
//////////////////////////////////////////////////////////////////////
public:
	//! Return the polylines bounding box
	const GLC_BoundingBox& boundingBox();

	//! Return a copy of the geometry
	virtual GLC_Geometry* clone() const;

	//! Return true if this polylines is empty
	inline bool isEmpty() const
	{return GLC_Geometry::m_WireData.isEmpty();}


//@}
//////////////////////////////////////////////////////////////////////
/*! \name Set Functions*/
//@{
//////////////////////////////////////////////////////////////////////
public:
	//! Set this polylines from the given polylines and return a reference of this polylines
	GLC_Polylines& operator=(const GLC_Polylines& polyline);

	//! Clear the content of this polylines Data and makes it empty
	inline void clear()
	{GLC_Geometry::m_WireData.clear();}

//@}

//////////////////////////////////////////////////////////////////////
/*! \name OpenGL Functions*/
//@{
//////////////////////////////////////////////////////////////////////
private:

	//! Virtual interface for OpenGL Geometry set up.
	/*! This Virtual function is implemented here.\n
	 *  Throw GLC_OpenGlException*/
	virtual void glDraw(const GLC_RenderProperties&);

//@}

};

#endif /* GLC_POLYLINES_H_ */<commit_msg>Add the possibility to add polyline to polylines ! (necessary)<commit_after>/****************************************************************************

 This file is part of the GLC-lib library.
 Copyright (C) 2005-2008 <NAME> (<EMAIL>)
 Version 1.2.0, packaged on September 2009.

 http://glc-lib.sourceforge.net

 GLC-lib is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 GLC-lib is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with GLC-lib; if not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

 *****************************************************************************/
//! \file glc_polyline.h interface for the GLC_Polylines class.

#ifndef GLC_POLYLINES_H_
#define GLC_POLYLINES_H_

#include "glc_geometry.h"

#include "../glc_config.h"

//////////////////////////////////////////////////////////////////////
//! \class GLC_Polylines
/*! \brief GLC_Polylines : OpenGL 3D Polylines*/

/*! An GLC_Polylines is a group of wire polyline
 * All polylines of this class have the same color*/
//////////////////////////////////////////////////////////////////////
class GLC_LIB_EXPORT GLC_Polylines : public GLC_Geometry
{
//////////////////////////////////////////////////////////////////////
/*! @name Constructor / Destructor */
//@{
//////////////////////////////////////////////////////////////////////
public:
	//! Construct an empty polylines
	GLC_Polylines();

	//! Copy constructor
	GLC_Polylines(const GLC_Polylines& polyline);

	//! Destructor
	virtual ~GLC_Polylines();
//@}

//////////////////////////////////////////////////////////////////////
/*! \name Get Functions*/
//@{
//////////////////////////////////////////////////////////////////////
public:
	//! Return the polylines bounding box
	const GLC_BoundingBox& boundingBox();

	//! Return a copy of the geometry
	virtual GLC_Geometry* clone() const;

	//! Return true if this polylines is empty
	inline bool isEmpty() const
	{return GLC_Geometry::m_WireData.isEmpty();}


//@}
//////////////////////////////////////////////////////////////////////
/*! \name Set Functions*/
//@{
//////////////////////////////////////////////////////////////////////
public:
	//! Add a Polyline to this wire and returns its id if id are managed
	inline GLC_uint addPolyline(const GLfloatVector& data)
	{return GLC_Geometry::m_WireData.addPolyline(data);}

	//! Set this polylines from the given polylines and return a reference of this polylines
	GLC_Polylines& operator=(const GLC_Polylines& polyline);

	//! Clear the content of this polylines Data and makes it empty
	inline void clear()
	{GLC_Geometry::m_WireData.clear();}

//@}

//////////////////////////////////////////////////////////////////////
/*! \name OpenGL Functions*/
//@{
//////////////////////////////////////////////////////////////////////
private:

	//! Virtual interface for OpenGL Geometry set up.
	/*! This Virtual function is implemented here.\n
	 *  Throw GLC_OpenGlException*/
	virtual void glDraw(const GLC_RenderProperties&);

//@}

};

#endif /* GLC_POLYLINES_H_ */
{'fraction_non_alphanumeric': 0.3252140537348686, 'fraction_numerical': 0.008266902863891349, 'mean_word_length': 1.7800574476815758, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3915650', 'n_tokens_mistral': 1743, 'n_tokens_neox': 1604, 'n_words': 607}