|
ENTITY camera_image_2d_with_scale SUBTYPE OF (camera_image); DERIVE scale : positive_ratio_measure := ( SELF \ mapped_item . mapping_target \ planar_extent . size_in_x ) / ( SELF \ mapped_item . mapping_source . mapping_origin \ camera_model_d2 . view_window \ planar_extent . size_in_x ) ; WHERE wr1: ( 'presentation_organization_schema.camera_model_d2' IN TYPEOF ( SELF \ mapped_item . mapping_source . mapping_origin ) ) ; wr2: aspect_ratio ( SELF \ mapped_item . mapping_target ) = aspect_ratio ( SELF \ mapped_item . mapping_source . mapping_origin \ camera_model_d2 . view_window ) ; wr3: SELF \ mapped_item . mapping_source . mapping_origin \ camera_model_d2 . view_window_clipping ; wr4: NOT ( 'presentation_organization_schema.camera_model_d2' IN TYPEOF ( SELF ) ) ; END_ENTITY; -- camera_image_2d_with_scale |
Entity data types and their attributesrepresentation_itemname: label; mapped_item mapping_source: representation_map; mapping_target: representation_item; camera_image (RT) mapping_source: camera_usage; (RT) mapping_target: planar_box; camera_image_2d_with_scale (DER) scale: positive_ratio_measure; |
| camera_image_2d_with_scale$geometric_representation_item (PRESENTATION_ORGANIZATION_SCHEMA) |
Global rules for this entity data type- |
public interface ECamera_image_2d_with_scale extends ECamera_imagescale (derived attribute)double getScale(ECamera_image_2d_with_scale type)boolean testScale(ECamera_image_2d_with_scale type) |
public class CCamera_image_2d_with_scale implements ECamera_image_2d_with_scalestatic EAttribute attributeScale(ECamera_image_2d_with_scale type) |
public class ACamera_image_2d_with_scale extends AEntitypublic ECamera_image_2d_with_scale getByIndex(int index)public ECamera_image_2d_with_scale getCurrentMember(SdaiIterator it) |