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::Sampler Class Reference

Sampler is an object that contains an array of structures of values that can be accessed as properties. More...

#include <sampler-impl.h>

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

Public Member Functions

void SetFilterMode (Dali::FilterMode::Type minFilter, Dali::FilterMode::Type magFilter)
 Set the filter modes for this sampler. More...
 
void SetWrapMode (Dali::WrapMode::Type uWrap, Dali::WrapMode::Type vWrap)
 Set the wrap modes for this sampler. More...
 
Render::SamplerGetSamplerRenderObject ()
 Get the render thread sampler. More...
 
- Public Member Functions inherited from Dali::BaseObject
template<class T >
bool ConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, const T &functor)
 Connects a void() functor to a specified signal. More...
 
bool DoAction (const std::string &actionName, const Property::Map &attributes)
 Perform action on this object with the given action name and attributes. More...
 
const std::string & GetTypeName () const
 Returns the type name for the Handle. More...
 
bool GetTypeInfo (Dali::TypeInfo &info) const
 Returns the type info for the Handle. More...
 
bool DoConnectSignal (ConnectionTrackerInterface *connectionTracker, const std::string &signalName, FunctorDelegate *functorDelegate)
 Not intended for application developers. More...
 
- Public Member Functions inherited from Dali::RefObject
void Reference ()
 Increment the object's reference count. More...
 
void Unreference ()
 Decrement the object's reference count. More...
 
int ReferenceCount ()
 Retrieve the object's reference count. More...
 

Static Public Member Functions

static SamplerPtr New ()
 Create a new Sampler. More...
 

Protected Member Functions

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

 Sampler ()
 
void Initialize ()
 Second stage initialization. More...
 

Private Attributes

EventThreadServicesmEventThreadServices
 Used to send messages to the render thread via the update thread. More...
 
Render::SamplermRenderObject
 Render thread sampler for this sampler. More...
 

Detailed Description

Sampler is an object that contains an array of structures of values that can be accessed as properties.

Definition at line 47 of file sampler-impl.h.

Constructor & Destructor Documentation

Dali::Internal::Sampler::Sampler ( )
private

Definition at line 61 of file sampler-impl.cpp.

Referenced by New().

Here is the caller graph for this function:

Dali::Internal::Sampler::~Sampler ( )
protectedvirtual

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

Definition at line 75 of file sampler-impl.cpp.

References Dali::Internal::EventThreadServices::GetUpdateManager(), Dali::Internal::EventThreadServices::IsCoreRunning(), mEventThreadServices, mRenderObject, and Dali::Internal::SceneGraph::RemoveSamplerMessage().

Here is the call graph for this function:

Member Function Documentation

Render::Sampler * Dali::Internal::Sampler::GetSamplerRenderObject ( )

Get the render thread sampler.

Returns
The render thread sampler

Definition at line 55 of file sampler-impl.cpp.

References mRenderObject.

Referenced by Dali::Internal::Material::SetTextureSampler().

Here is the caller graph for this function:

void Dali::Internal::Sampler::Initialize ( void  )
private

Second stage initialization.

Definition at line 67 of file sampler-impl.cpp.

References Dali::Internal::SceneGraph::AddSamplerMessage(), Dali::Internal::EventThreadServices::GetUpdateManager(), mEventThreadServices, and mRenderObject.

Here is the call graph for this function:

SamplerPtr Dali::Internal::Sampler::New ( )
static

Create a new Sampler.

Returns
A smart-pointer to the newly allocated Sampler.

Definition at line 32 of file sampler-impl.cpp.

References Sampler().

Referenced by Dali::Sampler::New(), Dali::Internal::ImageActor::SetFilterMode(), and Dali::Internal::ImageActor::SetImage().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Sampler::SetFilterMode ( Dali::FilterMode::Type  minFilter,
Dali::FilterMode::Type  magFilter 
)

Set the filter modes for this sampler.

Calling this function sets the properties MINIFICATION_FILTER and MAGNIFICATION_FILTER

Parameters
[in]minFilterThe minification filter that will be used
[in]magFilterThe magnification filter that will be used

Definition at line 39 of file sampler-impl.cpp.

References Dali::Internal::EventThreadServices::GetUpdateManager(), mEventThreadServices, mRenderObject, and Dali::Internal::SceneGraph::SetFilterModeMessage().

Here is the call graph for this function:

void Dali::Internal::Sampler::SetWrapMode ( Dali::WrapMode::Type  uWrap,
Dali::WrapMode::Type  vWrap 
)

Set the wrap modes for this sampler.

Calling this function sets the properties U_WRAP and V_WRAP

param[in] uWrap Wrap mode for u coordinates param[in] vWrap Wrap mode for v coordinates

Definition at line 47 of file sampler-impl.cpp.

References Dali::Internal::EventThreadServices::GetUpdateManager(), mEventThreadServices, mRenderObject, and Dali::Internal::SceneGraph::SetWrapModeMessage().

Here is the call graph for this function:

Member Data Documentation

EventThreadServices& Dali::Internal::Sampler::mEventThreadServices
private

Used to send messages to the render thread via the update thread.

Definition at line 89 of file sampler-impl.h.

Referenced by Initialize(), SetFilterMode(), SetWrapMode(), and ~Sampler().

Render::Sampler* Dali::Internal::Sampler::mRenderObject
private

Render thread sampler for this sampler.

Definition at line 90 of file sampler-impl.h.

Referenced by GetSamplerRenderObject(), Initialize(), SetFilterMode(), SetWrapMode(), and ~Sampler().


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