[vtkusers] problems with vtkImageResliceMapper

JoseBarretoT jose.de.paula at live.com
Tue Jun 2 14:46:40 EDT 2015


If serve to someone, I can show sagittal and axial setting the camera this
way


vtkCamera* UCConfigurarEstudo::ConfigurarCamera(vtkCamera* camera, int
tipoVisao)
{
	if (camera != nullptr)
	{
		double tamanho = 0;
		switch (tipoVisao)
		{
			case 1:
				//View axial
				camera->ParallelProjectionOn();
				tamanho = GetDicom()->GetOutput()->GetExtent()[3] + 1;
				camera->SetParallelScale(0.5f*tamanho*GetDicom()->GetPixelSpacing()[1]);
				break;
			case 2:
				//View Sagital
				camera->ParallelProjectionOn();
				camera->Azimuth(90);
				camera->Roll(90);
				tamanho = GetDicom()->GetOutput()->GetExtent()[5] + 1;
				camera->SetParallelScale(0.5f*tamanho*GetDicom()->GetPixelSpacing()[2]);
				break;
			case 3:
				break;

		}
	}
	return camera;
}


user...
renderer->SetActiveCamera(ConfigurarCamera(renderer->GetActiveCamera(), 2));




while redimenciono the vision for the maximum size of the container.
Thank you David for your help!



--
View this message in context: http://vtk.1045678.n5.nabble.com/problems-with-vtkImageResliceMapper-tp5732027p5732128.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list