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

An inherited Vector3 property. More...

#include <inherited-property.h>

Inheritance diagram for Dali::Internal::SceneGraph::InheritedVector3:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::SceneGraph::InheritedVector3:
Collaboration graph
[legend]

Public Member Functions

 InheritedVector3 ()
 Create an inherited Vector3. More...
 
 InheritedVector3 (const Vector3 &initialValue)
 Create an inherited Vector3. More...
 
virtual ~InheritedVector3 ()
 Virtual destructor. More...
 
virtual Dali::Property::Type GetType () const
 Query the type of property input. More...
 
void CopyPrevious (BufferIndex updateBufferIndex)
 Called once per Update (only) if the property did not need to be re-inherited. More...
 
virtual bool IsClean () const
 Query whether the property has changed. More...
 
virtual bool InputInitialized () const
 Query the input value (for a constraint) has been initialized. More...
 
virtual bool InputChanged () const
 Query the input value (for a constraint) has changed. More...
 
virtual const Vector3GetVector3 (BufferIndex bufferIndex) const
 Retrieve a Vector3 value. More...
 
virtual const Vector3GetConstraintInputVector3 (BufferIndex bufferIndex) const
  More...
 
void Set (BufferIndex bufferIndex, const Vector3 &value)
 Set the property value. More...
 
Vector3Get (size_t bufferIndex)
 Retrieve an enumerated property type. More...
 
const Vector3Get (size_t bufferIndex) const
 Retrieve an enumerated property type. More...
 
const Vector3operator[] (size_t bufferIndex) const
 Retrieve the property value. More...
 
- Public Member Functions inherited from Dali::Internal::PropertyInputImpl
virtual ~PropertyInputImpl ()
 Virtual destructor. More...
 
virtual const bool & GetBoolean (BufferIndex bufferIndex) const
 Retrieve a boolean value. More...
 
virtual const int & GetInteger (BufferIndex bufferIndex) const
 Retrieve an integer value. More...
 
virtual const float & GetFloat (BufferIndex bufferIndex) const
 Retrieve a float value. More...
 
virtual const Vector2GetVector2 (BufferIndex bufferIndex) const
 Retrieve a Vector2 value. More...
 
virtual const Vector4GetVector4 (BufferIndex bufferIndex) const
 Retrieve a Vector4 value. More...
 
virtual const QuaternionGetQuaternion (BufferIndex bufferIndex) const
 Retrieve a Quaternion value. More...
 
virtual const Matrix3GetMatrix3 (BufferIndex bufferIndex) const
 Retrieve a Matrix value. More...
 
virtual const MatrixGetMatrix (BufferIndex bufferIndex) const
 Retrieve a Matrix value. More...
 
virtual const bool & GetConstraintInputBoolean (BufferIndex updateBufferIndex) const
 Retrieve a boolean input for a constraint function. More...
 
virtual const int & GetConstraintInputInteger (BufferIndex updateBufferIndex) const
 Retrieve an integer input for a constraint function. More...
 
virtual const float & GetConstraintInputFloat (BufferIndex updateBufferIndex) const
 Retrieve a float input for a constraint function. More...
 
virtual const Vector2GetConstraintInputVector2 (BufferIndex updateBufferIndex) const
 Retrieve a Vector2 input for a constraint function. More...
 
virtual const Vector4GetConstraintInputVector4 (BufferIndex updateBufferIndex) const
 Retrieve a Vector4 input for a constraint function. More...
 
virtual const QuaternionGetConstraintInputQuaternion (BufferIndex updateBufferIndex) const
 Retrieve a Quaternion input for a constraint function. More...
 
virtual const Matrix3GetConstraintInputMatrix3 (BufferIndex updateBufferIndex) const
 Retrieve a Matrix3 input for a constraint function. More...
 
virtual const MatrixGetConstraintInputMatrix (BufferIndex updateBufferIndex) const
 Retrieve a Matrix input for a constraint function. More...
 
void DebugPrint (std::ostream &debugStream, BufferIndex bufferIndex) const
 Print the property value using a stream. More...
 

Private Member Functions

 InheritedVector3 (const InheritedVector3 &property)
 
InheritedVector3operator= (const InheritedVector3 &rhs)
 

Private Attributes

DoubleBuffered< Vector3mValue
 The double-buffered property value. More...
 
bool mInheritedFlag:1
 Flag whether the value has ever been inherited. More...
 
bool mReinheritedFlag:1
 Flag whether value was re-inherited in previous frame. More...
 

Detailed Description

An inherited Vector3 property.

Definition at line 44 of file inherited-property.h.

Constructor & Destructor Documentation

Dali::Internal::SceneGraph::InheritedVector3::InheritedVector3 ( )
inline

Create an inherited Vector3.

Definition at line 51 of file inherited-property.h.

Dali::Internal::SceneGraph::InheritedVector3::InheritedVector3 ( const Vector3 initialValue)
inline

Create an inherited Vector3.

Parameters
[in]initialValueThe initial value of the property.

Definition at line 62 of file inherited-property.h.

virtual Dali::Internal::SceneGraph::InheritedVector3::~InheritedVector3 ( )
inlinevirtual

Virtual destructor.

Definition at line 71 of file inherited-property.h.

Dali::Internal::SceneGraph::InheritedVector3::InheritedVector3 ( const InheritedVector3 property)
private

