bbSetOutputTransformOut( transformOut );
} else {
printf("EED Warnning! BoxWidget::Process vtkRenderer not set.\n");
- }// vtkRenderer != NULL
-
+ }// vtkRenderer != NULL
bbSetOutputBox_BoxWidget( this );
-
- printf("EED BoxWidget::Process A\n");
-
-
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
BBTK_BEGIN_DESCRIBE_BLACK_BOX(BoxWidget,bbtk::AtomicBlackBox);
BBTK_NAME("BoxWidget");
BBTK_AUTHOR("InfoDev");
- BBTK_DESCRIPTION("No Description.");
+ BBTK_DESCRIPTION("(C++,Python) No Description.");
BBTK_CATEGORY("empty");
BBTK_INPUT(BoxWidget,Active,"(default false) true/false",bool,"");
// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
- if ( (bbGetInputBox_BoxWidget()!=NULL) && (bbGetInputTransform()!=NULL) )
+ if (bbGetInputType()==1)
{
- bbGetInputBox_BoxWidget()->SetTransform( bbGetInputTransform() );
- } // _BoxWidget
+ if ( (bbGetInputBox_BoxWidget()!=NULL) && (bbGetInputTransform()!=NULL) )
+ {
+ bbGetInputBox_BoxWidget()->SetTransform( bbGetInputTransform() );
+ } // _BoxWidget
+ } // if Type
}
//=====
BBTK_DECLARE_INPUT(Type,int);
BBTK_DECLARE_INPUT(Transform,vtkLinearTransform*);
BBTK_DECLARE_INPUT(Param01,std::vector<double>);
- BBTK_DECLARE_INPUT(Param02,std::vector<double>);
BBTK_DECLARE_INPUT(Box_BoxWidget,BoxWidget*);
BBTK_PROCESS(Process);
void Process();
BBTK_BEGIN_DESCRIBE_BLACK_BOX(BoxWidget_tool,bbtk::AtomicBlackBox);
BBTK_NAME("BoxWidget_tool");
BBTK_AUTHOR("InfoDev");
- BBTK_DESCRIPTION("No Description.");
+ BBTK_DESCRIPTION("(C++,Python) No Description.");
BBTK_CATEGORY("empty");
BBTK_INPUT(BoxWidget_tool,Type,"(default 0) 0:Nothing 1:SetTransform",int,"");
BBTK_INPUT(BoxWidget_tool,Transform,"vtkTransform",vtkLinearTransform*,"");
// bbSetOutputOut( bbGetInputIn() );
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
- printf("EED ClipPolyData::Process Start\n");
-
if ((bbGetInputIn()!=NULL) && (bbGetInputImplicitFunction()!=NULL) )
{
if (bbGetInputType()==0)
//=====
void ClipPolyData::bbUserSetDefaultValues()
{
-
// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
// Here we initialize the input 'In' to 0
bbSetInputIn( NULL );
bbSetInputType( 0 );
bbSetInputInside( true );
bbSetInputImplicitFunction( NULL );
-
}
-//=====
+
+//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void ClipPolyData::bbUserInitializeProcessing()
{
-
// THE INITIALIZATION METHOD BODY :
// Here does nothing
// but this is where you should allocate the internal/output pointers
-// if any
-
-
+// if any
}
-//=====
+
+//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void ClipPolyData::bbUserFinalizeProcessing()
{
-
// THE FINALIZATION METHOD BODY :
// Here does nothing
// but this is where you should desallocate the internal/output pointers
// if any
-
}
-}
-// EO namespace bbcreaVtk
+
+} // EO namespace bbcreaVtk
BBTK_BEGIN_DESCRIBE_BLACK_BOX(ClipPolyData,bbtk::AtomicBlackBox);
BBTK_NAME("ClipPolyData");
BBTK_AUTHOR("InfoDev");
- BBTK_DESCRIPTION("No Description.");
+ BBTK_DESCRIPTION("(C++,Python) No Description.");
BBTK_CATEGORY("empty");
BBTK_INPUT(ClipPolyData,Type,"(default 0) 0:surface vtkClipPolydata 1:points vtkExtractPoints",int,"");
// std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
vtkTransform *result = vtkTransform::New();
- result->PostMultiply ();
+ result->PostMultiply();
result->Identity();
if (bbGetInputIn1()!=NULL) { result->Concatenate( bbGetInputIn1()->GetMatrix() ); result->Update(); }
if (bbGetInputIn2()!=NULL) { result->Concatenate( bbGetInputIn2()->GetMatrix() ); result->Update(); }
BBTK_BEGIN_DESCRIBE_BLACK_BOX(ConcatTransform,bbtk::AtomicBlackBox);
BBTK_NAME("ConcatTransform");
BBTK_AUTHOR("InfoDev");
- BBTK_DESCRIPTION("No Description.");
+ BBTK_DESCRIPTION("(C++,Python) No Description.");
BBTK_CATEGORY("empty");
BBTK_INPUT(ConcatTransform,In1,"vtkLinearTransform input",vtkLinearTransform*,"");
BBTK_INPUT(ConcatTransform,In2,"vtkLinearTransform input",vtkLinearTransform*,"");
lstImages.push_back( reader->GetOutput() );
} // for i
} // Type 1
-
} // if
-
if (lstImages.size()>=1) { bbSetOutputOut( lstImages[0] ); } else {bbSetOutputOut( NULL ); }
bbSetOutputOutVector( lstImages );
-
}
-//=====
+
+//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void NIFTIImageReader::bbUserSetDefaultValues()
{
-
// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
// Here we initialize the input 'In' to 0
bbSetInputType(0);
-
}
-//=====
+
+//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void NIFTIImageReader::bbUserInitializeProcessing()
{
-
// THE INITIALIZATION METHOD BODY :
// Here does nothing
// but this is where you should allocate the internal/output pointers
-// if any
-
-
+// if any
}
-//=====
+
+//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void NIFTIImageReader::bbUserFinalizeProcessing()
{
-
// THE FINALIZATION METHOD BODY :
// Here does nothing
// but this is where you should desallocate the internal/output pointers
// if any
-
}
-}
-// EO namespace bbcreaVtk
+
+}// EO namespace bbcreaVtk
BBTK_BEGIN_DESCRIBE_BLACK_BOX(NIFTIImageReader,bbtk::AtomicBlackBox);
BBTK_NAME("NIFTIImageReader");
BBTK_AUTHOR("Info-Dev");
- BBTK_DESCRIPTION("No Description.");
+ BBTK_DESCRIPTION("(C++,Python) No Description.");
BBTK_CATEGORY("empty");
BBTK_INPUT(NIFTIImageReader,Type,"(default 0) 0:Use FileNames by slice 1:Use FileNames by volumes",int,"");
BBTK_INPUT(NIFTIImageReader,FileNames,"List of file names",std::vector<std::string>,"");
BBTK_BEGIN_DESCRIBE_BLACK_BOX(PolyDataNormals,bbtk::AtomicBlackBox);
BBTK_NAME("PolyDataNormals");
BBTK_AUTHOR("InfoDev");
- BBTK_DESCRIPTION("No Description.");
+ BBTK_DESCRIPTION("(C++,Python) No Description.");
BBTK_CATEGORY("empty");
BBTK_INPUT(PolyDataNormals,In,"Mesh input",vtkPolyData*,"");
BBTK_INPUT(PolyDataNormals,ComputeType,"(0 default) 0:Cells 1:Points",int,"");
//=====
void StlReader::Process()
{
-
// THE MAIN PROCESSING METHOD BODY
// Here we simply set the input 'In' value to the output 'Out'
// And print out the output value
// (the one provided in the attribute 'name' of the tag 'input')
// * TYPE is the C++ type of the input/output
// (the one provided in the attribute 'type' of the tag 'input')
-
vtkSTLReader *reader = vtkSTLReader::New();
reader->SetFileName( bbGetInputFileName().c_str() );
reader->Update();
bbSetOutputOut( reader->GetOutput() );
-
}
-//=====
+
+//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void StlReader::bbUserSetDefaultValues()
{
-
// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
// Here we initialize the input 'In' to 0
bbSetOutputOut(NULL);
-
}
-//=====
+
+//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void StlReader::bbUserInitializeProcessing()
{
-
// THE INITIALIZATION METHOD BODY :
// Here does nothing
// but this is where you should allocate the internal/output pointers
-// if any
-
-
+// if any
}
-//=====
+
+//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void StlReader::bbUserFinalizeProcessing()
{
-
// THE FINALIZATION METHOD BODY :
// Here does nothing
// but this is where you should desallocate the internal/output pointers
// if any
-
}
-}
-// EO namespace bbcreaVtk
+
+}// EO namespace bbcreaVtk
BBTK_BEGIN_DESCRIBE_BLACK_BOX(StlReader,bbtk::AtomicBlackBox);
BBTK_NAME("StlReader");
BBTK_AUTHOR("InfoDev");
- BBTK_DESCRIPTION("No Description.");
+ BBTK_DESCRIPTION("(C++,Python) No Description.");
BBTK_CATEGORY("empty");
BBTK_INPUT(StlReader,FileName,"File Name",std::string,"");
BBTK_OUTPUT(StlReader,Out,"vtkPolyData",vtkPolyData*,"");
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
-}
-// EO namespace bbcreaVtk
+
+}// EO namespace bbcreaVtk
#endif // __bbcreaVtkStlReader_h_INCLUDED__