1 #ifndef __DALI_INTERNAL_SCENE_GRAPH_VECTOR3_PROPERTY_H__
2 #define __DALI_INTERNAL_SCENE_GRAPH_VECTOR3_PROPERTY_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/common/dali-common.h>
23 #include <dali/public-api/math/vector3.h>
24 #include <dali/public-api/object/property.h>
25 #include <dali/public-api/object/property-input.h>
26 #include <dali/public-api/object/property-types.h>
27 #include <dali/internal/common/buffer-index.h>
28 #include <dali/internal/event/common/property-input-impl.h>
40 * A Vector3 non-animatable property.
42 class PropertyVector3 : public PropertyInputImpl
47 * Create an non-animatable property.
48 * @param [in] initialValue The initial value of the property.
50 PropertyVector3( Vector3 initialValue )
51 : mValue( initialValue ),
59 virtual ~PropertyVector3()
64 * Clear the dirty flag
72 * @copydoc Dali::Internal::PropertyInputImpl::GetType()
74 virtual Dali::Property::Type GetType() const
76 return Dali::PropertyTypes::Get<Vector3>();
80 * @copydoc Dali::Internal::PropertyInputImpl::InputInitialized()
82 virtual bool InputInitialized() const
88 * @copydoc Dali::Internal::PropertyInputImpl::InputChanged()
90 virtual bool InputChanged() const
96 * @copydoc Dali::PropertyInput::GetVector3()
98 virtual const Vector3& GetVector3( BufferIndex bufferIndex ) const
104 * Flag that the property has been Set during the current frame.
114 PropertyVector3(const PropertyVector3& property);
117 PropertyVector3& operator=(const PropertyVector3& rhs);
121 Vector3 mValue; ///< The property value
129 } // namespace SceneGraph
131 } // namespace Internal
135 #endif // __DALI_INTERNAL_SCENE_GRAPH_VECTOR3_PROPERTY_H__