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

#ifndef _LINECUBE_H
#define _LINECUBE_H 1

#ifndef WIN32
#define __rtti
#endif

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

#ifdef _LINECUBE_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 LineCube 
//==================================================================

//##ModelId=4030D77E032C
class _impexp __rtti LineCube : public Primitive {
  public:
    // defines a Cube in MainPlanes
	//##ModelId=4030D77E033C
    static Primitive *create(const Vec3D& p1, const Vec3D& p2);

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

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

  private:
    // constructors 
    // defines a Cube in MainPlanes
	//##ModelId=4030D77E034E
    LineCube (const Vec3D& p1, const Vec3D& p2);

    // destructor
	//##ModelId=4030D77E035B
    virtual ~LineCube ( );

    // default constructor declared, but not defined
	//##ModelId=4030D77E035D
    LineCube ();

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

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

    // data members

  //friends
    friend class Primitive;

};	// class LineCube 


#endif	// !defined _LINECUBE_H

