[vtkusers] VTK6.0 label size problem of vtkScalarBarActor

chasank chasank at gmail.com
Tue Jun 25 16:27:53 EDT 2013


Include files;

#include <iostream>
#include <sstream>

#include <itkImage.h>
#include <itkImageFileReader.h>
#include <itkNiftiImageIO.h>
#include <itkImageToVTKImageFilter.h>

#include <vtkImageData.h>
#include <vtkSmartPointer.h>
#include <vtkLookupTable.h>
#include <vtkScalarBarActor.h>
#include <vtkRenderer.h>
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkInteractorStyleImage.h>
#include <vtkImageResliceMapper.h>
#include <vtkImageProperty.h>
#include <vtkMatrix4x4.h>
#include <vtkImageSlice.h>
#include <vtkCamera.h>
#include <vtkCommand.h>
#include <vtkTextProperty.h>

The grayscale file is a binary file for lookup table. It is not important,
lookup table is built is identical with; 

table = vtkSmartPointer< vtkLookupTable >::New();
table->SetValueRange(0.0, 1.0);
table->SetRampToLinear();
table->SetScaleToLinear();
table->Build();






--
View this message in context: http://vtk.1045678.n5.nabble.com/VTK6-0-label-size-problem-of-vtkScalarBarActor-tp5721585p5721602.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list