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

An inherited Quaternion property. More...

#include <inherited-property.h>

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

Public Member Functions

 InheritedQuaternion ()
 Create an inherited property. More...
 
virtual ~InheritedQuaternion ()
 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 QuaternionGetQuaternion (BufferIndex bufferIndex) const
 Retrieve a Quaternion value. More...
 
virtual const QuaternionGetConstraintInputQuaternion (BufferIndex bufferIndex) const
  More...
 
void Set (BufferIndex bufferIndex, const Quaternion &value)
 Set the property value. More...
 
QuaternionGet (size_t bufferIndex)
 Retrieve an enumerated property type. More...
 
const QuaternionGet (size_t bufferIndex) const
 Retrieve an enumerated property type. More...
 
const Quaternionoperator[] (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 Vector3GetVector3 (BufferIndex bufferIndex) const
 Retrieve a Vector3 value. More...
 
virtual const Vector4GetVector4 (BufferIndex bufferIndex) const
 Retrieve a Vector4 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 Vector3GetConstraintInputVector3 (BufferIndex updateBufferIndex) const
 Retrieve a Vector3 input for a constraint function. More...
 
virtual const Vector4GetConstraintInputVector4 (BufferIndex updateBufferIndex) const
 Retrieve a Vector4 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

 InheritedQuaternion (const InheritedQuaternion &property)
 
InheritedQuaternionoperator= (const InheritedQuaternion &rhs)
 

Private Attributes

DoubleBuffered< QuaternionmValue
 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 Quaternion property.

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

Constructor & Destructor Documentation

Dali::Internal::SceneGraph::InheritedQuaternion::InheritedQuaternion ( )
inline

Create an inherited property.

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

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

Virtual destructor.

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

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

Member Function Documentation

void Dali::Internal::SceneGraph::InheritedQuaternion::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 407 of file inherited-property.h.

References mReinheritedFlag, and mValue.

Referenced by Dali::Internal::SceneGraph::Node::CopyPreviousWorldOrientation().

Here is the caller graph for this function:

Quaternion& Dali::Internal::SceneGraph::InheritedQuaternion::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 482 of file inherited-property.h.

References mValue.

const Quaternion& Dali::Internal::SceneGraph::InheritedQuaternion::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 490 of file inherited-property.h.

References mValue.

virtual const Quaternion& Dali::Internal::SceneGraph::InheritedQuaternion::GetConstraintInputQuaternion ( BufferIndex  bufferIndex) const
inlinevirtual

Reimplemented from Dali::Internal::PropertyInputImpl.

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

References mValue.

virtual const Quaternion& Dali::Internal::SceneGraph::InheritedQuaternion::GetQuaternion ( BufferIndex  bufferIndex) const
inlinevirtual

Retrieve a Quaternion value.

.0

Returns
The Quaternion value.
Precondition
GetType() returns Property::Quaternion.

Reimplemented from Dali::Internal::PropertyInputImpl.

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

References mValue.

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

Query the type of property input.

Returns
The property type.

Implements Dali::Internal::PropertyInputImpl.

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

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

Here is the call graph for this function:

virtual bool Dali::Internal::SceneGraph::InheritedQuaternion::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 438 of file inherited-property.h.

References IsClean().

Here is the call graph for this function:

virtual bool Dali::Internal::SceneGraph::InheritedQuaternion::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 428 of file inherited-property.h.

References mInheritedFlag.

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

Query whether the property has changed.

Returns
True if the property has not changed.

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

References mReinheritedFlag.

Referenced by InputChanged().

Here is the caller graph for this function:

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

Retrieve the property value.

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

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

References mValue.

void Dali::Internal::SceneGraph::InheritedQuaternion::Set ( BufferIndex  bufferIndex,
const Quaternion 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 469 of file inherited-property.h.

References mInheritedFlag, mReinheritedFlag, and mValue.

Referenced by Dali::Internal::SceneGraph::Node::InheritWorldOrientation(), and Dali::Internal::SceneGraph::Node::SetWorldOrientation().

Here is the caller graph for this function:

Member Data Documentation

bool Dali::Internal::SceneGraph::InheritedQuaternion::mInheritedFlag
private

Flag whether the value has ever been inherited.

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

Referenced by InputInitialized(), and Set().

bool Dali::Internal::SceneGraph::InheritedQuaternion::mReinheritedFlag
private

Flag whether value was re-inherited in previous frame.

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

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

DoubleBuffered<Quaternion> Dali::Internal::SceneGraph::InheritedQuaternion::mValue
private

The double-buffered property value.

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

Referenced by CopyPrevious(), Get(), GetConstraintInputQuaternion(), GetQuaternion(), operator[](), and Set().


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