johnahartman / alembic

Automatically exported from code.google.com/p/alembic
Other
0 stars 0 forks source link

Record the max number of samples written for various TimeSampling at the archive level. #297

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In the same way that IArchive has getTimeSampling, IArchive should also have
a function for returning the max number of samples set for something using
that TimeSampling.

The destructors for OScalarProperty and OArrayProperty could inform the archive 
how many samples it wrote for the TimeSampling it's using.

The max number of samples could then be recorded during destruction of the 
OArchive.

Original issue reported on code.google.com by miller.lucas on 7 Dec 2012 at 7:20

GoogleCodeExporter commented 8 years ago
This would make determine the overall frame range for the archive to be a lot 
easier.

We should probably also add convenience functions for determining the min and 
max time for the archive. (we probably need to be careful to only consider time 
samplings that have more than 1 sample)

This could live on IArchive (and potentially OArchive) itself.

Since this data doesn't exist on current archives, we should return a VERY 
large value.

Original comment by miller.lucas on 7 Dec 2012 at 7:25

GoogleCodeExporter commented 8 years ago
Checkin is here:

http://code.google.com/r/millerlucas-dev/source/detail?r=7ed525c4024a9aa63f1789a
2b88bb57f296c9460

and a utility function is here:

http://code.google.com/r/millerlucas-dev/source/detail?r=9694e4c69e783a30beebafe
512b50177edaeef23

Original comment by miller.lucas on 4 Jan 2013 at 12:59

GoogleCodeExporter commented 8 years ago

Original comment by miller.lucas on 4 Jan 2013 at 12:59

GoogleCodeExporter commented 8 years ago

Original comment by miller.lucas on 14 Feb 2013 at 9:08