All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
kzu_property_manager_vector3.h File Reference

Property manager. More...

Namespaces

 kanzi
 

Functions

kzsError kzuPropertyVector3ValueSourceCreate (const struct KzuPropertyManager *propertyManager, struct KzcVector3 value, struct KzuPropertyVector3ValueSource **out_valueSource)
 Create a vector3 value source. More...
 
kzsError kzuPropertyVector3ValueSourceDelete (struct KzuPropertyVector3ValueSource *valueSource)
 Delete a vector3 value source. More...
 
kzsError kzuPropertyVector3ValueSourceClone (const struct KzuPropertyManager *propertyManager, const struct KzuPropertyVector3ValueSource *valueSource, struct KzuPropertyVector3ValueSource **out_newValueSource)
 Copy a vector3 value source. More...
 
kzsError kzuPropertyVector3ValueSourceCopy (struct KzuPropertyVector3ValueSource *target, const struct KzuPropertyVector3ValueSource *source)
 Copy a vector3 value source. More...
 
KANZI_API kzsError kzuPropertyVector3ValueSourceSetValue (struct KzuPropertyVector3ValueSource *valueSource, struct KzcVector3 value)
 Set a vector3 value source. More...
 
KANZI_API struct KzcVector3 kzuPropertyVector3ValueSourceGetValue (const struct KzuPropertyVector3ValueSource *valueSource)
 Get a vector3 value source. More...
 
KANZI_API kzsError kzuPropertyManagerSetVector3 (const struct KzuPropertyManager *propertyManager, const void *object, const struct KzuPropertyType *propertyType, struct KzcVector3 value)
 Set a property of propertyType associated with an object. More...
 
KANZI_API kzBool kzuPropertyManagerGetVector3 (const struct KzuPropertyManager *propertyManager, const void *object, const struct KzuPropertyType *propertyType, struct KzcVector3 *out_value)
 Get the value of a property of propertyType associated with an object. More...
 
KANZI_API kzBool kzuPropertyManagerGetBaseVector3 (const struct KzuPropertyManager *propertyManager, const void *object, const struct KzuPropertyType *propertyType, struct KzcVector3 *out_value)
 Get the base value of a property of propertyType associated with an object. More...
 
KANZI_API struct KzcVector3 kzuPropertyManagerGetVector3Default (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...
 
KANZI_API kzsError kzuObjectNodeSetVector3Property (const kanzi::Node *objectNode, const struct KzuPropertyType *propertyType, struct KzcVector3 value)
 Set a property on an object node. More...
 
KANZI_API kzBool kzuObjectNodeGetVector3Property (const kanzi::Node *objectNode, const struct KzuPropertyType *propertyType, struct KzcVector3 *out_value)
 Get the value of a property of propertyType associated with an object node. More...
 
KANZI_API kzBool kzuObjectNodeGetBaseVector3Property (const kanzi::Node *objectNode, const struct KzuPropertyType *propertyType, struct KzcVector3 *out_value)
 Get the base value of a property of propertyType associated with an object node. More...
 
KANZI_API struct KzcVector3 kzuObjectNodeGetVector3PropertyDefault (const kanzi::Node *objectNode, const struct KzuPropertyType *propertyType)
 Get the value of a property associated with an object node. More...
 

Detailed Description

Property manager.

Copyright 3008-2020 by Rightware. All rights reserved.

Function Documentation

kzsError kzuPropertyVector3ValueSourceCreate ( const struct KzuPropertyManager *  propertyManager,
struct KzcVector3  value,
struct KzuPropertyVector3ValueSource **  out_valueSource 
)

Create a vector3 value source.

kzsError kzuPropertyVector3ValueSourceDelete ( struct KzuPropertyVector3ValueSource *  valueSource)

Delete a vector3 value source.

kzsError kzuPropertyVector3ValueSourceClone ( const struct KzuPropertyManager *  propertyManager,
const struct KzuPropertyVector3ValueSource *  valueSource,
struct KzuPropertyVector3ValueSource **  out_newValueSource 
)

Copy a vector3 value source.

kzsError kzuPropertyVector3ValueSourceCopy ( struct KzuPropertyVector3ValueSource *  target,
const struct KzuPropertyVector3ValueSource *  source 
)

Copy a vector3 value source.

KANZI_API kzsError kzuPropertyVector3ValueSourceSetValue ( struct KzuPropertyVector3ValueSource *  valueSource,
struct KzcVector3  value 
)

Set a vector3 value source.

KANZI_API struct KzcVector3 kzuPropertyVector3ValueSourceGetValue ( const struct KzuPropertyVector3ValueSource *  valueSource)

Get a vector3 value source.

KANZI_API kzsError kzuPropertyManagerSetVector3 ( const struct KzuPropertyManager *  propertyManager,
const void *  object,
const struct KzuPropertyType propertyType,
struct KzcVector3  value 
)

Set a property of propertyType associated with an object.

KANZI_API kzBool kzuPropertyManagerGetVector3 ( const struct KzuPropertyManager *  propertyManager,
const void *  object,
const struct KzuPropertyType propertyType,
struct KzcVector3 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.
  1. 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.
  2. If the property can not be deduced, the output value is not modified and KZ_FALSE is returned.
KANZI_API kzBool kzuPropertyManagerGetBaseVector3 ( const struct KzuPropertyManager *  propertyManager,
const void *  object,
const struct KzuPropertyType propertyType,
struct KzcVector3 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.

KANZI_API struct KzcVector3 kzuPropertyManagerGetVector3Default ( 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 kzuPropertyManagerGetVector3 then that value is returned. If the property can not be deduced, the default value from the property type is returned.

KANZI_API kzsError kzuObjectNodeSetVector3Property ( const kanzi::Node objectNode,
const struct KzuPropertyType propertyType,
struct KzcVector3  value 
)

Set a property on an object node.

KANZI_API kzBool kzuObjectNodeGetVector3Property ( const kanzi::Node objectNode,
const struct KzuPropertyType propertyType,
struct KzcVector3 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. kzuPropertyManagerGetVector3 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.
  1. If the property is not found until the root is reached, the output value is not modified and KZ_FALSE is returned.
KANZI_API kzBool kzuObjectNodeGetBaseVector3Property ( const kanzi::Node objectNode,
const struct KzuPropertyType propertyType,
struct KzcVector3 out_value 
)

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

Behaves like kzuObjectNodeGetVector3Property but does not take animation into account.

KANZI_API struct KzcVector3 kzuObjectNodeGetVector3PropertyDefault ( const kanzi::Node objectNode,
const struct KzuPropertyType propertyType 
)

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

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