From 813a503330ae1accff348b40e6be447373fa4ef2 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Wed, 20 Jun 2007 05:17:23 +0200 Subject: [PATCH] two example object graphs (EDL) to analyze how to place MObjects and how to transform this into a render engine --- uml/renderengine/cin3/128133.diagram | 24 ++-- uml/renderengine/cin3/128261 | 106 ++++++++++++++++- uml/renderengine/cin3/128517.diagram | 4 +- uml/renderengine/cin3/128773.diagram | 77 ++++++++++++ uml/renderengine/cin3/128901 | 2 +- uml/renderengine/cin3/128901.diagram | 167 +++++++++++++++++++++++++++ 6 files changed, 358 insertions(+), 22 deletions(-) create mode 100644 uml/renderengine/cin3/128773.diagram create mode 100644 uml/renderengine/cin3/128901.diagram diff --git a/uml/renderengine/cin3/128133.diagram b/uml/renderengine/cin3/128133.diagram index d0d705143..e712fd920 100644 --- a/uml/renderengine/cin3/128133.diagram +++ b/uml/renderengine/cin3/128133.diagram @@ -2,7 +2,7 @@ format 38 classcanvas 128005 class_ref 128005 // Session draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_infonote default shadow default - xyz 29 609 2000 + xyz 30 608 2000 end classcanvas 128133 class_ref 128133 // EDL draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_infonote default shadow default @@ -30,15 +30,15 @@ classcanvas 129925 class_ref 128389 // Track end classcanvas 130949 class_ref 128773 // AbstractMO draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_infonote default shadow default - xyz 317 258 2000 + xyz 317 251 2000 end classcanvas 131461 class_ref 128901 // Clip draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_infonote default shadow default - xyz 279 368 2000 + xyz 278 368 2000 end classcanvas 131717 class_ref 129029 // Effect draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_infonote default shadow default - xyz 336 368 2000 + xyz 336 361 2000 end classcanvas 131973 class_ref 129157 // Meta draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_infonote default shadow default @@ -50,11 +50,11 @@ classcanvas 132229 class_ref 129285 // DirectPlacement end classcanvas 132869 class_ref 129413 // RelativePlacement draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_infonote default shadow default - xyz 483 361 2000 + xyz 477 350 2000 end classcanvas 134149 class_ref 129541 // Allocation draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_infonote default shadow default - xyz 590 373 2000 + xyz 590 366 2000 end classcanvas 134405 class_ref 129669 // Label draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_infonote default shadow default @@ -87,12 +87,10 @@ classcanvas 137349 class_ref 130181 // Constraint xyz 623 485 2000 end relationcanvas 128389 relation_ref 128005 // - geometry VH - from ref 128005 z 1999 to point 54 626 - line 136453 z 1999 stereotype "<>" xyz 126 606 3000 to ref 128133 + from ref 128005 z 1999 stereotype "<>" xyz 139 627 3000 to ref 128133 role_a_pos 201 604 3000 no_role_b multiplicity_a_pos 205 637 3000 no_multiplicity_b -relationcanvas 128517 relation_ref 128133 // +relationcanvas 128517 relation_ref 128133 // from ref 128005 z 1999 to ref 128261 role_a_pos 240 870 3000 no_role_b multiplicity_a_pos 214 870 3000 no_multiplicity_b @@ -111,7 +109,7 @@ relationcanvas 129157 relation_ref 128389 // relationcanvas 129797 relation_ref 128645 // from ref 129413 z 1999 to ref 129669 role_a_pos 513 144 3000 role_b_pos 401 144 3000 - multiplicity_a_pos 557 177 3000 multiplicity_b_pos 401 177 3000 + multiplicity_a_pos 547 177 3000 multiplicity_b_pos 405 169 3000 relationcanvas 130181 relation_ref 129029 // geometry HV from ref 128261 z 1999 stereotype "<>" xyz 314 935 3000 to point 339 931 @@ -149,8 +147,8 @@ relationcanvas 132485 relation_ref 129797 // relationcanvas 132997 relation_ref 129925 // from ref 132869 z 1999 to point 486 247 line 133893 z 1999 to ref 129413 - role_a_pos 427 197 3000 no_role_b - multiplicity_a_pos 401 205 3000 multiplicity_b_pos 507 336 3000 + role_a_pos 423 192 3000 no_role_b + multiplicity_a_pos 401 205 3000 multiplicity_b_pos 500 325 3000 relationcanvas 134533 relation_ref 130309 // from ref 134405 z 1999 to ref 131973 no_role_a no_role_b diff --git a/uml/renderengine/cin3/128261 b/uml/renderengine/cin3/128261 index c807c30fb..61f065e93 100644 --- a/uml/renderengine/cin3/128261 +++ b/uml/renderengine/cin3/128261 @@ -1,6 +1,6 @@ format 38 "MObject" // MObject - revision 5 + revision 6 modified_by 5 "hiv" // class settings //class diagram settings @@ -48,6 +48,18 @@ format 38 size A4 end + objectdiagram 128773 "EDL Example1" + write_horizontally default package_name_in_tab default show_context default auto_label_position default draw_all_relations default shadow default + comment "A simple example showing how the actual objects are placed in the Fixture (=definitive playlist). It shows a Video and Audio clip placed on two tracks" + size A4 + end + + objectdiagram 128901 "EDL Example2" + write_horizontally default package_name_in_tab default show_context default auto_label_position default draw_all_relations default shadow default + comment "More complex example showing the Object graph in the EDL and how it is linked into the Fixture to yield the actual locations. In this example, an HUE Effect is applied on a part of the Clip" + size A4 + end + class 128005 "Session" visibility package cpp_decl "${comment}${template}class ${name}${inherit} { @@ -68,12 +80,12 @@ ${inlines} b multiplicity "" parent class_ref 128133 // EDL end - classrelation 128261 // fixture () - relation 128133 *--> + classrelation 128261 // fixture () + relation 128133 ---> a role_name "fixture" multiplicity "1" protected - cpp default " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value}; + cpp default " ${comment}${static}${mutable}${volatile}${const}${type} * ${name}${value}; " - classrelation_ref 128261 // fixture () + classrelation_ref 128261 // fixture () b multiplicity "" parent class_ref 128261 // Fixture end end @@ -170,6 +182,7 @@ ${inlines} end + end class 128389 "Track" @@ -200,7 +213,7 @@ ${members}}; classrelation 129029 // placement () relation 128645 ---- - a role_name "placement" multiplicity "1" protected + a role_name "placement" multiplicity "1..*" protected cpp default " ${comment}${static}${mutable}${volatile}${const}${type} * ${name}${value}; " classrelation_ref 129029 // placement () @@ -260,6 +273,15 @@ ${inlines} classrelation_ref 129925 // b multiplicity "" parent class_ref 128517 // MObject end + + attribute 128517 "length" + protected explicit_type "long" + init_value "0" + cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value}; +" + java_decl "" + idl_decl "" + end end class 128901 "Clip" @@ -279,6 +301,17 @@ ${inlines} classrelation_ref 130053 // b multiplicity "" parent class_ref 128773 // AbstractMO end + + attribute 128645 "start" + protected explicit_type "long" + init_value "0" + cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value}; +" + java_decl "" + idl_decl "" + comment "startpos in source" + end + end class 129029 "Effect" @@ -298,6 +331,15 @@ ${inlines} classrelation_ref 130181 // b multiplicity "" parent class_ref 128773 // AbstractMO end + + attribute 128901 "plugID" + protected explicit_type "string" + cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value}; +" + java_decl "" + idl_decl "" + comment "Identifier of the Plugin to be used" + end end class 129157 "Meta" @@ -381,6 +423,48 @@ ${inlines} classrelation_ref 131333 // b multiplicity "" parent class_ref 128645 // Placement end + + attribute 129029 "offset" + protected explicit_type "long" + init_value "0" + cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value}; +" + java_decl "" + idl_decl "" + comment "Offset the actual position by this (time) value relative to the anchor point" + end + + class 133893 "RelType" + visibility protected stereotype "enum" + cpp_decl "${comment}enum ${name} { +${items} +}; +" + java_decl "${comment}${@}${visibility}${final}${abstract}enum ${name}${implements} { +${items}; +${members}} +" + idl_decl "${comment}enum ${name} { +${items}}; +" + explicit_switch_type "" + + attribute 129157 "SAMETIME" + public explicit_type "" + cpp_decl " ${name}${value},${comment}" + java_decl "" + idl_decl "" + comment "place subject at the sime time then the anchor" + end + + attribute 129285 "ATTACH" + public explicit_type "" + cpp_decl " ${name}${value},${comment}" + java_decl "" + idl_decl "" + comment "attach subject to anchor (e.g. an effect to a clip)" + end + end end class 129541 "Allocation" @@ -401,6 +485,15 @@ ${inlines} classrelation_ref 131205 // b multiplicity "" parent class_ref 128645 // Placement end + + attribute 128773 "repr" + protected explicit_type "string" + cpp_decl " ${comment}${static}${mutable}${volatile}${const}${type} ${name}${value}; +" + java_decl "" + idl_decl "" + comment "human readable representation of the condition characterizing this allocaton, e.g. \"t >= 10\"" + end end class 129669 "Label" @@ -469,6 +562,7 @@ ${members}}; b multiplicity "" parent class_ref 128389 // Track association_type class_ref 128389 // Track end + end class 129925 "Auto" diff --git a/uml/renderengine/cin3/128517.diagram b/uml/renderengine/cin3/128517.diagram index 14becd3dc..59ef4f315 100644 --- a/uml/renderengine/cin3/128517.diagram +++ b/uml/renderengine/cin3/128517.diagram @@ -40,7 +40,7 @@ linkcanvas 129669 from ref 129285 z 1999 to ref 129413 dirscanvas 132357 z 1000 linkcanvas_ref 129669 show_full_operations_definition default show_hierarchical_rank default write_horizontally default drawing_language default package_name_in_tab default show_context default draw_all_relations default shadow default - forward_label "4 getPlaylistForRender()" xyz 216 167 3000 + forward_label "4 getPlaylistForRender()" xyz 126 222 3000 linkcanvas 130309 from ref 128133 z 1999 to ref 130053 dirscanvas 132229 z 1000 linkcanvas_ref 130309 @@ -70,7 +70,7 @@ linkcanvas 131589 from ref 129925 z 1999 to ref 129413 dirscanvas 132869 z 1000 linkcanvas_ref 131589 show_full_operations_definition default show_hierarchical_rank default write_horizontally default drawing_language default package_name_in_tab default show_context default draw_all_relations default shadow default - forward_label "8 getAutomation()" xyz 71 294 3000 + forward_label "8 getAutomation()" xyz 63 297 3000 linkcanvas 131845 from ref 128005 z 1999 to ref 131717 dirscanvas 133125 z 1000 linkcanvas_ref 131845 diff --git a/uml/renderengine/cin3/128773.diagram b/uml/renderengine/cin3/128773.diagram new file mode 100644 index 000000000..f2e5da169 --- /dev/null +++ b/uml/renderengine/cin3/128773.diagram @@ -0,0 +1,77 @@ +format 38 + +classinstance 128005 class_ref 128261 // Fixture + xyz 65 271 2000 name "" +end +classinstance 128133 class_ref 129797 // ExplicitePlacement + xyz 217 249 2000 name "" + values + attribute_ref 128261 // time + "2" + attribute_ref 128389 // track + "video1" +end +classinstance 128389 class_ref 129797 // ExplicitePlacement + xyz 332 249 2000 name "" + values + attribute_ref 128261 // time + "2" + attribute_ref 128389 // track + "audio1" +end +fragment 128773 "seq" + xyzwh 175 235 1994 282 93 +end +classinstance 128901 class_ref 128389 // Track + xyz 70 101 2000 name "audio1" +end +classinstance 129029 class_ref 128389 // Track + xyz 71 156 2000 name "video1" +end +fragment 129285 "seq" + xyzwh 62 63 1994 94 155 +end +classinstance 130821 class_ref 128901 // Clip + xyz 239 399 2000 name "vid_A" + values + attribute_ref 128517 // length + "5" + attribute_ref 128645 // start + "100" +end +classinstance 131077 class_ref 128901 // Clip + xyz 344 399 2000 name "aud_A" + values + attribute_ref 128517 // length + "8820" + attribute_ref 128645 // start + "176400" +end +textcanvas 131333 "Video and Audio Clip of length = 5 frames positioned at frame 2, staring at t=4s in soucre. +(Values for PAL and 44.1)" + xyzwh 457 335 2000 175 87 +objectlinkcanvas 128261 norel + from ref 128005 z 1999 to ref 128133 + no_role_a no_role_b +objectlinkcanvas 129157 norel + geometry HV + from ref 128005 z 1999 to point 107 282 + line 81 z 1999 to ref 129029 + no_role_a no_role_b +objectlinkcanvas 130565 norel + geometry HVr + from ref 128133 z 1999 to point 268 167 + line 81 z 1999 to ref 129029 + no_role_a no_role_b +objectlinkcanvas 130693 norel + geometry HVr + from ref 128389 z 1999 to point 383 112 + line 81 z 1999 to ref 128901 + no_role_a no_role_b +objectlinkcanvas 130949 norel + from ref 130821 z 1999 to ref 128133 + no_role_a no_role_b +objectlinkcanvas 131205 norel + from ref 131077 z 1999 to ref 128389 + no_role_a no_role_b +end diff --git a/uml/renderengine/cin3/128901 b/uml/renderengine/cin3/128901 index dcd651815..948673e53 100644 --- a/uml/renderengine/cin3/128901 +++ b/uml/renderengine/cin3/128901 @@ -1,6 +1,6 @@ format 38 "Builder" // MObject::Builder - revision 3 + revision 4 modified_by 5 "hiv" // class settings //class diagram settings diff --git a/uml/renderengine/cin3/128901.diagram b/uml/renderengine/cin3/128901.diagram new file mode 100644 index 000000000..11442e9f3 --- /dev/null +++ b/uml/renderengine/cin3/128901.diagram @@ -0,0 +1,167 @@ +format 38 + +fragment 128005 "seq" + xyzwh 176 409 1994 282 93 +end +classinstance 128133 class_ref 128389 // Track + xyz 71 275 2000 name "audio1" +end +classinstance 128389 class_ref 129797 // ExplicitePlacement + xyz 218 423 2000 name "" + values + attribute_ref 128261 // time + "2" + attribute_ref 128389 // track + "video1" +end +classinstance 128645 class_ref 128389 // Track + xyz 72 330 2000 name "video1" +end +classinstance 128773 class_ref 128261 // Fixture + xyz 66 445 2000 name "" +end +classinstance 128901 class_ref 128901 // Clip + xyz 240 573 2000 name "vid_A" + values + attribute_ref 128517 // length + "5" + attribute_ref 128645 // start + "100" +end +fragment 129029 "seq" + xyzwh 63 237 1994 94 155 +end +classinstance 130309 class_ref 128133 // EDL + xyz 69 79 2000 name "" +end +classinstance 131333 class_ref 129669 // Label + xyz 224 70 2000 name "refPoint" + values + attribute_ref 128517 // length + "0" +end +classinstance 131461 class_ref 129541 // Allocation + xyz 230 158 2000 name "" + values + attribute_ref 128773 // repr + "\"t=2\"" +end +classinstance 131717 class_ref 128901 // Clip + xyz 386 71 2000 name "vid_A" + values + attribute_ref 128517 // length + "5" + attribute_ref 128645 // start + "100" +end +classinstance 131845 class_ref 129413 // RelativePlacement + xyz 361 195 2000 name "" + values + attribute_ref 128133 // relType + "SAMETIME" +end +classinstance 132229 class_ref 129029 // Effect + xyz 561 71 2000 name "" + values + attribute_ref 128517 // length + "3" + attribute_ref 128901 // plugID + "\"Hue\"" +end +classinstance 132357 class_ref 129413 // RelativePlacement + xyz 551 197 2000 name "" + values + attribute_ref 129029 // offset + "+3" + attribute_ref 128133 // relType + "ATTACH" +end +fragment 132869 "seq" + xyzwh 172 46 1994 494 102 +end +classinstance 132997 class_ref 129029 // Effect + xyz 354 573 2000 name "" + values + attribute_ref 128517 // length + "3" + attribute_ref 128901 // plugID + "\"Hue\"" +end +classinstance 133125 class_ref 129797 // ExplicitePlacement + xyz 342 423 2000 name "" + values + attribute_ref 128261 // time + "5" + attribute_ref 128389 // track + "video1" +end +note 135941 "actually the same object" + xyzwh 635 341 2004 148 41 +textcanvas 136197 "Video Clip anchored at a Label, with an attached HUE effect starting 3 frames after beginn" + xyzwh 524 565 2000 175 87 +objectlinkcanvas 129413 norel + geometry HVr + from ref 128389 z 1999 to point 269 341 + line 129541 z 1999 to ref 128645 + no_role_a no_role_b +objectlinkcanvas 129797 norel + from ref 128901 z 1999 to ref 128389 + no_role_a no_role_b +objectlinkcanvas 129925 norel + from ref 128773 z 1999 to ref 128389 + no_role_a no_role_b +objectlinkcanvas 130053 norel + geometry HV + from ref 128773 z 1999 to point 108 456 + line 130181 z 1999 to ref 128645 + no_role_a no_role_b +objectlinkcanvas 131205 norel + geometry HVr + from ref 128645 z 1999 to point 108 90 + line 81 z 1999 to ref 130309 + no_role_a no_role_b +objectlinkcanvas 131589 norel + from ref 131461 z 1999 to ref 131333 + no_role_a no_role_b +objectlinkcanvas 131973 rel relation_ref 128645 // + from ref 131717 z 1999 to ref 131845 + role_a_pos 428 170 3000 role_b_pos 428 150 3000 +objectlinkcanvas 132101 rel relation_ref 129925 // + from ref 131845 z 1999 to ref 131333 + role_a_pos 304 104 3000 no_role_b +objectlinkcanvas 132485 rel relation_ref 128645 // + from ref 132229 z 1999 to ref 132357 + role_a_pos 612 172 3000 role_b_pos 612 150 3000 +objectlinkcanvas 132613 rel relation_ref 129925 // + from ref 132357 z 1999 to ref 131717 + role_a_pos 460 109 3000 no_role_b +objectlinkcanvas 132741 norel + geometry HV + from ref 130309 z 1999 to point 261 90 + line 81 z 1999 to ref 131333 + no_role_a no_role_b +objectlinkcanvas 133253 norel + geometry HVr + from ref 133125 z 1999 to point 393 341 + line 81 z 1999 to ref 128645 + no_role_a no_role_b +objectlinkcanvas 133381 norel + geometry VH + from ref 133125 z 1999 to point 393 606 + line 81 z 1999 to ref 132997 + no_role_a no_role_b +objectlinkcanvas 135685 rel relation_ref 128645 // + from ref 132997 z 1999 to point 600 432 + line 135813 z 1999 to ref 132357 + role_a_pos 612 276 3000 role_b_pos 444 540 3000 +line 134149 -_-_ + from ref 131717 z 1993 to ref 132869 +line 134277 -_-_ + from ref 131717 z 1999 to point 524 55 + line 134533 z 1999 to point 524 476 + line 134405 z 1999 to ref 128901 +line 134661 -_-_ + from ref 132229 z 1999 to point 707 55 + line 134917 z 1999 to point 707 464 + line 134789 z 1999 to ref 132997 +end