2 // Open Service Platform
3 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
20 * @file FUixVisionQrCodeObject.h
21 * @brief This is the header file for the %QrCodeObject class.
23 * This header file contains the declarations of the %QrCodeObject class.
26 #ifndef _FUIX_VISION_QR_CODE_OBJECT_H_
27 #define _FUIX_VISION_QR_CODE_OBJECT_H_
29 #include <FUixVisionQrCodeTypes.h>
30 #include <FBaseObject.h>
32 #include <FGraphics.h>
34 namespace Tizen { namespace Uix { namespace Vision
39 * @brief This class represents a single QR code object recognized by the %QrCodeRecognizer class and provides methods to access the information of a recognized QR code object.
43 * The %QrCodeObject class represents a single QR code object recognized by the QrCodeRecognizer class and provides methods to access the information of a recognized QR code object.
46 class _OSP_EXPORT_ QrCodeObject
47 : public Tizen::Base::Object
53 * Gets the unique identifier of the recognized QR code object in the scene.
57 * @return The unique identifier of the recognized QR code object in the scene
59 int GetId(void) const;
62 * Gets the version of the recognized QR code object.
66 * @return The version of the recognized QR code object
68 int GetVersion(void) const;
71 * Gets the error correction level of the recognized QR code object.
75 * @return The error correction level of the recognized QR code object
77 Tizen::Uix::Vision::QrCodeErrorCorrectionLevel GetErrorCorrectionLevel(void) const;
80 * Gets the text of the QR code object.
84 * @return The text of the QR code object
86 Tizen::Base::String GetText(void) const;
89 * Gets the transformation matrix 4x4 for the 3D pose of the recognized QR code object.
93 * @return A pointer to the transformation matrix 4x4 that contains the object position
95 const Tizen::Graphics::FloatMatrix4* GetTransformMatrix(void) const;
98 * Gets the transformed quadrilateral of the recognized QR code object.
102 * @return The array list that contains the 4 points of the quadrilateral of the recognized QR code object
104 const Tizen::Base::Collection::IListT<Tizen::Graphics::FloatPoint>* GetRectangle(void) const;
107 * Compares the specified instance with the current instance.
111 * @return @c true if the specified instance of Tizen::Base::Object is equal to the current %QrCodeObject instance, @n
113 * @param[in] obj The object to compare
115 virtual bool Equals(const Tizen::Base::Object& obj) const;
118 * Gets the hash value of the current instance.
122 * @return The hash value of the current instance
124 virtual int GetHashCode(void) const;
128 * This is the default constructor for this class.
129 * The implementation of this constructor is declared as private to prohibit construction of the object by user.
136 * This is the destructor for this class. @n
143 * The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
145 QrCodeObject(const QrCodeObject&);
148 * The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
150 QrCodeObject& operator=(const QrCodeObject&);
153 class _QrCodeObjectImpl* __pQrCodeObjectImpl;
154 friend class _QrCodeObjectImpl;
157 } } } //Tizen::Uix::Vision
158 #endif // _FUIX_VISION_QR_CODE_OBJECT_H_