Dali 3D User Interface Engine
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions
Dali::Internal::Constraint< float > Class Template Reference

Variant which allows float components to be animated individually. More...

#include <constraint-impl.h>

Inheritance diagram for Dali::Internal::Constraint< float >:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::Constraint< float >:
Collaboration graph
[legend]

Public Types

typedef PropertyConstraintPtr
< float >::Type 
ConstraintFunctionPtr
 
- Public Types inherited from Dali::Internal::ConstraintBase
typedef
Dali::Constraint::RemoveAction 
RemoveAction
 

Public Member Functions

virtual ConstraintBaseClone (Object &object)
 Clone this constraint for another object. More...
 
virtual ~Constraint ()
 Virtual destructor. More...
 
- Public Member Functions inherited from Dali::Internal::ConstraintBase
 ConstraintBase (Object &object, Property::Index targetPropertyIndex, SourceContainer &sources)
 Constructor. More...
 
virtual ~ConstraintBase ()
 Virtual destructor. More...
 
void AddSource (Source source)
 Adds a constraint source to the constraint. More...
 
void Apply ()
 Applies this constraint. More...
 
void Remove ()
 Removes this constraint. More...
 
void RemoveInternal ()
 Called when the Constraint is removed. More...
 
ObjectGetParent ()
 Retrieve the parent of the constraint. More...
 
Dali::Handle GetTargetObject ()
 Retrieve the object which this constraint is targeting. More...
 
Property::Index GetTargetProperty ()
 Retrieve the property which this constraint is targeting. More...
 
void SetRemoveAction (RemoveAction action)
 Set the remove action. More...
 
RemoveAction GetRemoveAction () const
 Retrieve the remove action that will happen when the constraint is removed. More...
 
void SetTag (const unsigned int tag)
 Set a tag for the constraint so it can be identified later. More...
 
unsigned int GetTag () const
 Get the tag. More...
 
- Public Member Functions inherited from Dali::BaseObject
template<class T >
bool ConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, const T &functor)
 Connects a void() functor to a specified signal. More...
 
bool DoAction (const std::string &actionName, const Property::Map &attributes)
 Perform action on this object with the given action name and attributes. More...
 
const std::string & GetTypeName () const
 Returns the type name for the Handle. More...
 
bool GetTypeInfo (Dali::TypeInfo &info) const
 Returns the type info for the Handle. More...
 
bool DoConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, FunctorDelegate *functorDelegate)
 Not intended for application developers. More...
 
- Public Member Functions inherited from Dali::RefObject
void Reference ()
 Increment the object's reference count. More...
 
void Unreference ()
 Decrement the object's reference count. More...
 
int ReferenceCount ()
 Retrieve the object's reference count. More...
 

Static Public Member Functions

static ConstraintBaseNew (Object &object, Property::Index targetIndex, SourceContainer &sources, ConstraintFunctionPtr func)
 Construct a new constraint. More...
 

Protected Attributes

Property::Index mTargetIndex
 
ConstraintFunctionPtr mUserFunction
 
- Protected Attributes inherited from Dali::Internal::ConstraintBase
EventThreadServicesmEventThreadServices
 
ObjectmTargetObject
 The object owns the constraint. More...
 
const SceneGraph::ConstraintBasemSceneGraphConstraint
 
SourceContainer mSources
 
ObjectContainer mObservedObjects
 
Property::Index mTargetPropertyIndex
 
RemoveAction mRemoveAction
 
unsigned int mTag
 
bool mApplied:1
 Whether the constraint has been applied. More...
 
bool mSourceDestroyed:1
 Is set to true if any of our input source objects are destroyed. More...
 

Private Member Functions

 Constraint (Object &object, Property::Index targetIndex, SourceContainer &sources, ConstraintFunctionPtr &func)
 Private constructor; see also Constraint::New(). More...
 
 Constraint (const Constraint &)
 
Constraintoperator= (const Constraint &rhs)
 
void ConnectConstraint ()
 Create and connect a constraint for a scene-object. More...
 
