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

Property query. More...

Namespaces

 kanzi
 

Functions

KANZI_API kzsError kzuPropertyQueryCreate (const struct KzcMemoryManager *memoryManager, struct KzuPropertyManager *propertyManager, struct KzcMemoryManager *quickMemoryManager, struct KzuPropertyQuery **out_propertyQuery)
 Create a property query object. More...
 
KANZI_API kzsError kzuPropertyQueryDelete (struct KzuPropertyQuery *propertyQuery)
 Delete a property query object. More...
 
KANZI_API struct
KzuPropertyManager * 
kzuPropertyQueryGetPropertyManager (const struct KzuPropertyQuery *propertyQuery)
 Gets the property manager of the property query. More...
 
KANZI_API kzsError kzuPropertyQueryPush (const struct KzuPropertyQuery *propertyQuery, const void *object)
 Push an arbitrary pointer to the property query. More...
 
KANZI_API kzsError kzuPropertyQueryPushObjectNode (const struct KzuPropertyQuery *propertyQuery, const kanzi::Node *objectNode)
 Push an object node to the property query. More...
 
KANZI_API kzsError kzuPropertyQueryPushTransformedObjectNode (const struct KzuPropertyQuery *propertyQuery, const struct KzuTransformedObjectNode *transformedObjectNode)
 Push an transformed object node to the property query. More...
 
KANZI_API kzsError kzuPropertyQueryPop (const struct KzuPropertyQuery *propertyQuery)
 Pop the last pushed item from the property query. More...
 
KANZI_API kzsError kzuPropertyQueryResetFrame (struct KzuPropertyQuery *propertyQuery)
 Resets property query frame. More...
 
KANZI_API kzsError kzuPropertyQueryAddFirst (const struct KzuPropertyQuery *propertyQuery, const void *object)
 Add an arbitrary pointer to the beginning of the property query. More...
 
KANZI_API kzsError kzuPropertyQueryRemoveFirst (const struct KzuPropertyQuery *propertyQuery)
 Remove an item from the beginning of the property query. More...
 
KANZI_API kzBool kzuPropertyQueryIsEmpty (const struct KzuPropertyQuery *propertyQuery)
 Returns if property query is empty. More...
 
KANZI_API kzFloat kzuPropertyQueryGetFloat (const struct KzuPropertyQuery *propertyQuery, const struct KzuPropertyType *propertyType)
 Get the value of a property using the property query. More...
 
KANZI_API kzInt kzuPropertyQueryGetInt (const struct KzuPropertyQuery *propertyQuery, const struct KzuPropertyType *propertyType)
 Get the value of a property using the property query. More...
 
KANZI_API kzBool kzuPropertyQueryGetBool (const struct KzuPropertyQuery *propertyQuery, const struct KzuPropertyType *propertyType)
 Get the value of a property using the property query. More...
 
KANZI_API struct KzcColorRGBA kzuPropertyQueryGetColor (const struct KzuPropertyQuery *propertyQuery, const struct KzuPropertyType *propertyType)
 Get the value of a property using the property query. More...
 
KANZI_API struct KzcVector2 kzuPropertyQueryGetVector2 (const struct KzuPropertyQuery *propertyQuery, const struct KzuPropertyType *propertyType)
 Get the value of a property using the property query. More...
 
KANZI_API struct KzcVector3 kzuPropertyQueryGetVector3 (const struct KzuPropertyQuery *propertyQuery, const struct KzuPropertyType *propertyType)
 Get the value of a property using the property query. More...
 
KANZI_API struct KzcVector4 kzuPropertyQueryGetVector4 (const struct KzuPropertyQuery *propertyQuery, const struct KzuPropertyType *propertyType)
 Get the value of a property using the property query. More...
 
KANZI_API struct KzcMatrix3x3 kzuPropertyQueryGetMatrix3x3 (const struct KzuPropertyQuery *propertyQuery, const struct KzuPropertyType *propertyType)
 Get the value of a property using the property query. More...
 
