]> Creatis software - bbtk.git/commitdiff
no message
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Mon, 9 Jan 2012 18:28:20 +0000 (18:28 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Mon, 9 Jan 2012 18:28:20 +0000 (18:28 +0000)
doc/bouml/bbtkk/2.session
packages/vtk/src/bbvtkPolyDataToActor.cxx
packages/vtk/src/bbvtkPolyDataToActor.h

index 7662096620ad3107c2c24975cbabd0e911020aa7..c41106f93ae0a834c8f6f3556876cf76619432a6 100644 (file)
@@ -1,12 +1,11 @@
-window_sizes 1024 1258 364 654 1201 0
+window_sizes 1398 856 495 897 799 0
 diagrams
   active  classdiagram_ref 128002 // bbtk-Class-Diagram
-    650 1181 100 4 0 0
+    650 1181 100 4 38 0
 end
 show_stereotypes
-selected classview_ref 129282 // src
+selected classdiagram_ref 128002 // bbtk-Class-Diagram
 open
-  class_ref 149890 // MagicBoxSetFunctor
-  classview_ref 129282 // src
+  classview_ref 128002 // src
 end
 end
index 629c41891cc15533c12dae50b0bc8846dd310b79..22ebe039eaf3cf2780e99b3f59497ed65ad0e7f6 100644 (file)
@@ -60,6 +60,8 @@ namespace bbvtk
           bbSetInputRenderer(NULL);
           bbSetInputTransform(NULL);
           bbSetInputOpacity(1);
+          bbSetInputRepresentation(1);
+          bbSetInputLineWidth(1);
 
           polydatamapper = NULL;
           vtkactor       = NULL;
@@ -101,6 +103,9 @@ namespace bbvtk
    {      
      polydatamapper->SetInput( bbGetInputIn() );
      
+        vtkactor->GetProperty()->SetRepresentation( bbGetInputRepresentation() );
+        vtkactor->GetProperty()->SetLineWidth( bbGetInputLineWitdth() );
+          
      vtkactor->GetProperty()->SetColor( bbGetInputColour()[0],  
                                        bbGetInputColour()[1], 
                                        bbGetInputColour()[2] );
index 47789ff67ac845fa6a443c66e24b9d837ec8b9ee..c5f80518729b3c5079f04ac8264a89622a485eff 100644 (file)
@@ -79,6 +79,8 @@ namespace bbvtk
     BBTK_DECLARE_INPUT(Colour,std::vector<double>);
     BBTK_DECLARE_INPUT(Renderer,vtkRenderer *);
     BBTK_DECLARE_INPUT(Transform, vtkLinearTransform *);
+       BBTK_DECLARE_INPUT(Representation, int);
+       BBTK_DECLARE_INPUT(LineWitdth, double);
     BBTK_DECLARE_OUTPUT(Out,vtkProp3D *);
     
     BBTK_PROCESS(DoProcess);
@@ -99,6 +101,8 @@ namespace bbvtk
   BBTK_INPUT(PolyDataToActor,Colour,"r g b",vectorcolour,"colour");
   BBTK_INPUT(PolyDataToActor,Renderer,"3D scene in which to insert the surface",vtkRenderer*,"");
   BBTK_INPUT(PolyDataToActor,Transform,"Linear Transform (4x4 homogeneous)",vtkLinearTransform*,"");
+  BBTK_INPUT(PolyDataToActor,Representation,"0 points, 1(default) surface, 2 wireframe",int,"");
+  BBTK_INPUT(PolyDataToActor,LineWitdth,"Width of the wireframe (1 default)",double,"");
   BBTK_OUTPUT(PolyDataToActor,Out,"Extracted iso-surface",vtkProp3D *,"");
   
   BBTK_END_DESCRIBE_BLACK_BOX(PolyDataToActor);