kzu_transformed_object.h File Reference

Namespaces

 kanzi
 

Functions

KANZI_API void kzuTransformedObjectNodeCreate (const KzcMemoryManager *memoryManager, kanzi::Node3D *object, KzuTransformedObjectNode *parent, bool parentTransformChanged, bool visible, KzuTransformedObjectNode *instantiatorParentNode, bool *out_transformChanged, KzuTransformedObjectNode **out_object)
 Creates new Transformed object node from regular scene graph object. More...
 
KANZI_API struct KzuTransformedObjectNodekzuTransformedObjectNodeGetParent (const struct KzuTransformedObjectNode *transformedObjectNode)
 Adds a child transformed object for parent. More...
 
KANZI_API kzsError kzuTransformedObjectNodeAddChildNode (struct KzuTransformedObjectNode *parentObject, struct KzuTransformedObjectNode *childNode)
 Adds a child transformed object for parent. More...
 
KANZI_API struct KzuTransformedObjectNodekzuTransformedObjectNodeGetInstantiator3DNode (const struct KzuTransformedObjectNode *node)
 Gets instantiator from given node. More...
 
KANZI_API struct KzcDynamicArrayIterator kzuTransformedObjectNodeGetChildren (const struct KzuTransformedObjectNode *transformedObjectNode)
 Returns a children of transformed object node as iterator (list of KzuTransformedObjectNode:s). More...
 
KANZI_API kanzi::Node3DkzuTransformedObjectNodeGetObjectNode (const struct KzuTransformedObjectNode *transformedObjectNode)
 Returns a KzuObjectNode owned by transformed object node. More...
 
KANZI_API struct KzuTransformedObjectNodekzuTransformedObjectNodeFindChildObjectNode (const struct KzuTransformedObjectNode *transformedObjectNode, const kanzi::Node3D *objectToFind)
 Finds transformed object node from destination object node's direct children. More...
 
KANZI_API kzsError kzuTransformedObjectNodeGetBoundingVolumeUnionWorld (const struct KzuTransformedObjectNode *transformedObjectNode, kanzi::Box &out_volume)
 Gets bounding volume union from transformed object node and its children. More...
 
KANZI_API kzsError kzuTransformedObjectNodeGetBoundingVolumeWorld (const struct KzuTransformedObjectNode *transformedObjectNode, kanzi::Box &out_volume)
 Gets bounding volume union from transformed object node without children taken into account. More...
 
KANZI_API void kzuTransformedObjectNodeSetMatrix (struct KzuTransformedObjectNode *transformedObjectNode, const struct KzcMatrix4x4 *matrix)
 Sets the world matrix for transformed object node. More...
 
KANZI_API KzcMatrix4x4 kzuTransformedObjectNodeGetMatrix (const struct KzuTransformedObjectNode *transformedObjectNode)
 Returns the world matrix of transformed object node. More...
 
KANZI_API void kzuTransformedObjectNodeGetPosition (const struct KzuTransformedObjectNode *transformedObjectNode, struct KzcVector3 *out_position)
 Returns a position of this transformed object node. More...
 
KANZI_API kanzi::Vector3 kzuTransformedObjectNodeGetPosition (const struct KzuTransformedObjectNode *transformedObjectNode)
 
KANZI_API struct KzuTransformedObjectNodekzuTransformedObjectListFindObject (const struct KzcDynamicArray *objectList, const kanzi::Node3D *objectToFind)
 Finds transformed object node from object list. More...
 
KANZI_API kzBool kzuTransformedObjectNodeIsVisible (const struct KzuTransformedObjectNode *transformedObjectNode)
 Returns visibility of a transformed object node. More...
 

Function Documentation

KANZI_API void kzuTransformedObjectNodeCreate ( const KzcMemoryManager memoryManager,
kanzi::Node3D object,
KzuTransformedObjectNode parent,
bool  parentTransformChanged,
bool  visible,
KzuTransformedObjectNode instantiatorParentNode,
bool *  out_transformChanged,
KzuTransformedObjectNode **  out_object 
)

Creates new Transformed object node from regular scene graph object.

Saves the reference to original scene graph object and copies the matrix data.

KANZI_API struct KzuTransformedObjectNode* kzuTransformedObjectNodeGetParent ( const struct KzuTransformedObjectNode transformedObjectNode)

Adds a child transformed object for parent.

KANZI_API kzsError kzuTransformedObjectNodeAddChildNode ( struct KzuTransformedObjectNode parentObject,
struct KzuTransformedObjectNode childNode 
)

Adds a child transformed object for parent.

KANZI_API struct KzuTransformedObjectNode* kzuTransformedObjectNodeGetInstantiator3DNode ( const struct KzuTransformedObjectNode node)

Gets instantiator from given node.

KANZI_API struct KzcDynamicArrayIterator kzuTransformedObjectNodeGetChildren ( const struct KzuTransformedObjectNode transformedObjectNode)

Returns a children of transformed object node as iterator (list of KzuTransformedObjectNode:s).

KANZI_API kanzi::Node3D* kzuTransformedObjectNodeGetObjectNode ( const struct KzuTransformedObjectNode transformedObjectNode)

Returns a KzuObjectNode owned by transformed object node.

KANZI_API struct KzuTransformedObjectNode* kzuTransformedObjectNodeFindChildObjectNode ( const struct KzuTransformedObjectNode transformedObjectNode,
const kanzi::Node3D objectToFind 
)

Finds transformed object node from destination object node's direct children.

NULL if nothing was found.

KANZI_API kzsError kzuTransformedObjectNodeGetBoundingVolumeUnionWorld ( const struct KzuTransformedObjectNode transformedObjectNode,
kanzi::Box out_volume 
)

Gets bounding volume union from transformed object node and its children.

KANZI_API kzsError kzuTransformedObjectNodeGetBoundingVolumeWorld ( const struct KzuTransformedObjectNode transformedObjectNode,
kanzi::Box out_volume 
)

Gets bounding volume union from transformed object node without children taken into account.

KANZI_API void kzuTransformedObjectNodeSetMatrix ( struct KzuTransformedObjectNode transformedObjectNode,
const struct KzcMatrix4x4 matrix 
)

Sets the world matrix for transformed object node.

KANZI_API KzcMatrix4x4 kzuTransformedObjectNodeGetMatrix ( const struct KzuTransformedObjectNode transformedObjectNode)

Returns the world matrix of transformed object node.

KANZI_API void kzuTransformedObjectNodeGetPosition ( const struct KzuTransformedObjectNode transformedObjectNode,
struct KzcVector3 out_position 
)

Returns a position of this transformed object node.

KANZI_API kanzi::Vector3 kzuTransformedObjectNodeGetPosition ( const struct KzuTransformedObjectNode transformedObjectNode)
KANZI_API struct KzuTransformedObjectNode* kzuTransformedObjectListFindObject ( const struct KzcDynamicArray objectList,
const kanzi::Node3D objectToFind 
)

Finds transformed object node from object list.

KANZI_API kzBool kzuTransformedObjectNodeIsVisible ( const struct KzuTransformedObjectNode transformedObjectNode)

Returns visibility of a transformed object node.