Ignore:
Timestamp:
07/14/15 20:19:52 (10 years ago)
Author:
epyon
Message:
  • animation - key_channel_set simplified to data_channel_set
  • animation - raw_channel_interpolator
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/interface/data_channel.hh

    r418 r419  
    6868                friend class data_channel_creator;
    6969                friend class data_channel_set;
    70                 friend class key_channel_set_creator;
    7170
    7271                raw_data_channel() : m_data( nullptr ), m_size( 0 ) {}
     
    168167                }
    169168
     169                data_descriptor get_interpolation_key() const
     170                {
     171                        data_descriptor result;
     172                        for ( uint32 c = 0; c < m_size; ++c )
     173                        {
     174                                for ( const auto& cslot : m_channels[c].descriptor() )
     175                                        if ( cslot.vslot != slot::TIME )
     176                                        result.push_slot( cslot.etype, cslot.vslot );
     177                        }
     178                        return result;
     179                }
     180
    170181                const_iterator begin() const { return &m_channels[0]; }
    171182                const_iterator end()   const { return &m_channels[ m_size ]; }
Note: See TracChangeset for help on using the changeset viewer.