boxPointPicker->bbSetOutputPoint( vecPoint );
boxPointPicker->bbSetOutputMesh( picker->GetProp3D() );
boxPointPicker->bbSetOutputPointId( picker->GetPointId() );
+
boxPointPicker->bbSetOutputCellId( picker->GetCellId() );
vtkDataSet *dataset = picker->GetDataSet();
if (strcmp(dataset->GetClassName(),"vtkPolyData")==0)
} // if Active
} // if boxPoiintPicker
+
/*
{
}
*/
-
-
}
//=====
void PointPicker::Process()
{
-
// THE MAIN PROCESSING METHOD BODY
// Here we simply set the input 'In' value to the output 'Out'
// And print out the output value
picker->AddObserver( vtkCommand::MouseMoveEvent , callPicker );
bbGetInputRenderer()->GetRenderWindow()->GetInteractor()->SetPicker(picker);
*/
-
callPicker = creaVtkCallbackPointPicker::New();
callPicker->setBox( this );
-
} // if firsttime
// ....See vtkCommand EventIds
} // if bbGetInputRenderer()
-
-
+ std::vector<double> point;
+ bbSetOutputPoint( point );
+
+// std::vector<double> lstPoint;
+// lstPoint.push_back(0);
+// lstPoint.push_back(0);
+// lstPoint.push_back(1);
+// bbSetOutputPoint( lstPoint );
+
+// BORRAME bbSetOutputPoint( bbGetInputDefaultPoint() );
+
+// bbSetOutputMesh( NULL );
+// Borrame bbSetOutputPointId( bbGetInputDefaultPointId() );
+// bbSetOutputCellId( -1 );
+// bbSetOutputNormal( lstPoint );
+
}
+
//=====
// 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)
//=====
// bbSetInputIn(0);
bbSetInputActive(true);
bbSetInputTypeEvent(0);
+ bbSetInputDefaultPointId( -1 );
bbSetOutputMesh(NULL);
bbSetOutputPointId(-1);
bbSetOutputCellId(-1);
lstNormal.push_back(0);
lstNormal.push_back(1);
bbSetOutputNormal( lstNormal );
+
+// std::vector<double> point;
+// point.push_back(-1);
+// point.push_back(-1);
+// point.push_back(-1);
+// bbSetOutputPoint( point );
}
+
//=====
// 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 PointPicker::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 PointPicker::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