[vtkusers] Help with visualisation of pressure sketches

Sylvain Jaume sylvain.jaume at kitware.com
Fri Aug 31 14:35:03 EDT 2007


You could first connect your points to create polylines. Then use 
vtkTubeFilter with SetVaryRadiusToVaryRadiusByScalar().

Sylvain

Monica Gemo wrote:
> thank you for the suggestion,
> I will try also with glyph and the polydatamapper.
> 
> I would need to visualise on an image some annotations like this,
> a polyline with variable thickness
> [] 
> 
> Monica
> At 19:43 31/08/2007, you wrote:
>> Hi Monica,
>>
>> Would a vtkGlyph2D and vtkPolyDataMapper be a solution for you?
>> Use vtkGlyph2D::ScalingOn()
>> and vtkGlyph2D::SetScaleModeToScaleByScalar()
>>
>> HTH,
>> Sylvain
>>
>> Date: Fri, 31 Aug 2007 16:44:23 +0200
>> From: Monica Gemo <Monica.Gemo at UCLouvain.be>
>> Subject: [vtkusers] Help with visualisation of pressure sketches
>> To: vtkusers at vtk.org
>> Message-ID: <7.0.1.0.2.20070831164332.01c4d158 at UCLouvain.be>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Hello,
>> on a 2D image I must visualise pressure sensitive marks
>> like the ones that you can make with gimp brushing.
>> The input data  (scalar values for the pressure
>> and the point coordinates) will be stored into a vtkPolyData.
>>
>> Can anybody suggest me which are the best mapper
>> or filter that I can use with the vtkAct2D to get the brush-like effect
>> with thickness varying according to the pressure input?
>>
>> Any reference example?
>>
>> Thanks a lot,
>>
>> Monica
> 
>  Monica Gemo
>  Communication and Remote Sensing Lab. (UCL/TELE)
>  Belgium Lab. of Computer-Human Interaction (UCL/BCHI)
>  Université catholique de Louvain
>  Address : Stevin Building, room A.147
>                  Place du Levant, 2
>                  B-1348 Louvain-la-Neuve, BELGIUM
>  Tel : + 32 10 47.41.05  -  Fax : + 32 10 47.20.89
>  E-mail : gemo at tele.ucl.ac.be
>   http://www.tele.ucl.ac.be/view-people.php?id=54
> 



More information about the vtkusers mailing list