Dali 3D User Interface Engine
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
Dali::Internal::ImageActor Class Reference

An actor which displays an Image object. More...

#include <image-actor-impl.h>

Inheritance diagram for Dali::Internal::ImageActor:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::ImageActor:
Collaboration graph
[legend]

Public Types

typedef Dali::ImageActor::PixelArea PixelArea
 
- Public Types inherited from Dali::Internal::Actor
typedef std::vector
< ActorDimensionPair
ActorDimensionStack
 
- Public Types inherited from Dali::Internal::Object
typedef Dali::Handle::Capability Capability
 

Public Member Functions

void OnInitialize ()
 For use in derived classes, called after Initialize() More...
 
void SetImage (ImagePtr &image)
 
ImagePtr GetImage () const
 Retrieve the image rendered by the actor's attachment. More...
 
void SetPixelArea (const PixelArea &pixelArea)
 Set a region of the image to display, in pixels. More...
 
const PixelAreaGetPixelArea () const
 Retrieve the region of the image to display, in pixels. More...
 
bool IsPixelAreaSet () const
  More...
 
void ClearPixelArea ()
  More...
 
void SetStyle (Dali::ImageActor::Style style)
 .11. More...
 
Dali::ImageActor::Style GetStyle () const
 .11. More...
 
void SetNinePatchBorder (const Vector4 &border)
 .11. More...
 
Vector4 GetNinePatchBorder () const
 .11. More...
 
void SetSortModifier (float modifier)
  More...
 
float GetSortModifier () const
  More...
 
void SetCullFace (CullFaceMode mode)
 Set the face-culling mode for an image-actor. More...
 
CullFaceMode GetCullFace () const
 Retrieve the face-culling mode for an image-actor. More...
 
void SetBlendMode (BlendingMode::Type mode)
  More...
 
BlendingMode::Type GetBlendMode () const
  More...
 
void SetBlendFunc (BlendingFactor::Type srcFactorRgba, BlendingFactor::Type destFactorRgba)
  More...
 
void SetBlendFunc (BlendingFactor::Type srcFactorRgb, BlendingFactor::Type destFactorRgb, BlendingFactor::Type srcFactorAlpha, BlendingFactor::Type destFactorAlpha)
  More...
 
void GetBlendFunc (BlendingFactor::Type &srcFactorRgb, BlendingFactor::Type &destFactorRgb, BlendingFactor::Type &srcFactorAlpha, BlendingFactor::Type &destFactorAlpha) const
  More...
 
void SetBlendEquation (BlendingEquation::Type equationRgba)
  More...
 
void SetBlendEquation (BlendingEquation::Type equationRgb, BlendingEquation::Type equationAlpha)
  More...
 
void GetBlendEquation (BlendingEquation::Type &equationRgb, BlendingEquation::Type &equationAlpha) const
  More...
 
void SetBlendColor (const Vector4 &color)
  More...
 
const Vector4GetBlendColor () const
  More...
 
void SetFilterMode (FilterMode::Type minFilter, FilterMode::Type magFilter)
  More...
 
void GetFilterMode (FilterMode::Type &minFilter, FilterMode::Type &magFilter) const
  More...
 
void EffectImageUpdated ()
 Allows this ImageActor to respond to the eventa that the shader effect's effect texture has been changed. More...
 
virtual void SetShaderEffect (ShaderEffect &effect)
  More...
 
virtual ShaderEffectPtr GetShaderEffect () const
  More...
 
virtual void RemoveShaderEffect ()
  More...
 
virtual unsigned int GetDefaultPropertyCount () const
 Query how many default properties the derived class supports. More...
 
virtual void GetDefaultPropertyIndices (Property::IndexContainer &indices) const
 Retrieve all the indices that are associated with the default properties supported by the derived class. More...
 
virtual const char * GetDefaultPropertyName (Property::Index index) const
 Query how many default properties the derived class supports. More...
 
virtual Property::Index GetDefaultPropertyIndex (const std::string &name) const
 Query the index of a default property. More...
 
virtual bool IsDefaultPropertyWritable (Property::Index index) const
 Query whether a default property is writable. More...
 
virtual bool IsDefaultPropertyAnimatable (Property::Index index) const
 Query whether a default property is animatable. More...
 
virtual bool IsDefaultPropertyAConstraintInput (Property::Index index) const
 Query whether a default property can be used as an input to a constraint. More...
 
virtual Property::Type GetDefaultPropertyType (Property::Index index) const
 Query the type of a default property. More...
 
virtual void SetDefaultProperty (Property::Index index, const Property::Value &propertyValue)
 Set the value of a default property. More...
 
virtual Property::Value GetDefaultProperty (Property::Index index) const
 Retrieve a default property value. More...
 
virtual Vector3 GetNaturalSize () const
 Return the natural size of the actor. More...
 
- Public Member Functions inherited from Dali::Internal::Actor
const std::string & GetName () const
 Retrieve the name of the actor. More...
 
void SetName (const std::string &name)
 Set the name of the actor. More...
 
unsigned int GetId () const
 Retrieve the unique ID of the actor. More...
 
void Attach (ActorAttachment &attachment)
 Attach an object to an actor. More...
 
ActorAttachmentPtr GetAttachment ()
 Retreive the object attached to an actor. More...
 
bool IsRoot () const
 Query whether an actor is the root actor, which is owned by the Stage. More...
 
bool OnStage () const
 Query whether the actor is connected to the Stage. More...
 
bool IsRenderable () const
 Query whether the actor has any renderers. More...
 
bool IsLayer () const
 Query whether the actor is of class Dali::Layer. More...
 
Dali::Layer GetLayer ()
 Gets the layer in which the actor is present. More...
 
void Add (Actor &child)
 Adds a child Actor to this Actor. More...
 
void Remove (Actor &child)
 Removes a child Actor from this Actor. More...
 
void Unparent ()
 Removes an actor from its parent. More...
 
unsigned int GetChildCount () const
 Retrieve the number of children held by the actor. More...
 
ActorPtr GetChildAt (unsigned int index) const
 Retrieve and child actor by index. More...
 
ActorContainerGetChildrenInternal ()
 Retrieve a reference to Actor's children. More...
 
ActorPtr FindChildByName (const std::string &actorName)
 Search through this actor's hierarchy for an actor with the given name. More...
 
ActorPtr FindChildById (const unsigned int id)
 Search through this actor's hierarchy for an actor with the given unique ID. More...
 
ActorGetParent () const
 Retrieve the parent of an Actor. More...
 
void SetSize (float width, float height)
 Sets the size of an actor. More...
 
void SetSize (float width, float height, float depth)
 Sets the size of an actor. More...
 
void SetSize (const Vector2 &size)
 Sets the size of an actor. More...
 
void SetSizeInternal (const Vector2 &size)
 Sets the update size for an actor. More...
 
void SetSize (const Vector3 &size)
 Sets the size of an actor. More...
 
void SetSizeInternal (const Vector3 &size)
 Sets the update size for an actor. More...
 
void SetWidth (float width)
 Set the width component of the Actor's size. More...
 
void SetHeight (float height)
 Set the height component of the Actor's size. More...
 
void SetDepth (float depth)
 Set the depth component of the Actor's size. More...
 
const Vector3GetTargetSize () const
 Retrieve the Actor's size from event side. More...
 
const Vector3GetCurrentSize () const
 Retrieve the Actor's size from update side. More...
 
void SetParentOrigin (const Vector3 &origin)
 Set the origin of an actor, within its parent's area. More...
 
