Commit 850a7e1e authored by jcfr's avatar jcfr

COMP: Fix -Wunused-but-set-variable, -Wunused-parameter and -Wunused-variable warnings

git-svn-id: http://svn.slicer.org/Slicer4/trunk@27997 3bd1e089-480b-0410-8dfb-8563597acbee
parent 245097a6
......@@ -989,20 +989,20 @@ vtkRenderer* vtkMRMLAbstractDisplayableManager::GetRenderer(int idx)
}
//---------------------------------------------------------------------------
bool vtkMRMLAbstractDisplayableManager::CanProcessInteractionEvent(vtkMRMLInteractionEventData* eventData, double &distance2)
bool vtkMRMLAbstractDisplayableManager::CanProcessInteractionEvent(vtkMRMLInteractionEventData* vtkNotUsed(eventData), double &distance2)
{
distance2 = VTK_DOUBLE_MAX;
return false;
}
//---------------------------------------------------------------------------
bool vtkMRMLAbstractDisplayableManager::ProcessInteractionEvent(vtkMRMLInteractionEventData* eventData)
bool vtkMRMLAbstractDisplayableManager::ProcessInteractionEvent(vtkMRMLInteractionEventData* vtkNotUsed(eventData))
{
return false;
}
//---------------------------------------------------------------------------
void vtkMRMLAbstractDisplayableManager::SetHasFocus(bool hasFocus)
void vtkMRMLAbstractDisplayableManager::SetHasFocus(bool vtkNotUsed(hasFocus))
{
return;
}
......
......@@ -252,7 +252,6 @@ void vtkSliceViewInteractorStyle::OnMouseMove()
this->MouseMovedSinceButtonDown = true;
vtkMRMLSliceNode *sliceNode = this->SliceLogic->GetSliceNode();
vtkMRMLSliceCompositeNode *sliceCompositeNode = this->SliceLogic->GetSliceCompositeNode();
int eventPosition[2] = { 0 };
this->GetInteractor()->GetEventPosition(eventPosition[0], eventPosition[1]);
......@@ -802,7 +801,6 @@ void vtkSliceViewInteractorStyle::DoZoom()
this->GetInteractor()->GetEventPosition(eventPosition[0], eventPosition[1]);
int* windowSize = this->GetInteractor()->GetRenderWindow()->GetSize();
double windowMinSize = std::min(windowSize[0], windowSize[1]);
int deltaY = eventPosition[1] - this->StartActionEventPosition[1];
double percent = (windowSize[1] + deltaY) / (1.0 * windowSize[1]);
......
......@@ -463,6 +463,11 @@ void vtkThreeDViewInteractorStyle::OnLeftButtonUp()
mouseInteractionMode = interactionNode->GetCurrentInteractionMode();
placeModePersistence = interactionNode->GetPlaceModePersistence();
vtkDebugMacro("OnLeftButtonUp: mouse interaction mode = " << mouseInteractionMode);
vtkDebugMacro("OnLeftButtonUp: place persistence mode = " << placeModePersistence);
#ifdef NDEBUG
(void)mouseInteractionMode; // unused
(void)placeModePersistence; // unused
#endif
}
else
{
......@@ -601,13 +606,6 @@ bool vtkThreeDViewInteractorStyle::ForwardInteractionEventToDisplayableManagers(
// Get display and world position
int* displayPositionInt = this->GetInteractor()->GetEventPosition();
vtkRenderer* pokedRenderer = this->GetInteractor()->FindPokedRenderer(displayPositionInt[0], displayPositionInt[1]);
double displayPosition[4] =
{
static_cast<double>(displayPositionInt[0] - pokedRenderer->GetOrigin()[0]),
static_cast<double>(displayPositionInt[1] - pokedRenderer->GetOrigin()[1]),
0.0,
1.0
};
vtkNew<vtkMRMLInteractionEventData> ed;
ed->SetType(event);
......
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