+++ /dev/null
-#include "bbcreaMaracasVisuIRMViewer.h"
-#include "bbcreaMaracasVisuPackage.h"
-
-
-#include "wxMaracasIRMView.h"
-
-namespace bbcreaMaracasVisu
-{
-
-BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,IRMViewer)
-BBTK_BLACK_BOX_IMPLEMENTATION(IRMViewer,bbtk::WxBlackBox);
-void IRMViewer::Process()
-{
-
- wxMaracasIRMView* irmview = wxMaracasIRMView::getInstance();
- std::vector<vtkProp3D*> tempvect;
- int i;
-
- if(irmview != NULL){
- vtkRenderer* renderer = bbGetInputRenderer();
- irmview->setRenderer(renderer);
- vtkProp3D* prop3D;
- tempvect.push_back(bbGetInputIn0());
- tempvect.push_back(bbGetInputIn1());
- tempvect.push_back(bbGetInputIn2());
- tempvect.push_back(bbGetInputIn3());
- tempvect.push_back(bbGetInputIn4());
-
- for(i = 0; i < tempvect.size();i++){
- prop3D = tempvect[i];
- if(prop3D != NULL&&renderer != NULL){
- irmview->addProp3D(prop3D);
- }
- }
- }
-}
-void IRMViewer::CreateWidget(wxWindow* parent)
-{
-
-
- //std::cout << "Your application's directory is: " << path;
-
- wxMaracasIRMView* irmview = wxMaracasIRMView::getInstance(parent);
- //GetDllDirectory(_MAX_PATH, currentPath);
- //std::cout << "Your application's directory is: " << GetDllDirectory(_MAX_PATH, currentPath)<<std::endl;
-
- bbSetOutputWidget(irmview);
-
-}
-
- //-----------------------------------------------------------------
- void IRMViewer::bbUserSetDefaultValues()
- {
- bbSetInputIn0(NULL);
- bbSetInputIn1(NULL);
- bbSetInputIn2(NULL);
- bbSetInputIn3(NULL);
- bbSetInputIn4(NULL);
- bbSetInputRenderer(NULL);
- bbSetOutputWidget(NULL);
- }
-
- //-----------------------------------------------------------------
- void IRMViewer::bbUserInitializeProcessing()
- {
- }
-
- //-----------------------------------------------------------------
- void IRMViewer::bbUserFinalizeProcessing()
- {
- }
-
- //-----------------------------------------------------------------
-
-
-
-}
-// EO namespace bbcreaMaracasVisu
-
-
+++ /dev/null
-#ifdef _USE_WXWIDGETS_
-#ifndef __bbcreaMaracasVisuIRMViewer_h_INCLUDED__
-#define __bbcreaMaracasVisuIRMViewer_h_INCLUDED__
-#include "bbcreaMaracasVisu_EXPORT.h"
-#include "bbtkWxBlackBox.h"
-
-#include "vtkImageData.h"
-#include "vtkProp3D.h"
-
-//#include "marInterface.h"
-
-namespace bbcreaMaracasVisu
-{
-
-class bbcreaMaracasVisu_EXPORT IRMViewer
- :
- public bbtk::WxBlackBox
-{
- BBTK_BLACK_BOX_INTERFACE(IRMViewer,bbtk::WxBlackBox);
- //BBTK_DECLARE_INPUT(In,vtkImageData*);
- BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
- BBTK_DECLARE_INPUT(In0,vtkProp3D*);
- BBTK_DECLARE_INPUT(In1,vtkProp3D*);
- BBTK_DECLARE_INPUT(In2,vtkProp3D*);
- BBTK_DECLARE_INPUT(In3,vtkProp3D*);
- BBTK_DECLARE_INPUT(In4,vtkProp3D*);
- BBTK_PROCESS(Process);
- void Process();
- BBTK_CREATE_WIDGET(CreateWidget);
- void CreateWidget(wxWindow*);
-
-private:
- //marInterface* mar;
-};
-
-BBTK_BEGIN_DESCRIBE_BLACK_BOX(IRMViewer,bbtk::WxBlackBox);
-BBTK_NAME("IRMViewer");
-BBTK_AUTHOR("car-prie@uniandes.edu.co");
-BBTK_DESCRIPTION("BB of the module IRMViewer");
-BBTK_CATEGORY("__CategoryBlackBox__");
-//BBTK_INPUT(IRMViewer,In,"Renderer to show the different prop3D",vtkImageData*,"");
-BBTK_INPUT(IRMViewer,Renderer,"Renderer to show the different prop3D",vtkRenderer*,"");
-BBTK_INPUT(IRMViewer,In0,"prop3D to the IRMViewer",vtkProp3D*,"");
-BBTK_INPUT(IRMViewer,In1,"prop3D to the IRMViewer",vtkProp3D*,"");
-BBTK_INPUT(IRMViewer,In2,"prop3D to the IRMViewer",vtkProp3D*,"");
-BBTK_INPUT(IRMViewer,In3,"prop3D to the IRMViewer",vtkProp3D*,"");
-BBTK_INPUT(IRMViewer,In4,"prop3D to the IRMViewer",vtkProp3D*,"");
-BBTK_END_DESCRIBE_BLACK_BOX(IRMViewer);
-}
-// EO namespace bbcreaMaracasVisu
-
-#endif // __bbcreaMaracasVisuIRMViewer_h_INCLUDED__
-#endif // _USE_WXWIDGETS_
-