Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Added opacity setting for 2D slice intersections #673

Closed
wants to merge 1 commit into from

Conversation

sjh26
Copy link

@sjh26 sjh26 commented Feb 19, 2017

@sjh26
Copy link
Author

sjh26 commented Feb 19, 2017

@lassoan @agirault

Copy link
Contributor

@lassoan lassoan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your nice contribution. You need to implement update of slice intersection opacity widget from MRML in updateWidgetFromMRML(), otherwise looks good (just few trivial changes).

@@ -62,6 +62,8 @@ void qMRMLDisplayNodeWidgetPrivate::init()
Q_Q(qMRMLDisplayNodeWidget);
this->setupUi(q);

this->SliceIntersectionOpacitySlider->setValue(1.0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this lines and set default value in .ui file instead

{
Q_D(qMRMLDisplayNodeWidget);
if (!d->MRMLDisplayNode.GetPointer())
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation

d->SliceIntersectionOpacitySlider->setVisible(visible);
}

//------------------------------------------------------------------------------
void qMRMLDisplayNodeWidget::updateWidgetFromMRML()
{
Q_D(qMRMLDisplayNodeWidget);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to implement update of slice intersection opacity widget from MRML in updateWidgetFromMRML()

@sjh26 sjh26 force-pushed the Add2DSliceIntersectionOpacity branch from 7b989bb to 5d175ec Compare February 21, 2017 19:59
@sjh26
Copy link
Author

sjh26 commented Feb 23, 2017

Requested changes made and pushed!

Copy link
Contributor

@lassoan lassoan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, it looks good. If you fix the remaining few indentation problems then it's ready to merge.

@@ -322,6 +324,12 @@ void vtkMRMLDisplayNode::ReadXMLAttributes(const char** atts)
ss << attValue;
ss >> Opacity;
}
else if (!strcmp(attName, "sliceIntersectionOpacity"))
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation

Q_D(qMRMLDisplayNodeWidget);
if (!d->MRMLDisplayNode.GetPointer())
{
return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation

@sjh26 sjh26 force-pushed the Add2DSliceIntersectionOpacity branch from 5d175ec to 44a1438 Compare February 24, 2017 03:33
@sjh26
Copy link
Author

sjh26 commented Feb 25, 2017

Indentation fixed!

@agirault
Copy link

Integrated in r25731. Thanks a lot Sam!

@agirault agirault closed this Feb 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants