#3530 Support picking on 2d Maps.

This commit is contained in:
Gaute Lindkvist
2018-11-14 12:38:20 +01:00
parent cbc0e55303
commit 387741d0c1
7 changed files with 197 additions and 36 deletions

View File

@@ -41,7 +41,7 @@ void RivContourMapProjectionPartMgr::appendProjectionToModel(cvf::ModelBasicList
cvf::ScalarMapper* mapper = m_contourMapProjection->legendConfig()->scalarMapper();
RivScalarMapperUtils::applyTextureResultsToPart(part.p(), textureCoords.p(), mapper, 1.0f, caf::FC_NONE, true, m_parentContourMap->backgroundColor());
part->setSourceInfo(new RivMeshLinesSourceInfo(m_contourMapProjection.p()));
part->setSourceInfo(new RivObjectSourceInfo(m_contourMapProjection.p()));
model->addPart(part.p());
}