Solved bug that would cause crash when trying to change parameters of regEngine with CT not yet loaded (example loading Scout LONG in DataView). Minor changes in UI functionalities to adjust for this new behaviour. Now loading of scouts is automatically followed by visualisation
This commit is contained in:
@ -1122,7 +1122,6 @@ int itkImageProcessor::load2D(const char * pcFName){
|
||||
|
||||
//double* m_ImageIntensity;
|
||||
DuplicatorType::Pointer m_Duplicator;
|
||||
bool* m_ImLoaded;
|
||||
TopogramImageMetaInformation::Pointer m_TImageMeta;
|
||||
|
||||
switch (currProjOrientation) {
|
||||
@ -1783,6 +1782,7 @@ void itkImageProcessor::InitializeProjector()
|
||||
m_DRTImage2MetaInfo == NULL ||
|
||||
m_DRTGeometryMetaInfo == NULL ||
|
||||
m_TransformMetaInfo == NULL ){
|
||||
return;
|
||||
//TODO
|
||||
}
|
||||
|
||||
@ -2076,18 +2076,22 @@ void itkImageProcessor::loadRTPlanInfo(
|
||||
void itkImageProcessor::UpdateProjectionGeometryMeta(){
|
||||
|
||||
if(m_CTMetaInfo == NULL){
|
||||
return;
|
||||
//TODO.
|
||||
}
|
||||
|
||||
if(m_DRTGeometryMetaInfo == NULL){
|
||||
return;
|
||||
//TODO.
|
||||
}
|
||||
|
||||
if(m_DRTImage1MetaInfo == NULL){
|
||||
return;
|
||||
//TODO.
|
||||
}
|
||||
|
||||
if(m_DRTImage2MetaInfo == NULL){
|
||||
return;
|
||||
//TODO.
|
||||
}
|
||||
|
||||
@ -2325,6 +2329,7 @@ void itkImageProcessor::GetProjectionImages(){
|
||||
m_DRTImage2MetaInfo == NULL ||
|
||||
m_DRTGeometryMetaInfo == NULL ||
|
||||
m_TransformMetaInfo == NULL ){
|
||||
return;
|
||||
//TODO
|
||||
}
|
||||
|
||||
@ -2697,6 +2702,14 @@ vtkImageData* itkImageProcessor::GetLocalizer2VTK()
|
||||
|
||||
vtkImageData* itkImageProcessor::GetProjection1VTK()
|
||||
{
|
||||
|
||||
if(m_DRTImage1MetaInfo == NULL ||
|
||||
m_DRTGeometryMetaInfo == NULL ||
|
||||
m_TransformMetaInfo == NULL ){
|
||||
return NULL;
|
||||
//TODO
|
||||
}
|
||||
|
||||
// Rescale the intensity of the projection images to 0-32768 for output.
|
||||
using RescaleFilterType = itk::RescaleIntensityImageFilter<InternalImageType, OutputImageType>;
|
||||
|
||||
@ -2826,6 +2839,13 @@ vtkMatrix4x4 * itkImageProcessor::GetProjection2VTKTransform()
|
||||
|
||||
vtkImageData* itkImageProcessor::GetProjection2VTK()
|
||||
{
|
||||
if(m_DRTImage2MetaInfo == NULL ||
|
||||
m_DRTGeometryMetaInfo == NULL ||
|
||||
m_TransformMetaInfo == NULL ){
|
||||
return NULL;
|
||||
//TODO
|
||||
}
|
||||
|
||||
// Rescale the intensity of the projection images to 0-32768 for output.
|
||||
using RescaleFilterType = itk::RescaleIntensityImageFilter<InternalImageType, OutputImageType>;
|
||||
|
||||
|
Reference in New Issue
Block a user