MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / applyCurrentXf_

Method applyCurrentXf_

source/MRViewer/MRMoveObjectByMouseImpl.cpp:364–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void MoveObjectByMouseImpl::applyCurrentXf_()
365{
366 const bool appendHistory = historyEnabled_ && !xfChanged_;
367 std::unique_ptr<ScopeHistory> scope = appendHistory ? std::make_unique<ScopeHistory>( _t( "Move Object" ) ) : nullptr;
368 auto itXf = initialXfs_.begin();
369 changingXfFromMouseMove_ = true;
370 for ( std::shared_ptr<Object>& obj : objects_ )
371 {
372 if ( appendHistory )
373 AppendHistory<ChangeXfAction>( obj->name(), obj );
374 obj->setWorldXf( currentXf_ * *itXf++ );
375 }
376 changingXfFromMouseMove_ = false;
377 xfChanged_ = true;
378}
379
380void MoveObjectByMouseImpl::setVisualizeVectors_( std::vector<Vector3f> worldPoints )
381{

Callers

nothing calls this directly

Calls 3

setWorldXfMethod · 0.80
beginMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected