Skip to content

Commit 5b4fc1e

Browse files
committed
Print version
1 parent 11ae98d commit 5b4fc1e

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

debian/changelog

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
dicom2mesh (0.6-0ppa0) bionic; urgency=low
1+
dicom2mesh (0.7-0ppa0) bionic; urgency=low
22

3-
* Initial dicom2mesh upload!
4-
* Fixed build
5-
* Again fix build error
6-
* Fix dpkg command error
7-
* Change structure
8-
* Fix: Add shared library to installation
3+
* Initial dicom2mesh ppa release!
94

105

11-
-- Adrian Schneider <[email protected]> Thu, 12 Apr 2018 16:42:00 +0200
6+
-- Adrian Schneider <[email protected]> Thu, 05 May 2018 15:12:05 +0200

dicom2mesh/inc/dicom2mesh.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class Dicom2Mesh
5858
int doMesh();
5959
static bool parseCmdLineParameters( const int &argc, char **argv, Dicom2MeshParameters &param );
6060
static void showUsageText();
61+
static void showVersionText();
6162

6263
private:
6364
vtkSmartPointer<vtkPolyData> loadInputData( bool& successful );

dicom2mesh/src/dicom2mesh.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,11 @@ bool Dicom2Mesh::parseCmdLineParameters(const int &argc, char **argv, Dicom2Mesh
246246
{
247247
param.enableCrop = true;
248248
}
249+
else if( cArg.compare("--version") == 0 )
250+
{
251+
showVersionText();
252+
return false;
253+
}
249254
}
250255

251256
if( !param.pathToDicomSet )
@@ -298,6 +303,12 @@ void Dicom2Mesh::showUsageText()
298303
std::cout << "Arguments can be combined." << std::endl << std::endl;
299304
}
300305

306+
void Dicom2Mesh::showVersionText()
307+
{
308+
std::cout << "dicom2Mesh version 0.7.0, AOT AG - Switzerland" << std::endl;
309+
}
310+
311+
301312
vtkSmartPointer<vtkPolyData> Dicom2Mesh::loadInputData( bool& successful )
302313
{
303314
vtkSmartPointer<vtkPolyData> mesh;

0 commit comments

Comments
 (0)