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

#ifndef _CYLINDERJACKET_H
#define _CYLINDERJACKET_H 1

#ifndef WIN32
#define __rtti
#endif

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

#ifdef _CYLINDERJACKET_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 CylinderJacket 
//==================================================================

//##ModelId=4030D780009C
class _impexp __rtti CylinderJacket : public Primitive {
  public:
    // builds a round CylinderJacket with Bottom on XY-plane
    // out of default 16 slices
    // the MidVec moves the BottomSide away
	//##ModelId=4030D780009E
    static Primitive *create (const double& rad, const double& height,
                              const Vec3D& mvec = Vec3D (), const unsigned& slices = 16);

    // builds an elliptic CylinderJacket with Bottom on XY-plane
    // out of default 16 slices
    // the MidVec moves the BottomSide away
	//##ModelId=4030D78000AF
    static Primitive *create (const double& xRad, const double& yRad, const double& height,
                              const Vec3D& mvec = Vec3D (), const unsigned& slices = 16);

    // builds an elliptic CylinderJacket with Bottom on XY-plane
    // with Start-Angle and End-Angle out of default 16 slices
    // the MidVec moves the BottomSide away
	//##ModelId=4030D78000BF
    static Primitive *create (const double& xRad, const double& yRad, const double& height,
                              const Angle& begin, const Angle& end,
                              const Vec3D& mvec = Vec3D (), const unsigned& slices = 16);

	//##ModelId=4030D78000D0
    static void buildOGLForOthers (const double& xrad, const double& yrad, const double& height,
                                   const Angle& begin, const Angle& end, const Vec3D& mvec,
                                   const unsigned& slices, bool normalOut, Vec2D* texSize = NULL);

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

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

  private:
	//##ModelId=4030D78000FB
    CylinderJacket (const double& xRad, const double& yRad, const double& height,
                    const Vec3D& mvec, const unsigned& slices);

	//##ModelId=4030D7800109
    CylinderJacket (const double& xRad, const double& yRad, const double& height,
                    const Angle& begin, const Angle& end,
                    const Vec3D& mvec, const unsigned& slices);

    // destructor
	//##ModelId=4030D780011A
    virtual ~CylinderJacket ();

    // default constructor declared, but not defined
	//##ModelId=4030D780011C
    CylinderJacket ();

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

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

    // data members
	//##ModelId=4030D780012A
    double   ObjRadX;
	//##ModelId=4030D7800138
    double   ObjRadY;
	//##ModelId=4030D7800139
    double   ObjHeight;
	//##ModelId=4030D7800149
    Angle    ObjBeginAgl;
	//##ModelId=4030D780014E
    Angle    ObjEndAgl;
	//##ModelId=4030D7800158
    Vec3D    ObjMidVec;
	//##ModelId=4030D780015D
    unsigned ObjSlices;

  //friends
    friend class Primitive;

};	// class CylinderJacket 


#endif	// !defined _CYLINDERJACKET_H

