------------------------------------------------------------------------------
| 121 | |
| 122 | //------------------------------------------------------------------------------ |
| 123 | int vtkResliceCursorPolyDataAlgorithm::RequestData(vtkInformation* vtkNotUsed(request), |
| 124 | vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* vtkNotUsed(outputVector)) |
| 125 | { |
| 126 | if (!this->ResliceCursor) |
| 127 | { |
| 128 | vtkErrorMacro(<< "Reslice Cursor not set !"); |
| 129 | return -1; |
| 130 | } |
| 131 | |
| 132 | this->BuildResliceSlabAxisTopology(); |
| 133 | |
| 134 | // Cut the reslice cursor with the plane on which we are viewing. |
| 135 | |
| 136 | const int axis1 = this->GetAxis1(); |
| 137 | const int axis2 = this->GetAxis2(); |
| 138 | |
| 139 | this->CutAndClip( |
| 140 | this->ResliceCursor->GetCenterlineAxisPolyData(axis1), this->GetCenterlineAxis1()); |
| 141 | this->CutAndClip( |
| 142 | this->ResliceCursor->GetCenterlineAxisPolyData(axis2), this->GetCenterlineAxis2()); |
| 143 | |
| 144 | if (this->ResliceCursor->GetThickMode()) |
| 145 | { |
| 146 | this->GetSlabPolyData(axis1, this->GetPlaneAxis1(), this->ThickAxes[0]); |
| 147 | this->CutAndClip(this->ThickAxes[0], this->GetThickSlabAxis1()); |
| 148 | |
| 149 | this->GetSlabPolyData(axis2, this->GetPlaneAxis2(), this->ThickAxes[1]); |
| 150 | this->CutAndClip(this->ThickAxes[1], this->GetThickSlabAxis2()); |
| 151 | } |
| 152 | |
| 153 | return 1; |
| 154 | } |
| 155 | |
| 156 | //------------------------------------------------------------------------------ |
| 157 | void vtkResliceCursorPolyDataAlgorithm ::GetSlabPolyData(int axis, int planeAxis, vtkPolyData* pd) |
nothing calls this directly
no test coverage detected