// $Source: /usr/local/SimSoft/SoftShop/XGraph/Primitiv/Trifan.h,v $
// $Revision: 1.20 $
// $Author: baum $
// $Date: 2001/11/29 15:52:24 $
//
// Login name of the user who locked the revision
// $Locker:  $
// Tag name used to checkout the file
// $Name: Release-20 $
// State assigned to revision
// $State: Exp $
//
//
// $Log: Trifan.h,v $
// Revision 1.20  2001/11/29 15:52:24  baum
// -In Kalender.cpp und Kalender.h Handsteuerung eingebaut
//

#ifndef _TRIANGLEFAN_H
#define _TRIANGLEFAN_H 1

#ifndef WIN32
#define __rtti
#endif

#include "Primitiv.h"
#include "Vec3D.h"

#ifdef _TRIANGLEFAN_CPP
#  undef _impexp
#  define _impexp __declspec(dllexport)
#elif defined BUILD_XGRAPH_DLL
#  undef _impexp
#  define _impexp
#else
#  undef _impexp
#  define _impexp __declspec(dllimport)
#endif

#if defined __GNUG__ || defined __hpux
#  undef _impexp
#  define _impexp
#endif

//==================================================================
//		Class-Header
//		for class TriangleFan 
//==================================================================

//##ModelId=4030D77C00DA
class _impexp __rtti TriangleFan : public Primitive
  {
  public:
    // creates a TriangleFan
	//##ModelId=4030D77C00DC
    static Primitive *create (const Vec3D& p1, const Vec3D& p2, const Vec3D& p3);
 
    // creates a TriangleFan
    // with 'center' and 'pointsNo' of Vecs
	//##ModelId=4030D77C00EC
    static Primitive *create (const Vec3D& center, unsigned pointsNo, ...);

    // inserting Vec3D
	//##ModelId=4030D77C00F1
    void insert (const Vec3D&);

    // virtual functions for Building Display-Lists
	//##ModelId=4030D77C00FB
    virtual void buildOGL (Vec2D* texSize = NULL);

  protected:
    // writing create-command to ostr
	//##ModelId=4030D77C00FE
    void stream (ostream& ostr) const;

  private:
    // constructors
	//##ModelId=4030D77C010A
    TriangleFan (const Vec3D& p1, const Vec3D& p2, const Vec3D& p3);

    // destructor
	//##ModelId=4030D77C010E
    virtual ~TriangleFan ( );

    // default constructor declared, but not defined
	//##ModelId=4030D77C0119
    TriangleFan ();

    // copy constructor declared, but not defined
	//##ModelId=4030D77C011A
    TriangleFan (const TriangleFan&);

    // assignment operator declared, but not defined
	//##ModelId=4030D77C011C
    TriangleFan& operator = (const TriangleFan&);

  //friends
    friend class Primitive;

};	// class TriangleFan 

#endif	// !defined _TRIANGLEFAN_H

