CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
color_matrix.h
1
2#ifndef _color_matrix_h_
3#define _color_matrix_h_
4
5#include "fwd.h"
6#include "system/array.h"
7
8namespace System { namespace Drawing { namespace Imaging {
9
10 class ColorMatrix;
13
18 class ASPOSECPP_SHARED_CLASS ColorMatrix : public Object
19 {
20 public:
22 ASPOSECPP_SHARED_API ColorMatrix();
25 ASPOSECPP_SHARED_API ColorMatrix(const System::ArrayPtr<System::ArrayPtr<float> >& matrix);
26
31 ASPOSECPP_SHARED_API float idx_get(int row, int column);
37 ASPOSECPP_SHARED_API float idx_set(int row, int column, float value);
38
40 ASPOSECPP_SHARED_API float get_Matrix00() const;
43 ASPOSECPP_SHARED_API void set_Matrix00(float value);
45 ASPOSECPP_SHARED_API float get_Matrix01() const;
48 ASPOSECPP_SHARED_API void set_Matrix01(float value);
50 ASPOSECPP_SHARED_API float get_Matrix02() const;
53 ASPOSECPP_SHARED_API void set_Matrix02(float value);
55 ASPOSECPP_SHARED_API float get_Matrix03() const;
58 ASPOSECPP_SHARED_API void set_Matrix03(float value);
60 ASPOSECPP_SHARED_API float get_Matrix04() const;
63 ASPOSECPP_SHARED_API void set_Matrix04(float value);
65 ASPOSECPP_SHARED_API float get_Matrix10() const;
68 ASPOSECPP_SHARED_API void set_Matrix10(float value);
70 ASPOSECPP_SHARED_API float get_Matrix11() const;
73 ASPOSECPP_SHARED_API void set_Matrix11(float value);
75 ASPOSECPP_SHARED_API float get_Matrix12() const;
78 ASPOSECPP_SHARED_API void set_Matrix12(float value);
80 ASPOSECPP_SHARED_API float get_Matrix13() const;
83 ASPOSECPP_SHARED_API void set_Matrix13(float value);
85 ASPOSECPP_SHARED_API float get_Matrix14() const;
88 ASPOSECPP_SHARED_API void set_Matrix14(float value);
90 ASPOSECPP_SHARED_API float get_Matrix20() const;
93 ASPOSECPP_SHARED_API void set_Matrix20(float value);
95 ASPOSECPP_SHARED_API float get_Matrix21() const;
98 ASPOSECPP_SHARED_API void set_Matrix21(float value);
100 ASPOSECPP_SHARED_API float get_Matrix22() const;
103 ASPOSECPP_SHARED_API void set_Matrix22(float value);
105 ASPOSECPP_SHARED_API float get_Matrix23() const;
108 ASPOSECPP_SHARED_API void set_Matrix23(float value);
110 ASPOSECPP_SHARED_API float get_Matrix24() const;
113 ASPOSECPP_SHARED_API void set_Matrix24(float value);
115 ASPOSECPP_SHARED_API float get_Matrix30() const;
118 ASPOSECPP_SHARED_API void set_Matrix30(float value);
120 ASPOSECPP_SHARED_API float get_Matrix31() const;
123 ASPOSECPP_SHARED_API void set_Matrix31(float value);
125 ASPOSECPP_SHARED_API float get_Matrix32() const;
128 ASPOSECPP_SHARED_API void set_Matrix32(float value);
130 ASPOSECPP_SHARED_API float get_Matrix33() const;
133 ASPOSECPP_SHARED_API void set_Matrix33(float value);
135 ASPOSECPP_SHARED_API float get_Matrix34() const;
138 ASPOSECPP_SHARED_API void set_Matrix34(float value);
140 ASPOSECPP_SHARED_API float get_Matrix40() const;
143 ASPOSECPP_SHARED_API void set_Matrix40(float value);
145 ASPOSECPP_SHARED_API float get_Matrix41() const;
148 ASPOSECPP_SHARED_API void set_Matrix41(float value);
150 ASPOSECPP_SHARED_API float get_Matrix42() const;
153 ASPOSECPP_SHARED_API void set_Matrix42(float value);
155 ASPOSECPP_SHARED_API float get_Matrix43() const;
158 ASPOSECPP_SHARED_API void set_Matrix43(float value);
160 ASPOSECPP_SHARED_API float get_Matrix44() const;
163 ASPOSECPP_SHARED_API void set_Matrix44(float value);
164
165 private:
168 ASPOSECPP_SHARED_API void SetMatrix(const System::ArrayPtr<System::ArrayPtr<float> >& matrix);
170 ASPOSECPP_SHARED_API System::ArrayPtr<System::ArrayPtr<float> > GetMatrix();
171
172 private:
174 float m_matrix00;
176 float m_matrix01;
178 float m_matrix02;
180 float m_matrix03;
182 float m_matrix04;
184 float m_matrix10;
186 float m_matrix11;
188 float m_matrix12;
190 float m_matrix13;
192 float m_matrix14;
194 float m_matrix20;
196 float m_matrix21;
198 float m_matrix22;
200 float m_matrix23;
202 float m_matrix24;
204 float m_matrix30;
206 float m_matrix31;
208 float m_matrix32;
210 float m_matrix33;
212 float m_matrix34;
214 float m_matrix40;
216 float m_matrix41;
218 float m_matrix42;
220 float m_matrix43;
222 float m_matrix44;
223 };
224
225}}}
226
227
228#endif
Represents a 5x5 matrix that contains the coordinates for the RGBAW color space. Objects of this clas...
Definition: color_matrix.h:19
float get_Matrix22() const
Returns a value in 2-nd row and 2-nd column.
void set_Matrix21(float value)
Sets a value in the 2-nd row and 1-st column.
void set_Matrix13(float value)
Sets a value in the 1-st row and 3-rd column.
float get_Matrix41() const
Returns a value in 4-th row and 1-st column.
float get_Matrix11() const
Returns a value in 1-st row and 1-st column.
void set_Matrix00(float value)
Sets a value in the 0-th row and 0-th column.
void set_Matrix24(float value)
Sets a value in the 2-nd row and 4-th column.
void set_Matrix40(float value)
Sets a value in the 4-th row and 0-th column.
void set_Matrix44(float value)
Sets a value in the 4-th row and 4-th column.
float get_Matrix04() const
Returns a value in 0-th row and 4-th column.
ColorMatrix(const System::ArrayPtr< System::ArrayPtr< float > > &matrix)
Constructs a new instance of ColorMatrix class and initializes it with the specified values.
float get_Matrix00() const
Returns a value in 0-th row and 0-th column.
float get_Matrix34() const
Returns a value in 3-rd row and 4-th column.
float get_Matrix40() const
Returns a value in 4-th row and 0-th column.
float get_Matrix24() const
Returns a value in 2-nd row and 4-th column.
float get_Matrix10() const
Returns a value in 1-st row and 0-th column.
float get_Matrix21() const
Returns a value in 2-nd row and 1-st column.
void set_Matrix03(float value)
Sets a value in the 0-th row and 3-rd column.
float get_Matrix33() const
Returns a value in 3-rd row and 3-rd column.
void set_Matrix01(float value)
Sets a value in the 0-th row and 1-st column.
void set_Matrix42(float value)
Sets a value in the 4-th row and 2-nd column.
void set_Matrix11(float value)
Sets a value in the 1-st row and 1-st column.
float get_Matrix42() const
Returns a value in 4-th row and 2-nd column.
ColorMatrix()
Constructs a new instance of ColorMatrix class and initializes it with the values of identity matrix.
float get_Matrix43() const
Returns a value in 4-th row and 3-rd column.
void set_Matrix12(float value)
Sets a value in the 1-st row and 2-nd column.
float idx_set(int row, int column, float value)
Sets the specifie value at the specified location in the matrix.
void set_Matrix23(float value)
Sets a value in the 2-nd row and 3-rd column.
void set_Matrix30(float value)
Sets a value in the 3-rd row and 0-th column.
void set_Matrix22(float value)
Sets a value in the 2-nd row and 2-nd column.
void set_Matrix10(float value)
Sets a value in the 1-st row and 0-th column.
void set_Matrix32(float value)
Sets a value in the 3-rd row and 2-nd column.
float get_Matrix01() const
Returns a value in 0-th row and 1-st column.
float get_Matrix02() const
Returns a value in 0-th row and 2-nd column.
void set_Matrix33(float value)
Sets a value in the 3-rd row and 3-rd column.
float get_Matrix14() const
Returns a value in 1-st row and 4-th column.
float get_Matrix32() const
Returns a value in 3-rd row and 2-nd column.
void set_Matrix43(float value)
Sets a value in the 4-th row and 3-rd column.
void set_Matrix04(float value)
Sets a value in the 0-th row and 4-th column.
void set_Matrix14(float value)
Sets a value in the 1-st row and 4-th column.
void set_Matrix02(float value)
Sets a value in the 0-th row and 2-nd column.
float get_Matrix30() const
Returns a value in 3-rd row and 0-th column.
void set_Matrix41(float value)
Sets a value in the 4-th row and 1-st column.
float get_Matrix13() const
Returns a value in 1-st row and 3-rd column.
float get_Matrix03() const
Returns a value in 0-th row and 3-rd column.
float get_Matrix23() const
Returns a value in 2-nd row and 3-rd column.
void set_Matrix34(float value)
Sets a value in the 3-rd row and 4-th column.
void set_Matrix20(float value)
Sets a value in the 2-nd row and 0-th column.
float idx_get(int row, int column)
Returns a value at the specified row and column.
float get_Matrix31() const
Returns a value in 3-rd row and 1-st column.
float get_Matrix20() const
Returns a value in 2-nd row and 0-th column.
float get_Matrix44() const
Returns a value in 4-th row and 4-th column.
void set_Matrix31(float value)
Sets a value in the 3-rd row and 1-st column.
float get_Matrix12() const
Returns a value in 1-st row and 2-nd column.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
SharedPtr< ColorMatrix > ColorMatrixPtr
An alias for a shared pointer to an instance of the ColorMatrix class.
Definition: color_matrix.h:12
Definition: db_command.h:9