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

#ifndef _CUBE_H
#define _CUBE_H 1

#ifndef WIN32
#define __rtti
#endif

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

#ifdef _CUBE_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 Cube 
//==================================================================

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

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

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

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

    // destructor
	//##ModelId=4030D7800265
    virtual ~Cube ( );

    // default constructor declared, but not defined
	//##ModelId=4030D7800271
    Cube ();

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

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

    // data members

  //friends
    friend class Primitive;

};	// class Cube 


#endif	// !defined _CUBE_H