void SetParentOriginX (float x)
 Set the x component of the parent-origin. More...
 
void SetParentOriginY (float y)
 Set the y component of the parent-origin. More...
 
void SetParentOriginZ (float z)
 Set the z component of the parent-origin. More...
 
const Vector3GetCurrentParentOrigin () const
 Retrieve the parent-origin of an actor. More...
 
void SetAnchorPoint (const Vector3 &anchorPoint)
 Set the anchor-point of an actor. More...
 
void SetAnchorPointX (float x)
 Set the x component of the anchor-point. More...
 
void SetAnchorPointY (float y)
 Set the y component of the anchor-point. More...
 
void SetAnchorPointZ (float z)
 Set the z component of the anchor-point. More...
 
const Vector3GetCurrentAnchorPoint () const
 Retrieve the anchor-point of an actor. More...
 
void SetPosition (float x, float y)
 Sets the position of the Actor. More...
 
void SetPosition (float x, float y, float z)
 Sets the position of the Actor. More...
 
void SetPosition (const Vector3 &position)
 Sets the position of the Actor. More...
 
void SetX (float x)
 Set the position of an actor along the X-axis. More...
 
void SetY (float y)
 Set the position of an actor along the Y-axis. More...
 
void SetZ (float z)
 Set the position of an actor along the Z-axis. More...
 
void TranslateBy (const Vector3 &distance)
 Translate an actor relative to its existing position. More...
 
const Vector3GetCurrentPosition () const
 Retrieve the position of the Actor. More...
 
const Vector3GetTargetPosition () const
 Retrieve the target position of the Actor. More...
 
const Vector3GetCurrentWorldPosition () const
 Retrieve the world-position of the Actor. More...
 
void SetPositionInheritanceMode (PositionInheritanceMode mode)
 Set the actors position inheritance mode. More...
 
PositionInheritanceMode GetPositionInheritanceMode () const
 Returns the actors position inheritance mode. More...
 
void SetOrientation (const Radian &angleRadians, const Vector3 &axis)
 Sets the orientation of the Actor. More...
 
void SetOrientation (const Quaternion &orientation)
 Sets the orientation of the Actor. More...
 
void RotateBy (const Radian &angleRadians, const Vector3 &axis)
 Rotate an actor around its existing rotation axis. More...
 
void RotateBy (const Quaternion &relativeRotation)
 Apply a relative rotation to an actor. More...
 
const QuaternionGetCurrentOrientation () const
 Retreive the Actor's orientation. More...
 
void SetInheritOrientation (bool inherit)
 Set whether a child actor inherits it's parent's orientation. More...
 
bool IsOrientationInherited () const
 Returns whether the actor inherit's it's parent's orientation. More...
 
void SetSizeModeFactor (const Vector3 &factor)
 Sets the factor of the parents size used for the child actor. More...
 
const Vector3GetSizeModeFactor () const
 Gets the factor of the parents size used for the child actor. More...
 
const QuaternionGetCurrentWorldOrientation () const
 Retrieve the world-orientation of the Actor. More...
 
void SetScale (float scale)
 Sets a scale factor applied to an actor. More...
 
void SetScale (float scaleX, float scaleY, float scaleZ)
 Sets a scale factor applied to an actor. More...
 
void SetScale (const Vector3 &scale)
 Sets a scale factor applied to an actor. More...
 
void SetScaleX (float x)
 Set the x component of the scale factor. More...
 
void SetScaleY (float y)
 Set the y component of the scale factor. More...
 
void SetScaleZ (float z)
 Set the z component of the scale factor. More...
 
void ScaleBy (const Vector3 &relativeScale)
 Apply a relative scale to an actor. More...
 
const Vector3GetCurrentScale () const
 Retrieve the scale factor applied to an actor. More...
 
const Vector3GetCurrentWorldScale () const
 Retrieve the world-scale of the Actor. More...
 
void SetInheritScale (bool inherit)
 Set whether a child actor inherits it's parent's scale. More...
 
bool IsScaleInherited () const
 Returns whether the actor inherits its parent's scale. More...
 
Matrix GetCurrentWorldMatrix () const
 Retrieves the world-matrix of the actor. More...
 
void SetVisible (bool visible)
 Sets the visibility flag of an actor. More...
 
bool IsVisible () const
 Retrieve the visibility flag of an actor. More...
 
void SetOpacity (float opacity)
 Sets the opacity of an actor. More...
 
float GetCurrentOpacity () const
 Retrieve the actor's opacity. More...
 
void SetSensitive (bool sensitive)
 Sets whether an actor should emit touch or hover signals; see SignalTouch() and SignalHover(). More...
 
bool IsSensitive () const
 Query whether an actor emits touch or hover event signals. More...
 
void SetDrawMode (DrawMode::Type drawMode)
 Set how the actor and its children should be drawn. More...
 
DrawMode::Type GetDrawMode () const
 Query how the actor and its children will be drawn. More...
 
void SetOverlay (bool enable)
  More...
 
bool IsOverlay () const
  More...
 
void SetColor (const Vector4 &color)
 Sets the actor's color. More...
 
void SetColorRed (float red)
 Set the red component of the color. More...
 
void SetColorGreen (float green)
 Set the green component of the color. More...
 
void SetColorBlue (float blue)
 Set the blue component of the scale factor. More...
 
const Vector4GetCurrentColor () const
 Retrieve the actor's color. More...
 
void SetColorMode (ColorMode colorMode)
 Sets the actor's color mode. More...
 
ColorMode GetColorMode () const
 Returns the actor's color mode. More...
 
const Vector4GetCurrentWorldColor () const
 Retrieve the world-color of the Actor, where each component is clamped within the 0->1 range. More...
 
int GetHierarchyDepth () const
 Get depth in the hierarchy for the actor. More...
 
virtual void OnSetResizePolicy (ResizePolicy::Type policy, Dimension::Type dimension)
 Notification for deriving classes when the resize policy is set. More...
 
virtual void OnCalculateRelayoutSize (Dimension::Type dimension)
 Virtual method to notify deriving classes that relayout dependencies have been met and the size for this object is about to be calculated for the given dimension. More...
 
virtual void OnLayoutNegotiated (float size, Dimension::Type dimension)
 Virtual method to notify deriving classes that the size for a dimension has just been negotiated. More...
 
