// File generated by CPPExt (Transient)
//
//
//                     Copyright (C) 1991 - 2000 by  
//                      Matra Datavision SA.  All rights reserved.
//  
//                     Copyright (C) 2001 - 2004 by
//                     Open CASCADE SA.  All rights reserved.
// 
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//  
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.

#ifndef _V3d_ColorScale_HeaderFile
#define _V3d_ColorScale_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Handle_V3d_ColorScale_HeaderFile
#include <Handle_V3d_ColorScale.hxx>
#endif

#ifndef _V3d_LayerMgrPointer_HeaderFile
#include <V3d_LayerMgrPointer.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Aspect_ColorScale_HeaderFile
#include <Aspect_ColorScale.hxx>
#endif
#ifndef _Handle_V3d_LayerMgr_HeaderFile
#include <Handle_V3d_LayerMgr.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class V3d_LayerMgr;
class Quantity_Color;
class TCollection_ExtendedString;


//! A colorscale class <br>
class V3d_ColorScale : public Aspect_ColorScale {

public:
 // Methods PUBLIC
 // 

//! Returns returns ColorScale from V3d. <br>//! Returns View from V3d. <br>
Standard_EXPORT V3d_ColorScale(const Handle(V3d_LayerMgr)& aMgr);


Standard_EXPORT   void Display() ;


Standard_EXPORT   void Erase() ;


Standard_EXPORT   Standard_Boolean IsDisplayed() const;


Standard_EXPORT virtual  void PaintRect(const Standard_Integer X,const Standard_Integer Y,const Standard_Integer W,const Standard_Integer H,const Quantity_Color& aColor,const Standard_Boolean aFilled = Standard_False) ;


Standard_EXPORT virtual  void PaintText(const TCollection_ExtendedString& aText,const Standard_Integer X,const Standard_Integer Y,const Quantity_Color& aColor) ;


Standard_EXPORT virtual  Standard_Integer TextWidth(const TCollection_ExtendedString& aText) const;


Standard_EXPORT virtual  Standard_Integer TextHeight(const TCollection_ExtendedString& aText) const;


Standard_EXPORT   void TextSize(const TCollection_ExtendedString& AText,const Standard_Integer AHeight,Standard_Integer& AWidth,Standard_Integer& AnAscent,Standard_Integer& ADescent) const;


Standard_EXPORT   void DrawScale() ;
//Standard_EXPORT ~V3d_ColorScale();




 // Type management
 //
 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
 //Standard_EXPORT Standard_Boolean	       IsKind(const Handle(Standard_Type)&) const;

protected:

 // Methods PROTECTED
 // 


Standard_EXPORT virtual  void UpdateColorScale() ;


 // Fields PROTECTED
 //


private: 

 // Methods PRIVATE
 // 


 // Fields PRIVATE
 //
V3d_LayerMgrPointer myLayerMgr;
Standard_Boolean myDisplay;


};





// other Inline functions and methods (like "C++: function call" methods)
//


#endif
