Skip to content

Commit

Permalink
fix tiff save neus
Browse files Browse the repository at this point in the history
  • Loading branch information
iltommi committed Oct 8, 2024
1 parent 933eaff commit 55e4dce
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 22 deletions.
1 change: 0 additions & 1 deletion nPhysImage/nPhysFormats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,6 @@ std::vector <physD> physFormat::phys_open_tiff(std::string ifilename, bool separ
tiff_prop["display_range"] =display_range;
}
}
tiff_prop["phys_from_name"]=ifilename;
unsigned short bytesperpixel=0;
TIFFGetField(tif, TIFFTAG_BITSPERSAMPLE, &bytesperpixel);
bytesperpixel/=8;
Expand Down
2 changes: 2 additions & 0 deletions plugins/Lineout/Lineout.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class nLineout : public nGenericPan {

connect(my_w.actionLockColors, SIGNAL(toggled(bool)), this, SLOT(updatePlot()));

connect(nparent, SIGNAL(bufferChanged(nPhysD *)), this, SLOT(updatePlot()));

my_w.plot->addGraph(my_w.plot->xAxis, my_w.plot->yAxis);
my_w.plot->graph(0)->setPen(QPen(Qt::black));
QString namedirection(plot_dir==PHYS_HORIZONTAL?"Horizontal":"Vertical");
Expand Down
1 change: 1 addition & 0 deletions plugins/Lineout_H_V/Lineout_H_V.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Lineout_H_V::Lineout_H_V(neutrino *parent) : nGenericPan(parent)
connect(parent, SIGNAL(bufferChanged(nPhysD*)), this, SLOT(updatePlot()));

connect(parent, SIGNAL(nZoom(double)), this, SLOT(updatePlot()));
connect(nparent, SIGNAL(bufferChanged(nPhysD *)), this, SLOT(updatePlot()));

connect(my_w.lockClick,SIGNAL(released()), this, SLOT(setBehaviour()));

Expand Down
3 changes: 0 additions & 3 deletions plugins/Visar/Visar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ void Visar::changeShot(QString num) {
}

void Visar::fillComboShot() {
qDebug() << "here";
disconnect(comboShot, SIGNAL(currentTextChanged(QString)), this, SLOT(changeShot(QString)));
QString oldvalue=comboShot->currentText();

Expand Down Expand Up @@ -912,7 +911,6 @@ int Visar::direction(int k) {
}

void Visar::setObjectVisibility(nPhysD*phys) {
qDebug() << "here in " << numVisars;
if (nPhysExists(phys)) {
for (unsigned int k=0;k<numVisars;k++){
bool ismyimg = (phys == getPhysFromCombo(settingsUi[k]->shotImage) || phys == getPhysFromCombo(settingsUi[k]->refImage));
Expand All @@ -922,7 +920,6 @@ void Visar::setObjectVisibility(nPhysD*phys) {
}
sopRect->setVisible(enableSOP->isChecked() && (phys == getPhysFromCombo(sopRef) || phys == getPhysFromCombo(sopShot)));
}
qDebug() << "here out";
}

void Visar::ghostChecked() {
Expand Down
41 changes: 23 additions & 18 deletions src/neutrino.ui
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@
<height>540</height>
</rect>
</property>
<property name="font">
<font>
<family>.AppleSystemUIFont</family>
</font>
</property>
<property name="mouseTracking">
<bool>true</bool>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
<enum>Qt::FocusPolicy::NoFocus</enum>
</property>
<property name="acceptDrops">
<bool>true</bool>
Expand Down Expand Up @@ -58,7 +63,7 @@
<bool>false</bool>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
<enum>QFrame::Shape::NoFrame</enum>
</property>
<property name="backgroundBrush">
<brush brushstyle="NoBrush">
Expand Down Expand Up @@ -97,10 +102,10 @@
<string>x pixel</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
<enum>QFrame::Shape::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
<enum>QFrame::Shadow::Raised</enum>
</property>
<property name="lineWidth">
<number>0</number>
Expand All @@ -109,7 +114,7 @@
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
Expand All @@ -124,10 +129,10 @@
<string>y pixel</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
<enum>QFrame::Shape::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
<enum>QFrame::Shadow::Raised</enum>
</property>
<property name="lineWidth">
<number>0</number>
Expand All @@ -136,14 +141,14 @@
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
Expand All @@ -164,7 +169,7 @@
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
Expand All @@ -185,14 +190,14 @@
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
Expand All @@ -207,10 +212,10 @@
<string>Value at mouse position</string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
<enum>QFrame::Shape::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
<enum>QFrame::Shadow::Raised</enum>
</property>
<property name="lineWidth">
<number>0</number>
Expand All @@ -219,14 +224,14 @@
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
</widget>
</item>
Expand All @@ -247,7 +252,7 @@
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
Expand All @@ -262,7 +267,7 @@
<x>0</x>
<y>0</y>
<width>500</width>
<height>24</height>
<height>36</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
Expand Down

0 comments on commit 55e4dce

Please sign in to comment.