[Clam-devel] Re: SegmentationView: Centring on current frame

David García Garzón dgarcia at iua.upf.edu
Mon Aug 11 10:52:40 PDT 2008


...and in order for it to work properly in NetworkEditor the currentTime 
offered by the monitor should be the maxPosition of the segment.


El Monday 11 August 2008 19:49:44 David García Garzón va escriure:
> 'zoom' acts like such but doesn't give any information on what are you
> really setting. Is it a factor? Naming it timeSpan or something similar
> would give the idea that the number you send is the visualized time range.
>
> About 'center' is a bool so 'centered' is more suited for the property
> and 'beCentered' and 'isCentered' for the accessors.
>
> Nice idea the triangle. I will test it the sooner i can.
>
> David.
>
> El Monday 11 August 2008 17:38:27 Pawel Bartkiewicz va escriure:
> > Hi,
> >
> > I have added two new properties to SegmentationView: "centre" and
> > "zoom". The first one controls whether the widget should centre the
> > view on current frame (obtained with
> > SegmentationDataSource::currentTime()), the second one sets the amount
> > of time in seconds which should be visible. By default "centre" is set
> > to false and "zoom" is set to 20, so SegmentationView default
> > behaviour hasn't changed. However, after calling
> > SegmentationView::setCentre(true) the widget displays segmentation in
> > a way better suited for using in Turnaround. Additionally, there's a
> > small triangle marker in the centre of the widget when in the second
> > mode.
> >
> > I haven't tested it in NetworkEditor because I can't compile newest
> > NE, so if anyone can test it for me it'd be great.
> >
> > Thanks,
> > Pawel






More information about the clam-devel mailing list