Kanzi Graphics Engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
kzu_property_manager_float.h File Reference

Property manager. More...

Functions

kzsError kzuPropertyFloatValueSourceCreate (const struct KzuPropertyManager *propertyManager, kzFloat value, struct KzuPropertyFloatValueSource **out_valueSource)
 Create a float value source. More...
 
kzsError kzuPropertyFloatValueSourceDelete (struct KzuPropertyFloatValueSource *valueSource)
 Delete a float value source. More...
 
kzsError kzuPropertyFloatValueSourceClone (const struct KzuPropertyManager *propertyManager, const struct KzuPropertyFloatValueSource *valueSource, struct KzuPropertyFloatValueSource **out_newValueSource)
 Copy a float value source. More...
 
kzsError kzuPropertyFloatValueSourceCopy (struct KzuPropertyFloatValueSource *target, const struct KzuPropertyFloatValueSource *source)
 Copy a float value source. More...
 
kzsError kzuPropertyFloatValueSourceSetValue (struct KzuPropertyFloatValueSource *valueSource, kzFloat value)
 Set a float value source. More...
 
kzFloat kzuPropertyFloatValueSourceGetValue (const struct KzuPropertyFloatValueSource *valueSource)
 Get a float value source. More...
 
kzsError kzuPropertyManagerSetFloat (const struct KzuPropertyManager *propertyManager, const void *object, const struct KzuPropertyType *propertyType, kzFloat value)
 Set a property of propertyType associated with an object. More...
 
kzBool kzuPropertyManagerGetFloat (const struct KzuPropertyManager *propertyManager, const void *object, const struct KzuPropertyType *propertyType, kzFloat *out_value)
 Get the value of a property of propertyType associated with an object. More...
 
kzBool kzuPropertyManagerGetBaseFloat (const struct KzuPropertyManager *propertyManager, const void *object, const struct KzuPropertyType *propertyType, kzFloat *out_value)
 Get the base value of a property of propertyType associated with an object. More...
 
kzFloat kzuPropertyManagerGetFloatDefault (const struct KzuPropertyManager *propertyManager, const void *object, const struct KzuPropertyType *propertyType)
 Get a property of propertyType associated with an object and return the default value from the property type if not found. More...
 
kzsError kzuObjectNodeSetFloatProperty (const struct KzuObjectNode *objectNode, const struct KzuPropertyType *propertyType, kzFloat value)
 Set a property on an object node. More...
 
kzBool kzuObjectNodeGetFloatProperty (const struct KzuObjectNode *objectNode, const struct KzuPropertyType *propertyType, kzFloat *out_value)
 Get the value of a property of propertyType associated with an object node. More...
 
kzBool kzuObjectNodeGetBaseFloatProperty (const struct KzuObjectNode *objectNode, const struct KzuPropertyType *propertyType, kzFloat *out_value)
 Get the base value of a property of propertyType associated with an object node. More...
 
kzFloat kzuObjectNodeGetFloatPropertyDefault (const struct KzuObjectNode *objectNode, const struct KzuPropertyType *propertyType)
 Get the value of a property associated with an object node. More...
 

Detailed Description

Property manager.

Copyright 2008-2019 by Rightware. All rights reserved.

Function Documentation

kzsError kzuPropertyFloatValueSourceCreate ( const struct KzuPropertyManager *  propertyManager,
kzFloat  value,
struct KzuPropertyFloatValueSource **  out_valueSource 
)

Create a float value source.

kzsError kzuPropertyFloatValueSourceDelete ( struct KzuPropertyFloatValueSource *  valueSource)

Delete a float value source.

kzsError kzuPropertyFloatValueSourceClone ( const struct KzuPropertyManager *  propertyManager,
const struct KzuPropertyFloatValueSource *  valueSource,
struct KzuPropertyFloatValueSource **  out_newValueSource 
)

Copy a float value source.

kzsError kzuPropertyFloatValueSourceCopy ( struct KzuPropertyFloatValueSource *  target,
const struct KzuPropertyFloatValueSource *  source 
)

Copy a float value source.

kzsError kzuPropertyFloatValueSourceSetValue ( struct KzuPropertyFloatValueSource *  valueSource,
kzFloat  value 
)

Set a float value source.

kzFloat kzuPropertyFloatValueSourceGetValue ( const struct KzuPropertyFloatValueSource *  valueSource)

Get a float value source.

kzsError kzuPropertyManagerSetFloat ( const struct KzuPropertyManager *  propertyManager,
const void object,
const struct KzuPropertyType propertyType,
kzFloat  value 
)

Set a property of propertyType associated with an object.

kzBool kzuPropertyManagerGetFloat ( const struct KzuPropertyManager *  propertyManager,
const void object,
const struct KzuPropertyType propertyType,
kzFloat out_value 
)

Get the value of a property of propertyType associated with an object.

Returns KZ_TRUE if the property is found and KZ_FALSE otherwise. The return value is calculated based on the following steps:

  1. If an animation is applied to the property, the animated value is returned. It is calculated from the base and relative values of the property.
  2. The value associated with the object is returned.
  3. If the property is not associated with the object, the property groups associated with the object are queried: 3.1 Property groups associated with the object are queried in the reverse order than they were added.
  4. If the property can not be deduced, the output value is not modified and KZ_FALSE is returned.
kzBool kzuPropertyManagerGetBaseFloat ( const struct KzuPropertyManager *  propertyManager,
const void object,
const struct KzuPropertyType propertyType,
kzFloat out_value 
)

Get the base value of a property of propertyType associated with an object.

Returns KZ_TRUE if the property is found and KZ_FALSE otherwise.

kzFloat kzuPropertyManagerGetFloatDefault ( const struct KzuPropertyManager *  propertyManager,
const void object,
const struct KzuPropertyType propertyType 
)

Get a property of propertyType associated with an object and return the default value from the property type if not found.

If the property value can be deduced with kzuPropertyManagerGetFloat then that value is returned. If the property can not be deduced, the default value from the property type is returned.

kzsError kzuObjectNodeSetFloatProperty ( const struct KzuObjectNode objectNode,
const struct KzuPropertyType propertyType,
kzFloat  value 
)

Set a property on an object node.

kzBool kzuObjectNodeGetFloatProperty ( const struct KzuObjectNode objectNode,
const struct KzuPropertyType propertyType,
kzFloat out_value 
)

Get the value of a property of propertyType associated with an object node.

Returns KZ_TRUE if the property is found and KZ_FALSE otherwise. The return value is calculated based on the following steps:

  1. kzuPropertyManagerGetFloat is used for getting the property value.
  2. If the property value can not be deduced from the object node, the same query is performed for the parent of the current object node.
  3. If the property is not found until the root is reached, the output value is not modified and KZ_FALSE is returned.
kzBool kzuObjectNodeGetBaseFloatProperty ( const struct KzuObjectNode objectNode,
const struct KzuPropertyType propertyType,
kzFloat out_value 
)

Get the base value of a property of propertyType associated with an object node.

Behaves like kzuObjectNodeGetFloatProperty but does not take animation into account.

kzFloat kzuObjectNodeGetFloatPropertyDefault ( const struct KzuObjectNode objectNode,
const struct KzuPropertyType propertyType 
)

Get the value of a property associated with an object node.

Behaves like kzuObjectNodeGetFloatProperty, but if the property value can not be deduced, the default value from the property type is returned.