|
ENTITY camera_image_3d_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_d3 . perspective_of_volume . view_window . size_in_x ) ) ; WHERE wr1: ( 'presentation_organization_schema.camera_model_d3' 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_d3 . perspective_of_volume . view_window ) ; wr3: SELF \ mapped_item . mapping_source . mapping_origin \ camera_model_d3 . perspective_of_volume . front_plane_clipping AND SELF \ mapped_item . mapping_source . mapping_origin \ camera_model_d3 . perspective_of_volume . view_volume_sides_clipping ; wr4: ( SELF \ mapped_item . mapping_target \ planar_extent . size_in_x > 0 ) AND ( SELF \ mapped_item . mapping_target \ planar_extent . size_in_y > 0 ) ; wr5: ( SELF \ mapped_item . mapping_source . mapping_origin \ camera_model_d3 . perspective_of_volume . view_window . size_in_x > 0 ) AND ( SELF \ mapped_item . mapping_source . mapping_origin \ camera_model_d3 . perspective_of_volume . view_window . size_in_y > 0 ) ; wr6: ( 'geometry_schema.' + 'axis2_placement_2d' IN TYPEOF ( SELF \ mapped_item . mapping_target \ planar_box . placement ) ) AND NOT ( 'geometry_schema.' + 'axis2_placement_3d' IN TYPEOF ( SELF \ mapped_item . mapping_target \ planar_box . placement ) ) ; END_ENTITY; -- camera_image_3d_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_3d_with_scale (DER) scale: positive_ratio_measure; |
Global rules for this entity data type- |
public interface ECamera_image_3d_with_scale extends ECamera_imagescale (derived attribute)double getScale(ECamera_image_3d_with_scale type)boolean testScale(ECamera_image_3d_with_scale type) |
public class CCamera_image_3d_with_scale implements ECamera_image_3d_with_scalestatic EAttribute attributeScale(ECamera_image_3d_with_scale type) |
public class ACamera_image_3d_with_scale extends AEntitypublic ECamera_image_3d_with_scale getByIndex(int index)public ECamera_image_3d_with_scale getCurrentMember(SdaiIterator it) |