bbSetOutputWidget(irmview);
}
-void IRMViewer::bbUserConstructor()
-{
-
- bbSetInputIn0(NULL);
- bbSetInputIn1(NULL);
- bbSetInputIn2(NULL);
- bbSetInputIn3(NULL);
- bbSetInputIn4(NULL);
- bbSetOutputWidget(NULL);
-
-}
-void IRMViewer::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-
-
-
-}
-void IRMViewer::bbUserDestructor()
-{
-
-
-
-}
+
+ //-----------------------------------------------------------------
+ void IRMViewer::bbUserSetDefaultValues()
+ {
+ bbSetInputIn0(NULL);
+ bbSetInputIn1(NULL);
+ bbSetInputIn2(NULL);
+ bbSetInputIn3(NULL);
+ bbSetInputIn4(NULL);
+ bbSetOutputWidget(NULL);
+ }
+
+ //-----------------------------------------------------------------
+ void IRMViewer::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void IRMViewer::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+
+
+
}
// EO namespace bbcreaMaracasVisu
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(IRMViewer,bbtk::WxBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
//BBTK_DECLARE_INPUT(In,vtkImageData*);
BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
BBTK_DECLARE_INPUT(In0,vtkProp3D*);
//Process();
}
-void STL::bbUserConstructor()
-{
-
- bbSetInputIn(NULL);
-
-}
-void STL::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-
-
-
-}
-void STL::bbUserDestructor()
-{
-
-
-
-}
+
+ //-----------------------------------------------------------------
+ void STL::bbUserSetDefaultValues()
+ {
+ bbSetInputIn(NULL);
+ }
+
+ //-----------------------------------------------------------------
+ void STL::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void STL::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+
+
}
// EO namespace bbcreaMaracasVisu
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(STL,bbtk::WxBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(In,vtkImageData*);
BBTK_PROCESS(Process);
void Process();
}
+ //-----------------------------------------------------------------
+ void SliceImage::bbUserSetDefaultValues()
+ {
+ bbSetInputIn(NULL);
+ bbSetInputZ(0);
+ imageReslice=NULL;
+ }
+
+ //-----------------------------------------------------------------
+ void SliceImage::bbUserInitializeProcessing()
+ {
+ imageReslice = vtkImageReslice::New();
+ }
+
+ //-----------------------------------------------------------------
+ void SliceImage::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
-void SliceImage::bbUserConstructor()
-{
- bbSetInputIn(NULL);
- bbSetInputZ(0);
- imageReslice = vtkImageReslice::New();
-}
-
-void SliceImage::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-}
-
-void SliceImage::bbUserDestructor()
-{
-}
}
// EO namespace bbcreaMaracasVisu
public bbtk::AtomicBlackBox
{
BBTK_BLACK_BOX_INTERFACE(SliceImage,bbtk::AtomicBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(In,vtkImageData*);
BBTK_DECLARE_INPUT(Z, double );
BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
}
-
-
-void AxeVolume::bbUserConstructor()
-{
- mimage = NULL;
-}
-void AxeVolume::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-
-}
-void AxeVolume::bbUserDestructor()
-{
-
-}
+ //-----------------------------------------------------------------
+ void AxeVolume::bbUserSetDefaultValues()
+ {
+ mimage=NULL;
+ }
+
+ //-----------------------------------------------------------------
+ void AxeVolume::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void AxeVolume::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+
}
// EO namespace bbcreaMaracasVisu
public bbtk::AtomicBlackBox
{
BBTK_BLACK_BOX_INTERFACE(AxeVolume,bbtk::AtomicBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT( In , vtkImageData * );
BBTK_DECLARE_INPUT( lstPointX , std::vector<double> );
BBTK_DECLARE_INPUT( lstPointY , std::vector<double> );
}
//--------------------------------------------------
-void ColorBar::bbUserConstructor()
+void ColorBar::bbUserSetDefaultValues()
{
mwxwidget = NULL;
bbSetInputOrientation(1);
bbSetInputInMax(1);
bbSetInputInMin(1);
}
-
-//--------------------------------------------------
-void ColorBar::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-}
-
-//--------------------------------------------------
-void ColorBar::bbUserDestructor()
-{
-}
-
+
+ //-----------------------------------------------------------------
+ void ColorBar::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void ColorBar::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+
}
// EO namespace bbcreaMaracasVisu
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(ColorBar,bbtk::WxBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(Orientation, int );
BBTK_DECLARE_INPUT(InW, int );
BBTK_DECLARE_INPUT(InH, int );
}
//-----------------------------------------------------------
-void ContourCrown::bbUserConstructor()
+void ContourCrown::bbUserSetDefaultValues()
{
mwxwidget = NULL;
bbSetInputIn(NULL);
//--------------------------------------------------
}
-//-----------------------------------------------------------
-void ContourCrown::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-}
-
-//-----------------------------------------------------------
-void ContourCrown::bbUserDestructor()
-{
-}
+ //-----------------------------------------------------------------
+ void ContourCrown::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void ContourCrown::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+
}
// EO namespace bbcreaMaracasVisu
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(ContourCrown,bbtk::WxBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(In, vtkImageData*);
BBTK_DECLARE_INPUT(wxVtkBaseView, wxVtkBaseView*);
//JSTG 26-02-08 -------------------------------------------------------
}
//------------------------------------------------------------
-void ContourStatistics::bbUserConstructor()
+void ContourStatistics::bbUserSetDefaultValues()
{
bbSetInputLstValue(NULL);
}
-//------------------------------------------------------------
-void ContourStatistics::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-}
-
-//------------------------------------------------------------
-void ContourStatistics::bbUserDestructor()
-{
-}
+
+ //-----------------------------------------------------------------
+ void ContourStatistics::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void ContourStatistics::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+
}
// EO namespace bbcreaMaracasVisu
public bbtk::AtomicBlackBox
{
BBTK_BLACK_BOX_INTERFACE(ContourStatistics,bbtk::AtomicBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(LstValue,std::vector<double>*);
BBTK_DECLARE_INPUT(LstValuePosX,std::vector<double>*);
BBTK_DECLARE_INPUT(LstValuePosY,std::vector<double>*);
bbSetOutputControlPointZ( &OutContourZ );
bbSetOutputImagePropg( _imagedata );
}
+
+
//------------------------------------------------------------
-void ContourToControlPoints::bbUserConstructor()
+void ContourToControlPoints::bbUserSetDefaultValues()
{
bbSetInputSampling(5.0);
bbSetInputSlice(0);
bbSetInputOption(1);
bbSetInputLoadContour(0);
+ _contprop = NULL;
+ _propgdata = NULL;
+ _imagedata = NULL;
+ _ext2D = NULL;
+
+ _fd = NULL;
+ pos = 0;
+}
+
+
+ //-----------------------------------------------------------------
+ void ContourToControlPoints::bbUserInitializeProcessing()
+ {
_contprop = new ContourPropagation();
_propgdata = new PropContour();
_imagedata = vtkImageData::New();
_ext2D = new ExtractControlPoints2D();
- _fd = NULL;
- pos = 0;
- //it = NULL; // JPRx
- //bool inic = false; // JPRx
-}
-//------------------------------------------------------------
-void ContourToControlPoints::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-}
-//------------------------------------------------------------
-void ContourToControlPoints::bbUserDestructor()
-{
-}
+ }
+
+ //-----------------------------------------------------------------
+ void ContourToControlPoints::bbUserFinalizeProcessing()
+ {
+ if (_contprop!=NULL) delete _contprop;
+ if (_propgdata!=NULL) delete _propgdata;
+ if (_imagedata!=NULL) _imagedata->Delete();
+ if (_ext2D!=NULL) delete _ext2D;
+
+ _contprop = NULL;
+ _propgdata = NULL;
+ _imagedata = NULL;
+ _ext2D = NULL;
+ }
+
+ //-----------------------------------------------------------------
+
+
}
// EO namespace bbcreaMaracasVisu
{
//BBTK_USER_BLACK_BOX_INTERFACE(ContourToControlPoints,bbtk::AtomicBlackBox);
BBTK_BLACK_BOX_INTERFACE(ContourToControlPoints,bbtk::AtomicBlackBox);
-
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(In,double);
BBTK_DECLARE_INPUT(Sampling, double);
BBTK_DECLARE_INPUT(Slice,int);
}
//------------------------------------------------------
-void ContourVOI::bbUserConstructor()
+void ContourVOI::bbUserSetDefaultValues()
{
_img = NULL;
}
-//------------------------------------------------------
-void ContourVOI::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
- _img = NULL;
- _base = NULL;
- _extract =NULL;
-
-}
-
-//------------------------------------------------------
-void ContourVOI::bbUserDestructor()
-{
-}
-
+ //-----------------------------------------------------------------
+ void ContourVOI::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void ContourVOI::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+
}
// EO namespace bbcreaMaracasVisu
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(ContourVOI,bbtk::WxBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(Title,std::string);
BBTK_DECLARE_INPUT(In, vtkImageData*);
BBTK_DECLARE_INPUT(wxVtkBaseView, wxVtkBaseView*);
#include "vtkImageData.h"
#include "vtkActor.h"
-#include "vtkPolyDataMapper.h"
#include "vtkPoints.h"
#include "vtkCellArray.h"
#include "vtkProperty.h"
for( i = 0; i < vectx.size( ); i++) {
//multiplicar ver parametros spacing, en maracas cuando se toca la imagen y se ve dycom
- //hay parámetro dycom, vtkImagedata valor spacing y esos datos hay que multiplicar al polydata
+ //hay par·metro dycom, vtkImagedata valor spacing y esos datos hay que multiplicar al polydata
allPoints->InsertNextPoint( vectx[i]*spc[0], vecty[i]*spc[1], vectz[i]*spc[2] );
allTopology->InsertCellPoint( i );
} // rof
}
-void DrawAxe3D::bbUserConstructor()
+void DrawAxe3D::bbUserSetDefaultValues()
{
firsttime = true;
- mallData = vtkPolyData::New( );
- vtkPolyDataMapper* polydatamapper = vtkPolyDataMapper::New();
- mvtkactor = vtkActor::New();
- polydatamapper->SetInput(mallData);
- mvtkactor->SetMapper(polydatamapper);
- bbSetOutputOut(mvtkactor);
-
+ mallData = NULL;
+ polydatamapper = NULL;
+ mvtkactor = NULL;
+
std::vector<double> colour;
colour.push_back(1.0);
colour.push_back(0.0);
bbSetInputColour(colour);
}
-void DrawAxe3D::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-}
-void DrawAxe3D::bbUserDestructor()
-{
-}
+
+
+ //-----------------------------------------------------------------
+ void DrawAxe3D::bbUserInitializeProcessing()
+ {
+ mallData = vtkPolyData::New( );
+ polydatamapper = vtkPolyDataMapper::New();
+ mvtkactor = vtkActor::New();
+
+ polydatamapper->SetInput(mallData);
+ mvtkactor->SetMapper(polydatamapper);
+ bbSetOutputOut(mvtkactor);
+ }
+
+ //-----------------------------------------------------------------
+ void DrawAxe3D::bbUserFinalizeProcessing()
+ {
+ if (mallData!=NULL)
+ {
+ mallData->Delete();
+ mallData=NULL;
+ }
+
+ if (polydatamapper!=NULL)
+ {
+ polydatamapper->Delete();
+ polydatamapper=NULL;
+ }
+
+ if (mvtkactor!=NULL)
+ {
+ mvtkactor->Delete();
+ mvtkactor=NULL;
+ }
+
+ }
+
+ //-----------------------------------------------------------------
+
+
+
}
#include "vtkRenderer.h"
#include "vtkPolyData.h"
+#include "vtkPolyDataMapper.h"
#include "vtkLinearTransform.h"
namespace bbcreaMaracasVisu
public bbtk::AtomicBlackBox
{
BBTK_BLACK_BOX_INTERFACE(DrawAxe3D,bbtk::AtomicBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
BBTK_DECLARE_INPUT(lstPointX,std::vector<double>);
BBTK_DECLARE_INPUT(lstPointY,std::vector<double>);
void Process();
private:
- bool firsttime;
- vtkPolyData *mallData;
- vtkActor *mvtkactor;
+ bool firsttime;
+ vtkPolyData *mallData;
+ vtkActor *mvtkactor;
+ vtkPolyDataMapper *polydatamapper;
};
for (i=iGeneral;i<size;i++)
{
//multiplicar ver parametros spacing, en maracas cuando se toca la imagen y se ve dycom
- //hay parámetro dycom, vtkImagedata valor spacing y esos datos hay que multiplicar al polydata
+ //hay par·metro dycom, vtkImagedata valor spacing y esos datos hay que multiplicar al polydata
allPoints->InsertNextPoint( bbGetInputlstPointX()[i]*spc[0],
bbGetInputlstPointY()[i]*spc[1],
bbGetInputlstPointZ()[i]*spc[2] );
}
-void DrawAxisTree3D::bbUserConstructor()
+void DrawAxisTree3D::bbUserSetDefaultValues()
{
bbSetInputiAxis(0);
std::vector<double> colour;
}
-void DrawAxisTree3D::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-}
-
-void DrawAxisTree3D::bbUserDestructor()
-{
-}
+
+ //-----------------------------------------------------------------
+ void DrawAxisTree3D::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void DrawAxisTree3D::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
}
// EO namespace bbcreaMaracasVisu
public bbtk::AtomicBlackBox
{
BBTK_BLACK_BOX_INTERFACE(DrawAxisTree3D,bbtk::AtomicBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(Renderer ,vtkRenderer*);
BBTK_DECLARE_INPUT(lstIndexs,std::vector<int>);
BBTK_DECLARE_INPUT(lstPointX,std::vector<double>);
// bbSetOutputWidget( wxpanel );
}
-//------------------------------------------------
-void HistogramView::bbUserConstructor()
-{
-
-}
-
-//------------------------------------------------
-void HistogramView::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-}
-
-//------------------------------------------------
-void HistogramView::bbUserDestructor()
-{
-}
+ //-----------------------------------------------------------------
+ void HistogramView::bbUserSetDefaultValues()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void HistogramView::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void HistogramView::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
}
// EO namespace bbcreaMaracasVisu
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(HistogramView,bbtk::WxBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(In, vtkImageData *);
BBTK_PROCESS(Process);
void Process();
bbGetInputRenderer()->AddActor( imageactor );
}
}
-void ImageActor::bbUserConstructor()
+void ImageActor::bbUserSetDefaultValues()
{
firsttime = true;
imageactor = NULL;
bbSetInputRenderer(NULL);
}
-void ImageActor::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-
-
-}
-void ImageActor::bbUserDestructor()
-{
-
-}
+
+ //-----------------------------------------------------------------
+ void ImageActor::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void ImageActor::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
}
// EO namespace bbcreaMaracasVisu
public bbtk::AtomicBlackBox
{
BBTK_BLACK_BOX_INTERFACE(ImageActor,bbtk::AtomicBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(In,vtkImageData*);
BBTK_DECLARE_INPUT(Transform,vtkLinearTransform*);
BBTK_DECLARE_INPUT(Renderer,vtkRenderer*);
}
-void ImageChangeInformation::bbUserConstructor()
+void ImageChangeInformation::bbUserSetDefaultValues()
{
mchange = NULL;
bbSetOutputOut( NULL);
bbSetInputIn(NULL);
}
-void ImageChangeInformation::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
+
+void ImageChangeInformation::bbUserInitializeProcessing()
{
- mchange = NULL;
+
}
-void ImageChangeInformation::bbUserDestructor()
+
+void ImageChangeInformation::bbUserFinalizeProcessing()
{
if (mchange!=NULL)
{
mchange->Delete();
}
}
+
+
+
}
// EO namespace bbcreaMaracasVisu
public bbtk::AtomicBlackBox
{
BBTK_BLACK_BOX_INTERFACE(ImageChangeInformation,bbtk::AtomicBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(In,vtkImageData*);
BBTK_DECLARE_OUTPUT(Out,vtkImageData*);
BBTK_PROCESS(Process);
}
//---------------------------------------------------
-void PlotterView::bbUserConstructor()
+void PlotterView::bbUserSetDefaultValues()
{
mwxwidget = NULL;
}
-
-//---------------------------------------------------
-void PlotterView::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-}
-
-//---------------------------------------------------
-void PlotterView::bbUserDestructor()
-{
-}
+
+ //-----------------------------------------------------------------
+ void PlotterView::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void PlotterView::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
}
// EO namespace bbcreaMaracasVisu
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(PlotterView,bbtk::WxBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(InX, std::vector<double> );
BBTK_DECLARE_INPUT(InY, std::vector<double> );
BBTK_PROCESS(Process);
Process();
}
-void ShowNPoints::bbUserConstructor()
+void ShowNPoints::bbUserSetDefaultValues()
{
mwxwidget = NULL;
std::vector<double> colour;
bbSetInputImage(NULL);
bbSetInputRadio(0.5);
}
-
-
-void ShowNPoints::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-}
-
-void ShowNPoints::bbUserDestructor()
-{
-}
+
+ //-----------------------------------------------------------------
+ void ShowNPoints::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void ShowNPoints::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
}
// EO namespace bbcreaMaracasVisu
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(ShowNPoints,bbtk::WxBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(In, std::vector<int> );
BBTK_DECLARE_INPUT(Renderer, vtkRenderer* );
BBTK_DECLARE_INPUT(Image, vtkImageData* );
}
//------------------------------------------------------
-void SliderMinMax::bbUserConstructor()
+void SliderMinMax::bbUserSetDefaultValues()
{
mwxwidget = NULL;
bbSetInputOrientation(1);
bbSetOutputOutActual(0);
}
-//------------------------------------------------------
-void SliderMinMax::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-}
-
-//------------------------------------------------------
-void SliderMinMax::bbUserDestructor()
-{
-}
+
+ //-----------------------------------------------------------------
+ void SliderMinMax::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void SliderMinMax::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
}
// EO namespace bbcreaMaracasVisu
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(SliderMinMax,bbtk::WxBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(Orientation, int);
BBTK_DECLARE_INPUT(InW, int);
BBTK_DECLARE_INPUT(InH, int);
}
//-----------------------------------------------------
-void TransferFunctionView::bbUserConstructor()
+void TransferFunctionView::bbUserSetDefaultValues()
{
mwxwidget = NULL;
}
-//-----------------------------------------------------
-void TransferFunctionView::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
-}
-
-//-----------------------------------------------------
-void TransferFunctionView::bbUserDestructor()
-{
-}
+
+ //-----------------------------------------------------------------
+ void TransferFunctionView::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void TransferFunctionView::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
}
// EO namespace bbcreaMaracasVisu
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(TransferFunctionView,bbtk::WxBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(In, vtkImageData*);
BBTK_PROCESS(Process);
void Process();
bbSetOutputWidget( wxwidget );
}
-void ViewerMPR::bbUserConstructor()
+void ViewerMPR::bbUserSetDefaultValues()
{
_img = NULL;
wxwidget = NULL;
bbSetInputIn(NULL);
}
-void ViewerMPR::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{
- wxwidget = NULL;
- bbSetInputIn(NULL);
-}
-void ViewerMPR::bbUserDestructor()
-{
-
-}
+
+ //-----------------------------------------------------------------
+ void ViewerMPR::bbUserInitializeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+ void ViewerMPR::bbUserFinalizeProcessing()
+ {
+ }
+
+ //-----------------------------------------------------------------
+
}
// EO namespace bbcreaMaracasVisu
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(ViewerMPR,bbtk::WxBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(Title,std::string);
BBTK_DECLARE_INPUT(In, vtkImageData *);
BBTK_DECLARE_OUTPUT(Renderer,vtkRenderer *);
public bbtk::WxBlackBox
{
BBTK_BLACK_BOX_INTERFACE(ViewerNV,bbtk::WxBlackBox);
-//==================================================================
-/// User callback called in the box contructor
-virtual void bbUserConstructor();
-/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer p);
-/// User callback called in the box destructor
-virtual void bbUserDestructor();
-//==================================================================
BBTK_DECLARE_INPUT(Title,std::string);
BBTK_DECLARE_INPUT(In, vtkImageData *);
BBTK_DECLARE_INPUT(nTypeView, std::vector<int> );
SET(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_BUILD_VERSION})
SET(DATA_DIR ${PROJECT_SOURCE_DIR}/data )
-FILE(GLOB DATA_FILES "${DATA_DIR}/*.*")
+FILE(GLOB DATA_FILES "${DATA_DIR}/*.png")
FOREACH( iLST ${DATA_FILES} )
INSTALL(
FILES ${iLST}
DESTINATION bin/data
)
ENDFOREACH(iLST)
+
SET(DATA_DIR ${PROJECT_SOURCE_DIR}/data/Icons )
-FILE(GLOB DATA_FILES "${DATA_DIR}/*.*")
+FILE(GLOB DATA_FILES "${DATA_DIR}/*.xpm")
FOREACH( iLST ${DATA_FILES} )
INSTALL(
FILES ${iLST}
#include "ContourVOIWidget.h"
+#include "manualContourModelRoi.h"
#include <vtkImageMapToColors.h>
#include <vtkImageActor.h>
#define __ContourVOIWidget_h_INCLUDED_H__
-#include <manualContour.h>
+
+#include <manualRoiControler.h>
+#include <manualViewRoi.h>
+#include "wxVtkBaseView.h"
#include "mBarRange.h"
#include "marTypes.h"
#ifndef __contoursIntersection_h_INCLUDED__
#define __contoursIntersection_h_INCLUDED__
-#include "manualContour.h"
#include "vectorFunctions.h"
class contoursIntersection