[vtkusers] 3D presets calculation

sfaisalali91 sfaisal.ali91 at gmail.com
Thu Sep 25 09:11:40 EDT 2014


Hi,

Of late i have been working on 3D presets and i have succeeded in adding
many presets, Now i am aiming at changing the 3D presets continuously on
MouseMoveEvent (like window width/level interaction). i don't want to hard
code these parametrc values passed to vtkColorTransferFunction and
vtkPiecewiseFunction. Please can some one guide me How to calculate these
values and pass it to the CallBack funtion directly without hardcoding
them?? 

  vtkColorTransferFunction::AddRGBPoint( double x, double r, double g,
double b, 
                                                                          
double midpoint, double sharpness );
  vtkPieceWiseFunction::AddPoint( double x, double y, double midpoint,
double sharpness );

Thank you in advance!

Thanks & best regards
Syed Faisal Ali 



--
View this message in context: http://vtk.1045678.n5.nabble.com/3D-presets-calculation-tp5728883.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list