Browse Source

Increase thickness of SurfaceHighlightWidget line

master
Krisjanis Rijnieks 9 years ago
parent
commit
362fd3e5d7
  1. 10
      src/Application/SurfaceHighlightWidget.cpp

10
src/Application/SurfaceHighlightWidget.cpp

@ -16,14 +16,14 @@ void SurfaceHighlightWidget::draw(){
return; return;
} }
ofPushStyle();
ofSetLineWidth(2);
ofSetColor(255);
if(_sm->getSelectedSurface()->getType() == SurfaceType::QUAD_SURFACE && if(_sm->getSelectedSurface()->getType() == SurfaceType::QUAD_SURFACE &&
((QuadSurface *)_sm->getSelectedSurface())->getPerspectiveWarping()){ ((QuadSurface *)_sm->getSelectedSurface())->getPerspectiveWarping()){
ofPolyline line = _sm->getSelectedSurface()->getHitArea(); ofPolyline line = _sm->getSelectedSurface()->getHitArea();
ofPushStyle();
ofSetLineWidth(1);
ofSetColor(255, 255, 255, 255);
line.draw(); line.draw();
ofPopStyle();
}else if(_sm->getSelectedSurface()->getType() == SurfaceType::GRID_WARP_SURFACE){ }else if(_sm->getSelectedSurface()->getType() == SurfaceType::GRID_WARP_SURFACE){
_sm->getSelectedSurface()->getMesh().drawWireframe(); _sm->getSelectedSurface()->getMesh().drawWireframe();
}else{ }else{
@ -38,6 +38,8 @@ void SurfaceHighlightWidget::draw(){
p.close(); p.close();
p.draw(); p.draw();
} }
ofPopStyle();
} }
} // namespace piMapper } // namespace piMapper

Loading…
Cancel
Save