// $Source: /usr/local/SimSoft/SoftShop/XGraph/Primitiv/Linequad.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: Linequad.h,v $
// Revision 1.20  2001/11/29 15:52:24  baum
// -In Kalender.cpp und Kalender.h Handsteuerung eingebaut
//

#ifndef _LINEQUAD_H
#define _LINEQUAD_H 1

#ifndef WIN32
#define __rtti
#endif

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

#ifdef _LINEQUAD_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 LineQuad 
//==================================================================

//##ModelId=4030D77E0222
class _impexp __rtti LineQuad : public Primitive {
  public:
    // defines a Rectangel in XY-plane
	//##ModelId=4030D77E0232
    static Primitive *create (const Vec2D& p1, const Vec2D& p2);

    // construcor for any Quad
	//##ModelId=4030D77E0236
    static Primitive *create (const Vec3D& p1, const Vec3D& p2,
                              const Vec3D& p3, const Vec3D& p4);

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

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

  private:
    // constructors 
    // defines a Rectangel in XY-plane
	//##ModelId=4030D77E0252
    LineQuad (const Vec2D& p1, const Vec2D& p2);

    // construcor for any Quad
	//##ModelId=4030D77E0255
    LineQuad (const Vec3D& p1, const Vec3D& p2,
              const Vec3D& p3, const Vec3D& p4);

    // destructor
	//##ModelId=4030D77E0265
    virtual ~LineQuad ( );

    // default constructor declared, but not defined
	//##ModelId=4030D77E0271
    LineQuad ();

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

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

    // data members

  //friends
    friend class Primitive;

};	// class LineQuad 


#endif	// !defined _LINEQUAD_H

