_textProp->SetFontSize( 14 );
_textActor->SetTextProperty( _textProp );
}
- // If the text actor already exists in the scene, simply refresh its text.
- else
- {
- _textProp->SetColor( bbGetInputColour()[0] , bbGetInputColour()[1], bbGetInputColour()[2] );
-
- _textActor->SetInput( bbGetInputIn().c_str() );
- _textActor->SetPosition( bbGetInputX(), bbGetInputY(),bbGetInputZ() );
-
- if ( bbGetInputTransform()!=NULL )
- {
- _textActor->SetUserTransform( bbGetInputTransform() );
- }
+ _textProp->SetColor( bbGetInputColour()[0] , bbGetInputColour()[1], bbGetInputColour()[2] );
+
+ _textActor->SetInput( bbGetInputIn().c_str() );
+ _textActor->SetPosition( bbGetInputX(), bbGetInputY(),bbGetInputZ() );
- bbSetOutputOut(_textActor);
+ if ( bbGetInputTransform()!=NULL )
+ {
+ _textActor->SetUserTransform( bbGetInputTransform() );
}
+
+ bbSetOutputOut(_textActor);
+
}
//=====