//=====
void SetPosition::Process()
{
-auto start1 = std::chrono::high_resolution_clock::now();
// THE MAIN PROCESSING METHOD BODY
// Here we simply set the input 'In' value to the output 'Out'
// And print out the output value
vtkMPRBaseData* vtkmprbasedata = (vtkMPRBaseData*) (bbGetInputwxVtkBaseView()->GetVtkBaseData());
if (bbGetInputPoint().size()==3)
{
+auto start1 = std::chrono::high_resolution_clock::now();
vtkmprbasedata->SetX( bbGetInputPoint()[0] );
vtkmprbasedata->SetY( bbGetInputPoint()[1] );
vtkmprbasedata->SetZ( bbGetInputPoint()[2] );
bool tmpFixAxis = vtkmprbasedata->GetFixAxis2D( );
-// vtkmprbasedata->SetFixAxis2D( bbGetInputFixAxis2D() );
+ vtkmprbasedata->SetFixAxis2D( bbGetInputFixAxis2D() );
int codeEvent;
if (bbGetInputType()==0)
{
codeEvent = 22222; // Refresh without box reactivity
}
wxCommandEvent newevent(wxEVT_COMMAND_MENU_SELECTED,codeEvent);
+auto stop1 = std::chrono::high_resolution_clock::now();
+auto duration1 = std::chrono::duration_cast<std::chrono::microseconds>(stop1 - start1);
+printf("EED SetPosition::Process time= %ld \n", duration1.count() , this->bbGetFullName().c_str() );
//EED 2017-09-16 Migration wxWidgets 2.8 to 3.0
#if wxMAJOR_VERSION <= 2
bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessEvent( newevent );
#else
bbGetInputwxVtkBaseView()->GetWxVTKRenderWindowInteractor ()->GetParent()->ProcessWindowEvent( newevent );
#endif
- // vtkmprbasedata->SetFixAxis2D( tmpFixAxis );
+ vtkmprbasedata->SetFixAxis2D( tmpFixAxis );
} // if bbGetInputPosition
} // bbGetInputwxVtkBaseView
} // Active
-auto stop1 = std::chrono::high_resolution_clock::now();
-auto duration1 = std::chrono::duration_cast<std::chrono::microseconds>(stop1 - start1);
-printf("EED SetPosition::Process time= %ld \n", duration1.count() , this->bbGetFullName().c_str() );
}
//=====