MCPcopy Create free account
hub / github.com/Kitware/VTK / KeyPressEvent

Method KeyPressEvent

Charts/Core/vtkChartXY.cxx:2515–2527  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2513
2514//------------------------------------------------------------------------------
2515bool vtkChartXY::KeyPressEvent(const vtkContextKeyEvent& key)
2516{
2517 switch (key.GetKeyCode())
2518 {
2519 // Reset the chart axes
2520 case 'r':
2521 case 'R':
2522 this->RecalculateBounds();
2523 this->Scene->SetDirty(true);
2524 }
2525
2526 return true;
2527}
2528
2529const std::vector<vtkContextTransform*>& vtkChartXY::GetTransforms() const
2530{

Callers 1

OnKeyPressMethod · 0.45

Calls 3

RecalculateBoundsMethod · 0.95
GetKeyCodeMethod · 0.80
SetDirtyMethod · 0.80

Tested by

no test coverage detected