vtkmprbasedata->SetX( bbGetInputPoint()[0] );
vtkmprbasedata->SetY( bbGetInputPoint()[1] );
vtkmprbasedata->SetZ( bbGetInputPoint()[2] );
+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() );
bool tmpFixAxis = vtkmprbasedata->GetFixAxis2D( );
vtkmprbasedata->SetFixAxis2D( bbGetInputFixAxis2D() );
int codeEvent;
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 );
}
//-------------------------------------------------------------------
-
void vtkBaseData::Configure() // virtual
{
vtkImageData* imageData = _marImageData->GetImageData();
//_imageViewer2XYZ->GetVtkImageViewer2()->SetColorLevel( 500 );
SetColorWindow( 1000 );
SetColorLevel( 500 );
-
} // range
} // img
}
//-------------------------------------------------------------------
void vtkBaseData::SetZ(double z)
{
-
//int maxZ;
-
// int dim[3];
// _marImageData->GetDimensions(dim);
// maxZ=dim[2];
-
int ext[6];
double *origin;
-
-
vtkImageData* img = _marImageData->GetImageData();
if(img!=NULL){
/*img->GetWholeExtent(ext);
maxZ=ext[5]-ext[4]+1;
-
if (z>=maxZ)
{
//z=maxZ-1;
{
z=0;
}
-
_z=z;*/
img->GetExtent(ext);
origin = img->GetOrigin();
{
z = ext[4] + origin[2];
}
-
_z=z;
- _observable->InvokeEvent(3);
+// _observable->InvokeEvent(3);
}
}
if (x > ext[1])
{
x=ext[1] + origin[0];
- }
-
+ }
_x=x;
- _observable->InvokeEvent(1);
+// _observable->InvokeEvent(1);
}
}
+
//-------------------------------------------------------------------
/**
** Calculates the value of the slider and the layer in the image that is spouse to show
y=ext[3] + origin[1];
}
_y=y;
- _observable->InvokeEvent(2);
+// _observable->InvokeEvent(2);
}
}
+
//-------------------------------------------------------------------
vtkTransform *vtkMPRBaseData::GetTransformOrientation()
{