From: Leonardo Flórez-Valencia Date: Mon, 17 Apr 2017 01:56:45 +0000 (-0500) Subject: ... X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=094510e6205e9cba1756317bed377ec190b0aa49;p=cpPlugins.git ... --- diff --git a/INSTALL.txt b/INSTALL.txt new file mode 100644 index 0000000..bf667ef --- /dev/null +++ b/INSTALL.txt @@ -0,0 +1,47 @@ + +0. Pre-requisites +----------------- + +cpPlugins is developed in C++11 and makes extensive use of VTK (>=7.0) and +ITK (>=4.10). Qt (=4.8) could be used at will. + +In order to compile it, you will need a development environment that includes: + + - A decent C++11 compiler. If you use g++ (on linux-like machines) or Xcode + (on Mac boxes) you should be ok. On Windows, is rather difficult (thanks + Microsoft?), but it is recommened to use the MinGW environment. + - make. + - git, if you want to gain access to the latest versions of every package. + - GLUT. + - whatever your compiler complains about... ;-) + +On this manual, all third party packages will be downloaded and compiled on the +~/sources path and will be installed on the ~/local path. If you want to follow +exactly the same commands, please execute the next commands on your console +before continuing: + + $ cd + $ mkdir -p sources + $ mkdir -p local + +1. Qt compilation +----------------- + +Although native Qt4.8 installers can be found on most platforms, you could face +the (really ugly) Qt compilation process, specially if you are on Windows or MAC. +However, the normal compilation is rather simple: + + - download your qt4.8 source code: + $ cd ~/sources + $ wget http://download.qt.io/official_releases/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz + + - On linux, configure the native Qt compilation chain: + $ cd ~/sources + $ mkdir -p qt-binaries-4.8.7 + $ cd qt-binaries-4.8.7 + $ ~/sources/qt-source-4.8.7/configure \ + -release -opensource -shared -fast \ + -optimized-qmake -confirm-license \ + -prefix ~/local + +## eof - $RCSfile$ diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..f5500f2 --- /dev/null +++ b/README.txt @@ -0,0 +1,7 @@ + +Installation +------------ + +Please refer to the file "INSTALL.txt" + +## eof - $RCSfile$ \ No newline at end of file diff --git a/libs/cpPipelineEditor/Block.h b/libs/cpPipelineEditor/Block.h index d06964a..7ed049c 100644 --- a/libs/cpPipelineEditor/Block.h +++ b/libs/cpPipelineEditor/Block.h @@ -21,11 +21,7 @@ namespace cpPipelineEditor ); virtual ~Block( ); - void setClassName( const std::string& name ); - void setObjectName( const std::string& name ); - void setNumberOfInputs( unsigned int n ); - void setNumberOfOutputs( unsigned int n ); - void setNumberOfParameters( unsigned int n ); + virtual bool setObject( ) = 0; virtual void paint( QPainter* painter,