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

Renderer is an object that can be used to show content by combining a Geometry with a material. More...

#include <renderer-impl.h>

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

Public Member Functions

void SetGeometry (Geometry &geometry)
 Sets the geometry to be used by this renderer. More...
 
GeometryGetGeometry () const
 Gets the geometry used by this renderer. More...
 
void SetMaterial (Material &material)
 Sets the material to be used by this renderer. More...
 
MaterialGetMaterial () const
 Gets the material used by this renderer. More...
 
void SetDepthIndex (int depthIndex)
  More...
 
int GetDepthIndex () const
  More...
 
void SetFaceCullingMode (Dali::Renderer::FaceCullingMode cullingMode)
  More...
 
Dali::Renderer::FaceCullingMode GetFaceCullingMode ()
  More...
 
void SetBlendMode (BlendingMode::Type mode)
  More...
 
BlendingMode::Type GetBlendMode () const
  More...
 
void SetBlendFunc (BlendingFactor::Type srcFactorRgba, BlendingFactor::Type destFactorRgba)
 Specify the pixel arithmetic used when the actor is blended. More...
 
void SetBlendFunc (BlendingFactor::Type srcFactorRgb, BlendingFactor::Type destFactorRgb, BlendingFactor::Type srcFactorAlpha, BlendingFactor::Type destFactorAlpha)
 Specify the pixel arithmetic used when the actor is blended. More...
 
void GetBlendFunc (BlendingFactor::Type &srcFactorRgb, BlendingFactor::Type &destFactorRgb, BlendingFactor::Type &srcFactorAlpha, BlendingFactor::Type &destFactorAlpha) const
 Query the pixel arithmetic used when the actor is blended. More...
 
void SetBlendEquation (BlendingEquation::Type equationRgba)
 Specify the equation used when the actor is blended. More...
 
void SetBlendEquation (BlendingEquation::Type equationRgb, BlendingEquation::Type equationAlpha)
 Specify the equation used when the actor is blended. More...
 
void GetBlendEquation (BlendingEquation::Type &equationRgb, BlendingEquation::Type &equationAlpha) const
 Query the equation used when the actor is blended. More...
 
void SetBlendColor (const Vector4 &color)
  More...
 
Vector4 GetBlendColor () const
  More...
 
void EnablePreMultipliedAlpha (bool preMultipled)
 Set whether the Pre-multiplied Alpha Blending is required. More...
 
bool IsPreMultipliedAlphaEnabled () const
 Query whether alpha is pre-multiplied. More...
 
SceneGraph::RendererGetRendererSceneObject ()
 Get the scene graph object ( the node attachment ) 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 void SetSceneGraphProperty (Property::Index index, const PropertyMetadata &entry, const Property::Value &value)
 Set the value of scene graph property. More...
 
virtual Property::Value GetDefaultProperty (Property::Index index) const
 Retrieve a default property value. 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...
 
virtual bool OnStage () const
 Check if the object is on stage. More...
 
virtual void Connect ()
 Notify this objects that it has been connected to the stage. More...
 
virtual void Disconnect ()
 Notify this objects that it has been disconnected to the stage. 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 RendererPtr New ()
 Create a new Renderer. More...
 

Protected Member Functions

virtual ~Renderer ()
 A reference counted object may only be deleted by calling Unreference() 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

 Renderer ()
 
void Initialize ()
 
 Renderer (const Renderer &)
 
Rendereroperator= (const Renderer &)
 

Private Attributes

SceneGraph::RenderermSceneObject
 
Vector4mBlendColor
 Local copy of blend color, pointer only as its rarely used. More...
 
ObjectConnector< GeometrymGeometryConnector
 Connector that holds the geometry used by this renderer. More...
 
ObjectConnector< MaterialmMaterialConnector
 Connector that holds the material used by this renderer. More...
 
int mDepthIndex
 
int mOnStageCount
 
Dali::Renderer::FaceCullingMode mFaceCullingMode
 Local copy of face culling mode. More...
 
BlendingMode::Type mBlendingMode
 Local copy of blending mode. More...
 
BlendingOptions mBlendingOptions
 Local copy of blending options bitmask. More...
 
