summaryrefslogtreecommitdiff
path: root/inc/Image_PseudoColorImage.hxx
blob: 044d9d0955b145e262f5d1043c8d31b6cfd13477 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
// 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 <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_Image_PseudoColorImage_HeaderFile
#include <Handle_Image_PseudoColorImage.hxx>
#endif

#ifndef _Handle_Aspect_ColorMap_HeaderFile
#include <Handle_Aspect_ColorMap.hxx>
#endif
#ifndef _Image_DIndexedImage_HeaderFile
#include <Image_DIndexedImage.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Image_TypeOfImage_HeaderFile
#include <Image_TypeOfImage.hxx>
#endif
#ifndef _Handle_Quantity_HArray1OfColor_HeaderFile
#include <Handle_Quantity_HArray1OfColor.hxx>
#endif
#ifndef _Standard_Real_HeaderFile
#include <Standard_Real.hxx>
#endif
#ifndef _Handle_Image_Image_HeaderFile
#include <Handle_Image_Image.hxx>
#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 <br>
//!	     ColorMap . The ColoMap is set at Creation time and then <br>
//!	     never be changed. Each Pixel in the Image ,as a IndexPixel <br>
//!	     from Aspect, match a ColoMap Entry with the same value. <br>
class Image_PseudoColorImage : public Image_DIndexedImage {

public:

  //! Creates a PseudoColorImage object. <br>
//!	       The default Background Pixel is set to 0 . <br>
//!	       All the Image is initialised with Background Pixel <br>
  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 <br>
//!	       Background Pixel. <br>
//!	       All the Image is initialised with Background Pixel <br>
  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. <br>
  Standard_EXPORT     Image_TypeOfImage Type() const;
  //! returns the Image ColorMap . <br>
  Standard_EXPORT     Handle_Aspect_ColorMap ColorMap() const;
  //! Returns the Pixel Color . <br>
  Standard_EXPORT    const Quantity_Color& PixelColor(const Standard_Integer X,const Standard_Integer Y) const;
  //! Return the PixelRow Color in a HArray1 of Color. <br>
  Standard_EXPORT   virtual  Handle_Quantity_HArray1OfColor RowColor(const Standard_Integer Y) const;
  //! Stores the PixelRow Color in a Array1 . <br>
  Standard_EXPORT   virtual  void RowColor(const Standard_Integer Y,Quantity_Array1OfColor& aArray1) const;
  //! Creates a new Image with continuous Pixel and a continuous <br>
//!              ColorMap whith only used Image color starting from <br>
//!		BasePixel . <br>
  Standard_EXPORT     Handle_Image_PseudoColorImage Squeeze(const Aspect_IndexPixel& BasePixel) const;
  //! Creates a LookupTable that can be used to create a <br>
//!	    new Image with continuous Pixel and a continuous <br>
//!	    ColorMap with only used Image color starting <br>
//!	    from BasePixel . <br>
  Standard_EXPORT     void SqueezedLookupTable(const Aspect_IndexPixel& BasePixel,Image_LookupTable& aLookup) const;
  //! Pass a PseudoColorImage through a lookupTable <br>
  Standard_EXPORT     void Lookup(const Image_LookupTable& aLookup) ;
  //! Find the maximum and minimum Pixel Value of an Image. <br>
  Standard_EXPORT     void Extrema(Aspect_IndexPixel& Min,Aspect_IndexPixel& Max) const;
  //! This method changes the value of any Pixel beetwen the <br>
//!	    range (Min->Max) to the Pixel Map value. All Pixel values <br>
//!	    outside the range are passed through without changed . <br>
  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. <br>
//!	     This method perform the mapping by multiplying each <br>
//!	     Pixel Value by Scale and then adding Offset to the result. <br>
  Standard_EXPORT     void Rescale(const Standard_Real Scale,const Standard_Real Offset) ;
  //! Duplicate a Image. <br>
  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