Re: [GRASS-dev] wxvdigit

2010-09-29 Thread Mohammed Rashad
ok. I am building a grass standalone application. As a part of it I need vector digitizer. My application is written in C++ and cannot use python for some other reasons. i saw the code gui/wxpython/vdigit. that are nice c++ classes. Can I compile then with wxwidgets(C++) library and use it as a vec

Re: [GRASS-dev] wxvdigit

2010-09-29 Thread Martin Landa
Hi, 2010/9/29 Mohammed Rashad : > All I need is create an map with one point from a c++ program which is > linked to _grass6_wxvdigit.so located in > /usr/local/grass-6.5.svn/etc/wxpython/vdigit. > How to access the functions of the library using a C++ program run from > grass shell with all varia

Re: [GRASS-dev] wxvdigit

2010-09-29 Thread Benjamin Ducke
Generally, you can use C libraries from C++: http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html Then look here, and read the sections on the GRASS vector architecture and the VEdit library: http://grass.osgeo.org/programming6/ You will find there is quite a lot of functionality in there

Re: [GRASS-dev] wxvdigit

2010-09-29 Thread Benjamin Ducke
Why don't you just call the C API from C++? The VEdit C library has some convenient functions for building a digitizer application. Ben - Original Message - > What I want is a vector digitizer using GRASS. I read programmers > manual and saw the code to create vector files. I want to edit

Re: [GRASS-dev] wxvdigit

2010-09-29 Thread Benjamin Ducke
How about you explain to us what you want to achieve with your program? If people here understand what you are trying to do, they can give you more useful advise. If all you want is to create some vector objects, you can use the GRASS C API from within your C++ code. There is a programmer's manual

[GRASS-dev] wxvdigit

2010-09-29 Thread Mohammed Rashad
How can I communicate with wx digitizer ( i mean using the wxdigit.so file) using a c++ program. All I need is create an map with one point from a c++ program which is linked to _grass6_wxvdigit.so located in /usr/local/grass-6.5.svn/etc/wxpython/vdigit. How to access the functions of the library