KANZI_API struct KzcMatrix4x4 kzuPropertyQueryGetMatrix4x4 (const struct KzuPropertyQuery *propertyQuery, const struct KzuPropertyType *propertyType)
 Get the value of a property using the property query. More...
 
KANZI_API kanzi::TexturekzuPropertyQueryGetTexture (const struct KzuPropertyQuery *propertyQuery, const struct KzuPropertyType *propertyType)
 Get the value of a property using the property query. More...
 

Detailed Description

Property query.

Copyright 2008-2020 by Rightware. All rights reserved.

Function Documentation

KANZI_API kzsError kzuPropertyQueryCreate ( const struct KzcMemoryManager memoryManager,
struct KzuPropertyManager *  propertyManager,
struct KzcMemoryManager quickMemoryManager,
struct KzuPropertyQuery **  out_propertyQuery 
)

Create a property query object.

KANZI_API kzsError kzuPropertyQueryDelete ( struct KzuPropertyQuery propertyQuery)

Delete a property query object.

KANZI_API struct KzuPropertyManager* kzuPropertyQueryGetPropertyManager ( const struct KzuPropertyQuery propertyQuery)

Gets the property manager of the property query.

KANZI_API kzsError kzuPropertyQueryPush ( const struct KzuPropertyQuery propertyQuery,
const void *  object 
)

Push an arbitrary pointer to the property query.

KANZI_API kzsError kzuPropertyQueryPushObjectNode ( const struct KzuPropertyQuery propertyQuery,
const kanzi::Node objectNode 
)

Push an object node to the property query.

KANZI_API kzsError kzuPropertyQueryPushTransformedObjectNode ( const struct KzuPropertyQuery propertyQuery,
const struct KzuTransformedObjectNode transformedObjectNode 
)

Push an transformed object node to the property query.

KANZI_API kzsError kzuPropertyQueryPop ( const struct KzuPropertyQuery propertyQuery)

Pop the last pushed item from the property query.

KANZI_API kzsError kzuPropertyQueryResetFrame ( struct KzuPropertyQuery propertyQuery)

Resets property query frame.

KANZI_API kzsError kzuPropertyQueryAddFirst ( const struct KzuPropertyQuery propertyQuery,
const void *  object 
)

Add an arbitrary pointer to the beginning of the property query.

KANZI_API kzsError kzuPropertyQueryRemoveFirst ( const struct KzuPropertyQuery propertyQuery)

Remove an item from the beginning of the property query.

KANZI_API kzBool kzuPropertyQueryIsEmpty ( const struct KzuPropertyQuery propertyQuery)

Returns if property query is empty.

KANZI_API kzFloat kzuPropertyQueryGetFloat ( const struct KzuPropertyQuery propertyQuery,
const struct KzuPropertyType propertyType 
)

Get the value of a property using the property query.

The return value is calculated based on the following steps:

  1. kzuPropertyManagerGetFloat is used for getting the property value from all pushed objects.
  2. If the property is found from multiple objects, the one with the highest priority wins. If the highest priority is on multiple objects, the last pushed object of those wins.
  3. If the property is not found from any of the pushed objects, the default value from the property type is returned.
KANZI_API kzInt kzuPropertyQueryGetInt ( const struct KzuPropertyQuery propertyQuery,
const struct KzuPropertyType propertyType 
)

Get the value of a property using the property query.

The return value is calculated based on the following steps:

  1. kzuPropertyManagerGetInt is used for getting the property value from all pushed objects.
  2. If the property is found from multiple objects, the one with the highest priority wins. If the highest priority is on multiple objects, the last pushed object of those wins.
  3. If the property is not found from any of the pushed objects, the default value from the property type is returned.
KANZI_API kzBool kzuPropertyQueryGetBool ( const struct KzuPropertyQuery propertyQuery,
const struct KzuPropertyType propertyType 
)

Get the value of a property using the property query.

The return value is calculated based on the following steps:

  1. kzuPropertyManagerGetBool is used for getting the property value from all pushed objects.
  2. If the property is found from multiple objects, the one with the highest priority wins. If the highest priority is on multiple objects, the last pushed object of those wins.
  3. If the property is not found from any of the pushed objects, the default value from the property type is returned.