bool mPremultipledAlphaEnabled
 Flag indicating whether the Pre-multiplied Alpha Blending is required. More...
 

Additional Inherited Members

- Public Types inherited from Dali::Internal::Object
typedef Dali::Handle::Capability Capability
 

Detailed Description

Renderer is an object that can be used to show content by combining a Geometry with a material.

Definition at line 48 of file renderer-impl.h.

Constructor & Destructor Documentation

Dali::Internal::Renderer::Renderer ( )
private

Definition at line 588 of file renderer-impl.cpp.

Referenced by New().

Here is the caller graph for this function:

Dali::Internal::Renderer::~Renderer ( )
protectedvirtual
Dali::Internal::Renderer::Renderer ( const Renderer )
private

Member Function Documentation

void Dali::Internal::Renderer::Connect ( )
virtual

Notify this objects that it has been connected to the stage.

Definition at line 566 of file renderer-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), mGeometryConnector, mMaterialConnector, mOnStageCount, mSceneObject, and Dali::Internal::SceneGraph::OnStageConnectMessage().

Here is the call graph for this function:

void Dali::Internal::Renderer::Disconnect ( )
virtual

Notify this objects that it has been disconnected to the stage.

Definition at line 577 of file renderer-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), mGeometryConnector, mMaterialConnector, mOnStageCount, mSceneObject, and Dali::Internal::SceneGraph::OnStageDisconnectMessage().

Here is the call graph for this function:

void Dali::Internal::Renderer::EnablePreMultipliedAlpha ( bool  preMultipled)

Set whether the Pre-multiplied Alpha Blending is required.

Parameters
[in]preMultipledwhether alpha is pre-multiplied.

Definition at line 211 of file renderer-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), mPremultipledAlphaEnabled, mSceneObject, Dali::BlendingFactor::ONE, Dali::BlendingFactor::ONE_MINUS_SRC_ALPHA, SetBlendFunc(), and Dali::Internal::SceneGraph::SetEnablePreMultipliedAlphaMessage().

Referenced by SetDefaultProperty().

Here is the call graph for this function:

Here is the caller graph for this function:

Vector4 Dali::Internal::Renderer::GetBlendColor ( ) const

Definition at line 202 of file renderer-impl.cpp.

References mBlendColor, and Dali::Color::TRANSPARENT.

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

Query the equation used when the actor is blended.

Parameters
[out]equationRgbThe equation used for combining red, green, and blue components.
[out]equationAlphaThe equation used for combining the alpha component.

Definition at line 181 of file renderer-impl.cpp.

References Dali::Internal::BlendingOptions::GetBlendEquationAlpha(), Dali::Internal::BlendingOptions::GetBlendEquationRgb(), and mBlendingOptions.

Here is the call graph for this function:

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

Query the pixel arithmetic used when the actor is blended.

Parameters
[out]srcFactorRgbSpecifies how the red, green, blue, and alpha source blending factors are computed.
[out]destFactorRgbSpecifies how the red, green, blue, and alpha destination blending factors are computed.
[out]srcFactorAlphaSpecifies how the red, green, blue, and alpha source blending factors are computed.
[out]destFactorAlphaSpecifies how the red, green, blue, and alpha destination blending factors are computed.

Definition at line 157 of file renderer-impl.cpp.

References Dali::Internal::BlendingOptions::GetBlendDestFactorAlpha(), Dali::Internal::BlendingOptions::GetBlendDestFactorRgb(), Dali::Internal::BlendingOptions::GetBlendSrcFactorAlpha(), Dali::Internal::BlendingOptions::GetBlendSrcFactorRgb(), and mBlendingOptions.

Referenced by GetDefaultProperty(), and SetDefaultProperty().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 137 of file renderer-impl.cpp.

References mBlendingMode.

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

Query how many default properties the derived class supports.

Returns
The number of default properties.

Implements Dali::Internal::Object.

Definition at line 234 of file renderer-impl.cpp.

References Dali::Internal::anonymous_namespace{renderer-impl.cpp}::RENDERER_IMPL.

Property::Index Dali::Internal::Renderer::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.

