[vtkusers]  Updating part of pipepline
    Slash1985 
    tpieciak at gmail.com
       
    Wed Sep  9 07:35:01 EDT 2009
    
    
  
Hello
I'm trying to connect Qt library (some sliders) to pipeline in QVTKWidget at
present. 
The goal is to set new object's opacity by QSlider.
What methods I have to process in pipeline except: 
this->propertyStent->SetOpacity(new_value);  ?
My pipeline looks like this right now:
vtkStructuredPointsReader -> vtkContourFilter -> vtkCleanPolyData ->
vtkPolyDataNormals -> vtkOutlineFilter -> vtkPolyDataMapper -> vtkActor
Here is some code from my project:
	this->actorStent = vtkActor::New();
	this->actorStent->SetMapper(this->polyMapperStent);
	
	this->propertyStent = this->actorStent->GetProperty();
	this->propertyStent->SetOpacity(1.0);  
	this->propertyStent->SetAmbientColor(0.8, 0.8, 0.8);
	this->propertyStent->SetSpecularColor(0.8, 0.8, 0.8);
	this->propertyStent->SetSpecular(0.6);
	this->propertyStent->SetAmbient(0.1);
	this->propertyStent->LightingOn();
Cheers
Tom
-- 
View this message in context: http://www.nabble.com/Updating-part-of-pipepline-tp25363096p25363096.html
Sent from the VTK - Users mailing list archive at Nabble.com.
    
    
More information about the vtkusers
mailing list