Getting Started Coding

From FarsightWiki
(Difference between revisions)
Jump to: navigation, search
 
(25 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
== Learning Farsight ==
 +
*[http://farsight-toolkit.org/wiki/Getting_Started_Coding/Farsight What is Farsight]
 +
 +
== SVN ==
 +
*[http://farsight-toolkit.org/wiki/Getting_Started_Coding/SVN SVN]
 +
 +
== CMake ==
 +
*[http://farsight-toolkit.org/wiki/Getting_Started_Coding/Cmake Cmake]
 +
 +
== ITK ==
 +
 +
 
== Learning Coding ==
 
== Learning Coding ==
  
Line 17: Line 29:
 
*[http://www.vtk.org/ VTK]
 
*[http://www.vtk.org/ VTK]
 
** Visualization tools
 
** Visualization tools
 +
** [http://farsight-toolkit.org/wiki/Getting_Started_Coding/VTK Tutorials]
 
** [http://www.paraview.org/Wiki/VTK/Examples/Cxx Examples] from Paraview
 
** [http://www.paraview.org/Wiki/VTK/Examples/Cxx Examples] from Paraview
 
*[http://cplusplus.com/ CPlusPlus.com]  
 
*[http://cplusplus.com/ CPlusPlus.com]  
 
** A good source for C++ documentation
 
** A good source for C++ documentation
 
* [[Developers_Tools | Back to developers tools]]
 
* [[Developers_Tools | Back to developers tools]]
 
  
 
== A Simple Main Function ==
 
== A Simple Main Function ==
Line 44: Line 56:
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
 +
== Some More Detailed Examples ==
 +
 +
[[Getting_Started_Coding/ITK/Image]]
 +
 +
[[Getting_Started_Coding/VTK| VTK Examples ]]

Latest revision as of 18:11, 30 September 2011

Contents

Learning Farsight

SVN

CMake

ITK

Learning Coding

The basis of Farsight is the C++ libraries used.

Places to find documentation and example code:

A Simple Main Function

 
//first include some source classes
#include "SomeReaderClass.h"  
#include "SomeWriterClass.h"
//main function takes in arguments from the command line
int main(int argc,  char **argv )
{
  // argc is a int to tell you how many input arguments were included.
  // argv is a char pointer pointer of the input arguments. 
  for ( int i = 0; i < argc; i++)
  {
    // starting from 0, the index variable "i" will increase until it is argc -1
    // c++ counts from 0, so index array[2] is a the third place in array {0,1,2}
    std::cout <<"argument at" << i << " is " <<argv[i] << std::endl;
    // this loop will print out the arguments including the .exe name
  }
  return 0; //the main function exits
}


Some More Detailed Examples

Getting_Started_Coding/ITK/Image

VTK Examples

Personal tools