| 115 | } |
| 116 | |
| 117 | void SliceNavigationController::Update() |
| 118 | { |
| 119 | if (!m_BlockUpdate) |
| 120 | { |
| 121 | if (m_ViewDirection == AnatomicalPlane::Sagittal) |
| 122 | { |
| 123 | this->Update(AnatomicalPlane::Sagittal, true, true, false); |
| 124 | } |
| 125 | else if (m_ViewDirection == AnatomicalPlane::Coronal) |
| 126 | { |
| 127 | this->Update(AnatomicalPlane::Coronal, false, true, false); |
| 128 | } |
| 129 | else if (m_ViewDirection == AnatomicalPlane::Axial) |
| 130 | { |
| 131 | this->Update(AnatomicalPlane::Axial, false, false, true); |
| 132 | } |
| 133 | else |
| 134 | { |
| 135 | this->Update(m_ViewDirection); |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | void SliceNavigationController::Update(AnatomicalPlane viewDirection, |
| 141 | bool top, |
no test coverage detected