Definition at line 60 of file WaveTrackView.cpp.
◆ anonymous enum
◆ SubViewAdjuster()
anonymous_namespace{WaveTrackView.cpp}::SubViewAdjuster::SubViewAdjuster |
( |
WaveTrackView & |
view | ) |
|
|
inline |
Definition at line 64 of file WaveTrackView.cpp.
66 std::static_pointer_cast<WaveTrackView>( view.shared_from_this() ) }
◆ ComputeHeights()
std::vector<wxCoord> anonymous_namespace{WaveTrackView.cpp}::SubViewAdjuster::ComputeHeights |
( |
wxCoord |
totalHeight | ) |
|
|
inline |
Definition at line 177 of file WaveTrackView.cpp.
183 total += std::max( 0.f, placement.fraction );
186 wxCoord lastCoord = 0;
187 std::vector<wxCoord> result;
190 auto fraction = std::max( 0.f, placement.fraction );
191 wxCoord coord = ( (partial + fraction ) / total ) * totalHeight;
192 auto height = coord - lastCoord;
193 result.emplace_back( height );
◆ FindIndex()
size_t anonymous_namespace{WaveTrackView.cpp}::SubViewAdjuster::FindIndex |
( |
WaveTrackSubView & |
subView | ) |
const |
|
inline |
Definition at line 149 of file WaveTrackView.cpp.
152 auto iter = std::find_if( begin, end, [&](
size_t ii){
153 return mSubViews[ ii ].get() == &subView;
◆ FindPermutation()
void anonymous_namespace{WaveTrackView.cpp}::SubViewAdjuster::FindPermutation |
( |
| ) |
|
|
inline |
Definition at line 73 of file WaveTrackView.cpp.
80 std::iota( begin, end, 0 );
82 return placement.index < 0 || placement.fraction <= 0;
84 const auto comp = [
this](
size_t ii,
size_t jj ){
86 bool iInvisible = invisible( pi );
89 bool jInvisible = invisible( pj );
92 if ( iInvisible != jInvisible )
94 else if ( !iInvisible )
95 return pi.index < pj.index;
100 std::sort( begin, end, comp );
102 auto first = std::find_if( begin, end, [
this](
size_t ii){
References size.
◆ HitTest()
std::pair< size_t, bool > anonymous_namespace{WaveTrackView.cpp}::SubViewAdjuster::HitTest |
( |
WaveTrackSubView & |
subView, |
|
|
wxCoord |
yy, |
|
|
wxCoord |
top, |
|
|
wxCoord |
height |
|
) |
| |
|
inline |
Definition at line 159 of file WaveTrackView.cpp.
164 if ( index < (
int)
size ) {
166 if ( yy >= 0 && yy < HotZoneSize && index > 0 )
167 return { index,
true };
172 return { index,
false };
174 return {
size,
false };
References size.
◆ ModifyPermutation()
bool anonymous_namespace{WaveTrackView.cpp}::SubViewAdjuster::ModifyPermutation |
( |
bool |
top | ) |
|
|
inline |
Definition at line 111 of file WaveTrackView.cpp.
113 bool rotated =
false;
133 std::rotate( pBegin, pBegin + 1, pEnd );
138 for (
auto pIter = pBegin; pIter != pFirst; ++pIter ) {
140 placement.index = -1;
141 placement.fraction = 0;
144 for (
auto pIter = pFirst; pIter != pEnd; ++pIter )
◆ NVisible()
size_t anonymous_namespace{WaveTrackView.cpp}::SubViewAdjuster::NVisible |
( |
| ) |
const |
|
inline |
◆ UpdateViews()
void anonymous_namespace{WaveTrackView.cpp}::SubViewAdjuster::UpdateViews |
( |
bool |
rollback | ) |
|
|
inline |
◆ mFirstSubView
size_t anonymous_namespace{WaveTrackView.cpp}::SubViewAdjuster::mFirstSubView {} |
◆ mNewPlacements
◆ mOrigPlacements
◆ mPermutation
std::vector< size_t > anonymous_namespace{WaveTrackView.cpp}::SubViewAdjuster::mPermutation |
◆ mSubViews
◆ mwView
std::weak_ptr< WaveTrackView > anonymous_namespace{WaveTrackView.cpp}::SubViewAdjuster::mwView |
The documentation for this struct was generated from the following file: