bool byNormal = true;
double size = 350;
-
+// bbGetInputVolumeSize ?????????
+
// xy
if ((bbGetInputNormal()[0]==0) && (bbGetInputNormal()[1]==0) && (bbGetInputNormal()[2]==1) )
{
byNormal= false;
- p1[0] = size;
+ p1[0] = size;
p1[1] = 0;
p1[2] = 0;
p2[0] = 0;
plane->SetNormal( bbGetInputNormal()[0], bbGetInputNormal()[1], bbGetInputNormal()[2] );
printf("EED PlaneSource. Missing mechanism to define the size of the plane\n");
}
- plane->SetCenter( c );
-
+ plane->SetCenter( c );
plane->Update( );
bbSetOutputPlane( (vtkDataSet*)plane );
bbSetOutputPolyData( plane->GetOutput() );
//=====
void PlaneSource::bbUserSetDefaultValues()
{
- std::vector<double> c;
- std::vector<double> n;
+ std::vector<double> c;
c.push_back(0);
c.push_back(0);
c.push_back(0);
- n.push_back(1);
- n.push_back(0);
- n.push_back(0);
- bbSetInputCenter(c);
- bbSetInputNormal(n);
- bbSetInputXResolution(100);
- bbSetInputYResolution(100);
+ bbSetInputCenter( c );
+ std::vector<double> n;
+ n.push_back(1);
+ n.push_back(0);
+ n.push_back(0);
+ bbSetInputNormal( n );
+ std::vector<int> volSize;
+ volSize.push_back(350);
+ volSize.push_back(350);
+ volSize.push_back(350);
+ bbSetInputVolumeSize( volSize );
+ bbSetInputXResolution(100);
+ bbSetInputYResolution(100);
}
-//=====
+
+//=====
// 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 PlaneSource::bbUserInitializeProcessing()
{
-
-
}
-//=====
+
+//=====
// 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 PlaneSource::bbUserFinalizeProcessing()
{
-
-
-}
}
-// EO namespace bbcreaVtk
+
+}// EO namespace bbcreaVtk
BBTK_DECLARE_INPUT(Normal,std::vector<double>);
BBTK_DECLARE_INPUT(XResolution,int);
BBTK_DECLARE_INPUT(YResolution,int);
+ BBTK_DECLARE_INPUT(VolumeSize,std::vector<int>);
BBTK_DECLARE_OUTPUT(Plane,vtkDataSet*);
BBTK_DECLARE_OUTPUT(PolyData,vtkPolyData*);
BBTK_PROCESS(Process);
BBTK_AUTHOR("carlos torres");
BBTK_DESCRIPTION("No Description.");
BBTK_CATEGORY("empty");
- BBTK_INPUT(PlaneSource,Center,"Center (default[0,0,0]) ",std::vector<double>,"");
- BBTK_INPUT(PlaneSource,Normal,"Normal (default[1,0,0]) ",std::vector<double>,"");
- BBTK_INPUT(PlaneSource,XResolution,"XResolution (default 100)",int,"");
- BBTK_INPUT(PlaneSource,YResolution,"YResolution (default 100)",int,"");
+ BBTK_INPUT(PlaneSource,Center,"( default [0,0,0] ) Center ",std::vector<double>,"");
+ BBTK_INPUT(PlaneSource,Normal,"( default [1,0,0] ) Normal ",std::vector<double>,"");
+ BBTK_INPUT(PlaneSource,XResolution,"(default 100) XResolution ",int,"");
+ BBTK_INPUT(PlaneSource,YResolution,"(default 100) YResolution ",int,"");
+ BBTK_INPUT(PlaneSource,VolumeSize,"(default [350 350 350]) VolumeSize [sizeX sizeY sizeZ] ",std::vector<int>,"");
BBTK_OUTPUT(PlaneSource,Plane,"Plane",vtkDataSet*,"");
BBTK_OUTPUT(PlaneSource,PolyData,"vtkPolyData",vtkPolyData*,"");
BBTK_END_DESCRIBE_BLACK_BOX(PlaneSource);