// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Image_PseudoColorImage_HeaderFile #define _Image_PseudoColorImage_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Image_PseudoColorImage_HeaderFile #include #endif #ifndef _Handle_Aspect_ColorMap_HeaderFile #include #endif #ifndef _Image_DIndexedImage_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Image_TypeOfImage_HeaderFile #include #endif #ifndef _Handle_Quantity_HArray1OfColor_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Handle_Image_Image_HeaderFile #include #endif class Aspect_ColorMap; class Aspect_IndexPixel; class Quantity_Color; class Quantity_HArray1OfColor; class Quantity_Array1OfColor; class Image_LookupTable; class Image_Image; //! A PseudoColorImage is a DIndexedImage associated with a
//! ColorMap . The ColoMap is set at Creation time and then
//! never be changed. Each Pixel in the Image ,as a IndexPixel
//! from Aspect, match a ColoMap Entry with the same value.
class Image_PseudoColorImage : public Image_DIndexedImage { public: //! Creates a PseudoColorImage object.
//! The default Background Pixel is set to 0 .
//! All the Image is initialised with Background Pixel
Standard_EXPORT Image_PseudoColorImage(const Standard_Integer x,const Standard_Integer y,const Standard_Integer dx,const Standard_Integer dy,const Handle(Aspect_ColorMap)& aColorMap); //! Creates a PseudoColorImage object and set the
//! Background Pixel.
//! All the Image is initialised with Background Pixel
Standard_EXPORT Image_PseudoColorImage(const Standard_Integer x,const Standard_Integer y,const Standard_Integer dx,const Standard_Integer dy,const Handle(Aspect_ColorMap)& aColorMap,const Aspect_IndexPixel& BackPixel); //! Returns the Image Type.
Standard_EXPORT Image_TypeOfImage Type() const; //! returns the Image ColorMap .
Standard_EXPORT Handle_Aspect_ColorMap ColorMap() const; //! Returns the Pixel Color .
Standard_EXPORT const Quantity_Color& PixelColor(const Standard_Integer X,const Standard_Integer Y) const; //! Return the PixelRow Color in a HArray1 of Color.
Standard_EXPORT virtual Handle_Quantity_HArray1OfColor RowColor(const Standard_Integer Y) const; //! Stores the PixelRow Color in a Array1 .
Standard_EXPORT virtual void RowColor(const Standard_Integer Y,Quantity_Array1OfColor& aArray1) const; //! Creates a new Image with continuous Pixel and a continuous
//! ColorMap whith only used Image color starting from
//! BasePixel .
Standard_EXPORT Handle_Image_PseudoColorImage Squeeze(const Aspect_IndexPixel& BasePixel) const; //! Creates a LookupTable that can be used to create a
//! new Image with continuous Pixel and a continuous
//! ColorMap with only used Image color starting
//! from BasePixel .
Standard_EXPORT void SqueezedLookupTable(const Aspect_IndexPixel& BasePixel,Image_LookupTable& aLookup) const; //! Pass a PseudoColorImage through a lookupTable
Standard_EXPORT void Lookup(const Image_LookupTable& aLookup) ; //! Find the maximum and minimum Pixel Value of an Image.
Standard_EXPORT void Extrema(Aspect_IndexPixel& Min,Aspect_IndexPixel& Max) const; //! This method changes the value of any Pixel beetwen the
//! range (Min->Max) to the Pixel Map value. All Pixel values
//! outside the range are passed through without changed .
Standard_EXPORT void Threshold(const Aspect_IndexPixel& Min,const Aspect_IndexPixel& Max,const Aspect_IndexPixel& Map) ; //! Map the Image Pixel Value from one range to another range.
//! This method perform the mapping by multiplying each
//! Pixel Value by Scale and then adding Offset to the result.
Standard_EXPORT void Rescale(const Standard_Real Scale,const Standard_Real Offset) ; //! Duplicate a Image.
Standard_EXPORT Handle_Image_Image Dup() const; DEFINE_STANDARD_RTTI(Image_PseudoColorImage) protected: private: Handle_Aspect_ColorMap myColorMap; }; // other Inline functions and methods (like "C++: function call" methods) #endif