Initialize Tizen 2.3
[framework/osp/vision.git] / src / FUixVision_ImageObjectImpl.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18
19 /**
20  * @file     FUixVision_ImageObjectImpl.h
21  * @brief    This is the header file for the %Tizen::Uix::_ImageObjectImpl class.
22  */
23
24 #ifndef _FUIX_VISION_INTERNAL_IMAGE_OBJECT_IMPL_H_
25 #define _FUIX_VISION_INTERNAL_IMAGE_OBJECT_IMPL_H_
26
27 #include <FUixVisionImageObject.h>
28 #include <FBase.h>
29 #include "ImageRecognitionInfo.h"
30
31 namespace Tizen { namespace Uix { namespace Vision
32 {
33
34 class _ImageObjectImpl
35 {
36 public:
37     _ImageObjectImpl(void);
38     ~_ImageObjectImpl(void);
39
40     int GetId(void) const;
41     int GetFeatureId(void) const;
42     const Tizen::Graphics::FloatMatrix4* GetTransformMatrix(void) const;
43     const Tizen::Base::Collection::ArrayListT<Tizen::Graphics::FloatPoint>* GetRectangle(void) const;
44     float GetAspect(void) const;
45     void SetSariPointer(const sari2::ImageRecognitionInfo& sari);
46
47 public:
48     static ImageObject* CreateImageObjectStorageN(const unsigned int size);
49     static ImageObject* CreateImageObjectN();
50     static void ReleaseImageObject(ImageObject* pImageObject);
51     static void ReleaseImageObjectArray(ImageObject* pImageObject);
52     static _ImageObjectImpl* GetInstance(ImageObject* pImageObject);
53     static const _ImageObjectImpl* GetInstance(const ImageObject* pImageObject);
54
55 private:
56     sari2::ImageRecognitionInfo                                       __ImageRecognitionInfo;
57     Tizen::Base::Collection::ArrayListT<Tizen::Graphics::FloatPoint>* __pRectangleList;
58     Tizen::Graphics::FloatMatrix4*                                    __pMatrix;
59 };
60
61 } } } //Tizen::Uix::Vision
62
63 #endif //_FUIX_VISION_INTERNAL_IMAGE_OBJECT_IMPL_H_