Member Function Documentation

void Dali::Internal::SceneGraph::InheritedVector3::CopyPrevious ( BufferIndex  updateBufferIndex)
inline

Called once per Update (only) if the property did not need to be re-inherited.

Parameters
[in]updateBufferIndexThe current update buffer index.

Definition at line 87 of file inherited-property.h.

References mReinheritedFlag, and mValue.

Referenced by Dali::Internal::SceneGraph::Node::CopyPreviousWorldPosition(), and Dali::Internal::SceneGraph::Node::CopyPreviousWorldScale().

Here is the caller graph for this function:

Vector3& Dali::Internal::SceneGraph::InheritedVector3::Get ( size_t  bufferIndex)
inline

Retrieve an enumerated property type.

New versions of this templated function must be defined for future types. .0

Returns
The property type.

Definition at line 162 of file inherited-property.h.

References mValue.

const Vector3& Dali::Internal::SceneGraph::InheritedVector3::Get ( size_t  bufferIndex) const
inline

Retrieve an enumerated property type.

New versions of this templated function must be defined for future types. .0

Returns
The property type.

Definition at line 170 of file inherited-property.h.

References mValue.

virtual const Vector3& Dali::Internal::SceneGraph::InheritedVector3::GetConstraintInputVector3 ( BufferIndex  bufferIndex) const
inlinevirtual

Reimplemented from Dali::Internal::PropertyInputImpl.

Definition at line 134 of file inherited-property.h.

References mValue.

virtual Dali::Property::Type Dali::Internal::SceneGraph::InheritedVector3::GetType ( ) const
inlinevirtual

Query the type of property input.

Returns
The property type.

Implements Dali::Internal::PropertyInputImpl.

Definition at line 78 of file inherited-property.h.

References Dali::PropertyTypes::Get< Vector3 >().

Here is the call graph for this function:

virtual const Vector3& Dali::Internal::SceneGraph::InheritedVector3::GetVector3 ( BufferIndex  bufferIndex) const
inlinevirtual

Retrieve a Vector3 value.

.0

Returns
The Vector3 value.
Precondition
GetType() returns Property::VECTOR3.

Reimplemented from Dali::Internal::PropertyInputImpl.

Definition at line 126 of file inherited-property.h.

References mValue.

virtual bool Dali::Internal::SceneGraph::InheritedVector3::InputChanged ( ) const
inlinevirtual

Query the input value (for a constraint) has changed.

Returns
True if the input value has changed.

Implements Dali::Internal::PropertyInputImpl.

Definition at line 118 of file inherited-property.h.

References IsClean().

Here is the call graph for this function:

virtual bool Dali::Internal::SceneGraph::InheritedVector3::InputInitialized ( ) const
inlinevirtual

Query the input value (for a constraint) has been initialized.

Returns
True if initialized, otherwise the constraint should be skipped.

Implements Dali::Internal::PropertyInputImpl.

Definition at line 108 of file inherited-property.h.

References mInheritedFlag.

virtual bool Dali::Internal::SceneGraph::InheritedVector3::IsClean ( ) const
inlinevirtual

Query whether the property has changed.

Returns
True if the property has not changed.

Definition at line 100 of file inherited-property.h.

References mReinheritedFlag.

Referenced by InputChanged().

Here is the caller graph for this function:

InheritedVector3& Dali::Internal::SceneGraph::InheritedVector3::operator= ( const InheritedVector3 rhs)
private
const Vector3& Dali::Internal::SceneGraph::InheritedVector3::operator[] ( size_t  bufferIndex) const
inline

Retrieve the property value.

Parameters
[in]bufferIndexThe buffer to read.
Returns
The property value.

Definition at line 180 of file inherited-property.h.

References mValue.

void Dali::Internal::SceneGraph::InheritedVector3::Set ( BufferIndex  bufferIndex,
const Vector3 value 
)
inline

Set the property value.

This will only persist for the current frame; the property will be reset with the base value, at the beginning of the next frame.

Parameters
[in]bufferIndexThe buffer to write.
[in]valueThe new property value.

Definition at line 149 of file inherited-property.h.

References mInheritedFlag, mReinheritedFlag, and mValue.

Referenced by Dali::Internal::SceneGraph::Node::InheritWorldPosition(), Dali::Internal::SceneGraph::Node::InheritWorldScale(), Dali::Internal::SceneGraph::Node::SetWorldPosition(), and Dali::Internal::SceneGraph::Node::SetWorldScale().

Here is the caller graph for this function:

Member Data Documentation

bool Dali::Internal::SceneGraph::InheritedVector3::mInheritedFlag
private

Flag whether the value has ever been inherited.

Definition at line 197 of file inherited-property.h.

Referenced by InputInitialized(), and Set().

bool Dali::Internal::SceneGraph::InheritedVector3::mReinheritedFlag
private

Flag whether value was re-inherited in previous frame.

Definition at line 198 of file inherited-property.h.

Referenced by CopyPrevious(), IsClean(), and Set().

DoubleBuffered<Vector3> Dali::Internal::SceneGraph::InheritedVector3::mValue
private

The double-buffered property value.

Definition at line 195 of file inherited-property.h.

Referenced by CopyPrevious(), Get(), GetConstraintInputVector3(), GetVector3(), operator[](), and Set().


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