]> Creatis software - creaVtk.git/commitdiff
#3491 vtk9itk5wx3-macos
authorEduardo Enrique Davila Serrano <davila@creatis.insa-lyon.fr>
Fri, 7 Oct 2022 14:52:04 +0000 (16:52 +0200)
committerEduardo Enrique Davila Serrano <davila@creatis.insa-lyon.fr>
Fri, 7 Oct 2022 14:52:04 +0000 (16:52 +0200)
bbtk_creaVtk_PKG/src/bbcreaVtkActor.cxx
bbtk_creaVtk_PKG/src/bbcreaVtkActor.h

index 84e89e6d127aecee69fcbee59a8c9979d3a21169..db523e518d04b2fbb39324ea3dc91055d6cd8f5f 100644 (file)
@@ -32,7 +32,6 @@ void Actor::Process()
 //    bbSetOutputOut( bbGetInputIn() );
 //    std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
  
-
        if (bbGetInputIn()!=NULL)
        {
                vtkProp3D* vtkprop3D=bbGetInputIn();
@@ -52,10 +51,8 @@ void Actor::Process()
                 {
                    vtkprop3D->SetUserTransform( bbGetInputTransform() );
                 }
-
         // bbSetOutputOut( vtkactor );
         // Interface Update
-
                if ((bbGetInputRenderer()!=NULL) && ( backActive!=bbGetInputActive() ))
                {
                        if (bbGetInputActive()==true )
@@ -67,7 +64,6 @@ void Actor::Process()
                        backActive=bbGetInputActive();
                } // if Renderer
        }// bbGetInputIn
-
 }
 //===== 
 // 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)
@@ -89,6 +85,7 @@ void Actor::bbUserSetDefaultValues()
        bbSetInputLineWidth( 0.5 );
        bbSetInputRenderer( NULL );
        bbSetInputColor( color );
+       bbSetInputTransform( NULL );
 
 }
 //===== 
index 101b2aba381a92957f6c52a8cb827f2d412e0285..5fed993f6bde1d53cfd1b96778abc196f7ca5c46 100644 (file)
@@ -50,6 +50,7 @@ BBTK_BEGIN_DESCRIBE_BLACK_BOX(Actor,bbtk::AtomicBlackBox);
  BBTK_INPUT(Actor,Opacity,"Opacity 0..1 (default 1)",double,"");
  BBTK_INPUT(Actor,Color,"(default [1 0 0]red )  RGB color vector [0..1, 0..1, 0..1]   )", std::vector<double>,"");
  BBTK_INPUT(Actor,LineWidth,"(default 0.5 ) With ligne   )",double,"");
+ BBTK_INPUT(Actor,Transform,"Transform",vtkTransform*,"");
  BBTK_INPUT(Actor,Renderer,"Renderer",vtkRenderer*,"");
 
 // BBTK_OUTPUT(Actor,Out,"First output",double,"");