Implements Dali::Internal::Object.

Definition at line 249 of file renderer-impl.cpp.

References Dali::Internal::anonymous_namespace{renderer-impl.cpp}::RENDERER_IMPL.

void Dali::Internal::Renderer::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.

Implements Dali::Internal::Object.

Definition at line 239 of file renderer-impl.cpp.

References Dali::Internal::anonymous_namespace{renderer-impl.cpp}::RENDERER_IMPL.

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

Query how many default properties the derived class supports.

Returns
The number of default properties.

Implements Dali::Internal::Object.

Definition at line 244 of file renderer-impl.cpp.

References Dali::Internal::anonymous_namespace{renderer-impl.cpp}::RENDERER_IMPL.

Property::Type Dali::Internal::Renderer::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.

Implements Dali::Internal::Object.

Definition at line 269 of file renderer-impl.cpp.

References Dali::Internal::anonymous_namespace{renderer-impl.cpp}::RENDERER_IMPL.

int Dali::Internal::Renderer::GetDepthIndex ( ) const

Definition at line 107 of file renderer-impl.cpp.

References mDepthIndex.

Referenced by GetDefaultProperty().

Here is the caller graph for this function:

Dali::Renderer::FaceCullingMode Dali::Internal::Renderer::GetFaceCullingMode ( )

Definition at line 122 of file renderer-impl.cpp.

References mFaceCullingMode.

Geometry * Dali::Internal::Renderer::GetGeometry ( ) const

Gets the geometry used by this renderer.

Returns
The geometry used by the renderer

Definition at line 81 of file renderer-impl.cpp.

References mGeometryConnector.

Material * Dali::Internal::Renderer::GetMaterial ( ) const

Gets the material used by this renderer.

Returns
The material used by the renderer

Definition at line 93 of file renderer-impl.cpp.

References mMaterialConnector.

int Dali::Internal::Renderer::GetPropertyComponentIndex ( Property::Index  index) const
virtual

Query whether the property is a component of a scene-graph property.

Precondition
-1 < index < GetPropertyCount().
Parameters
[in]indexThe index of the property.
Returns
The index or Property::INVALID_COMPONENT_INDEX.

Reimplemented from Dali::Internal::Object.

Definition at line 556 of file renderer-impl.cpp.

References Dali::Property::INVALID_COMPONENT_INDEX.

const SceneGraph::PropertyOwner * Dali::Internal::Renderer::GetPropertyOwner ( ) const
virtual

Todo:
this is virtual so that for now actor can override it, it needs to be removed and only have GetSceneObject but that requires changing actor and constraint logic Retrieve the scene-graph object added by this object.
Returns
A pointer to the object, or NULL if no object has been added to the scene-graph.

Reimplemented from Dali::Internal::Object.

Definition at line 512 of file renderer-impl.cpp.

References mSceneObject.

SceneGraph::Renderer * Dali::Internal::Renderer::GetRendererSceneObject ( )

Get the scene graph object ( the node attachment )

Returns
the scene object

Definition at line 229 of file renderer-impl.cpp.

References mSceneObject.

Referenced by Dali::Internal::Actor::AddRenderer(), and Dali::Internal::Actor::RemoveRenderer().

Here is the caller graph for this function:

const SceneGraph::PropertyOwner * Dali::Internal::Renderer::GetSceneObject ( ) const
virtual

Retrieve the scene-graph object added by this object.

Returns
A pointer to the object, or NULL if no object has been added to the scene-graph.

Implements Dali::Internal::Object.

Definition at line 517 of file renderer-impl.cpp.

References mSceneObject.

const SceneGraph::PropertyBase * Dali::Internal::Renderer::GetSceneObjectAnimatableProperty ( Property::Index  index) const
virtual

Retrieve an animatable property owned by the scene-graph object.

Precondition
-1 < index < GetPropertyCount().
Parameters
[in]indexThe index of the property.
Returns
A dereferenceable pointer to a property, or NULL if a scene-object does not exist with this property.

Implements Dali::Internal::Object.

Definition at line 522 of file renderer-impl.cpp.

