]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkText3D.cxx
2348 BBTK Feature New Normal Text3D Box Opacity
[bbtk.git] / packages / vtk / src / bbvtkText3D.cxx
index 776d45e02947a7c8811bc358c602913f36d90a50..077c44f65023bd94df42660caa70b55db5526c0b 100644 (file)
@@ -71,7 +71,8 @@ void Text3D::Process()
   
   _textActor->SetInput( bbGetInputIn().c_str()  );
   _textActor->SetPosition(  bbGetInputX(), bbGetInputY(),bbGetInputZ() );
-       
+  _textActor->GetTextProperty()->SetOpacity( bbGetInputOpacity() );    
+
   if ( bbGetInputTransform()!=NULL )
     {
       _textActor->SetUserTransform( bbGetInputTransform() );
@@ -101,6 +102,7 @@ void Text3D::bbUserSetDefaultValues()
        bbSetInputColour(colour);
        bbSetInputRenderer(NULL);
        bbSetInputTransform(NULL);
+       bbSetInputOpacity(1);
 
        _textActor = NULL;
        _textProp = NULL;