:
public bbtk::WxBlackBox
{
-
+
BBTK_BLACK_BOX_INTERFACE(CutModule,bbtk::WxBlackBox);
BBTK_DECLARE_INPUT(In,vtkImageData*);
BBTK_DECLARE_INPUT(Interactor,vtkRenderWindowInteractor*);
BBTK_NAME("CutModule");
BBTK_AUTHOR("car-prie@uniandes.edu.co");
BBTK_DESCRIPTION("extracts");
-BBTK_CATEGORY("__CategoryBlackBox__");
+BBTK_CATEGORY("actor, image, filter");
BBTK_INPUT(CutModule,In,"Image",vtkImageData*,"");
BBTK_INPUT(CutModule,Interactor,"WindowInteractor",vtkRenderWindowInteractor*,"");
BBTK_INPUT(CutModule,Renderer,"Renderer",vtkRenderer*,"");
#endif // __bbcreaMaracasVisuCutModule_h_INCLUDED__
#endif // _USE_WXWIDGETS_
-
:
public bbtk::WxBlackBox
{
-
+
BBTK_BLACK_BOX_INTERFACE(CutModule2,bbtk::WxBlackBox);
BBTK_DECLARE_INPUT(In,vtkImageData*);
BBTK_DECLARE_INPUT(Interactor,vtkRenderWindowInteractor*);
BBTK_NAME("CutModule2");
BBTK_AUTHOR("perez@creatis.insa-lyon.fr");
BBTK_DESCRIPTION("extracts");
-BBTK_CATEGORY("__CategoryBlackBox__");
+BBTK_CATEGORY("actor, image, filter");
BBTK_INPUT(CutModule2,In,"Image",vtkImageData*,"");
BBTK_INPUT(CutModule2,Interactor,"WindowInteractor",vtkRenderWindowInteractor*,"");
BBTK_INPUT(CutModule2,Renderer,"Renderer",vtkRenderer*,"");
#endif // __bbcreaMaracasVisuCutModule_h_INCLUDED__
#endif // _USE_WXWIDGETS_
-
void CreateWidget(wxWindow*);
private:
- PlaneDirectionViewer* _planedir;
+ PlaneDirectionViewer* _planedir;
int radio;
double colour[3];
int opacity;
BBTK_NAME("PlaneDirection");
BBTK_AUTHOR("car-prie@uniandes.edu.co");
BBTK_DESCRIPTION("Given a list of points and grouping them in triplets, the box calculates the direction of the plane formed by the three points");
-BBTK_CATEGORY("__CategoryBlackBox__");
+BBTK_CATEGORY("actor");
BBTK_INPUT(PlaneDirection,In,"Image data to get the spacing, if not found set to 1 1 1",vtkImageData*,"");
BBTK_INPUT(PlaneDirection,Renderer,"Renderer",vtkRenderer*,"");
BBTK_INPUT(PlaneDirection,Filename,"Filename to save the points of the plane and the direction",std::string,"");
-BBTK_INPUT(PlaneDirection , lstPointsX , " list of points X ", std::vector<int> ,"");
-BBTK_INPUT(PlaneDirection , lstPointsY , " list of points Y ", std::vector<int> ,"");
-BBTK_INPUT(PlaneDirection , lstPointsZ , " list of points Z ", std::vector<int> ,"");
+BBTK_INPUT(PlaneDirection, lstPointsX, " list of points X ", std::vector<int>, "");
+BBTK_INPUT(PlaneDirection, lstPointsY, " list of points Y ", std::vector<int>, "");
+BBTK_INPUT(PlaneDirection, lstPointsZ, " list of points Z ", std::vector<int>, "");
-BBTK_INPUT(PlaneDirection , ArrowSize , "Size of the arrow ", int ,"");
+BBTK_INPUT(PlaneDirection, ArrowSize, "Size of the arrow ", int, "");
BBTK_END_DESCRIBE_BLACK_BOX(PlaneDirection);
}
BBTK_NAME("RenderingViewer");
BBTK_AUTHOR("Carolina Perez");
BBTK_DESCRIPTION("Complex box which gathers VolumeRendering and SurfaceRendering funtionalities");
-BBTK_CATEGORY("__CategoryBlackBox__");
+BBTK_CATEGORY("actor");
//BBTK_INPUT(RenderingViewer,Title,"Title prepended to the text",std::string,"");
BBTK_INPUT(RenderingViewer,Renderer,"Renderer to show volume rendering image" ,vtkRenderer*, "");
BBTK_INPUT(RenderingViewer,wxVtkBaseView,"wxVtkBaseView",wxVtkBaseView*,"");
#include "bbcreaMaracasVisuSTL.h"
#include "bbcreaMaracasVisuPackage.h"
-
#include "wxSTLWidget_03.h"
namespace bbcreaMaracasVisu
{
-BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,STL)
-BBTK_BLACK_BOX_IMPLEMENTATION(STL,bbtk::WxBlackBox);
+BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu, STL)
+BBTK_BLACK_BOX_IMPLEMENTATION(STL, bbtk::WxBlackBox);
void STL::Process()
{
-
-
vtkImageData* img = bbGetInputIn();
if(img != NULL){
((wxSTLWidget_03*)bbGetOutputWidget())->setImage(img);
}
}
+
void STL::CreateWidget(wxWindow* parent)
{
-
-
- //mar = new marInterface();
-
- wxWindow* stl = new wxSTLWidget_03(parent);//, mar);
+ //mar = new marInterface();
+ wxWindow* stl = new wxSTLWidget_03(parent);//, mar);
bbSetOutputWidget( stl );
//Process();
-
}
//-----------------------------------------------------------------
{
bbSetInputIn(NULL);
}
-
+
//-----------------------------------------------------------------
void STL::bbUserInitializeProcessing()
{
}
-
+
//-----------------------------------------------------------------
void STL::bbUserFinalizeProcessing()
{
}
-
+
//-----------------------------------------------------------------
-
-
}
// EO namespace bbcreaMaracasVisu
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(STL,bbtk::WxBlackBox);
- BBTK_DECLARE_INPUT(In,vtkImageData*);
+ BBTK_DECLARE_INPUT(In, vtkImageData*);
BBTK_PROCESS(Process);
void Process();
BBTK_CREATE_WIDGET(CreateWidget);
//marInterface* mar;
};
-BBTK_BEGIN_DESCRIBE_BLACK_BOX(STL,bbtk::WxBlackBox);
+BBTK_BEGIN_DESCRIBE_BLACK_BOX(STL, bbtk::WxBlackBox);
BBTK_NAME("STL");
BBTK_AUTHOR("car-prie@uniandes.edu.co");
-BBTK_DESCRIPTION("BB of the module STL in Maracas");
-BBTK_CATEGORY("__CategoryBlackBox__");
-BBTK_INPUT(STL,In,"Image to the STL",vtkImageData*,"");
+BBTK_DESCRIPTION("Black Box from the module STL in Maracas");
+BBTK_CATEGORY("image, widget");
+BBTK_INPUT(STL, In, "Image to the STereoLithography", vtkImageData*, "");
BBTK_END_DESCRIBE_BLACK_BOX(STL);
}
// EO namespace bbcreaMaracasVisu
BBTK_BEGIN_DESCRIBE_BLACK_BOX(SurfaceRendering,bbtk::WxBlackBox);
BBTK_NAME("SurfaceRendering");
BBTK_AUTHOR("car-prie@uniandes.edu.co");
-BBTK_DESCRIPTION("BB of the module SurfaceRendering");
-BBTK_CATEGORY("__CategoryBlackBox__");
+BBTK_DESCRIPTION("Black Box of the module SurfaceRendering");
+BBTK_CATEGORY("actor");
//BBTK_INPUT(SurfaceRendering,In,"Renderer to show the different prop3D",vtkImageData*,"");
BBTK_INPUT(SurfaceRendering,Renderer,"Renderer to show the different prop3D",vtkRenderer*,"");
BBTK_INPUT(SurfaceRendering,Interactor,"Renderer to show the different prop3D",vtkRenderWindowInteractor*,"");
Program: wxMaracas
Module: $RCSfile: wxMaracasSurfaceRendering.h,v $
Language: C++
- Date: $Date: 2010/01/21 13:54:15 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2010/01/22 17:00:52 $
+ Version: $Revision: 1.5 $
Copyright: (c) 2002, 2003
License:
#include "wxMaracasSurfaceRenderingManager.h"
#include "wxMaracasSurfaceRenderingPanel.h"
-
-
class creaMaracasVisu_EXPORT wxMaracasSurfaceRendering : public wxPanel
{
public:
- wxMaracasSurfaceRendering( wxWindow* parent, std::string path);
+ wxMaracasSurfaceRendering( wxWindow* parent, std::string path);
~wxMaracasSurfaceRendering( );
- static wxMaracasSurfaceRendering* getInstance(wxWindow* parent,std::string path="");
+ static wxMaracasSurfaceRendering* getInstance(wxWindow* parent,std::string path="");
- static wxMaracasSurfaceRendering* getInstance();
+ static wxMaracasSurfaceRendering* getInstance();
- void setRenderer(vtkRenderer* renderer);
+ void setRenderer(vtkRenderer* renderer);
- void setInteractor(vtkRenderWindowInteractor* interactor);
+ void setInteractor(vtkRenderWindowInteractor* interactor);
- void changeOpacity(int propid, int value);
+ void changeOpacity(int propid, int value);
- void changeIsoValue(int propid, double value);
+ void changeIsoValue(int propid, double value);
void addRemoveActor(int propid, bool addremove);
- void addRemoveSurfaceBox(int propid, bool addremove);
+ void addRemoveSurfaceBox(int propid, bool addremove);
- void changeColor(int propid, double red, double green, double blue);
+ void changeColor(int propid, double red, double green, double blue);
- void addProp3D(vtkProp3D* prop3D, std::string dataname="");
+ void addProp3D(vtkProp3D* prop3D, std::string dataname="");
- void addPropMHD(vtkImageData* imgdata, std::string dataname="");
+ void addPropMHD(vtkImageData* imgdata, std::string dataname="");
- void loadProp3D(wxString filename, wxString dataname);
+ void loadProp3D(wxString filename, wxString dataname);
- void loadPropMHD(wxString filename, wxString dataname);
+ void loadPropMHD(wxString filename, wxString dataname);
- void onLoadImageFile();
+ void onLoadImageFile();
- void addSurfaceRenderingPanel(wxMaracasSurfaceRenderingPanel* surrend, std::string dataname="");
+ void addSurfaceRenderingPanel(wxMaracasSurfaceRenderingPanel* surrend, std::string dataname="");
- std::string getPath();
+ std::string getPath();
- void deleteActor(int propid);
+ void deleteActor(int propid);
- bool interactorSet();
-private:
- static wxMaracasSurfaceRendering* instance;
+ bool interactorSet();
- wxMaracasSurfaceRenderingManager* surrendmanager;
- wxAuiManager* wxauimanager;
- wxToolBar* _toolb;
-
- std::string _path;
+private:
+ static wxMaracasSurfaceRendering* instance;
- void createFileChooser();
+ wxMaracasSurfaceRenderingManager* surrendmanager;
+ wxAuiManager* wxauimanager;
+
+ wxToolBar* _toolb;
+ std::string _path;
+
+ void createFileChooser();
};
class ToolBarEventHandler : public wxEvtHandler{
class ToolBar : public wxToolBar{
-
public:
ToolBar(wxWindow * parent,std::string iconsdir);
~ToolBar(void);
-
private:
ToolBarEventHandler* _evthand;
-
};
#endif
-