References DALI_ASSERT_ALWAYS, Dali::Internal::Object::FindAnimatableProperty(), Dali::Internal::Object::FindCustomProperty(), Dali::Internal::Object::IsPropertyAnimatable(), OnStage(), and Dali::Internal::anonymous_namespace{renderer-impl.cpp}::RENDERER_IMPL.

Here is the call graph for this function:

const PropertyInputImpl * Dali::Internal::Renderer::GetSceneObjectInputProperty ( Property::Index  index) const
virtual

Retrieve a constraint input-property owned by the scene-graph object.

Precondition
-1 < index < GetPropertyCount().
Parameters
[in]indexThe index of the property.
Returns
A dereferenceable pointer to an input property, or NULL if a scene-object does not exist with this property.

Implements Dali::Internal::Object.

Definition at line 539 of file renderer-impl.cpp.

References Dali::Internal::Object::FindAnimatableProperty(), Dali::Internal::Object::FindCustomProperty(), OnStage(), and Dali::Internal::anonymous_namespace{renderer-impl.cpp}::RENDERER_IMPL.

Here is the call graph for this function:

void Dali::Internal::Renderer::Initialize ( void  )
private
bool Dali::Internal::Renderer::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.

Implements Dali::Internal::Object.

Definition at line 264 of file renderer-impl.cpp.

References Dali::Internal::anonymous_namespace{renderer-impl.cpp}::RENDERER_IMPL.

bool Dali::Internal::Renderer::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.

Implements Dali::Internal::Object.

Definition at line 259 of file renderer-impl.cpp.

References Dali::Internal::anonymous_namespace{renderer-impl.cpp}::RENDERER_IMPL.

bool Dali::Internal::Renderer::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.

Implements Dali::Internal::Object.

Definition at line 254 of file renderer-impl.cpp.

References Dali::Internal::anonymous_namespace{renderer-impl.cpp}::RENDERER_IMPL.

bool Dali::Internal::Renderer::IsPreMultipliedAlphaEnabled ( ) const

Query whether alpha is pre-multiplied.

Returns
True is alpha is pre-multiplied, false otherwise.

Definition at line 224 of file renderer-impl.cpp.

References mPremultipledAlphaEnabled.

Referenced by GetDefaultProperty().

Here is the caller graph for this function:

RendererPtr Dali::Internal::Renderer::New ( )
static

Create a new Renderer.

Returns
A smart-pointer to the newly allocated Renderer.

Definition at line 66 of file renderer-impl.cpp.

References Renderer().

Referenced by Dali::Internal::ImageActor::New(), and Dali::Renderer::New().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Dali::Internal::Renderer::OnStage ( ) const
virtual

Check if the object is on stage.

Definition at line 561 of file renderer-impl.cpp.

References mOnStageCount.

Referenced by GetSceneObjectAnimatableProperty(), GetSceneObjectInputProperty(), SetGeometry(), and SetMaterial().

Here is the caller graph for this function:

Renderer& Dali::Internal::Renderer::operator= ( const Renderer )
private
void Dali::Internal::Renderer::SetBlendColor ( const Vector4 color)

Definition at line 189 of file renderer-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), mBlendColor, mSceneObject, and Dali::Internal::SceneGraph::SetBlendColorMessage().

Referenced by SetDefaultProperty().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Specify the equation used when the actor is blended.

The options are BlendingEquation::ADD, SUBTRACT, or REVERSE_SUBTRACT.

Parameters
[in]equationRgbaThe equation used for combining red, green, blue, and alpha components.

Definition at line 168 of file renderer-impl.cpp.

References Dali::Internal::BlendingOptions::GetBitmask(), Dali::Internal::Object::GetEventThreadServices(), mBlendingOptions, mSceneObject, Dali::Internal::BlendingOptions::SetBlendEquation(), and Dali::Internal::SceneGraph::SetBlendingOptionsMessage().

Here is the call graph for this function:

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

Specify the equation used when the actor is blended.

The options are BlendingEquation::ADD, SUBTRACT, or REVERSE_SUBTRACT.

Parameters
[in]equationRgbaThe equation used for combining red, green, blue, and alpha components.

