Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions koviz/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ class SnapOptions : public Options
double timeMatchTolerance;
QString trickhost;
uint trickport;
uint virgoport;
double trickoffset;
QString videoFileName;
double videoOffset;
Expand Down Expand Up @@ -369,6 +370,8 @@ int main(int argc, char *argv[])
opts.add("-z:{0,1}",
&opts.isFilterOutFlatlineZeros,false,
"Filter out flat line zero and empty plots");
opts.add("-virgoport", &opts.virgoport, 64053,
"port for VIRGO connection");

opts.parse(argc,argv, QString("koviz"), &ok);

Expand Down Expand Up @@ -1530,6 +1533,7 @@ int main(int argc, char *argv[])
PlotMainWindow w(bookModel,
opts.trickhost,
opts.trickport,
opts.virgoport,
opts.trickoffset,
videos,
excludePattern,
Expand Down
4 changes: 3 additions & 1 deletion libkoviz/plotmainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
PlotMainWindow::PlotMainWindow(PlotBookModel* bookModel,
const QString& trickhost,
uint trickport,
uint virgoport,
double trickoffset,
const QList<QPair<QString,double> >& videos,
const QString& excludePattern,
Expand All @@ -44,6 +45,7 @@ PlotMainWindow::PlotMainWindow(PlotBookModel* bookModel,
_tvModel(0),
_trickhost(trickhost),
_trickport(trickport),
_virgoport(virgoport),
_trickoffset(trickoffset),
_videos(videos),
_excludePattern(excludePattern),
Expand Down Expand Up @@ -261,7 +263,7 @@ PlotMainWindow::PlotMainWindow(PlotBookModel* bookModel,
this, SLOT(setTimeFromBvis(double)));

// creating timecom to send commands to the koviz blender plugin
_blender = new TimeCom("127.0.0.1", 64053, this);
_blender = new TimeCom("127.0.0.1", _virgoport, this);
connect(_blender,SIGNAL(timechangedByBvis(double)),
this, SLOT(setTimeFromBvis(double)));

Expand Down
2 changes: 2 additions & 0 deletions libkoviz/plotmainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class PlotMainWindow : public QMainWindow
explicit PlotMainWindow( PlotBookModel* bookModel,
const QString& trickhost,
uint trickport,
uint virgoport,
double trickoffset,
const QList<QPair<QString,double> >& videos,
const QString& excludePattern,
Expand Down Expand Up @@ -89,6 +90,7 @@ class PlotMainWindow : public QMainWindow

const QString& _trickhost;
uint _trickport;
uint _virgoport;
double _trickoffset;
QList<QPair<QString,double> > _videos;
QString _excludePattern;
Expand Down