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

#ifndef _LINE_H
#define _LINE_H 1

#ifndef WIN32
#define __rtti
#endif

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

#ifdef _LINE_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 Line 
//==================================================================

//##ModelId=4030D77F004E
class _impexp __rtti Line : public Primitive {
  public:
    // create a Line
	//##ModelId=4030D77F005E
    static Primitive *create (const Vec3D& begin, const Vec3D& end);

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

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

  private:
    // constructors
	//##ModelId=4030D77F007E
    Line (const Vec3D& begin, const Vec3D& end);

    // destructor
	//##ModelId=4030D77F0081
    virtual ~Line ( );

    // default constructor declared, but not defined
	//##ModelId=4030D77F008C
    Line ();

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

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

    // data members

  //friends
    friend class Primitive;

};	// class Line 

#endif	// !defined _LINE_H

