Commit b1ca8d2f authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - removed several unused variables

parent 563e3ac6
......@@ -81,14 +81,6 @@ void WGEBorderLayout::SafeUpdateCallback::operator()( osg::Node* node, osg::Node
// the geometry for the lead lines
osg::ref_ptr< osg::Vec3Array > v = new osg::Vec3Array;
bool rightBins[10];
bool leftBins[10];
for ( unsigned int i = 0; i< 10; ++i )
{
rightBins[i] = false;
leftBins[i] = false;
}
for ( unsigned int i = 0; i < m_layouter->m_geode->getNumDrawables(); ++i )
{
// each drawable is a WGELabel:
......
......@@ -1116,7 +1116,7 @@ void WMNavSlices::updateViewportMatrix()
setMaxMinFromBoundingBox();
double aspectR;
double top, left, width, height;
double width, height;
double scale;
boost::shared_ptr< WGEViewer > viewer;
osg::ref_ptr< WGEGroupNode > currentScene;
......@@ -1126,8 +1126,6 @@ void WMNavSlices::updateViewportMatrix()
currentScene = viewer->getScene();
//aspectR = viewer->getCamera()->getViewport()->aspectRatio();
left = m_bb.xMin();
top = m_bb.yMin();
width = m_bb.xMax() - m_bb.xMin();
height = m_bb.yMax() - m_bb.yMin();
aspectR = static_cast< double >( m_axialWidgetWidth ) / static_cast< double >( m_axialWidgetHeight );
......@@ -1193,8 +1191,6 @@ void WMNavSlices::updateViewportMatrix()
currentScene = viewer->getScene();
aspectR = viewer->getCamera()->getViewport()->aspectRatio();
left = m_bb.yMin();
top = m_bb.zMin();
width = m_bb.yMax() - m_bb.yMin();
height = m_bb.zMax() - m_bb.zMin();
aspectR = static_cast< double >( m_sagittalWidgetWidth ) / static_cast< double >( m_sagittalWidgetHeight );
......@@ -1262,8 +1258,6 @@ void WMNavSlices::updateViewportMatrix()
currentScene = viewer->getScene();
aspectR = viewer->getCamera()->getViewport()->aspectRatio();
left = m_bb.xMin();
top = m_bb.zMin();
width = m_bb.xMax() - m_bb.xMin();
height = m_bb.zMax() - m_bb.zMin();
aspectR = static_cast< double >( m_coronalWidgetWidth ) / static_cast< double >( m_coronalWidgetHeight );
......
......@@ -194,8 +194,6 @@ void WMLineGuidedSlice::setSlicePosFromPick( WPickInfo pickInfo )
boost::unique_lock< boost::shared_mutex > lock;
lock = boost::unique_lock< boost::shared_mutex >( m_updateLock );
WVector3d normal = pickInfo.getPickNormal();
WVector2d newPixelPos( pickInfo.getPickPixel() );
if( m_isPicked )
{
......
......@@ -152,7 +152,6 @@ void WMNavigationSlices::initOSG()
///////////////////////////////////////////////////////////////////////////////////////////////
// create a new geode containing the slices
osg::Vec3f org = osg::Vec3( 0.0, 0.0, 0.0 );
// X Slice
osg::ref_ptr< osg::Node > xSlice = wge::genFinitePlane( minV, osg::Vec3( 0.0, maxV[1], 0.0 ),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment