MCPcopy Create free account
hub / github.com/ImageEngine/cortex / FrameRange

Method FrameRange

src/IECore/FrameRange.cpp:51–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49FrameList::Parser< FrameRange > FrameRange::g_parserRegistrar;
50
51FrameRange::FrameRange( Frame start, Frame end, Frame step ) : m_start( start ), m_end( end ), m_step( step )
52{
53 if ( start > end )
54 {
55 throw Exception( "FrameRange start must be less than or equal to end." );
56 }
57 if ( step == 0 )
58 {
59 throw Exception( "FrameRange step cannot be zero" );
60 }
61 if ( step < 0 )
62 {
63 throw Exception( "FrameRange step cannot be negative. Consider using the reverse suffix instead." );
64 }
65}
66
67FrameRange::~FrameRange()
68{

Callers 15

testMethod · 0.80
testMinSequenceSizeMethod · 0.80
testSpacesInFilenameMethod · 0.80
testConstructorMethod · 0.80
testReprMethod · 0.80
testClumpingMethod · 0.80
testConstructorMethod · 0.80
testPaddingMethod · 0.80
testReprMethod · 0.80
testPrefixMethod · 0.80
testCopyMethod · 0.80

Calls

no outgoing calls

Tested by 1

testModificationTimeMethod · 0.64