virtual bool RelayoutDependentOnChildren (Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Determine if this actor is dependent on it's children for relayout. More...
 
virtual bool RelayoutDependentOnChildrenBase (Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Determine if this actor is dependent on it's children for relayout. More...
 
virtual float CalculateChildSize (const Dali::Actor &child, Dimension::Type dimension)
 Calculate the size for a child. More...
 
virtual float GetHeightForWidth (float width)
 This method is called during size negotiation when a height is required for a given width. More...
 
virtual float GetWidthForHeight (float height)
 This method is called during size negotiation when a width is required for a given height. More...
 
void NegotiateSize (const Vector2 &size, RelayoutContainer &container)
 Called by the RelayoutController to negotiate the size of an actor. More...
 
void SetResizePolicy (ResizePolicy::Type policy, Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Set the resize policy to be used for the given dimension(s). More...
 
ResizePolicy::Type GetResizePolicy (Dimension::Type dimension) const
 Return the resize policy used for a single dimension. More...
 
void SetSizeScalePolicy (SizeScalePolicy::Type policy)
 Set the policy to use when setting size with size negotiation. More...
 
SizeScalePolicy::Type GetSizeScalePolicy () const
 Return the size scale policy in use. More...
 
void SetDimensionDependency (Dimension::Type dimension, Dimension::Type dependency)
  More...
 
Dimension::Type GetDimensionDependency (Dimension::Type dimension) const
  More...
 
void SetRelayoutEnabled (bool relayoutEnabled)
 Set the size negotiation relayout enabled on this actor. More...
 
bool IsRelayoutEnabled () const
 Return if relayout is enabled. More...
 
void SetLayoutDirty (bool dirty, Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Mark an actor as having it's layout dirty. More...
 
bool IsLayoutDirty (Dimension::Type dimension=Dimension::ALL_DIMENSIONS) const
 Return if any of an actor's dimensions are marked as dirty. More...
 
bool RelayoutPossible (Dimension::Type dimension=Dimension::ALL_DIMENSIONS) const
 Returns if relayout is enabled and the actor is not dirty. More...
 
bool RelayoutRequired (Dimension::Type dimension=Dimension::ALL_DIMENSIONS) const
 Returns if relayout is enabled and the actor is dirty. More...
 
void RelayoutRequest (Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Request a relayout, which means performing a size negotiation on this actor, its parent and children (and potentially whole scene) More...
 
bool RelayoutDependentOnParent (Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Determine if this actor is dependent on it's parent for relayout. More...
 
bool RelayoutDependentOnDimension (Dimension::Type dimension, Dimension::Type dependentDimension)
 Determine if this actor has another dimension depedent on the specified one. More...
 
void NegotiateDimensions (const Vector2 &allocatedSize)
 Negotiate sizes for a control in all dimensions. More...
 
void NegotiateDimension (Dimension::Type dimension, const Vector2 &allocatedSize, ActorDimensionStack &recursionStack)
 Negotiate size for a specific dimension. More...
 
float CalculateSize (Dimension::Type dimension, const Vector2 &maximumSize)
 Calculate the size of a dimension. More...
 
float ClampDimension (float size, Dimension::Type dimension)
 Clamp a dimension given the relayout constraints on this actor. More...
 
float NegotiateFromParent (Dimension::Type dimension)
 Negotiate a dimension based on the size of the parent. More...
 
float NegotiateFromParentFit (Dimension::Type dimension)
 Negotiate a dimension based on the size of the parent. More...
 
float NegotiateFromParentFlood (Dimension::Type dimension)
 Negotiate a dimension based on the size of the parent. More...
 
float NegotiateFromChildren (Dimension::Type dimension)
 Negotiate a dimension based on the size of the children. More...
 
void SetNegotiatedDimension (float negotiatedDimension, Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Set the negotiated dimension value for the given dimension(s) More...
 
float GetNegotiatedDimension (Dimension::Type dimension) const
 Return the value of negotiated dimension for the given dimension. More...
 
void SetPadding (const Vector2 &padding, Dimension::Type dimension)
 Set the padding for a dimension. More...
 
Vector2 GetPadding (Dimension::Type dimension) const
 Return the value of padding for the given dimension. More...
 
float GetSize (Dimension::Type dimension) const
 Return the actor size for a given dimension. More...
 
float GetNaturalSize (Dimension::Type dimension) const
 Return the natural size of the actor for a given dimension. More...
 
float GetRelayoutSize (Dimension::Type dimension) const
 Return the amount of size allocated for relayout. More...
 
float GetLatestSize (Dimension::Type dimension) const
 If the size has been negotiated return that else return normal size. More...
 
void SetNegotiatedSize (RelayoutContainer &container)
 Apply the negotiated size to the actor. More...
 
void SetLayoutNegotiated (bool negotiated, Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Flag the actor as having it's layout dimension negotiated. More...
 
bool IsLayoutNegotiated (Dimension::Type dimension=Dimension::ALL_DIMENSIONS) const
 Test whether the layout dimension for this actor has been negotiated or not. More...
 
float GetHeightForWidthBase (float width)
 provides the Actor implementation of GetHeightForWidth More...
 
float GetWidthForHeightBase (float height)
 provides the Actor implementation of GetWidthForHeight More...
 
float CalculateChildSizeBase (const Dali::Actor &child, Dimension::Type dimension)
 Calculate the size for a child. More...
 
void SetPreferredSize (const Vector2 &size)
 Set the preferred size for size negotiation. More...
 
Vector2 GetPreferredSize () const
 Return the preferred size used for size negotiation. More...
 
void SetMinimumSize (float size, Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Set the minimum size an actor can be assigned in size negotiation. More...
 
float GetMinimumSize (Dimension::Type dimension) const
 Return the minimum relayout size. More...
 
void SetMaximumSize (float size, Dimension::Type dimension=Dimension::ALL_DIMENSIONS)
 Set the maximum size an actor can be assigned in size negotiation. More...
 
float GetMaximumSize (Dimension::Type dimension) const
 Return the maximum relayout size. More...
 
unsigned int AddRenderer (Renderer &renderer)
 Add a renderer to this actor. More...
 
unsigned int GetRendererCount () const
 Get the number of renderers on this actor. More...
 
RendererPtr GetRendererAt (unsigned int index)
 Get a Renderer by index. More...
 
void RemoveRenderer (Renderer &renderer)
 Remove an renderer from the actor. More...
 
void RemoveRenderer (unsigned int index)
 Remove an renderer from the actor. More...
 
bool ScreenToLocal (float &localX, float &localY, float screenX, float screenY) const
 Converts screen coordinates into the actor's coordinate system. More...
 
bool ScreenToLocal (const RenderTask &renderTask, float &localX, float &localY, float screenX, float screenY) const
 Converts screen coordinates into the actor's coordinate system. More...
 
bool ScreenToLocal (const Matrix &viewMatrix, const Matrix &projectionMatrix, const Viewport &viewport, float &localX, float &localY, float screenX, float screenY) const
 Converts from the actor's coordinate system to screen coordinates. More...
 
bool RaySphereTest (const Vector4 &rayOrigin, const Vector4 &rayDir) const
 Performs a ray-sphere test with the given pick-ray and the actor's bounding sphere. More...
 
bool RayActorTest (const Vector4 &rayOrigin, const Vector4 &rayDir, Vector4 &hitPointLocal, float &distance) const
 Performs a ray-actor test with the given pick-ray and the actor's geometry. More...
 
void SetLeaveRequired (bool required)
 Sets whether the actor should receive a notification when touch or hover motion events leave the boundary of the actor. More...
 
bool GetLeaveRequired () const
 This returns whether the actor requires touch or hover events whenever touch or hover motion events leave the boundary of the actor. More...
 
void SetKeyboardFocusable (bool focusable)
 Sets whether the actor should be focusable by keyboard navigation. More...
 
bool IsKeyboardFocusable () const
 Returns whether the actor is focusable by keyboard navigation. More...
 
bool GetTouchRequired () const
 Query whether the application or derived actor type requires touch events. More...
 
bool GetHoverRequired () const
 Query whether the application or derived actor type requires hover events. More...
 
bool GetWheelEventRequired () const
 Query whether the application or derived actor type requires wheel events. More...
 
bool IsHittable () const
 Query whether the actor is actually hittable. More...
 
ActorGestureDataGetGestureData ()
 Retrieve the gesture data associated with this actor. More...
 
bool IsGestureRequred (Gesture::Type type) const
 Queries whether the actor requires the gesture type. More...
 
bool EmitTouchEventSignal (const TouchEvent &event)
 Used by the EventProcessor to emit touch event signals. More...
 
bool EmitHoverEventSignal (const HoverEvent &event)
 Used by the EventProcessor to emit hover event signals. More...
 
bool EmitWheelEventSignal (const WheelEvent &event)
 Used by the EventProcessor to emit wheel event signals. More...
 
Dali::Actor::TouchSignalTypeTouchedSignal ()
 This signal is emitted when touch input is received. More...
 
Dali::Actor::HoverSignalTypeHoveredSignal ()
 This signal is emitted when hover input is received. More...
 
Dali::Actor::WheelEventSignalTypeWheelEventSignal ()
 This signal is emitted when wheel event is received. More...
 
Dali::Actor::OnStageSignalTypeOnStageSignal ()
 This signal is emitted after the actor has been connected to the stage. More...
 
Dali::Actor::OffStageSignalTypeOffStageSignal ()
 This signal is emitted after the actor has been disconnected from the stage. More...
 
Dali::Actor::OnRelayoutSignalTypeOnRelayoutSignal ()
 This signal is emitted after the size has been set on the actor during relayout. More...
 
void NotifySizeAnimation (Animation &animation, const Vector3 &targetSize)
 This should only be called by Animation, when the actors SIZE property is animated. More...
 
void NotifySizeAnimation (Animation &animation, float targetSize, Property::Index property)
 This should only be called by Animation, when the actors SIZE_WIDTH or SIZE_HEIGHT or SIZE_DEPTH property is animated. More...
 
virtual void OnSizeAnimation (Animation &animation, const Vector3 &targetSize)
 For use in derived classes. More...
 
void NotifyPositionAnimation (Animation &animation, const Vector3 &targetPosition)
 This should only be called by Animation, when the actors POSITION property is animated. More...
 
void NotifyPositionAnimation (Animation &animation, float targetPosition, Property::Index property)
 This should only be called by Animation, when the actors POSITION_X or POSITION_Y or POSITION_Z property is animated. More...
 
virtual void SetSceneGraphProperty (Property::Index index, const PropertyMetadata &entry, const Property::Value &value)
 Set the value of scene graph property. More...
 
virtual const
SceneGraph::PropertyOwner
GetPropertyOwner () const
  More...
 
virtual const
SceneGraph::PropertyOwner
GetSceneObject () const
 Retrieve the scene-graph object added by this object. More...
 
virtual const
SceneGraph::PropertyBase
GetSceneObjectAnimatableProperty (Property::Index index) const
 Retrieve an animatable property owned by the scene-graph object. More...
 
virtual const PropertyInputImplGetSceneObjectInputProperty (Property::Index index) const
 Retrieve a constraint input-property owned by the scene-graph object. More...
 
virtual int GetPropertyComponentIndex (Property::Index index) const
 Query whether the property is a component of a scene-graph property. More...
 
- Public Member Functions inherited from Dali::Internal::Object
 Object ()
 Constructor. More...
 
virtual void AddObserver (Observer &observer)
 Add an observer to the object. More...
 
virtual void RemoveObserver (Observer &observer)
 Remove an observer from the object. More...
 
virtual bool Supports (Capability capability) const
 Query whether an handle supports a given capability. More...
 
virtual unsigned int GetPropertyCount () const
 Query how many properties are provided by an handle. More...
 
virtual std::string GetPropertyName (Property::Index index) const
 Query the name of a property. More...
 
virtual Property::Index GetPropertyIndex (const std::string &name) const
 Query the index of a property. More...
 
virtual bool IsPropertyWritable (Property::Index index) const
 Query whether a property can be set using SetProperty(). More...
 
virtual bool IsPropertyAnimatable (Property::Index index) const
 Query whether a writable property can be the target of an animation or constraint. More...
 
virtual bool IsPropertyAConstraintInput (Property::Index index) const
 Query whether a property can be used as in input to a constraint. More...
 
virtual Property::Type GetPropertyType (Property::Index index) const
 Query the type of a property. More...
 
virtual void SetProperty (Property::Index index, const Property::Value &propertyValue)
 Set the value of an existing property. More...
 
virtual Property::Value GetProperty (Property::Index index) const
 Retrieve a property value. More...
 
virtual void GetPropertyIndices (Property::IndexContainer &indices) const
 Retrieve all the property indices for this object (including custom properties). More...
 
virtual Property::Index RegisterProperty (const std::string &name, const Property::Value &propertyValue)
 Register a new animatable property. More...
 
virtual Property::Index RegisterProperty (const std::string &name, const Property::Value &propertyValue, Property::AccessMode accessMode)
  More...
 
virtual Dali::PropertyNotification AddPropertyNotification (Property::Index index, int componentIndex, const Dali::PropertyCondition &condition)
 Add a property notification to this object. More...
 
virtual void RemovePropertyNotification (Dali::PropertyNotification propertyNotification)
 Remove a property notification from this object. More...
 
virtual void RemovePropertyNotifications ()
 Remove all property notifications from this object. More...
 
void AddUniformMapping (Property::Index propertyIndex, const std::string &uniformName) const
  More...
 
void RemoveUniformMapping (const std::string &uniformName)
  More...
 
void ApplyConstraint (ConstraintBase &constraint)
 Apply a constraint to an Object. More...
 
void RemoveConstraint (ConstraintBase &constraint)
 Remove one constraint from an Object. More...
 
void RemoveConstraints ()
 Remove all constraints from a Object. More...
 
void RemoveConstraints (unsigned int tag)
 Remove all constraints from a Object with a matching tag. More...
 
void SetTypeInfo (const TypeInfo *typeInfo)
 Called by TypeInfo to set the type-info that this object-impl is created by. More...
 
unsigned int CustomPropertyStartIndex ()
 
- 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 ImageActorPtr New ()
 Create an image actor instance. More...
 
- Static Public Member Functions inherited from Dali::Internal::Actor
static ActorPtr New ()
 Create a new actor. More...
 
static bool DoConnectSignal (BaseObject *object, ConnectionTrackerInterface *tracker, const std::string &signalName, FunctorDelegate *functor)
 Connects a callback function with the object's signals. More...
 
static bool DoAction (BaseObject *object, const std::string &actionName, const Property::Map &attributes)
 Performs actions as requested using the action name. More...
 

Protected Member Functions

 ImageActor ()
 Protected constructor; see also ImageActor::New() More...
 
virtual ~ImageActor ()
 A reference counted object may only be deleted by calling Unreference() More...
 
- Protected Member Functions inherited from Dali::Internal::Actor
 Actor (DerivedType derivedType)
 Protected Constructor. More...
 
void Initialize (void)
 Second-phase constructor. More...
 
virtual ~Actor ()
 A reference counted object may only be deleted by calling Unreference() More...
 
void ConnectToStage (unsigned int parentDepth)
 Called on a child during Add() when the parent actor is connected to the Stage. More...
 
void RecursiveConnectToStage (ActorContainer &connectionList, unsigned int depth)
 Helper for ConnectToStage, to recursively connect a tree of actors. More...
 
void ConnectToSceneGraph ()
 Connect the Node associated with this Actor to the scene-graph. More...
 
void NotifyStageConnection ()
 Helper for ConnectToStage, to notify a connected actor through the public API. More...
 
void DisconnectFromStage ()
 Called on a child during Remove() when the actor was previously on the Stage. More...
 
void RecursiveDisconnectFromStage (ActorContainer &disconnectionList)
 Helper for DisconnectFromStage, to recursively disconnect a tree of actors. More...
 
void DisconnectFromSceneGraph ()
 Disconnect the Node associated with this Actor from the scene-graph. More...
 
void NotifyStageDisconnection ()
 Helper for DisconnectFromStage, to notify a disconnected actor through the public API. More...
 
bool IsNodeConnected () const
 When the Actor is OnStage, checks whether the corresponding Node is connected to the scene graph. More...
 
- Protected Member Functions inherited from Dali::Internal::Object
virtual ~Object ()
 A reference counted object may only be deleted by calling Unreference() More...
 
void OnSceneObjectAdd ()
 Called immediately by derived classes, after the scene-object has been created & passed to the scene-graph. More...
 
void OnSceneObjectRemove ()
 Called by derived classes, shortly before send a message to remove the scene-object. More...
 
virtual void OnPropertySet (Property::Index index, Property::Value propertyValue)
 For use in derived classes. More...
 
const TypeInfoGetTypeInfo () const
 Retrieves the TypeInfo for this object. More...
 
CustomPropertyMetadataFindCustomProperty (Property::Index index) const
 Helper to find custom property. More...
 
AnimatablePropertyMetadataFindAnimatableProperty (Property::Index index) const
 Helper to find animatable property. More...
 
Property::Index RegisterSceneGraphProperty (const std::string &name, Property::Index index, const Property::Value &propertyValue) const
 Helper to register a scene-graph property. More...
 
AnimatablePropertyMetadataRegisterAnimatableProperty (Property::Index index) const
 Check whether the animatable property is registered already, if not then register one. More...
 
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...
 
- Protected Member Functions inherited from Dali::BaseObject
 BaseObject ()
 Default constructor. More...
 
virtual ~BaseObject ()
 A reference counted object may only be deleted by calling Unreference(). More...
 
void RegisterObject ()
 Registers the object as created with the Object registry. More...
 
void UnregisterObject ()
 Unregisters the object from Object registry. More...
 
- Protected Member Functions inherited from Dali::RefObject
 RefObject ()
 Default constructor. More...
 
virtual ~RefObject ()
 RefObject is intended as a base class. More...
 
 RefObject (const RefObject &rhs)
 Copy constructor. More...
 
RefObjectoperator= (const RefObject &rhs)
 Assignment operator. More...
 

Private Member Functions

virtual void OnRelayout (const Vector2 &size, RelayoutContainer &container)
 Called after the size negotiation has been finished for this control. More...
 
virtual void OnSizeSet (const Vector3 &targetSize)
 For use in derived classes. More...
 
Vector2 CalculateNaturalSize () const
 Calculate the natural size of this image actor. More...
 
void UpdateGeometry ()
 Update the grid geometry. More...
 
void UpdateTexureRect ()
 Update the texture rect uniform. More...
 

Private Attributes

ShaderEffectPtr mShaderEffect
 Optional referenced shader effect. More...
 
RendererPtr mRenderer
 The renderer used to render the image. More...
 
PixelArea mPixelArea
 The pixel area of the image to render. More...
 
Vector4 mBlendColor
 The blend color for this ImageActor. More...
 
Vector4 mNinePatchBorder
 Nine-patch not supported, but this is used to store what is set so it can be returned for backwards compatibility. More...
 
Vector2 mActorSize
 The actor size. More...
 
Uint16Pair mGridSize
 The geometry grid size. More...
 
int mRendererIndex
 The index location of mRenderer. More...
 
size_t mTextureIndex
 The texture index for this ImageActor's texture. More...
 
size_t mEffectTextureIndex
 The texture index for this ImageActor's effect texture. More...
 
FilterMode::Type mMinFilter
 The minification filter currently set. More...
 
FilterMode::Type mMagFilter
 The magnification filter currently set. More...
 
Dali::ImageActor::Style mStyle
 The style set by SetStyle. Not used internally, only used to store what is set so it can be returned for backwards compatibility. More...
 
bool mIsPixelAreaSet
 Flag indicating if the pixel area has been set. More...
 

Additional Inherited Members

- Protected Types inherited from Dali::Internal::Actor
enum  DerivedType { BASIC, LAYER, ROOT_LAYER }
 
- Protected Attributes inherited from Dali::Internal::Actor
ActormParent
 Each actor (except the root) can have one parent. More...
 
ActorContainermChildren
 Container of referenced actors. More...
 
RendererContainermRenderers
 Renderer container. More...
 
const SceneGraph::NodemNode
 Not owned. More...
 
Vector3mParentOrigin
 NULL means ParentOrigin::DEFAULT. ParentOrigin is non-animatable. More...
 
Vector3mAnchorPoint
 NULL means AnchorPoint::DEFAULT. AnchorPoint is non-animatable. More...
 
RelayoutDatamRelayoutData
 Struct to hold optional collection of relayout variables. More...
 
ActorGestureDatamGestureData
 Optional Gesture data. Only created when actor requires gestures. More...
 
ActorAttachmentPtr mAttachment
 Optional referenced attachment. More...
 
Dali::Actor::TouchSignalType mTouchedSignal
 
Dali::Actor::HoverSignalType mHoveredSignal
 
Dali::Actor::WheelEventSignalType mWheelEventSignal
 
Dali::Actor::OnStageSignalType mOnStageSignal
 
Dali::Actor::OffStageSignalType mOffStageSignal
 
Dali::Actor::OnRelayoutSignalType mOnRelayoutSignal
 
Vector3 mTargetSize
 Event-side storage for size (not a pointer as most actors will have a size) More...
 
Vector3 mTargetPosition
 Event-side storage for position (not a pointer as most actors will have a position) More...
 
std::string mName
 Name of the actor. More...
 
unsigned int mId
 A unique ID to identify the actor starting from 1, and 0 is reserved. More...
 
unsigned short mDepth:12
 Cached: The depth in the hierarchy of the actor. Only 4096 levels of depth are supported. More...
 
const bool mIsRoot: 1
 Flag to identify the root actor. More...
 
const bool mIsLayer: 1
 Flag to identify that this is a layer. More...
 
bool mIsOnStage: 1
 Flag to identify whether the actor is on-stage. More...
 
bool mSensitive: 1
 Whether the actor emits touch event signals. More...
 
bool mLeaveRequired: 1
 Whether a touch event signal is emitted when the a touch leaves the actor's bounds. More...
 
bool mKeyboardFocusable: 1
 Whether the actor should be focusable by keyboard navigation. More...
 
bool mDerivedRequiresTouch: 1
 Whether the derived actor type requires touch event signals. More...
 
bool mDerivedRequiresHover: 1
 Whether the derived actor type requires hover event signals. More...
 
bool mDerivedRequiresWheelEvent: 1
 Whether the derived actor type requires wheel event signals. More...
 
bool mOnStageSignalled: 1
 Set to true before OnStageConnection signal is emitted, and false before OnStageDisconnection. More...
 
bool mInsideOnSizeSet: 1
 Whether we are inside OnSizeSet. More...
 
bool mInheritOrientation: 1
 Cached: Whether the parent's orientation should be inherited. More...
 
bool mInheritScale: 1
 Cached: Whether the parent's scale should be inherited. More...
 
DrawMode::Type mDrawMode: 2
 Cached: How the actor and its children should be drawn. More...
 
PositionInheritanceMode mPositionInheritanceMode: 2
 Cached: Determines how position is inherited. More...
 
ColorMode mColorMode: 2
 Cached: Determines whether mWorldColor is inherited. More...
 

Detailed Description

An actor which displays an Image object.

This handles image fade-in if required, waiting for the image to load.

If a new image is set on the actor, then this ensures that the old image is displayed until the new image is ready to render to prevent flashing to the actor color. This will also happen if the image is reloaded.

This is achieved by using two connector objects to Image: mImageNext and mImageAttachment's member object. The first one points to the Image object that is going to be displayed next, the second one to the Image that is currently being displayed.

Definition at line 53 of file image-actor-impl.h.

Member Typedef Documentation

Definition at line 57 of file image-actor-impl.h.

Constructor & Destructor Documentation

Dali::Internal::ImageActor::ImageActor ( )
protected

Protected constructor; see also ImageActor::New()

Definition at line 305 of file image-actor-impl.cpp.

Dali::Internal::ImageActor::~ImageActor ( )
protectedvirtual

A reference counted object may only be deleted by calling Unreference()

Definition at line 319 of file image-actor-impl.cpp.

Member Function Documentation

Vector2 Dali::Internal::ImageActor::CalculateNaturalSize ( ) const
private

Calculate the natural size of this image actor.

Returns
Return the natural size as a Vector2

Definition at line 329 of file image-actor-impl.cpp.

References GetImage(), GetPixelArea(), Dali::Rect< T >::height, Dali::Vector2::height, IsPixelAreaSet(), Dali::Rect< T >::width, and Dali::Vector2::width.

Referenced by GetNaturalSize().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::ImageActor::ClearPixelArea ( )
void Dali::Internal::ImageActor::EffectImageUpdated ( )

Allows this ImageActor to respond to the eventa that the shader effect's effect texture has been changed.

Definition at line 740 of file image-actor-impl.cpp.

References Dali::Material::AddTexture(), Dali::GetImplementation(), Dali::Renderer::GetMaterial(), Dali::Internal::anonymous_namespace{image-actor-impl.cpp}::INVALID_TEXTURE_ID, mEffectTextureIndex, mRenderer, mShaderEffect, Dali::Material::RemoveTexture(), and Dali::Material::SetTextureImage().

Referenced by Dali::Internal::ShaderEffect::SetEffectImage(), and SetShaderEffect().

Here is the call graph for this function:

Here is the caller graph for this function:

const Vector4 & Dali::Internal::ImageActor::GetBlendColor ( ) const

Definition at line 678 of file image-actor-impl.cpp.

References mBlendColor.

void Dali::Internal::ImageActor::GetBlendEquation ( BlendingEquation::Type equationRgb,
BlendingEquation::Type equationAlpha 
) const

Definition at line 667 of file image-actor-impl.cpp.

References Dali::Renderer::GetBlendEquation(), and mRenderer.

Here is the call graph for this function:

void Dali::Internal::ImageActor::GetBlendFunc ( BlendingFactor::Type srcFactorRgb,
BlendingFactor::Type destFactorRgb,
BlendingFactor::Type srcFactorAlpha,
BlendingFactor::Type destFactorAlpha 
) const

Definition at line 651 of file image-actor-impl.cpp.

References Dali::Renderer::GetBlendFunc(), and mRenderer.

Here is the call graph for this function:

BlendingMode::Type Dali::Internal::ImageActor::GetBlendMode ( ) const

Definition at line 635 of file image-actor-impl.cpp.

References mRenderer.

CullFaceMode Dali::Internal::ImageActor::GetCullFace ( ) const

Retrieve the face-culling mode for an image-actor.

Parameters
[in]actorThe image-actor whose cull-face is required.
Returns
mode The culling mode.

Definition at line 625 of file image-actor-impl.cpp.

References mRenderer.

Property::Value Dali::Internal::ImageActor::GetDefaultProperty ( Property::Index  index) const
virtual
unsigned int Dali::Internal::ImageActor::GetDefaultPropertyCount ( ) const
virtual

Query how many default properties the derived class supports.

Returns
The number of default properties.

Reimplemented from Dali::Internal::Actor.

Definition at line 393 of file image-actor-impl.cpp.

References Dali::Internal::Actor::GetDefaultPropertyCount().

Here is the call graph for this function:

Property::Index Dali::Internal::ImageActor::GetDefaultPropertyIndex ( const std::string &  name) const
virtual

Query the index of a default property.

Parameters
[in]nameThe name of the property.
Returns
The index of the property, or Property::INVALID_INDEX if no default property exists with the given name.

Reimplemented from Dali::Internal::Actor.

Definition at line 493 of file image-actor-impl.cpp.

References Dali::DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, Dali::Internal::Actor::GetDefaultPropertyIndex(), and Dali::Property::INVALID_INDEX.

Here is the call graph for this function:

void Dali::Internal::ImageActor::GetDefaultPropertyIndices ( Property::IndexContainer indices) const
virtual

Retrieve all the indices that are associated with the default properties supported by the derived class.

Returns
A container of default property indices.
Note
The deriving class must not modify the existing elements in the container.

Reimplemented from Dali::Internal::Actor.

Definition at line 398 of file image-actor-impl.cpp.

References Dali::DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, Dali::Internal::Actor::GetDefaultPropertyIndices(), Dali::Vector< T, IsTrivialType >::PushBack(), Dali::Vector< T, IsTrivialType >::Reserve(), and Dali::VectorBase::Size().

Here is the call graph for this function:

const char * Dali::Internal::ImageActor::GetDefaultPropertyName ( Property::Index  index) const
virtual

Query how many default properties the derived class supports.

Returns
The number of default properties.

Reimplemented from Dali::Internal::Actor.

Definition at line 476 of file image-actor-impl.cpp.

References Dali::DEFAULT_ACTOR_PROPERTY_MAX_COUNT, Dali::DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, and Dali::Internal::Actor::GetDefaultPropertyName().

Here is the call graph for this function:

Property::Type Dali::Internal::ImageActor::GetDefaultPropertyType ( Property::Index  index) const
virtual

Query the type of a default property.

Parameters
[in]indexThe index of the property.
Returns
The type of the property.

Reimplemented from Dali::Internal::Actor.

Definition at line 459 of file image-actor-impl.cpp.

References Dali::DEFAULT_ACTOR_PROPERTY_MAX_COUNT, Dali::DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, Dali::Internal::Actor::GetDefaultPropertyType(), and Dali::Property::NONE.

Here is the call graph for this function:

void Dali::Internal::ImageActor::GetFilterMode ( FilterMode::Type minFilter,
FilterMode::Type magFilter 
) const

Definition at line 697 of file image-actor-impl.cpp.

References mMagFilter, and mMinFilter.

ImagePtr Dali::Internal::ImageActor::GetImage ( ) const

Retrieve the image rendered by the actor's attachment.

Returns
smart pointer to the image or an empty one if no image is assigned

Definition at line 238 of file image-actor-impl.cpp.

References Dali::Renderer::GetMaterial(), Dali::Material::GetTexture(), mRenderer, and mTextureIndex.

Referenced by CalculateNaturalSize(), ClearPixelArea(), GetDefaultProperty(), and UpdateTexureRect().

Here is the call graph for this function:

Here is the caller graph for this function:

Vector3 Dali::Internal::ImageActor::GetNaturalSize ( ) const
virtual

Return the natural size of the actor.

Deriving classes stipulate the natural size and by default an actor has a ZERO natural size.

.0

Returns
The actor's natural size

Reimplemented from Dali::Internal::Actor.

Definition at line 323 of file image-actor-impl.cpp.

References CalculateNaturalSize(), Dali::Vector2::height, and Dali::Vector2::width.

Here is the call graph for this function:

Vector4 Dali::Internal::ImageActor::GetNinePatchBorder ( ) const

.11.

Use ImageView instead.

Retrieve the border used with ImageActor::STYLE_NINE_PATCH.

.0

Remarks
This is an experimental feature and might not be supported in the next release. We do recommend not to use it.
Returns
The nine-patch border.

Definition at line 299 of file image-actor-impl.cpp.

References DALI_LOG_WARNING, and mNinePatchBorder.

const ImageActor::PixelArea & Dali::Internal::ImageActor::GetPixelArea ( ) const

Retrieve the region of the image to display, in pixels.

.0

Remarks
This is an experimental feature and might not be supported in the next release. We do recommend not to use it.
Returns
The pixel area, or a default-constructed area if none was set.
Precondition
Image must be initialized.

Definition at line 252 of file image-actor-impl.cpp.

References mPixelArea.

Referenced by CalculateNaturalSize(), and GetDefaultProperty().

Here is the caller graph for this function:

ShaderEffectPtr Dali::Internal::ImageActor::GetShaderEffect ( ) const
virtual

Definition at line 721 of file image-actor-impl.cpp.

References mShaderEffect.

float Dali::Internal::ImageActor::GetSortModifier ( ) const

Definition at line 615 of file image-actor-impl.cpp.

References mRenderer.

Dali::ImageActor::Style Dali::Internal::ImageActor::GetStyle ( ) const

.11.

Use ImageView instead.

Query how the image is rendered.

.0

Remarks
This is an experimental feature and might not be supported in the next release. We do recommend not to use it.
Returns
The rendering style
Precondition
Image must be initialized.
Note
This just returns the style set by SetStyle. In reality, only STYLE_QUAD is supported.

Definition at line 287 of file image-actor-impl.cpp.

References DALI_LOG_WARNING, and mStyle.

bool Dali::Internal::ImageActor::IsDefaultPropertyAConstraintInput ( Property::Index  index) const
virtual

Query whether a default property can be used as an input to a constraint.

Parameters
[in]indexThe index of the property.
Returns
True if the property can be used as an input to a constraint.

Reimplemented from Dali::Internal::Actor.

Definition at line 443 of file image-actor-impl.cpp.

References Dali::DEFAULT_ACTOR_PROPERTY_MAX_COUNT, Dali::DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, and Dali::Internal::Actor::IsDefaultPropertyAConstraintInput().

Here is the call graph for this function:

bool Dali::Internal::ImageActor::IsDefaultPropertyAnimatable ( Property::Index  index) const
virtual

Query whether a default property is animatable.

This determines whether the property can be the target of an animation or constraint.

Parameters
[in]indexThe index of the property.
Returns
True if the property is animatable.

Reimplemented from Dali::Internal::Actor.

Definition at line 427 of file image-actor-impl.cpp.

References Dali::DEFAULT_ACTOR_PROPERTY_MAX_COUNT, Dali::DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, and Dali::Internal::Actor::IsDefaultPropertyAnimatable().

Here is the call graph for this function:

bool Dali::Internal::ImageActor::IsDefaultPropertyWritable ( Property::Index  index) const
virtual

Query whether a default property is writable.

Parameters
[in]indexThe index of the property.
Returns
True if the property is animatable.

Reimplemented from Dali::Internal::Actor.

Definition at line 411 of file image-actor-impl.cpp.

References Dali::DEFAULT_ACTOR_PROPERTY_MAX_COUNT, Dali::DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, and Dali::Internal::Actor::IsDefaultPropertyWritable().

Here is the call graph for this function:

bool Dali::Internal::ImageActor::IsPixelAreaSet ( ) const

Definition at line 257 of file image-actor-impl.cpp.

References mIsPixelAreaSet.

Referenced by CalculateNaturalSize().

Here is the caller graph for this function:

ImageActorPtr Dali::Internal::ImageActor::New ( )
static

Create an image actor instance.

Returns
A smart-pointer to a newly allocated image actor.

Definition at line 179 of file image-actor-impl.cpp.

References CreateGeometry(), Dali::Shader::HINT_NONE, Dali::Internal::Shader::New(), Dali::Internal::Renderer::New(), Dali::Internal::Material::New(), and Dali::Vector2::ONE.

Referenced by Dali::ImageActor::New().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::ImageActor::OnInitialize ( )
virtual

For use in derived classes, called after Initialize()

Reimplemented from Dali::Internal::Actor.

Definition at line 200 of file image-actor-impl.cpp.

References Dali::Dimension::ALL_DIMENSIONS, Dali::Internal::Actor::SetResizePolicy(), and Dali::ResizePolicy::USE_NATURAL_SIZE.

Here is the call graph for this function:

void Dali::Internal::ImageActor::OnRelayout ( const Vector2 size,
RelayoutContainer container 
)
privatevirtual

Called after the size negotiation has been finished for this control.

The control is expected to assign this given size to itself/its children.

Should be overridden by derived classes if they need to layout actors differently after certain operations like add or remove actors, resize or after changing specific properties.

Note! As this function is called from inside the size negotiation algorithm, you cannot call RequestRelayout (the call would just be ignored)

Parameters
[in]sizeThe allocated size.
[in,out]containerThe control should add actors to this container that it is not able to allocate a size for.

Reimplemented from Dali::Internal::Actor.

Definition at line 770 of file image-actor-impl.cpp.

References mActorSize, and UpdateGeometry().

Here is the call graph for this function:

void Dali::Internal::ImageActor::OnSizeSet ( const Vector3 targetSize)
privatevirtual

For use in derived classes.

This is called after SizeSet() has been called.

Reimplemented from Dali::Internal::Actor.

Definition at line 779 of file image-actor-impl.cpp.

References mActorSize, UpdateGeometry(), Dali::Vector3::x, and Dali::Vector3::y.

Here is the call graph for this function:

void Dali::Internal::ImageActor::RemoveShaderEffect ( )
virtual
void Dali::Internal::ImageActor::SetBlendColor ( const Vector4 color)

Definition at line 672 of file image-actor-impl.cpp.

References mBlendColor, and mRenderer.

void Dali::Internal::ImageActor::SetBlendEquation ( BlendingEquation::Type  equationRgba)

Definition at line 657 of file image-actor-impl.cpp.

References mRenderer, and Dali::Renderer::SetBlendEquation().

Here is the call graph for this function:

void Dali::Internal::ImageActor::SetBlendEquation ( BlendingEquation::Type  equationRgb,
BlendingEquation::Type  equationAlpha 
)

Definition at line 662 of file image-actor-impl.cpp.

References mRenderer, and Dali::Renderer::SetBlendEquation().

Here is the call graph for this function:

void Dali::Internal::ImageActor::SetBlendFunc ( BlendingFactor::Type  srcFactorRgba,
BlendingFactor::Type  destFactorRgba 
)

Definition at line 640 of file image-actor-impl.cpp.

References mRenderer, and Dali::Renderer::SetBlendFunc().

Here is the call graph for this function:

void Dali::Internal::ImageActor::SetBlendFunc ( BlendingFactor::Type  srcFactorRgb,
BlendingFactor::Type  destFactorRgb,
BlendingFactor::Type  srcFactorAlpha,
BlendingFactor::Type  destFactorAlpha 
)

Definition at line 645 of file image-actor-impl.cpp.

References mRenderer, and Dali::Renderer::SetBlendFunc().

Here is the call graph for this function:

void Dali::Internal::ImageActor::SetBlendMode ( BlendingMode::Type  mode)

Definition at line 630 of file image-actor-impl.cpp.

References mRenderer.

void Dali::Internal::ImageActor::SetCullFace ( CullFaceMode  mode)

Set the face-culling mode for an image-actor.

Parameters
[in]actorThe image-actor to set the cull-face on.
[in]modeThe culling mode.

Definition at line 620 of file image-actor-impl.cpp.

References mRenderer.

void Dali::Internal::ImageActor::SetDefaultProperty ( Property::Index  index,
const Property::Value propertyValue 
)
virtual

Set the value of a default property.

Precondition
The property types match i.e. propertyValue.GetType() is equal to GetPropertyType(index).
Parameters
[in]indexThe index of the property.
[in]propertyValueThe new value of the property.

Reimplemented from Dali::Internal::Actor.

Definition at line 516 of file image-actor-impl.cpp.

References Dali::ImageActor::Property::BORDER, DALI_LOG_WARNING, Dali::DEFAULT_ACTOR_PROPERTY_MAX_COUNT, Dali::GetImplementation(), Dali::ImageActor::Property::IMAGE, Dali::Scripting::NewImage(), Dali::ImageActor::Property::PIXEL_AREA, Dali::Internal::Actor::SetDefaultProperty(), SetImage(), SetPixelArea(), and Dali::ImageActor::Property::STYLE.

Here is the call graph for this function:

void Dali::Internal::ImageActor::SetFilterMode ( FilterMode::Type  minFilter,
FilterMode::Type  magFilter 
)
void Dali::Internal::ImageActor::SetImage ( ImagePtr image)
void Dali::Internal::ImageActor::SetNinePatchBorder ( const Vector4 border)

.11.

Use ImageView instead.

Set the border used with ImageActor::STYLE_NINE_PATCH.

The values are in pixels from the left, top, right, and bottom of the image respectively. i.e. ImageActor::SetNinePatchBorder( Vector4(1,2,3,4) ) sets the left-border to 1, top-border to 2, right-border to 3, and bottom-border to 4 pixels. .0

Remarks
This is an experimental feature and might not be supported in the next release. We do recommend not to use it.
Parameters
[in]borderThe new nine-patch border

Definition at line 293 of file image-actor-impl.cpp.

References DALI_LOG_WARNING, and mNinePatchBorder.

void Dali::Internal::ImageActor::SetPixelArea ( const PixelArea pixelArea)

Set a region of the image to display, in pixels.

When the image is loaded the actor's size will be reset to the pixelArea, unless a custom size was chosen, e.g. via Actor::SetSize(). .0

Remarks
This is an experimental feature and might not be supported in the next release. We do recommend not to use it.
Parameters
[in]pixelAreaThe area of the image to display. This in pixels, relative to the top-left (0,0) of the image.
Precondition
Image must be initialized.
Note
PixelArea should be inside the image data size. It gets clamped by GL.

Definition at line 243 of file image-actor-impl.cpp.

References mIsPixelAreaSet, mPixelArea, Dali::Internal::Actor::RelayoutRequest(), and UpdateTexureRect().

Referenced by SetDefaultProperty().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::ImageActor::SetShaderEffect ( ShaderEffect effect)
virtual
void Dali::Internal::ImageActor::SetSortModifier ( float  modifier)

Definition at line 610 of file image-actor-impl.cpp.

References mRenderer.

void Dali::Internal::ImageActor::SetStyle ( Dali::ImageActor::Style  style)

.11.

Use ImageView instead.

Set how the image is rendered; the default is STYLE_QUAD.

.0

Remarks
This is an experimental feature and might not be supported in the next release. We do recommend not to use it.
Parameters
[in]styleThe new style
Precondition
Image must be initialized.
Note
The style specified is set (so GetStyle will return what's set) but ignored internally.

Definition at line 281 of file image-actor-impl.cpp.

References DALI_LOG_WARNING, and mStyle.

void Dali::Internal::ImageActor::UpdateGeometry ( )
private
void Dali::Internal::ImageActor::UpdateTexureRect ( )
private

Member Data Documentation

Vector2 Dali::Internal::ImageActor::mActorSize
private

The actor size.

Definition at line 334 of file image-actor-impl.h.

Referenced by OnRelayout(), OnSizeSet(), and UpdateGeometry().

Vector4 Dali::Internal::ImageActor::mBlendColor
private

The blend color for this ImageActor.

Definition at line 332 of file image-actor-impl.h.

Referenced by GetBlendColor(), and SetBlendColor().

size_t Dali::Internal::ImageActor::mEffectTextureIndex
private

The texture index for this ImageActor's effect texture.

Definition at line 338 of file image-actor-impl.h.

Referenced by EffectImageUpdated().

Uint16Pair Dali::Internal::ImageActor::mGridSize
private

The geometry grid size.

Definition at line 335 of file image-actor-impl.h.

Referenced by UpdateGeometry().

bool Dali::Internal::ImageActor::mIsPixelAreaSet
private

Flag indicating if the pixel area has been set.

Definition at line 342 of file image-actor-impl.h.

Referenced by ClearPixelArea(), IsPixelAreaSet(), SetImage(), SetPixelArea(), and UpdateTexureRect().

FilterMode::Type Dali::Internal::ImageActor::mMagFilter
private

The magnification filter currently set.

Definition at line 340 of file image-actor-impl.h.

Referenced by GetFilterMode(), SetFilterMode(), and SetImage().

FilterMode::Type Dali::Internal::ImageActor::mMinFilter
private

The minification filter currently set.

Definition at line 339 of file image-actor-impl.h.

Referenced by GetFilterMode(), SetFilterMode(), and SetImage().

Vector4 Dali::Internal::ImageActor::mNinePatchBorder
private

Nine-patch not supported, but this is used to store what is set so it can be returned for backwards compatibility.

Definition at line 333 of file image-actor-impl.h.

Referenced by GetNinePatchBorder(), and SetNinePatchBorder().

PixelArea Dali::Internal::ImageActor::mPixelArea
private

The pixel area of the image to render.

Definition at line 331 of file image-actor-impl.h.

Referenced by ClearPixelArea(), GetPixelArea(), SetImage(), SetPixelArea(), UpdateGeometry(), and UpdateTexureRect().

RendererPtr Dali::Internal::ImageActor::mRenderer
private
int Dali::Internal::ImageActor::mRendererIndex
private

The index location of mRenderer.

Definition at line 336 of file image-actor-impl.h.

Referenced by SetImage().

ShaderEffectPtr Dali::Internal::ImageActor::mShaderEffect
private

Optional referenced shader effect.

Definition at line 329 of file image-actor-impl.h.

Referenced by EffectImageUpdated(), GetShaderEffect(), RemoveShaderEffect(), SetShaderEffect(), and UpdateGeometry().

Dali::ImageActor::Style Dali::Internal::ImageActor::mStyle
private

The style set by SetStyle. Not used internally, only used to store what is set so it can be returned for backwards compatibility.

Definition at line 341 of file image-actor-impl.h.

Referenced by GetStyle(), and SetStyle().

size_t Dali::Internal::ImageActor::mTextureIndex
private

The texture index for this ImageActor's texture.

Definition at line 337 of file image-actor-impl.h.

Referenced by GetImage(), SetFilterMode(), and SetImage().


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