[Insight-users] RE: [vtkusers] error: invalid use of undefined type 'structvtkProperty'! How to use SetColor() ?

Ben Fulton bfulton at prosolv.com
Thu Mar 23 09:43:08 EST 2006


Looks like you need to add

 

#include “vtkProperty.h”

 

To AppBase.cxx .

 

  _____  

From: vtkusers-bounces+bfulton=prosolv.com at vtk.org
[mailto:vtkusers-bounces+bfulton=prosolv.com at vtk.org] On Behalf Of
charfeddine amir
Sent: Thursday, March 23, 2006 5:35 AM
To: vtkusers vtkusers; insight insight
Subject: [vtkusers] error: invalid use of undefined type
'structvtkProperty'! How to use SetColor() ?

 

Hi all
i get the following error while trying to change my actor color to RED :

/home/work/AppBase.cxx:4186:error: invalid use of undefined type 'struct
vtkProperty'
/usr/local/include/vtk/vtkActor.h:39: error: forward declaration of 'struct
vtkProperty'

and this is my code :

  vtkActor* actor = vtkActor::New();
  renR->AddActor(actor);

  vtkDataSetMapper* mapper = vtkDataSetMapper::New();
  mapper->SetInput(MeshToUnstructuredGrid( meshSource->GetOutput() ) );

  actor->SetMapper(mapper);
  actor->GetProperty()->SetColor( 1, 0, 0 ); 

could any one help me please, and thankx for your time,
Regards.

  _____  

Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs
exceptionnels pour appeler la France et l'international. Téléchargez
<http://us.rd.yahoo.com/messenger/mail_taglines/default/*http:/fr.beta.messe
nger.yahoo.com>  la version beta.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060323/2092cd4d/attachment.html


More information about the Insight-users mailing list