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

Method RequestData

Interaction/Widgets/vtkResliceCursorPolyDataAlgorithm.cxx:123–154  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

121
122//------------------------------------------------------------------------------
123int 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//------------------------------------------------------------------------------
157void vtkResliceCursorPolyDataAlgorithm ::GetSlabPolyData(int axis, int planeAxis, vtkPolyData* pd)

Callers

nothing calls this directly

Calls 13

GetAxis1Method · 0.95
GetAxis2Method · 0.95
GetCenterlineAxis1Method · 0.95
GetCenterlineAxis2Method · 0.95
GetPlaneAxis1Method · 0.95
GetThickSlabAxis1Method · 0.95
GetPlaneAxis2Method · 0.95
GetThickSlabAxis2Method · 0.95
CutAndClipMethod · 0.80
GetThickModeMethod · 0.80

Tested by

no test coverage detected