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.
18 #include <FUixVisionImageObject.h>
19 #include "FUixVision_ImageObjectImpl.h"
21 namespace Tizen { namespace Uix { namespace Vision
24 ImageObject::ImageObject()
25 : __pImageObjectImpl(0)
27 std::unique_ptr<_ImageObjectImpl> pImageObjectImpl (new (std::nothrow) _ImageObjectImpl);
28 __pImageObjectImpl = pImageObjectImpl.release();
31 ImageObject::~ImageObject()
36 ImageObject::GetId(void) const
38 if (__pImageObjectImpl)
40 return __pImageObjectImpl->GetId();
49 ImageObject::GetFeatureId(void) const
51 if (__pImageObjectImpl)
53 return __pImageObjectImpl->GetFeatureId();
61 const Tizen::Graphics::FloatMatrix4*
62 ImageObject::GetTransformMatrix(void) const
64 if (__pImageObjectImpl)
66 return __pImageObjectImpl->GetTransformMatrix();
74 const Tizen::Base::Collection::IListT<Tizen::Graphics::FloatPoint>*
75 ImageObject::GetRectangle(void) const
77 if (__pImageObjectImpl)
79 return __pImageObjectImpl->GetRectangle();
88 ImageObject::Equals(const Object& obj) const
90 return (static_cast<const Object*>(this) == &obj);
94 ImageObject::GetHashCode(void) const
96 return (int)__pImageObjectImpl;
99 } } } //Tizen::Uix::Vision