PropertyConstraint< float > * ConnectConstraintFunction (SceneGraph::PropertyOwnerContainer &propertyOwners)
 Helper for ConnectConstraint. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Dali::Internal::ConstraintBase
EventThreadServicesGetEventThreadServices ()
 Get the event thread services object - used for sending messages to the scene graph Assert if called from the wrong thread. More...
 
const EventThreadServicesGetEventThreadServices () const
 Get the event thread services object - used for sending messages to the scene graph Assert if called from the wrong thread This is intentionally inline for performance reasons. More...
 

Detailed Description

template<>
class Dali::Internal::Constraint< float >

Variant which allows float components to be animated individually.

Definition at line 283 of file constraint-impl.h.

Member Typedef Documentation

Definition at line 287 of file constraint-impl.h.

Constructor & Destructor Documentation

virtual Dali::Internal::Constraint< float >::~Constraint ( )
inlinevirtual

Virtual destructor.

Definition at line 330 of file constraint-impl.h.

Dali::Internal::Constraint< float >::Constraint ( Object object,
Property::Index  targetIndex,
SourceContainer sources,
ConstraintFunctionPtr func 
)
inlineprivate

Private constructor; see also Constraint::New().

Definition at line 340 of file constraint-impl.h.

Dali::Internal::Constraint< float >::Constraint ( const Constraint< float > &  )
private

Member Function Documentation

virtual ConstraintBase* Dali::Internal::Constraint< float >::Clone ( Object object)
inlinevirtual
void Dali::Internal::Constraint< float >::ConnectConstraint ( )
inlineprivatevirtual
PropertyConstraint<float>* Dali::Internal::Constraint< float >::ConnectConstraintFunction ( SceneGraph::PropertyOwnerContainer propertyOwners)
inlineprivate

Helper for ConnectConstraint.

Creates a connected constraint-function. Also populates the property-owner container, for each input connected to the constraint-function.

Parameters
[out]propertyOwnersThe container of property-owners providing the scene-graph properties.
Returns
A connected constraint-function, or NULL if the scene-graph properties are not available.

Definition at line 488 of file constraint-impl.h.

References Dali::Internal::AddUnique(), DALI_ASSERT_ALWAYS, Dali::Internal::Actor::GetParent(), Dali::Internal::Object::GetPropertyComponentIndex(), Dali::Internal::Object::GetSceneObject(), Dali::Internal::Object::GetSceneObjectInputProperty(), Dali::Property::INVALID_COMPONENT_INDEX, Dali::Internal::Object::IsPropertyAConstraintInput(), Dali::LOCAL_PROPERTY, Dali::Internal::ConstraintBase::mSources, Dali::Internal::ConstraintBase::mTargetObject, Dali::Internal::Constraint< PropertyType >::mUserFunction, Dali::Internal::Source::object, Dali::OBJECT_PROPERTY, Dali::PARENT_PROPERTY, Dali::Internal::Source::propertyIndex, Dali::Internal::PropertyConstraint< PropertyType >::SetInput(), and Dali::Internal::Source::sourceType.

Here is the call graph for this function:

static ConstraintBase* Dali::Internal::Constraint< float >::New ( Object object,
Property::Index  targetIndex,
SourceContainer sources,
ConstraintFunctionPtr  func 
)
inlinestatic

Construct a new constraint.

Parameters
[in]objectThe property-owning object.
[in]targetIndexThe index of the property to constrain.
[in]sourcesThe sources of the input properties passed to func.
[in]funcThe constraint function.
Returns
A newly allocated constraint.

Definition at line 297 of file constraint-impl.h.

Constraint& Dali::Internal::Constraint< float >::operator= ( const Constraint< float > &  rhs)
private

Member Data Documentation

Property::Index Dali::Internal::Constraint< float >::mTargetIndex
protected

Definition at line 569 of file constraint-impl.h.

ConstraintFunctionPtr Dali::Internal::Constraint< float >::mUserFunction
protected

Definition at line 571 of file constraint-impl.h.


The documentation for this class was generated from the following file:
Dali Docs Home
Read more about Dali