BBTK_BLACK_BOX_IMPLEMENTATION(SliceImage,bbtk::AtomicBlackBox);
void SliceImage::Process()
{
+ printf("EED 0 SliceImage::Process \n");
vtkImageData *imagedata=NULL;
if ( bbGetInputIn()!=NULL ){
- imageReslice->SetInput( imagedata );
- imageReslice->SetInformationInput(imagedata);
+ imageReslice->SetInput( bbGetInputIn() );
+ imageReslice->SetInformationInput(bbGetInputIn() );
imageReslice->SetResliceAxesDirectionCosines(1,0,0, 0,1,0 ,0,0,1);
imageReslice->SetResliceAxesOrigin(0,0, bbGetInputZ() );
imageReslice->SetOutputDimensionality(2);
imageReslice->SetInterpolationModeToLinear();
- vtkImageData *imagedata = imageReslice->GetOutput();
+ imagedata = imageReslice->GetOutput();
imagedata->Update();
imagedata->UpdateInformation();
+ printf("EED 1 SliceImage::Process %p\n", imagedata);
}
bbSetOutputOut( imagedata );
}
void ImageActor::Process()
{
- //JCP 04/04/09
- vtkRenderer *render = bbGetInputRenderer();
- vtkImageData *img = bbGetInputIn();
- vtkLinearTransform* transform = bbGetInputTransform();
+ //JCP 04/04/09
+ vtkRenderer *render = bbGetInputRenderer();
+ vtkImageData *img = bbGetInputIn();
+ vtkLinearTransform* transform = bbGetInputTransform();
- if(img != NULL && transform != NULL){
-
- imageactor = vtkImageActor::New();
- vtkImageShiftScale *imageshiftscale = vtkImageShiftScale::New();
- imageshiftscale->SetInput( img );
- imageshiftscale->SetOutputScalarTypeToUnsignedChar();
- imageactor->SetInput( imageshiftscale->GetOutput() );
- imageactor->SetUserTransform( transform );
-
- if(render != NULL ){
- render->AddActor( imageactor );
+ if(img != NULL){
+ imageactor = vtkImageActor::New();
+ vtkImageShiftScale *imageshiftscale = vtkImageShiftScale::New();
+ imageshiftscale->SetInput( img );
+ imageshiftscale->SetOutputScalarTypeToUnsignedChar();
+ imageactor->SetInput( imageshiftscale->GetOutput() );
+ if (transform!=NULL){
+ imageactor->SetUserTransform( transform );
+ } // transform
+ if(render != NULL ){
+ render->AddActor( imageactor );
+ } // render
+ bbSetOutputOut(imageactor);
+ } // img
+
+
+ // Interface Update
+ if ((firsttime==true) && (bbGetInputRenderer()!=NULL ))
+ {
+ firsttime=false;
+ bbGetInputRenderer()->AddActor( imageactor );
}
-
-
+
bbSetOutputOut(imageactor);
-
- }
}
void ImageActor::bbUserSetDefaultValues()
BBTK_INPUT(ImageActor,In,"Image input",vtkImageData*,"");
BBTK_INPUT(ImageActor,Transform,"Transform",vtkLinearTransform*,"");
BBTK_INPUT(ImageActor,Renderer,"Renderer",vtkRenderer*,"");
-BBTK_OUTPUT(ImageActor,Out,"Output actor",vtkProp3D*,"");
+BBTK_OUTPUT(ImageActor,Out,"Output vtk actor",vtkProp3D*,"");
BBTK_END_DESCRIBE_BLACK_BOX(ImageActor);
}
// EO namespace bbcreaMaracasVisu
CREA_CPDIR ( ${CMAKE_CURRENT_SOURCE_DIR}/bouml/pPlotter/pPlotter_HTML/ ${DOXYGEN_OUTPUT}/${DOXYGEN_HTML_OUTPUT}/pPlotter_HTML/ )
CREA_CPDIR ( ${CMAKE_CURRENT_SOURCE_DIR}/bouml/wxVtkViewer/wxVtkViewer_classDiagram1_HTML/ ${DOXYGEN_OUTPUT}/${DOXYGEN_HTML_OUTPUT}/wxVtkViewer_classDiagram1_HTML/ )
CREA_CPDIR ( ${CMAKE_CURRENT_SOURCE_DIR}/bouml/wxVtkViewer/wxVtkViewer_classDiagram2_HTML/ ${DOXYGEN_OUTPUT}/${DOXYGEN_HTML_OUTPUT}/wxVtkViewer_classDiagram2_HTML/ )
+ CREA_CPDIR ( ${CMAKE_CURRENT_SOURCE_DIR}/bouml/manualContour/manualContour_MVC_HTML/ ${DOXYGEN_OUTPUT}/${DOXYGEN_HTML_OUTPUT}/manualContour_MVC_HTML/ )
+ CREA_CPDIR ( ${CMAKE_CURRENT_SOURCE_DIR}/bouml/manualContour/manualContour_Model_HTML/ ${DOXYGEN_OUTPUT}/${DOXYGEN_HTML_OUTPUT}/manualContour_Model_HTML/ )
+ CREA_CPDIR ( ${CMAKE_CURRENT_SOURCE_DIR}/bouml/manualContour/manualContour_View_HTML/ ${DOXYGEN_OUTPUT}/${DOXYGEN_HTML_OUTPUT}/manualContour_View_HTML/ )
+ CREA_CPDIR ( ${CMAKE_CURRENT_SOURCE_DIR}/bouml/manualContour/manualContour_Controler_HTML/ ${DOXYGEN_OUTPUT}/${DOXYGEN_HTML_OUTPUT}/manualContour_Controler_HTML/ )
ADD_CUSTOM_TARGET(doxygen_${NAME} ALL
DEPENDS ${DOXYGEN_OUTPUT}/${DOXYGEN_HTML_OUTPUT}/index.html
<a href="../pPlotter_HTML/index.html"> pPlotter Class Diagram</a> <br>
<br>
Manual Contour Class Diagram <br>
-<a href="../manualContour_HTML/MVC/index.html"> -MVC (Model View Controler)</a> <br>
-<a href="../manualContour_HTML/Model/index.html"> -Model</a> <br>
-<a href="../manualContour_HTML/View/index.html"> -View</a> <br>
-<a href="../manualContour_HTML/Controloer/index.html"> -Controler</a> <br>
+<a href="../manualContour_MVC_HTML/index.html"> -MVC (Model View Controler)</a> <br>
+<a href="../manualContour_Model_HTML/index.html"> -Model</a> <br>
+<a href="../manualContour_View_HTML/index.html"> -View</a> <br>
+<a href="../manualContour_Controler_HTML/index.html"> -Controler</a> <br>
<H2>Sequence Diagrams ?????????? </H2>
<br>
classcanvas 128025 class_ref 129945 // manualContourModel
draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_members_multiplicity default show_members_initialization default show_attribute_modifiers default member_max_width 0 show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_relation_modifiers default show_infonote default shadow default show_stereotype_properties default
- xyz 105 229 2000
+ xyz 92 229 2000
end
classcanvas 128153 class_ref 131353 // manualViewBaseContour
draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_members_multiplicity default show_members_initialization default show_attribute_modifiers default member_max_width 0 show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_relation_modifiers default show_infonote default shadow default show_stereotype_properties default
- xyz 242 105 2008
+ xyz 228 105 2008
end
classcanvas 129177 class_ref 129689 // manualContourBaseControler
draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_members_multiplicity default show_members_initialization default show_attribute_modifiers default member_max_width 0 show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_relation_modifiers default show_infonote default shadow default show_stereotype_properties default
- xyz 369 228 2000
+ xyz 351 228 2000
end
note 130201 "MODEL"
xyzwh 96 168 2000 65 36
format 66
"manualContour"
- revision 4
+ revision 5
modified_by 2 "davila"
show_infonote yes drawing_language uml show_stereotype_properties no
class_color yellow duration_color transparent continuation_color gray note_color blue fragment_color transparent subject_color transparent usecase_color yellow package_color transparent component_color green artifact_color green deploymentnode_color gray state_color yellow stateaction_color transparent activity_color transparent activityregion_color transparent activitypartition_color transparent activityaction_color transparent parameterpin_color white
- font_size 10
+ font_size 12
diagram_format A4
mark_for_import
ncouples 1
- key "html dir" value "/Users/davila/Creatis/creaMaracasVisu/lib/doxygen/bouml/manualContour/Controler_HTML/"
+ key "html dir" value "/Users/davila/Creatis/creaMaracasVisu/lib/doxygen/bouml/manualContour/manualContour_Controler_HTML/"
classview 129177 "manualContour"
//class diagram settings
draw_all_relations default hide_attributes default hide_operations default show_members_full_definition default show_members_visibility default show_members_stereotype default show_members_multiplicity default show_members_initialization default show_attribute_modifiers default member_max_width 0 show_parameter_dir default show_parameter_name default package_name_in_tab default class_drawing_mode default drawing_language default show_context_mode default auto_label_position default show_relation_modifiers default show_infonote default shadow default show_stereotype_properties default