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()
33 if (__pImageObjectImpl != null)
35 delete __pImageObjectImpl;
36 __pImageObjectImpl = null;
41 ImageObject::GetId(void) const
43 if (__pImageObjectImpl)
45 return __pImageObjectImpl->GetId();
54 ImageObject::GetFeatureId(void) const
56 if (__pImageObjectImpl)
58 return __pImageObjectImpl->GetFeatureId();
66 const Tizen::Graphics::FloatMatrix4*
67 ImageObject::GetTransformMatrix(void) const
69 if (__pImageObjectImpl)
71 return __pImageObjectImpl->GetTransformMatrix();
79 const Tizen::Base::Collection::IListT<Tizen::Graphics::FloatPoint>*
80 ImageObject::GetRectangle(void) const
82 if (__pImageObjectImpl)
84 return __pImageObjectImpl->GetRectangle();
93 ImageObject::Equals(const Object& obj) const
95 return (static_cast<const Object*>(this) == &obj);
99 ImageObject::GetHashCode(void) const
101 return (int)__pImageObjectImpl;
104 } } } //Tizen::Uix::Vision