Source: src/tristrip.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
    vim:tabstop=4
                          tristrip.h  -  description
                             -------------------
    begin                : Sun Jul 1 2001
    copyright            : (C) 2001 by Francois Biot
    email                : fbiot@free.fr
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program 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.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef TRISTRIP_H
#define TRISTRIP_H

#include 
#include 
#include 

/**Triangle Strip
  *Triangle Strip same as GL
  *
  * This class is used to store a part of a modele (see class modele)
  * This is a glsurface that may be opened.
  *@author Francois Biot
  */

class tristrip : public glsurface
{
public:
	tristrip(const CString	&sName)	:	glsurface(sName),mpcol(0)	{};
	tristrip(point *p,const CString &sName="");

	virtual ~tristrip(){	delete	mpcol;	};

	// From glsurface
	virtual	void		Translate	(const vect&);
	virtual glsurface*	Duplicate	()const;
	virtual void		Render		() const;
	virtual float		PlanSide	(const planesurf*) const;
	virtual	bool		IsInside	(const point &) const;
	virtual planesurf*	Collision	(
							const point		&poStart,
							const vect		&vPath,
							point*			pptInter,
							glsolid*		&pSolid);
	virtual	void		SetColor	(const couleur &col)	{	delete mpcol;
																mpcol=col.Duplicate();	};

	virtual	point		GPoint		() const;

	// New methods
	void	Add(point *p)	{	mlstPoints.push_front(p);	};

private:
	couleur*		mpcol;
	CList	mlstPoints;
	
};

#endif

Generated by: saturn on FrancoisLinux on Sun Feb 3 20:01:44 2002, using kdoc 2.0a53.