KANZI_API struct KzcColorRGBA kzuPropertyQueryGetColor ( const struct KzuPropertyQuery propertyQuery,
const struct KzuPropertyType propertyType 
)

Get the value of a property using the property query.

The return value is calculated based on the following steps:

  1. kzuPropertyManagerGetColor is used for getting the property value from all pushed objects.
  2. If the property is found from multiple objects, the one with the highest priority wins. If the highest priority is on multiple objects, the last pushed object of those wins.
  3. If the property is not found from any of the pushed objects, the default value from the property type is returned.
KANZI_API struct KzcVector2 kzuPropertyQueryGetVector2 ( const struct KzuPropertyQuery propertyQuery,
const struct KzuPropertyType propertyType 
)

Get the value of a property using the property query.

The return value is calculated based on the following steps:

  1. kzuPropertyManagerGetVector2 is used for getting the property value from all pushed objects.
  2. If the property is found from multiple objects, the one with the highest priority wins. If the highest priority is on multiple objects, the last pushed object of those wins.
  3. If the property is not found from any of the pushed objects, the default value from the property type is returned.
KANZI_API struct KzcVector3 kzuPropertyQueryGetVector3 ( const struct KzuPropertyQuery propertyQuery,
const struct KzuPropertyType propertyType 
)

Get the value of a property using the property query.

The return value is calculated based on the following steps:

  1. kzuPropertyManagerGetVector3 is used for getting the property value from all pushed objects.
  2. If the property is found from multiple objects, the one with the highest priority wins. If the highest priority is on multiple objects, the last pushed object of those wins.
  3. If the property is not found from any of the pushed objects, the default value from the property type is returned.
KANZI_API struct KzcVector4 kzuPropertyQueryGetVector4 ( const struct KzuPropertyQuery propertyQuery,
const struct KzuPropertyType propertyType 
)

Get the value of a property using the property query.

The return value is calculated based on the following steps:

  1. kzuPropertyManagerGetVector4 is used for getting the property value from all pushed objects.
  2. If the property is found from multiple objects, the one with the highest priority wins. If the highest priority is on multiple objects, the last pushed object of those wins.
  3. If the property is not found from any of the pushed objects, the default value from the property type is returned.
KANZI_API struct KzcMatrix3x3 kzuPropertyQueryGetMatrix3x3 ( const struct KzuPropertyQuery propertyQuery,
const struct KzuPropertyType propertyType 
)

Get the value of a property using the property query.

The return value is calculated based on the following steps:

  1. kzuPropertyManagerGetMatrix3x3 is used for getting the property value from all pushed objects.
  2. If the property is found from multiple objects, the one with the highest priority wins. If the highest priority is on multiple objects, the last pushed object of those wins.
  3. If the property is not found from any of the pushed objects, the default value from the property type is returned.
KANZI_API struct KzcMatrix4x4 kzuPropertyQueryGetMatrix4x4 ( const struct KzuPropertyQuery propertyQuery,
const struct KzuPropertyType propertyType 
)

Get the value of a property using the property query.

The return value is calculated based on the following steps:

  1. kzuPropertyManagerGetMatrix4x4 is used for getting the property value from all pushed objects.
  2. If the property is found from multiple objects, the one with the highest priority wins. If the highest priority is on multiple objects, the last pushed object of those wins.
  3. If the property is not found from any of the pushed objects, the default value from the property type is returned.
KANZI_API kanzi::Texture* kzuPropertyQueryGetTexture ( const struct KzuPropertyQuery propertyQuery,
const struct KzuPropertyType propertyType 
)

Get the value of a property using the property query.

The return value is calculated based on the following steps:

  1. kzuPropertyManagerGetPointer is used for getting the property value from all pushed objects.
  2. If the property is found from multiple objects, the one with the highest priority wins. If the highest priority is on multiple objects, the last pushed object of those wins.
  3. If the property is not found from any of the pushed objects, the default value from the property type is returned.
  4. In every case when a value is found, a check is made to ensure that the value is a reference to Resource. If not, KZ_NULL is returned.