6 file_name = RMF._get_temporary_file_path(
"reference_frame.rmfz")
7 print(
"file is", file_name)
9 fh.add_frame(
"root", RMF.FRAME)
11 rh = fh.get_root_node()
13 reference_frame_factory = RMF.ReferenceFrameFactory(fh)
14 segment_factory = RMF.SegmentFactory(fh)
15 color_factory = RMF.ColoredFactory(fh)
18 origin = rh.add_child(
"origin", RMF.REPRESENTATION)
19 rbo = reference_frame_factory.get(origin)
22 x = origin.add_child(
"x", RMF.GEOMETRY)
23 sx = segment_factory.get(x)
25 cx = color_factory.get(x)
27 y = origin.add_child(
"y", RMF.GEOMETRY)
28 sy = segment_factory.get(y)
30 cy = color_factory.get(y)
32 z = origin.add_child(
"z", RMF.GEOMETRY)
33 sz = segment_factory.get(z)
35 cz = color_factory.get(z)
41 remote = rh.add_child(
"remote", RMF.REPRESENTATION)
42 rbr = reference_frame_factory.get(remote)
FileHandle create_rmf_file(std::string path)
Create an RMF from a file system path.