Kanzi  3.9.7
Java API
ConstraintsMetadata Interface Reference

Metadata definitions for Constraints. More...

Inheritance diagram for ConstraintsMetadata:
[legend]

Public Attributes

DynamicPropertyType< Boolean > ConstraintInWorldCoordinatesProperty
 Specifies if the object constraining is done in world coordinates (when false, done in local coordinates). More...
 
DynamicPropertyType< String > ConstraintOrientationProperty
 Makes an object node where the property is attached to obtain orientation from target object. More...
 
DynamicPropertyType< String > ConstraintPositionProperty
 Makes an object node where the property is attached to obtain position from target object. More...
 
DynamicPropertyType< ConstraintsEnums.FaceToCameraModeFaceToCameraModeProperty
 Sets how to rotate the 3D node towards a camera: More...
 
DynamicPropertyType< String > FaceToCameraTargetCameraProperty
 Sets the camera towards which the 3D node turns when you set the Face to Camera Mode property. More...
 
DynamicPropertyType< String > LookAtProperty = new DynamicPropertyType<>("LookAt", String.class)
 Makes a node to always face the node set in this property.
 
AbstractMetaclass metaclass = new AbstractMetaclass("Kanzi.Constraints")
 Metaclass for Constraints.
 

Detailed Description

Metadata definitions for Constraints.

Member Data Documentation

DynamicPropertyType<Boolean> ConstraintInWorldCoordinatesProperty
Initial value:
=
new DynamicPropertyType<>("ConstraintInWorldCoordinates", Boolean.class)

Specifies if the object constraining is done in world coordinates (when false, done in local coordinates).

DynamicPropertyType<String> ConstraintOrientationProperty
Initial value:
=
new DynamicPropertyType<>("ConstraintOrientation", String.class)

Makes an object node where the property is attached to obtain orientation from target object.

DynamicPropertyType<String> ConstraintPositionProperty
Initial value:
=
new DynamicPropertyType<>("ConstraintPosition", String.class)

Makes an object node where the property is attached to obtain position from target object.

Initial value:
=
new DynamicPropertyType<>("FaceToCameraMode", ConstraintsEnums.FaceToCameraMode.class)

Sets how to rotate the 3D node towards a camera:

  • Disabled does not make the node turn to the camera.
  • Look at rotates the node along all axes to turn to the camera.
  • Billboarding keeps the node perpendicular to the camera FOV.
  • Cylindrical rotates the node along the y axis to turn to the camera.

By default the node turns to the Scene default camera. To use a different camera, set the Face to Camera Target Camera property.

Defined in core.ui.cpp as FaceToCameraModeProperty.

DynamicPropertyType<String> FaceToCameraTargetCameraProperty
Initial value:
=
new DynamicPropertyType<>("FaceToCameraTargetCamera", String.class)

Sets the camera towards which the 3D node turns when you set the Face to Camera Mode property.

The default is the Scene default camera.