Definition at line 174 of file renderer-impl.cpp.

References Dali::Internal::BlendingOptions::GetBitmask(), Dali::Internal::Object::GetEventThreadServices(), mBlendingOptions, mSceneObject, Dali::Internal::BlendingOptions::SetBlendEquation(), and Dali::Internal::SceneGraph::SetBlendingOptionsMessage().

Here is the call graph for this function:

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

Specify the pixel arithmetic used when the actor is blended.

Parameters
[in]srcFactorRgbaSpecifies how the red, green, blue, and alpha source blending factors are computed. The options are BlendingFactor::ZERO, ONE, SRC_COLOR, ONE_MINUS_SRC_COLOR, DST_COLOR, ONE_MINUS_DST_COLOR, SRC_ALPHA, ONE_MINUS_SRC_ALPHA, DST_ALPHA, ONE_MINUS_DST_ALPHA, CONSTANT_COLOR, ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA, and GL_SRC_ALPHA_SATURATE.
[in]destFactorRgbaSpecifies how the red, green, blue, and alpha destination blending factors are computed. The options are BlendingFactor::ZERO, ONE, SRC_COLOR, ONE_MINUS_SRC_COLOR, DST_COLOR, ONE_MINUS_DST_COLOR, SRC_ALPHA, ONE_MINUS_SRC_ALPHA, DST_ALPHA, ONE_MINUS_DST_ALPHA, CONSTANT_COLOR, ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, and GL_ONE_MINUS_CONSTANT_ALPHA.

Definition at line 142 of file renderer-impl.cpp.

References Dali::Internal::BlendingOptions::GetBitmask(), Dali::Internal::Object::GetEventThreadServices(), mBlendingOptions, mSceneObject, Dali::Internal::BlendingOptions::SetBlendFunc(), and Dali::Internal::SceneGraph::SetBlendingOptionsMessage().

Referenced by EnablePreMultipliedAlpha(), and SetDefaultProperty().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Specify the pixel arithmetic used when the actor is blended.

Parameters
[in]srcFactorRgbaSpecifies how the red, green, blue, and alpha source blending factors are computed. The options are BlendingFactor::ZERO, ONE, SRC_COLOR, ONE_MINUS_SRC_COLOR, DST_COLOR, ONE_MINUS_DST_COLOR, SRC_ALPHA, ONE_MINUS_SRC_ALPHA, DST_ALPHA, ONE_MINUS_DST_ALPHA, CONSTANT_COLOR, ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA, and GL_SRC_ALPHA_SATURATE.
[in]destFactorRgbaSpecifies how the red, green, blue, and alpha destination blending factors are computed. The options are BlendingFactor::ZERO, ONE, SRC_COLOR, ONE_MINUS_SRC_COLOR, DST_COLOR, ONE_MINUS_DST_COLOR, SRC_ALPHA, ONE_MINUS_SRC_ALPHA, DST_ALPHA, ONE_MINUS_DST_ALPHA, CONSTANT_COLOR, ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, and GL_ONE_MINUS_CONSTANT_ALPHA.

Definition at line 148 of file renderer-impl.cpp.

References Dali::Internal::BlendingOptions::GetBitmask(), Dali::Internal::Object::GetEventThreadServices(), mBlendingOptions, mSceneObject, Dali::Internal::BlendingOptions::SetBlendFunc(), and Dali::Internal::SceneGraph::SetBlendingOptionsMessage().

Here is the call graph for this function:

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

Definition at line 127 of file renderer-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), mBlendingMode, mSceneObject, and Dali::Internal::SceneGraph::SetBlendingModeMessage().

Referenced by SetDefaultProperty().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Renderer::SetDefaultProperty ( Property::Index  index,
const Property::Value propertyValue 
)
virtual
void Dali::Internal::Renderer::SetDepthIndex ( int  depthIndex)

Definition at line 98 of file renderer-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), mDepthIndex, mSceneObject, and Dali::Internal::SceneGraph::SetDepthIndexMessage().

Referenced by SetDefaultProperty().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Renderer::SetFaceCullingMode ( Dali::Renderer::FaceCullingMode  cullingMode)

