]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkText3D.cxx
no message
[bbtk.git] / packages / vtk / src / bbvtkText3D.cxx
index bf831ad43fa0aea543d8bb56115a185ecbdf75a5..ef38350d3ea4aa35aba036c22337e6f95d8e9547 100644 (file)
@@ -40,7 +40,16 @@ void Text3D::Process()
 
        textActor->SetInput( bbGetInputIn().c_str()  );
        textActor->SetPosition(  bbGetInputX(), bbGetInputY(),bbGetInputZ() );
-       bbGetInputRenderer()->AddActor( textActor );
+       if ( bbGetInputRenderer()!=NULL )
+       {
+               bbGetInputRenderer()->AddActor( textActor );
+       }
+       
+       if ( bbGetInputTransform()!=NULL )
+       {
+               textActor->SetUserTransform( bbGetInputTransform() );
+       }
+       
        bbSetOutputOut(textActor);
        
 }
@@ -63,6 +72,7 @@ void Text3D::bbUserSetDefaultValues()
        colour.push_back(0);
        bbSetInputColour(colour);
        bbSetInputRenderer(NULL);
+       bbSetInputTransform(NULL);
 }
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)