RTSMarker bug
- fixed rendering pipeline. a cross mark is displayed if we have a struct with a single point - in case of 2 points, we do nothing, just pass on the two points - if we have a full structure, we process it as usual - fix to be ported into the writer
This commit is contained in:
@ -168,57 +168,36 @@ int vtkContourTopogramProjectionFilter::RequestData(
|
||||
pp2[1] -= dProjectionLPSOffset [1];
|
||||
pp2[2] -= dProjectionLPSOffset [2];
|
||||
|
||||
// // Workaround to account for PA-LAT HFS-FFS
|
||||
// switch (this->m_ProjectionOrientation) {
|
||||
// case itk::PA:
|
||||
// pp2[0] += dPOffset;
|
||||
// break;
|
||||
// case itk::LAT:
|
||||
// switch (this->m_PatientOrientation) {
|
||||
// case itk::FFS:
|
||||
// pp2[1] += dPOffset;
|
||||
// break;
|
||||
// case itk::HFS:
|
||||
// pp2[1] -= dPOffset;
|
||||
// break;
|
||||
// default:
|
||||
// break;
|
||||
// }
|
||||
// break;
|
||||
// default:
|
||||
// break;
|
||||
// }
|
||||
// std::cout << ii << " " << pp2[0] << " " << pp2[1] << " " << pp2[2] << std::endl;
|
||||
|
||||
PrjPoints->InsertPoint(ii,pp2);
|
||||
}
|
||||
|
||||
|
||||
output->SetPoints( PrjPoints );
|
||||
|
||||
// if (psInput)
|
||||
// {
|
||||
// output->GetPointData()->PassData(psInput->GetPointData());
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// output->GetPointData()->PassData(graphInput->GetVertexData());
|
||||
// }
|
||||
|
||||
vtkIdType numPoints = points->GetNumberOfPoints();
|
||||
std::cout << "NUmPoints " << numPoints << std::endl;
|
||||
|
||||
VTK_CREATE(vtkCellArray, cells);
|
||||
cells->AllocateEstimate(numPoints, 1);
|
||||
if (cells->AllocateEstimate(numPoints, 1) == true){
|
||||
|
||||
} else {
|
||||
std::cout << "vtkContourTopogramProjectionFilter Can't allocate cells " << std::endl;
|
||||
}
|
||||
|
||||
|
||||
for (vtkIdType i = 0; i < numPoints; i++)
|
||||
{
|
||||
cells->InsertNextCell(1, &i);
|
||||
}
|
||||
|
||||
output->SetVerts(cells);
|
||||
std::cout << "output->SetVerts " << std::endl;
|
||||
|
||||
PrjPoints->Delete();
|
||||
std::cout << "PrjPoints->Delete(); " << std::endl;
|
||||
|
||||
output->Squeeze();
|
||||
std::cout << "output->Squeeze(); " << std::endl;
|
||||
|
||||
return 1;
|
||||
|
||||
|
Reference in New Issue
Block a user