Definition at line 112 of file renderer-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), mFaceCullingMode, mSceneObject, and Dali::Internal::SceneGraph::SetFaceCullingModeMessage().

Referenced by SetDefaultProperty().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Renderer::SetGeometry ( Geometry geometry)

Sets the geometry to be used by this renderer.

Parameters
[in]geometryThe geometry to be used by this renderer

Definition at line 73 of file renderer-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), Dali::Internal::Geometry::GetGeometrySceneObject(), mGeometryConnector, mSceneObject, OnStage(), and Dali::Internal::SceneGraph::SetGeometryMessage().

Here is the call graph for this function:

void Dali::Internal::Renderer::SetMaterial ( Material material)

Sets the material to be used by this renderer.

Parameters
[in]materialThe material to be used by this renderer

Definition at line 86 of file renderer-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), Dali::Internal::Material::GetMaterialSceneObject(), mMaterialConnector, mSceneObject, OnStage(), and Dali::Internal::SceneGraph::SetMaterialMessage().

Here is the call graph for this function:

void Dali::Internal::Renderer::SetSceneGraphProperty ( Property::Index  index,
const PropertyMetadata entry,
const Property::Value value 
)
virtual

Set the value of scene graph property.

Parameters
[in]indexThe index of the property.
[in]entryAn entry from the property lookup container.
[in]valueThe new value of the property.

Reimplemented from Dali::Internal::Object.

Definition at line 413 of file renderer-impl.cpp.

References Dali::Internal::Object::GetEventThreadServices(), Dali::Internal::Object::OnPropertySet(), and Dali::Internal::anonymous_namespace{renderer-impl.cpp}::RENDERER_IMPL.

Here is the call graph for this function:

Member Data Documentation

Vector4* Dali::Internal::Renderer::mBlendColor
private

Local copy of blend color, pointer only as its rarely used.

Definition at line 286 of file renderer-impl.h.

Referenced by GetBlendColor(), GetDefaultProperty(), and SetBlendColor().

BlendingMode::Type Dali::Internal::Renderer::mBlendingMode
private

Local copy of blending mode.

Definition at line 294 of file renderer-impl.h.

Referenced by GetBlendMode(), GetDefaultProperty(), and SetBlendMode().

BlendingOptions Dali::Internal::Renderer::mBlendingOptions
private

Local copy of blending options bitmask.

Definition at line 295 of file renderer-impl.h.

Referenced by GetBlendEquation(), GetBlendFunc(), GetDefaultProperty(), SetBlendEquation(), SetBlendFunc(), and SetDefaultProperty().

int Dali::Internal::Renderer::mDepthIndex
private

Definition at line 290 of file renderer-impl.h.

Referenced by GetDepthIndex(), and SetDepthIndex().

Dali::Renderer::FaceCullingMode Dali::Internal::Renderer::mFaceCullingMode
private

Local copy of face culling mode.

Definition at line 293 of file renderer-impl.h.

Referenced by GetDefaultProperty(), GetFaceCullingMode(), and SetFaceCullingMode().

ObjectConnector<Geometry> Dali::Internal::Renderer::mGeometryConnector
private

Connector that holds the geometry used by this renderer.

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

Referenced by Connect(), Disconnect(), GetGeometry(), and SetGeometry().

ObjectConnector<Material> Dali::Internal::Renderer::mMaterialConnector
private

Connector that holds the material used by this renderer.

Definition at line 288 of file renderer-impl.h.

Referenced by Connect(), Disconnect(), GetMaterial(), and SetMaterial().

int Dali::Internal::Renderer::mOnStageCount
private

Definition at line 291 of file renderer-impl.h.

Referenced by Connect(), Disconnect(), and OnStage().

bool Dali::Internal::Renderer::mPremultipledAlphaEnabled
private

Flag indicating whether the Pre-multiplied Alpha Blending is required.

Definition at line 296 of file renderer-impl.h.

Referenced by EnablePreMultipliedAlpha(), and IsPreMultipliedAlphaEnabled().

SceneGraph::Renderer* Dali::Internal::Renderer::mSceneObject
private

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