Add QMapControl
1
libs/Libraries.pri
vendored
@ -39,6 +39,7 @@ INCLUDEPATH += $$PWD
|
||||
include($$PWD/qwt/qwt.pri)
|
||||
include($$PWD/qtcsv/qtcsv.pri)
|
||||
include($$PWD/qmqtt/qmqtt.pri)
|
||||
include($$PWD/QMapControl/QMapControl.pri)
|
||||
include($$PWD/QRealFourier/QRealFourier.pri)
|
||||
include($$PWD/QSimpleUpdater/QSimpleUpdater.pri)
|
||||
|
||||
|
340
libs/QMapControl/COPYING
Normal file
@ -0,0 +1,340 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Library General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Library General
|
||||
Public License instead of this License.
|
165
libs/QMapControl/COPYING.LESSER
Normal file
@ -0,0 +1,165 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
|
||||
This version of the GNU Lesser General Public License incorporates
|
||||
the terms and conditions of version 3 of the GNU General Public
|
||||
License, supplemented by the additional permissions listed below.
|
||||
|
||||
0. Additional Definitions.
|
||||
|
||||
As used herein, "this License" refers to version 3 of the GNU Lesser
|
||||
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
||||
General Public License.
|
||||
|
||||
"The Library" refers to a covered work governed by this License,
|
||||
other than an Application or a Combined Work as defined below.
|
||||
|
||||
An "Application" is any work that makes use of an interface provided
|
||||
by the Library, but which is not otherwise based on the Library.
|
||||
Defining a subclass of a class defined by the Library is deemed a mode
|
||||
of using an interface provided by the Library.
|
||||
|
||||
A "Combined Work" is a work produced by combining or linking an
|
||||
Application with the Library. The particular version of the Library
|
||||
with which the Combined Work was made is also called the "Linked
|
||||
Version".
|
||||
|
||||
The "Minimal Corresponding Source" for a Combined Work means the
|
||||
Corresponding Source for the Combined Work, excluding any source code
|
||||
for portions of the Combined Work that, considered in isolation, are
|
||||
based on the Application, and not on the Linked Version.
|
||||
|
||||
The "Corresponding Application Code" for a Combined Work means the
|
||||
object code and/or source code for the Application, including any data
|
||||
and utility programs needed for reproducing the Combined Work from the
|
||||
Application, but excluding the System Libraries of the Combined Work.
|
||||
|
||||
1. Exception to Section 3 of the GNU GPL.
|
||||
|
||||
You may convey a covered work under sections 3 and 4 of this License
|
||||
without being bound by section 3 of the GNU GPL.
|
||||
|
||||
2. Conveying Modified Versions.
|
||||
|
||||
If you modify a copy of the Library, and, in your modifications, a
|
||||
facility refers to a function or data to be supplied by an Application
|
||||
that uses the facility (other than as an argument passed when the
|
||||
facility is invoked), then you may convey a copy of the modified
|
||||
version:
|
||||
|
||||
a) under this License, provided that you make a good faith effort to
|
||||
ensure that, in the event an Application does not supply the
|
||||
function or data, the facility still operates, and performs
|
||||
whatever part of its purpose remains meaningful, or
|
||||
|
||||
b) under the GNU GPL, with none of the additional permissions of
|
||||
this License applicable to that copy.
|
||||
|
||||
3. Object Code Incorporating Material from Library Header Files.
|
||||
|
||||
The object code form of an Application may incorporate material from
|
||||
a header file that is part of the Library. You may convey such object
|
||||
code under terms of your choice, provided that, if the incorporated
|
||||
material is not limited to numerical parameters, data structure
|
||||
layouts and accessors, or small macros, inline functions and templates
|
||||
(ten or fewer lines in length), you do both of the following:
|
||||
|
||||
a) Give prominent notice with each copy of the object code that the
|
||||
Library is used in it and that the Library and its use are
|
||||
covered by this License.
|
||||
|
||||
b) Accompany the object code with a copy of the GNU GPL and this license
|
||||
document.
|
||||
|
||||
4. Combined Works.
|
||||
|
||||
You may convey a Combined Work under terms of your choice that,
|
||||
taken together, effectively do not restrict modification of the
|
||||
portions of the Library contained in the Combined Work and reverse
|
||||
engineering for debugging such modifications, if you also do each of
|
||||
the following:
|
||||
|
||||
a) Give prominent notice with each copy of the Combined Work that
|
||||
the Library is used in it and that the Library and its use are
|
||||
covered by this License.
|
||||
|
||||
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
||||
document.
|
||||
|
||||
c) For a Combined Work that displays copyright notices during
|
||||
execution, include the copyright notice for the Library among
|
||||
these notices, as well as a reference directing the user to the
|
||||
copies of the GNU GPL and this license document.
|
||||
|
||||
d) Do one of the following:
|
||||
|
||||
0) Convey the Minimal Corresponding Source under the terms of this
|
||||
License, and the Corresponding Application Code in a form
|
||||
suitable for, and under terms that permit, the user to
|
||||
recombine or relink the Application with a modified version of
|
||||
the Linked Version to produce a modified Combined Work, in the
|
||||
manner specified by section 6 of the GNU GPL for conveying
|
||||
Corresponding Source.
|
||||
|
||||
1) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (a) uses at run time
|
||||
a copy of the Library already present on the user's computer
|
||||
system, and (b) will operate properly with a modified version
|
||||
of the Library that is interface-compatible with the Linked
|
||||
Version.
|
||||
|
||||
e) Provide Installation Information, but only if you would otherwise
|
||||
be required to provide such information under section 6 of the
|
||||
GNU GPL, and only to the extent that such information is
|
||||
necessary to install and execute a modified version of the
|
||||
Combined Work produced by recombining or relinking the
|
||||
Application with a modified version of the Linked Version. (If
|
||||
you use option 4d0, the Installation Information must accompany
|
||||
the Minimal Corresponding Source and Corresponding Application
|
||||
Code. If you use option 4d1, you must provide the Installation
|
||||
Information in the manner specified by section 6 of the GNU GPL
|
||||
for conveying Corresponding Source.)
|
||||
|
||||
5. Combined Libraries.
|
||||
|
||||
You may place library facilities that are a work based on the
|
||||
Library side by side in a single library together with other library
|
||||
facilities that are not Applications and are not covered by this
|
||||
License, and convey such a combined library under terms of your
|
||||
choice, if you do both of the following:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work based
|
||||
on the Library, uncombined with any other library facilities,
|
||||
conveyed under the terms of this License.
|
||||
|
||||
b) Give prominent notice with the combined library that part of it
|
||||
is a work based on the Library, and explaining where to find the
|
||||
accompanying uncombined form of the same work.
|
||||
|
||||
6. Revised Versions of the GNU Lesser General Public License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions
|
||||
of the GNU Lesser General Public License from time to time. Such new
|
||||
versions will be similar in spirit to the present version, but may
|
||||
differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Library as you received it specifies that a certain numbered version
|
||||
of the GNU Lesser General Public License "or any later version"
|
||||
applies to it, you have the option of following the terms and
|
||||
conditions either of that published version or of any later version
|
||||
published by the Free Software Foundation. If the Library as you
|
||||
received it does not specify a version number of the GNU Lesser
|
||||
General Public License, you may choose any version of the GNU Lesser
|
||||
General Public License ever published by the Free Software Foundation.
|
||||
|
||||
If the Library as you received it specifies that a proxy can decide
|
||||
whether future versions of the GNU Lesser General Public License shall
|
||||
apply, that proxy's public statement of acceptance of any version is
|
||||
permanent authorization for you to choose that version for the
|
||||
Library.
|
1528
libs/QMapControl/Doxyfile
Normal file
62
libs/QMapControl/QMapControl.pri
Normal file
@ -0,0 +1,62 @@
|
||||
QT += gui
|
||||
QT += network
|
||||
QT += widgets
|
||||
|
||||
VERSION = 0.9.7.9
|
||||
|
||||
INCLUDEPATH += $$PWD/src
|
||||
|
||||
HEADERS += $$PWD/src/curve.h \
|
||||
$$PWD/src/geometry.h \
|
||||
$$PWD/src/imagemanager.h \
|
||||
$$PWD/src/layer.h \
|
||||
$$PWD/src/layermanager.h \
|
||||
$$PWD/src/linestring.h \
|
||||
$$PWD/src/mapadapter.h \
|
||||
$$PWD/src/mapcontrol.h \
|
||||
$$PWD/src/mapnetwork.h \
|
||||
$$PWD/src/point.h \
|
||||
$$PWD/src/tilemapadapter.h \
|
||||
$$PWD/src/wmsmapadapter.h \
|
||||
$$PWD/src/circlepoint.h \
|
||||
$$PWD/src/imagepoint.h \
|
||||
$$PWD/src/gps_position.h \
|
||||
$$PWD/src/osmmapadapter.h \
|
||||
$$PWD/src/maplayer.h \
|
||||
$$PWD/src/geometrylayer.h \
|
||||
$$PWD/src/googlemapadapter.h \
|
||||
$$PWD/src/openaerialmapadapter.h \
|
||||
$$PWD/src/fixedimageoverlay.h \
|
||||
$$PWD/src/emptymapadapter.h \
|
||||
$$PWD/src/arrowpoint.h \
|
||||
$$PWD/src/invisiblepoint.h \
|
||||
$$PWD/src/qmapcontrol_global.h \
|
||||
$$PWD/src/bingapimapadapter.h \
|
||||
$$PWD/src/googleapimapadapter.h
|
||||
|
||||
SOURCES += $$PWD/src/curve.cpp \
|
||||
$$PWD/src/geometry.cpp \
|
||||
$$PWD/src/imagemanager.cpp \
|
||||
$$PWD/src/layer.cpp \
|
||||
$$PWD/src/layermanager.cpp \
|
||||
$$PWD/src/linestring.cpp \
|
||||
$$PWD/src/mapadapter.cpp \
|
||||
$$PWD/src/mapcontrol.cpp \
|
||||
$$PWD/src/mapnetwork.cpp \
|
||||
$$PWD/src/point.cpp \
|
||||
$$PWD/src/tilemapadapter.cpp \
|
||||
$$PWD/src/wmsmapadapter.cpp \
|
||||
$$PWD/src/circlepoint.cpp \
|
||||
$$PWD/src/imagepoint.cpp \
|
||||
$$PWD/src/gps_position.cpp \
|
||||
$$PWD/src/osmmapadapter.cpp \
|
||||
$$PWD/src/maplayer.cpp \
|
||||
$$PWD/src/geometrylayer.cpp \
|
||||
$$PWD/src/googlemapadapter.cpp \
|
||||
$$PWD/src/openaerialmapadapter.cpp \
|
||||
$$PWD/src/fixedimageoverlay.cpp \
|
||||
$$PWD/src/arrowpoint.cpp \
|
||||
$$PWD/src/invisiblepoint.cpp \
|
||||
$$PWD/src/emptymapadapter.cpp \
|
||||
$$PWD/src/bingapimapadapter.cpp \
|
||||
$$PWD/src/googleapimapadapter.cpp
|
1265
libs/QMapControl/QMapControl.tag
Normal file
19
libs/QMapControl/Samples/Citymap/Citymap.pro
Normal file
@ -0,0 +1,19 @@
|
||||
include(../../QMapControl.pri)
|
||||
DEPENDPATH += src
|
||||
MOC_DIR = tmp
|
||||
OBJECTS_DIR = obj
|
||||
DESTDIR = ../bin
|
||||
TARGET = Citymap
|
||||
|
||||
QT+=network
|
||||
QT+=gui
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
greaterThan(QT_MAJOR_VERSION, 4): cache()
|
||||
|
||||
# Input
|
||||
SOURCES += src/citymap.cpp \
|
||||
src/main.cpp \
|
||||
src/dialogs.cpp
|
||||
HEADERS += src/citymap.h \
|
||||
src/dialogs.h
|
5
libs/QMapControl/Samples/Citymap/Readme
Normal file
@ -0,0 +1,5 @@
|
||||
This demo appclication shows more features of the QMapControl. It shows images, which changes its size when changing the zoomlevel. You can display/hide layers and choose different map providers. Also it demonstrates more possibilities for user interaction:
|
||||
|
||||
- notes can be added to any coordinate (a QTextEdit is used for editing the note)
|
||||
- the user can measure distances between two points
|
||||
|
219
libs/QMapControl/Samples/Citymap/citymap.kdevelop
Normal file
@ -0,0 +1,219 @@
|
||||
<?xml version = '1.0'?>
|
||||
<kdevelop>
|
||||
<general>
|
||||
<author>Kai Winter</author>
|
||||
<email>kaiwinter@gmx.de</email>
|
||||
<version>0.9.3</version>
|
||||
<projectmanagement>KDevTrollProject</projectmanagement>
|
||||
<primarylanguage>C++</primarylanguage>
|
||||
<keywords>
|
||||
<keyword>Qt</keyword>
|
||||
</keywords>
|
||||
<ignoreparts/>
|
||||
<projectname>Citymap</projectname>
|
||||
<projectdirectory>.</projectdirectory>
|
||||
<absoluteprojectpath>false</absoluteprojectpath>
|
||||
<description></description>
|
||||
<defaultencoding></defaultencoding>
|
||||
<versioncontrol/>
|
||||
</general>
|
||||
<kdevfileview>
|
||||
<groups>
|
||||
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
|
||||
<group pattern="*.ui" name="User Interface" />
|
||||
<group pattern="*.png" name="Icons" />
|
||||
<group pattern="*" name="Others" />
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
<hidenonlocation>false</hidenonlocation>
|
||||
</groups>
|
||||
<tree>
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
|
||||
</tree>
|
||||
</kdevfileview>
|
||||
<kdevcppsupport>
|
||||
<qt>
|
||||
<used>true</used>
|
||||
<version>4</version>
|
||||
<includestyle>4</includestyle>
|
||||
<designerintegration>ExternalDesigner</designerintegration>
|
||||
<qmake>/usr/lib/qt4/bin/qmake</qmake>
|
||||
<designer>/usr/lib/qt4/bin</designer>
|
||||
<root>/usr/lib/qt4</root>
|
||||
<designerpluginpaths/>
|
||||
</qt>
|
||||
<codecompletion>
|
||||
<automaticCodeCompletion>false</automaticCodeCompletion>
|
||||
<automaticArgumentsHint>true</automaticArgumentsHint>
|
||||
<automaticHeaderCompletion>true</automaticHeaderCompletion>
|
||||
<codeCompletionDelay>250</codeCompletionDelay>
|
||||
<argumentsHintDelay>400</argumentsHintDelay>
|
||||
<headerCompletionDelay>250</headerCompletionDelay>
|
||||
<showOnlyAccessibleItems>false</showOnlyAccessibleItems>
|
||||
<completionBoxItemOrder>0</completionBoxItemOrder>
|
||||
<howEvaluationContextMenu>true</howEvaluationContextMenu>
|
||||
<showCommentWithArgumentHint>true</showCommentWithArgumentHint>
|
||||
<statusBarTypeEvaluation>false</statusBarTypeEvaluation>
|
||||
<namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases>
|
||||
<processPrimaryTypes>true</processPrimaryTypes>
|
||||
<processFunctionArguments>false</processFunctionArguments>
|
||||
<preProcessAllHeaders>false</preProcessAllHeaders>
|
||||
<parseMissingHeadersExperimental>false</parseMissingHeadersExperimental>
|
||||
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
|
||||
<alwaysParseInBackground>true</alwaysParseInBackground>
|
||||
<usePermanentCaching>true</usePermanentCaching>
|
||||
<alwaysIncludeNamespaces>false</alwaysIncludeNamespaces>
|
||||
<includePaths>.;</includePaths>
|
||||
</codecompletion>
|
||||
<creategettersetter>
|
||||
<prefixGet></prefixGet>
|
||||
<prefixSet>set</prefixSet>
|
||||
<prefixVariable>m_,_</prefixVariable>
|
||||
<parameterName>theValue</parameterName>
|
||||
<inlineGet>true</inlineGet>
|
||||
<inlineSet>true</inlineSet>
|
||||
</creategettersetter>
|
||||
<splitheadersource>
|
||||
<enabled>false</enabled>
|
||||
<synchronize>true</synchronize>
|
||||
<orientation>Vertical</orientation>
|
||||
</splitheadersource>
|
||||
<references>
|
||||
<pcs>QMapControl</pcs>
|
||||
<pcs>Qt4</pcs>
|
||||
</references>
|
||||
</kdevcppsupport>
|
||||
<kdevdoctreeview>
|
||||
<ignoretocs>
|
||||
<toc>bash</toc>
|
||||
<toc>bash_bugs</toc>
|
||||
<toc>clanlib</toc>
|
||||
<toc>fortran_bugs_gcc</toc>
|
||||
<toc>gnome1</toc>
|
||||
<toc>gnustep</toc>
|
||||
<toc>gtk</toc>
|
||||
<toc>gtk_bugs</toc>
|
||||
<toc>haskell</toc>
|
||||
<toc>haskell_bugs_ghc</toc>
|
||||
<toc>java_bugs_gcc</toc>
|
||||
<toc>java_bugs_sun</toc>
|
||||
<toc>kde2book</toc>
|
||||
<toc>opengl</toc>
|
||||
<toc>pascal_bugs_fp</toc>
|
||||
<toc>php</toc>
|
||||
<toc>php_bugs</toc>
|
||||
<toc>perl</toc>
|
||||
<toc>perl_bugs</toc>
|
||||
<toc>python</toc>
|
||||
<toc>python_bugs</toc>
|
||||
<toc>qt-kdev3</toc>
|
||||
<toc>ruby</toc>
|
||||
<toc>ruby_bugs</toc>
|
||||
<toc>sdl</toc>
|
||||
<toc>stl</toc>
|
||||
<toc>sw</toc>
|
||||
<toc>w3c-dom-level2-html</toc>
|
||||
<toc>w3c-svg</toc>
|
||||
<toc>w3c-uaag10</toc>
|
||||
<toc>wxwidgets_bugs</toc>
|
||||
</ignoretocs>
|
||||
<ignoredoxygen>
|
||||
<toc>KDE Libraries (Doxygen)</toc>
|
||||
</ignoredoxygen>
|
||||
</kdevdoctreeview>
|
||||
<kdevdebugger>
|
||||
<general>
|
||||
<dbgshell></dbgshell>
|
||||
<breakpoints/>
|
||||
<programargs/>
|
||||
<gdbpath>/usr/bin/gdb</gdbpath>
|
||||
<breakonloadinglibs>true</breakonloadinglibs>
|
||||
<separatetty>false</separatetty>
|
||||
<floatingtoolbar>false</floatingtoolbar>
|
||||
<configGdbScript></configGdbScript>
|
||||
<runShellScript></runShellScript>
|
||||
<runGdbScript></runGdbScript>
|
||||
<raiseGDBOnStart>false</raiseGDBOnStart>
|
||||
</general>
|
||||
<display>
|
||||
<staticmembers>false</staticmembers>
|
||||
<demanglenames>true</demanglenames>
|
||||
<outputradix>10</outputradix>
|
||||
</display>
|
||||
<breakpoints/>
|
||||
</kdevdebugger>
|
||||
<kdevtrollproject>
|
||||
<run>
|
||||
<mainprogram>./bin/Citymap</mainprogram>
|
||||
<programargs></programargs>
|
||||
<directoryradio>executable</directoryradio>
|
||||
<globaldebugarguments></globaldebugarguments>
|
||||
<globalcwd>./bin/</globalcwd>
|
||||
<useglobalprogram>true</useglobalprogram>
|
||||
<terminal>false</terminal>
|
||||
<autocompile>false</autocompile>
|
||||
<autoinstall>false</autoinstall>
|
||||
<autokdesu>false</autokdesu>
|
||||
<envvars/>
|
||||
</run>
|
||||
<general>
|
||||
<activedir></activedir>
|
||||
</general>
|
||||
<make>
|
||||
<abortonerror>true</abortonerror>
|
||||
<runmultiplejobs>false</runmultiplejobs>
|
||||
<numberofjobs>1</numberofjobs>
|
||||
<dontact>false</dontact>
|
||||
<makebin></makebin>
|
||||
<prio>0</prio>
|
||||
<envvars/>
|
||||
</make>
|
||||
<qmake>
|
||||
<savebehaviour>2</savebehaviour>
|
||||
<replacePaths>false</replacePaths>
|
||||
<disableDefaultOpts>true</disableDefaultOpts>
|
||||
<enableFilenamesOnly>false</enableFilenamesOnly>
|
||||
</qmake>
|
||||
</kdevtrollproject>
|
||||
<workspace>
|
||||
<openfiles/>
|
||||
</workspace>
|
||||
<kdevfilecreate>
|
||||
<filetypes/>
|
||||
<useglobaltypes>
|
||||
<type ext="ui" />
|
||||
<type ext="qrc" />
|
||||
<type ext="cpp" />
|
||||
<type ext="h" />
|
||||
<type ext="ts" />
|
||||
</useglobaltypes>
|
||||
</kdevfilecreate>
|
||||
<kdevdocumentation>
|
||||
<projectdoc>
|
||||
<docsystem>Doxygen Documentation Collection</docsystem>
|
||||
<docurl>citymap.tag</docurl>
|
||||
<usermanualurl/>
|
||||
</projectdoc>
|
||||
</kdevdocumentation>
|
||||
<substmap>
|
||||
<APPNAME>Citymap</APPNAME>
|
||||
<APPNAMELC>citymap</APPNAMELC>
|
||||
<APPNAMESC>Citymap</APPNAMESC>
|
||||
<APPNAMEUC>CITYMAP</APPNAMEUC>
|
||||
<AUTHOR>Kai Winter</AUTHOR>
|
||||
<DESIGNER>/usr/lib/qt4/bin</DESIGNER>
|
||||
<EMAIL>kaiwinter@gmx.de</EMAIL>
|
||||
<LICENSE>GPL</LICENSE>
|
||||
<LICENSEFILE>COPYING</LICENSEFILE>
|
||||
<QMAKE>/usr/lib/qt4/bin</QMAKE>
|
||||
<VERSION>0.9.3</VERSION>
|
||||
<YEAR>2008</YEAR>
|
||||
<dest>.</dest>
|
||||
</substmap>
|
||||
<cppsupportpart>
|
||||
<filetemplates>
|
||||
<interfacesuffix>.h</interfacesuffix>
|
||||
<implementationsuffix>.cpp</implementationsuffix>
|
||||
</filetemplates>
|
||||
</cppsupportpart>
|
||||
</kdevelop>
|
592
libs/QMapControl/Samples/Citymap/src/citymap.cpp
Normal file
@ -0,0 +1,592 @@
|
||||
/*!
|
||||
* \example citymap.cpp
|
||||
* This demo appclication shows more features of the QMapControl.
|
||||
* It shows images, which changes its size when changing the zoomlevel.
|
||||
* You can display/hide layers and choose different map providers.
|
||||
* Also it demonstrates more possibilities for user interaction:<br/>
|
||||
* - notes can be added to any coordinate (a QTextEdit is used for editing the note)<br/>
|
||||
* - the user can measure distances between two points
|
||||
*
|
||||
* \image html sample_citymap.png "screenshot"
|
||||
*/
|
||||
|
||||
#include "citymap.h"
|
||||
|
||||
#include <QTextEdit>
|
||||
#include <QVBoxLayout>
|
||||
#include <QApplication>
|
||||
#include <QPushButton>
|
||||
#include <QAction>
|
||||
#include <QMenuBar>
|
||||
#include <QStatusBar>
|
||||
#include <QLabel>
|
||||
#include <QTimer>
|
||||
|
||||
Citymap::Citymap(QWidget*)
|
||||
{
|
||||
// create MapControl
|
||||
mc = new MapControl(QSize(380,540));
|
||||
mc->showScale(true);
|
||||
// display the MapControl in the application
|
||||
QVBoxLayout* layout = new QVBoxLayout;
|
||||
layout->addWidget(mc);
|
||||
layout->setContentsMargins(0,0,0,0);
|
||||
|
||||
QWidget* w = new QWidget();
|
||||
w->setLayout(layout);
|
||||
setCentralWidget(w);
|
||||
|
||||
notepixmap = new QPixmap(QApplication::applicationDirPath() + "/images/note.png");
|
||||
|
||||
coord1 = QPointF();
|
||||
coord2 = QPointF();
|
||||
mapadapter = new OSMMapAdapter();
|
||||
|
||||
// create a layer with the mapadapter and type MapLayer
|
||||
l = new MapLayer("Custom Layer", mapadapter);
|
||||
|
||||
mc->addLayer(l);
|
||||
|
||||
notes = new GeometryLayer("Notes", mapadapter);
|
||||
|
||||
createTours();
|
||||
addSights();
|
||||
addPubs();
|
||||
addMuseums();
|
||||
|
||||
addZoomButtons();
|
||||
createActions();
|
||||
createMenus();
|
||||
|
||||
connect(mc, SIGNAL(viewChanged(QPointF,int)), this, SLOT(mapControlZoomChanged(QPointF,int)), Qt::QueuedConnection);
|
||||
|
||||
mc->addLayer(notes);
|
||||
connect(notes, SIGNAL(geometryClicked(Geometry*, QPoint)),
|
||||
this, SLOT(editNote(Geometry*, QPoint)));
|
||||
|
||||
mc->setView(QPointF(8.26,50));
|
||||
mc->setZoom(13);
|
||||
|
||||
ignoreClicks = false;
|
||||
addingNote = false;
|
||||
noteID = 0;
|
||||
|
||||
notetextedit = new QTextEdit(mc);
|
||||
notetextedit->setGeometry(0,0,200,100);
|
||||
notepoint = new Point(0, 0, notetextedit, ".", Point::TopLeft);
|
||||
notepoint->setVisible(false);
|
||||
notes->addGeometry(notepoint);
|
||||
|
||||
statusBar = new QStatusBar( this );
|
||||
setStatusBar(statusBar);
|
||||
|
||||
loadingProgress = new QLabel("");
|
||||
statusBar->addWidget( loadingProgress );
|
||||
loadingProgressTimer = new QTimer(this);
|
||||
connect(loadingProgressTimer, SIGNAL(timeout()), this, SLOT(updateProgress()), Qt::QueuedConnection );
|
||||
loadingProgressTimer->start( 500 ); //update every 500ms
|
||||
|
||||
cacheTiles(true);
|
||||
}
|
||||
|
||||
void Citymap::updateProgress()
|
||||
{
|
||||
QString progressText = QString(" %1 tiles remaining").arg(mc->loadingQueueSize());
|
||||
|
||||
loadingProgress->setText( progressText );
|
||||
}
|
||||
|
||||
void Citymap::cacheTiles(bool qEnabled)
|
||||
{
|
||||
if (qEnabled)
|
||||
{
|
||||
mc->enablePersistentCache();
|
||||
}
|
||||
else
|
||||
{
|
||||
mc->enablePersistentCache(QDir());
|
||||
}
|
||||
}
|
||||
|
||||
void Citymap::createTours()
|
||||
{
|
||||
QPen* pen = new QPen(QColor(0,0,255,100));
|
||||
pen->setWidth(5);
|
||||
|
||||
QList<Point*> points;
|
||||
points << new Point(8.2606, 50.0051);
|
||||
points << new Point(8.2602, 50.0050);
|
||||
points << new Point(8.2598, 50.0044);
|
||||
points << new Point(8.2569, 50.0057);
|
||||
points << new Point(8.2595, 50.0083);
|
||||
points << new Point(8.2587, 50.0086);
|
||||
points << new Point(8.2589, 50.0100);
|
||||
points << new Point(8.2590, 50.0105);
|
||||
pub_tour = new LineString(points, "", pen);
|
||||
notes->addGeometry(pub_tour);
|
||||
|
||||
points.clear();
|
||||
points << new Point(8.25987, 50.0018);
|
||||
points << new Point(8.26192, 50.0019);
|
||||
points << new Point(8.26301, 50.0031);
|
||||
points << new Point(8.26459, 50.0026);
|
||||
points << new Point(8.26601, 50.004);
|
||||
points << new Point(8.26781, 50.0033);
|
||||
points << new Point(8.27052, 50.0054);
|
||||
points << new Point(8.2697, 50.0059);
|
||||
museum_tour = new LineString(points, "", pen);
|
||||
notes->addGeometry(museum_tour);
|
||||
|
||||
points.clear();
|
||||
points << new Point(8.26015, 50.0015);
|
||||
points << new Point(8.2617, 50.0012);
|
||||
points << new Point(8.26423, 50.0002);
|
||||
points << new Point(8.26698, 50.0024);
|
||||
points << new Point(8.27065, 50.0012);
|
||||
points << new Point(8.27152, 50.0016);
|
||||
points << new Point(8.27225, 50.0004);
|
||||
points << new Point(8.27333, 49.9994);
|
||||
points << new Point(8.26946, 49.9983);
|
||||
points << new Point(8.27105, 49.9973);
|
||||
points << new Point(8.27024, 49.9972);
|
||||
points << new Point(8.26833, 49.9958);
|
||||
sights_tour = new LineString(points, "", pen);
|
||||
notes->addGeometry(sights_tour);
|
||||
}
|
||||
|
||||
void Citymap::addSights()
|
||||
{
|
||||
sights = new GeometryLayer("Sehenswürdigkeiten", mapadapter);
|
||||
mc->addLayer(sights);
|
||||
Point* dom = new ImagePoint(8.274167, 49.998889, QCoreApplication::applicationDirPath() + "/images/180-dom.jpg", "Mainzer Dom");
|
||||
dom->setBaselevel(17);
|
||||
sights->addGeometry(dom);
|
||||
|
||||
Point* stephan = new ImagePoint(8.268611, 49.995556, QCoreApplication::applicationDirPath() + "/images/180-stephan.jpg","St. Stephan");
|
||||
stephan->setBaselevel(17);
|
||||
sights->addGeometry(stephan);
|
||||
|
||||
Point* quitin = new ImagePoint(8.272222, 50.000833, QCoreApplication::applicationDirPath() + "/images/180-quintin.jpg","St. Quintin");
|
||||
quitin->setBaselevel(17);
|
||||
sights->addGeometry(quitin);
|
||||
connect(sights, SIGNAL(geometryClicked(Geometry*, QPoint)),
|
||||
this, SLOT(geometryClicked(Geometry*, QPoint)));
|
||||
}
|
||||
void Citymap::addPubs()
|
||||
{
|
||||
pubs = new GeometryLayer("Kneipe", mapadapter);
|
||||
mc->addLayer(pubs);
|
||||
|
||||
Point* bagatelle = new Point(8.2606, 50.0052, QPixmap(QCoreApplication::applicationDirPath() + "/images/pub.png"), "Bagatelle");
|
||||
pubs->addGeometry(bagatelle);
|
||||
|
||||
Point* nirgendwo = new Point(8.2595, 50.0048, QPixmap(QCoreApplication::applicationDirPath() + "/images/pub.png"), "Nirgendwo");
|
||||
pubs->addGeometry(nirgendwo);
|
||||
|
||||
Point* krokodil = new Point(8.2594,50.0106, QPixmap(QCoreApplication::applicationDirPath() + "/images/pub.png"), "Krokodil");
|
||||
pubs->addGeometry(krokodil);
|
||||
|
||||
connect(pubs, SIGNAL(geometryClicked(Geometry*, QPoint)),
|
||||
this, SLOT(geometryClickEventKneipe(Geometry*, QPoint)));
|
||||
}
|
||||
void Citymap::addMuseums()
|
||||
{
|
||||
museum = new GeometryLayer("Museen", mapadapter);
|
||||
mc->addLayer(museum);
|
||||
Point* rgzm = new ImagePoint(8.269722, 50.006111, QCoreApplication::applicationDirPath() + "/images/180-rgzm.jpg", "rgzm");
|
||||
rgzm->setBaselevel(17);
|
||||
museum->addGeometry(rgzm);
|
||||
|
||||
Point* lm= new ImagePoint(8.26778, 50.00385, QCoreApplication::applicationDirPath() + "/images/180-lm.jpg", "lm");
|
||||
lm ->setBaselevel(17);
|
||||
museum->addGeometry(lm);
|
||||
|
||||
connect(museum, SIGNAL(geometryClicked(Geometry*, QPoint)),
|
||||
this, SLOT(geometryClicked(Geometry*, QPoint)));
|
||||
}
|
||||
|
||||
void Citymap::geometryClicked(Geometry* geometry, QPoint)
|
||||
{
|
||||
if (ignoreClicks || addingNote)
|
||||
return;
|
||||
|
||||
InfoDialog* infodialog = new InfoDialog(this);
|
||||
infodialog->setWindowTitle(geometry->name());
|
||||
|
||||
if (geometry->name() == "Mainzer Dom")
|
||||
{
|
||||
infodialog->setInfotext("<h1>Mainzer Dom</h1><p><img src=\"images/180-dom.jpg\" align=\"left\"/>Der Hohe Dom zu Mainz ist die Bischofskirche der Diözese Mainz und steht unter dem Patrozinium des heiligen Martin von Tours. Der Ostchor ist dem Hl. Stephan geweiht. Der zu den Kaiserdomen zählende Bau ist in seiner heutigen Form eine dreischiffige romanische Säulenbasilika, die in ihren Anbauten sowohl gotische als auch barocke Elemente aufweist.</p>");
|
||||
|
||||
} else if (geometry->name() == "St. Stephan")
|
||||
{
|
||||
infodialog->setInfotext("<h1>St. Stephan</h1><p><img src=\"images/180-stephan.jpg\" align=\"left\"/>Die katholische Pfarrkirche Sankt Stephan in Mainz wurde 990 von Erzbischof Willigis auf der höchsten Erhebung der Stadt gegründet. Auftraggeberin war höchstwahrscheinlich die Kaiserwitwe Theophanu. Willigis wollte mit ihr die Gebetsstätte des Reiches schaffen. In der Kirche war ursprünglich ein Stift untergebracht. Der Propst des Stiftes verwaltete eines der Archidiakonate (mittelalterliche Organisationseinheit, ähnlich den heutigen Dekanaten) des Erzbistums.</p>");
|
||||
} else if (geometry->name() == "St. Quintin")
|
||||
{
|
||||
infodialog->setInfotext("<h1>St. Quintin</h1><p><img src=\"images/180-quintin.jpg\" align=\"left\"/>Die Kirche St. Quintin in Mainz ist die Pfarrkirche der ältesten nachgewiesenen Pfarrei der Stadt.");
|
||||
} else if (geometry->name() == "rgzm")
|
||||
{
|
||||
infodialog->setInfotext("<h1>Römisch-Germanisches Zentralmuseum</h1><p><img src=\"images/180-rgzm.jpg\" align=\"left\"/>Das Römisch-Germanische Zentralmuseum (RGZM) in Mainz ist ein Forschungsinstitut für Vor- und Frühgeschichte, das von Bund und Ländern getragen wird und zur Leibniz-Gemeinschaft deutscher Forschungseinrichtungen gehört. Gegliedert in mehrere Abteilungen, arbeitet das Institut im Bereich der Alten Welt sowie seiner Kontaktzonen von der Altsteinzeit bis ins Mittelalter.");
|
||||
} else if (geometry->name() == "lm")
|
||||
{
|
||||
infodialog->setInfotext("<h1>Landesmuseum Mainz</h1><p><img src=\"images/180-lm.jpg\" align=\"left\"/>Das Landesmuseum Mainz ist eines der ältesten Museen in Deutschland. Eine seiner Vorgängerinstitutionen, die Städtische Gemäldesammlung, wurde bereits 1803 von Jean-Antoine Chaptal auf Veranlassung Napoléon Bonapartes durch eine Schenkung von 36 Gemälden gegründet. Das Museum, welches sich heute im ehemaligen kurfürstlichen Marstall befindet, gehört zusammen mit dem Römisch-Germanischen Zentralmuseum und dem Gutenbergmuseum zu den bedeutenden Museen in Mainz. Seine kunst- und kulturgeschichtliche Sammlung erstreckt sich von der Vorgeschichte über die römische Zeit, dem Mittelalter und Barock bis hin zur Jugendstilzeit und der Kunst des 20. Jahrhunderts.");
|
||||
}
|
||||
if (geometry->name() != "")
|
||||
infodialog->showMaximized();
|
||||
}
|
||||
|
||||
void Citymap::geometryClickEventKneipe(Geometry* geometry, QPoint)
|
||||
{
|
||||
if (ignoreClicks || addingNote)
|
||||
return;
|
||||
InfoDialog* infodialog = new InfoDialog(this);
|
||||
infodialog->setWindowTitle(geometry->name());
|
||||
infodialog->setInfotext("<h1>" + geometry->name() + "</h1>");
|
||||
infodialog->showNormal();
|
||||
}
|
||||
|
||||
void Citymap::addZoomButtons()
|
||||
{
|
||||
// create buttons as controls for zoom
|
||||
QPushButton* zoomin = new QPushButton("+");
|
||||
QPushButton* zoomout = new QPushButton("-");
|
||||
zoomin->setMaximumWidth(50);
|
||||
zoomout->setMaximumWidth(50);
|
||||
|
||||
connect(zoomin, SIGNAL(clicked(bool)),
|
||||
mc, SLOT(zoomIn()));
|
||||
connect(zoomout, SIGNAL(clicked(bool)),
|
||||
mc, SLOT(zoomOut()));
|
||||
|
||||
// add zoom buttons to the layout of the MapControl
|
||||
QVBoxLayout* innerlayout = new QVBoxLayout;
|
||||
innerlayout->addWidget(zoomin);
|
||||
innerlayout->addWidget(zoomout);
|
||||
mc->setLayout(innerlayout);
|
||||
}
|
||||
|
||||
void Citymap::createActions()
|
||||
{
|
||||
toggleSights = new QAction(tr("Show Sights"), this);
|
||||
toggleSights->setCheckable(true);
|
||||
toggleSights->setChecked(true);
|
||||
connect(toggleSights, SIGNAL(triggered(bool)),
|
||||
sights, SLOT(setVisible(bool)));
|
||||
|
||||
togglePub = new QAction(tr("Show Pubs"), this);
|
||||
togglePub->setCheckable(true);
|
||||
togglePub->setChecked(true);
|
||||
connect(togglePub, SIGNAL(triggered(bool)),
|
||||
pubs, SLOT(setVisible(bool)));
|
||||
|
||||
toggleMuseum = new QAction(tr("Show Museums"), this);
|
||||
toggleMuseum->setCheckable(true);
|
||||
toggleMuseum->setChecked(true);
|
||||
connect(toggleMuseum, SIGNAL(triggered(bool)),
|
||||
museum, SLOT(setVisible(bool)));
|
||||
|
||||
|
||||
toggleSightTour = new QAction(tr("Show Sight Tour"), this);
|
||||
toggleSightTour->setCheckable(true);
|
||||
toggleSightTour->setChecked(true);
|
||||
connect(toggleSightTour, SIGNAL(triggered(bool)),
|
||||
sights_tour, SLOT(setVisible(bool)));
|
||||
|
||||
togglePubTour = new QAction(tr("Show Pub Tour"), this);
|
||||
togglePubTour->setCheckable(true);
|
||||
togglePubTour->setChecked(true);
|
||||
connect(togglePubTour, SIGNAL(triggered(bool)),
|
||||
pub_tour, SLOT(setVisible(bool)));
|
||||
|
||||
toggleMuseumTour = new QAction(tr("Show Museum Tour"), this);
|
||||
toggleMuseumTour->setCheckable(true);
|
||||
toggleMuseumTour->setChecked(true);
|
||||
connect(toggleMuseumTour, SIGNAL(triggered(bool)),
|
||||
museum_tour, SLOT(setVisible(bool)));
|
||||
|
||||
addNoteAction = new QAction(tr("Add Note"), this);
|
||||
connect(addNoteAction, SIGNAL(triggered(bool)),
|
||||
this, SLOT(addNote()));
|
||||
|
||||
toolsDistance = new QAction(tr("Calculate Distance"), this);
|
||||
connect(toolsDistance, SIGNAL(triggered(bool)),
|
||||
this, SLOT(calcDistance()));
|
||||
|
||||
toolsLocalDiskCache = new QAction(tr("Cache Tiles Locally"), this);
|
||||
toolsLocalDiskCache->setCheckable(true);
|
||||
toolsLocalDiskCache->setChecked(true);
|
||||
connect(toolsLocalDiskCache, SIGNAL(triggered(bool)),
|
||||
this, SLOT(cacheTiles(bool)));
|
||||
|
||||
QActionGroup* mapproviderGroup = new QActionGroup(this);
|
||||
osmAction = new QAction(tr("OpenStreetMap"), mapproviderGroup);
|
||||
googleActionMap = new QAction(tr("Google: Roadmap (default)"), mapproviderGroup);
|
||||
googleActionSatellite = new QAction(tr("Google: Satellite"), mapproviderGroup);
|
||||
|
||||
googleActionSatellite = new QAction(tr("Google: Satellite"), mapproviderGroup);
|
||||
googleActionTerrain = new QAction(tr("Google: Terrain"), mapproviderGroup);
|
||||
googleActionHybrid = new QAction(tr("Google: Hybrid"), mapproviderGroup);
|
||||
|
||||
osmAction->setCheckable(true);
|
||||
googleActionMap->setCheckable(true);
|
||||
googleActionSatellite->setCheckable(true);
|
||||
googleActionTerrain->setCheckable(true);
|
||||
googleActionHybrid->setCheckable(true);
|
||||
osmAction->setChecked(true);
|
||||
connect(mapproviderGroup, SIGNAL(triggered(QAction*)),
|
||||
this, SLOT(mapproviderSelected(QAction*)));
|
||||
|
||||
QActionGroup* mapZoomGroup = new QActionGroup(this);
|
||||
|
||||
for( int i=0; i <= 17; ++i )
|
||||
{
|
||||
QString title = QString("Zoom %1").arg(i);
|
||||
QAction* action = new QAction(title, mapZoomGroup);
|
||||
action->setCheckable(true);
|
||||
zoomActions << action;
|
||||
}
|
||||
connect(mapZoomGroup, SIGNAL(triggered(QAction*)),
|
||||
this, SLOT(mapZoomSelected(QAction*)));
|
||||
}
|
||||
|
||||
void Citymap::createMenus()
|
||||
{
|
||||
layerMenu = menuBar()->addMenu(tr("&Layer"));
|
||||
layerMenu->addAction(toggleSights);
|
||||
layerMenu->addAction(togglePub);
|
||||
layerMenu->addAction(toggleMuseum);
|
||||
|
||||
tourMenu = menuBar()->addMenu(tr("T&ours"));
|
||||
tourMenu->addAction(toggleSightTour);
|
||||
tourMenu->addAction(togglePubTour);
|
||||
tourMenu->addAction(toggleMuseumTour);
|
||||
|
||||
toolsMenu = menuBar()->addMenu(tr("&Tools"));
|
||||
toolsMenu->addAction(addNoteAction);
|
||||
toolsMenu->addAction(toolsDistance);
|
||||
toolsMenu->addAction(toolsLocalDiskCache);
|
||||
|
||||
mapMenu = menuBar()->addMenu(tr("&Map Provider"));
|
||||
mapMenu->addAction(osmAction);
|
||||
mapMenu->addAction(googleActionMap);
|
||||
mapMenu->addAction(googleActionSatellite);
|
||||
mapMenu->addAction(googleActionTerrain);
|
||||
mapMenu->addAction(googleActionHybrid);
|
||||
|
||||
zoomMenu = menuBar()->addMenu(tr("&Zoom Level"));
|
||||
foreach( QAction* action, zoomActions )
|
||||
{
|
||||
zoomMenu->addAction(action);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void Citymap::addNote()
|
||||
{
|
||||
addingNote = true;
|
||||
connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent*, const QPointF)),
|
||||
this, SLOT(writeNote(const QMouseEvent*, const QPointF)));
|
||||
}
|
||||
|
||||
void Citymap::writeNote(const QMouseEvent*, const QPointF coord)
|
||||
{
|
||||
Point* p = new Point(coord.x(), coord.y(), *notepixmap, QString::number(++noteID), Point::BottomLeft);
|
||||
currentnoteID = noteID;
|
||||
p->setBaselevel(16);
|
||||
p->setMinsize(QSize(12, 10));
|
||||
p->setMaxsize(QSize(47, 40));
|
||||
notes->addGeometry(p);
|
||||
|
||||
notetextedit->clear();
|
||||
|
||||
notepoint->setCoordinate(coord);
|
||||
notepoint->setVisible(true);
|
||||
|
||||
mc->updateRequestNew();
|
||||
|
||||
disconnect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent*, const QPointF)),
|
||||
this, SLOT(writeNote(const QMouseEvent*, const QPointF)));
|
||||
|
||||
connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent*, const QPointF)),
|
||||
this, SLOT(hideNote(const QMouseEvent*, const QPointF)));
|
||||
}
|
||||
|
||||
void Citymap::hideNote(const QMouseEvent* evnt, const QPointF)
|
||||
{
|
||||
if (addingNote && evnt->type() == QEvent::MouseButtonDblClick)
|
||||
{
|
||||
addingNote = false;
|
||||
notepoint->setVisible(false);
|
||||
|
||||
mc->updateRequestNew();
|
||||
|
||||
// save text
|
||||
notestext[currentnoteID] = notetextedit->toPlainText();
|
||||
|
||||
disconnect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent*, const QPointF)),
|
||||
this, SLOT(hideNote(const QMouseEvent*, const QPointF)));
|
||||
}
|
||||
}
|
||||
|
||||
void Citymap::editNote(Geometry* geom, QPoint)
|
||||
{
|
||||
addingNote = true;
|
||||
currentnoteID = QVariant(geom->name()).toInt();
|
||||
notetextedit->setPlainText(notestext[currentnoteID]);
|
||||
notepoint->setCoordinate(geom->points().at(0)->coordinate());
|
||||
notepoint->setVisible(true);
|
||||
|
||||
mc->updateRequestNew();
|
||||
connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent*, const QPointF)),
|
||||
this, SLOT(hideNote(const QMouseEvent*, const QPointF)));
|
||||
}
|
||||
|
||||
void Citymap::resizeEvent(QResizeEvent *qEvent)
|
||||
{
|
||||
Q_UNUSED( qEvent );
|
||||
if (mc)
|
||||
{
|
||||
mc->resize(size());
|
||||
}
|
||||
}
|
||||
|
||||
void Citymap::calcDistance()
|
||||
{
|
||||
ignoreClicks = true;
|
||||
connect(mc, SIGNAL(mouseEventCoordinate( const QMouseEvent*, const QPointF )),
|
||||
this, SLOT(calcDistanceClick(const QMouseEvent*, const QPointF)));
|
||||
}
|
||||
void Citymap::calcDistanceClick(const QMouseEvent* evnt, const QPointF coord)
|
||||
{
|
||||
if (coord1 == QPointF() && evnt->type() == QEvent::MouseButtonPress)
|
||||
{
|
||||
coord1 = coord;
|
||||
l->addGeometry(new ImagePoint(coord1.x(), coord1.y(), QCoreApplication::applicationDirPath() + "/images/flag.png", "", Point::BottomRight));
|
||||
mc->updateRequestNew();
|
||||
}
|
||||
else if (coord2 == QPointF() && evnt->type() == QEvent::MouseButtonPress)
|
||||
{
|
||||
coord2 = coord;
|
||||
double PI = acos(-1.0);
|
||||
double a1 = coord1.x()* (PI/180.0);;
|
||||
double b1 = coord1.y()* (PI/180.0);;
|
||||
double a2 = coord2.x()* (PI/180.0);;
|
||||
double b2 = coord2.y()* (PI/180.0);;
|
||||
double r = 6378;
|
||||
|
||||
double km = acos(cos(a1)*cos(b1)*cos(a2)*cos(b2) + cos(a1)*sin(b1)*cos(a2)*sin(b2) + sin(a1)*sin(a2)) * r;
|
||||
|
||||
QList<Point*> points;
|
||||
points.append(new Point(coord1.x(), coord1.y()));
|
||||
QPixmap* pixm = new QPixmap(100,20);
|
||||
pixm->fill(Qt::transparent);
|
||||
QPainter pain(pixm);
|
||||
pain.setFont(QFont("Helvetiva", 6));
|
||||
pain.drawText(pixm->rect(), QString().setNum(km, 'f', 3) + " km");
|
||||
pain.end();
|
||||
points.append(new Point(coord2.x(), coord2.y(), *pixm, "", Point::BottomLeft));
|
||||
l->addGeometry(new LineString(points));
|
||||
mc->updateRequestNew();
|
||||
coord1 = QPointF();
|
||||
coord2 = QPointF();
|
||||
ignoreClicks = false;
|
||||
disconnect(mc, SIGNAL(mouseEventCoordinate( const QMouseEvent*, const QPointF)),
|
||||
this, SLOT(calcDistanceClick(const QMouseEvent*, const QPointF)));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void Citymap::mapControlZoomChanged(const QPointF &coordinate, int zoom) const
|
||||
{
|
||||
Q_UNUSED(coordinate);
|
||||
if ( zoomActions.at(zoom) )
|
||||
{
|
||||
zoomActions.at(zoom)->setChecked( true );
|
||||
}
|
||||
}
|
||||
|
||||
void Citymap::mapZoomSelected(QAction* action)
|
||||
{
|
||||
mc->setZoom( zoomActions.indexOf(action) );
|
||||
}
|
||||
|
||||
void Citymap::mapproviderSelected(QAction* action)
|
||||
{
|
||||
if (action == osmAction)
|
||||
{
|
||||
int zoom = mapadapter->adaptedZoom();
|
||||
mc->setZoom(0);
|
||||
|
||||
mapadapter = new OSMMapAdapter();
|
||||
l->setMapAdapter(mapadapter);
|
||||
sights->setMapAdapter(mapadapter);
|
||||
museum->setMapAdapter(mapadapter);
|
||||
pubs->setMapAdapter(mapadapter);
|
||||
notes->setMapAdapter(mapadapter);
|
||||
mc->updateRequestNew();
|
||||
mc->setZoom(zoom);
|
||||
}
|
||||
else if (action == googleActionMap)
|
||||
{
|
||||
int zoom = mapadapter->adaptedZoom();
|
||||
mc->setZoom(0);
|
||||
mapadapter = new GoogleMapAdapter();
|
||||
l->setMapAdapter(mapadapter);
|
||||
sights->setMapAdapter(mapadapter);
|
||||
museum->setMapAdapter(mapadapter);
|
||||
pubs->setMapAdapter(mapadapter);
|
||||
notes->setMapAdapter(mapadapter);
|
||||
mc->updateRequestNew();
|
||||
mc->setZoom(zoom);
|
||||
}
|
||||
else if (action == googleActionSatellite)
|
||||
{
|
||||
int zoom = mapadapter->adaptedZoom();
|
||||
mc->setZoom(0);
|
||||
mapadapter = new GoogleMapAdapter(GoogleMapAdapter::satellite);
|
||||
l->setMapAdapter(mapadapter);
|
||||
sights->setMapAdapter(mapadapter);
|
||||
museum->setMapAdapter(mapadapter);
|
||||
pubs->setMapAdapter(mapadapter);
|
||||
notes->setMapAdapter(mapadapter);
|
||||
mc->updateRequestNew();
|
||||
mc->setZoom(zoom);
|
||||
}
|
||||
else if (action == googleActionTerrain)
|
||||
{
|
||||
int zoom = mapadapter->adaptedZoom();
|
||||
mc->setZoom(0);
|
||||
mapadapter = new GoogleMapAdapter(GoogleMapAdapter::terrain);
|
||||
l->setMapAdapter(mapadapter);
|
||||
sights->setMapAdapter(mapadapter);
|
||||
museum->setMapAdapter(mapadapter);
|
||||
pubs->setMapAdapter(mapadapter);
|
||||
notes->setMapAdapter(mapadapter);
|
||||
mc->updateRequestNew();
|
||||
mc->setZoom(zoom);
|
||||
}
|
||||
else if (action == googleActionHybrid)
|
||||
{
|
||||
int zoom = mapadapter->adaptedZoom();
|
||||
mc->setZoom(0);
|
||||
mapadapter = new GoogleMapAdapter(GoogleMapAdapter::hybrid);
|
||||
l->setMapAdapter(mapadapter);
|
||||
sights->setMapAdapter(mapadapter);
|
||||
museum->setMapAdapter(mapadapter);
|
||||
pubs->setMapAdapter(mapadapter);
|
||||
notes->setMapAdapter(mapadapter);
|
||||
mc->updateRequestNew();
|
||||
mc->setZoom(zoom);
|
||||
}
|
||||
}
|
||||
|
||||
Citymap::~Citymap()
|
||||
{
|
||||
delete mc;
|
||||
delete mapadapter;
|
||||
delete notepixmap;
|
||||
delete sights;
|
||||
delete notes;
|
||||
delete pubs;
|
||||
delete museum;
|
||||
}
|
||||
|
112
libs/QMapControl/Samples/Citymap/src/citymap.h
Normal file
@ -0,0 +1,112 @@
|
||||
#ifndef CITYMAP_H
|
||||
#define CITYMAP_H
|
||||
|
||||
#include <mapcontrol.h>
|
||||
#include <osmmapadapter.h>
|
||||
#include <googlemapadapter.h>
|
||||
#include <maplayer.h>
|
||||
#include <geometrylayer.h>
|
||||
#include <linestring.h>
|
||||
#include <imagepoint.h>
|
||||
#include "dialogs.h"
|
||||
#include <QMainWindow>
|
||||
|
||||
class QLabel;
|
||||
|
||||
using namespace qmapcontrol;
|
||||
class Citymap: public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
Citymap(QWidget* parent = 0);
|
||||
|
||||
~Citymap();
|
||||
|
||||
private:
|
||||
MapControl* mc;
|
||||
MapAdapter* mapadapter;
|
||||
|
||||
QPixmap* notepixmap;
|
||||
|
||||
Layer* sights;
|
||||
Layer* museum;
|
||||
Layer* pubs;
|
||||
Layer* notes;
|
||||
|
||||
void addZoomButtons();
|
||||
|
||||
void createTours();
|
||||
void createActions();
|
||||
void createMenus();
|
||||
|
||||
QMenu* layerMenu;
|
||||
QMenu* tourMenu;
|
||||
QMenu* toolsMenu;
|
||||
QMenu* mapMenu;
|
||||
QMenu* zoomMenu;
|
||||
|
||||
QAction* toggleSights;
|
||||
QAction* togglePub;
|
||||
QAction* toggleMuseum;
|
||||
|
||||
QAction* togglePubTour;
|
||||
QAction* toggleMuseumTour;
|
||||
QAction* toggleSightTour;
|
||||
|
||||
QAction* addNoteAction;
|
||||
QAction* toolsDistance;
|
||||
QAction* toolsLocalDiskCache;
|
||||
|
||||
QAction* osmAction;
|
||||
QAction* googleActionMap;
|
||||
QAction* googleActionSatellite;
|
||||
QAction* googleActionTerrain;
|
||||
QAction* googleActionHybrid;
|
||||
|
||||
QList<QAction*> zoomActions;
|
||||
|
||||
QStatusBar* statusBar;
|
||||
|
||||
bool ignoreClicks;
|
||||
bool addingNote;
|
||||
|
||||
void addSights();
|
||||
void addPubs();
|
||||
void addMuseums();
|
||||
|
||||
QPointF coord1;
|
||||
QPointF coord2;
|
||||
|
||||
Layer* l;
|
||||
|
||||
LineString* pub_tour;
|
||||
LineString* museum_tour;
|
||||
LineString* sights_tour;
|
||||
|
||||
QTextEdit* notetextedit;
|
||||
Point* notepoint;
|
||||
int noteID;
|
||||
int currentnoteID;
|
||||
QHash<int, QString> notestext;
|
||||
QLabel* loadingProgress;
|
||||
QTimer* loadingProgressTimer;
|
||||
|
||||
public slots:
|
||||
void hideNote(const QMouseEvent* evnt, const QPointF coordinate);
|
||||
void geometryClicked(Geometry* geometry, QPoint point);
|
||||
void geometryClickEventKneipe(Geometry* geometry, QPoint point);
|
||||
void addNote();
|
||||
void writeNote(const QMouseEvent*, const QPointF);
|
||||
void calcDistance();
|
||||
void calcDistanceClick(const QMouseEvent*, const QPointF);
|
||||
void mapControlZoomChanged(const QPointF &coordinate, int zoom ) const;
|
||||
|
||||
void mapproviderSelected(QAction*);
|
||||
void mapZoomSelected(QAction*);
|
||||
void editNote(Geometry* geom, QPoint point);
|
||||
void resizeEvent(QResizeEvent *qEvent);
|
||||
void updateProgress();
|
||||
void cacheTiles(bool qEnabled);
|
||||
};
|
||||
|
||||
#endif
|
20
libs/QMapControl/Samples/Citymap/src/dialogs.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
#include "dialogs.h"
|
||||
#include <QHBoxLayout>
|
||||
|
||||
InfoDialog::InfoDialog(QWidget* parent)
|
||||
: QDialog(parent)
|
||||
{
|
||||
setWindowFlags(Qt::Dialog | Qt::WindowStaysOnTopHint);
|
||||
infotext = new QTextEdit();
|
||||
infotext->setReadOnly(true);
|
||||
|
||||
QHBoxLayout* layout = new QHBoxLayout();
|
||||
setLayout(layout);
|
||||
|
||||
layout->addWidget(infotext);
|
||||
}
|
||||
|
||||
void InfoDialog::setInfotext(QString text)
|
||||
{
|
||||
infotext->setHtml(text);
|
||||
}
|
21
libs/QMapControl/Samples/Citymap/src/dialogs.h
Normal file
@ -0,0 +1,21 @@
|
||||
#ifndef DIALOGS_H
|
||||
#define DIALOGS_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QTextEdit>
|
||||
|
||||
/**
|
||||
@author Kai Winter <kaiwinter@gmx.de>
|
||||
*/
|
||||
class InfoDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
InfoDialog(QWidget* parent=0);
|
||||
void setInfotext(QString text);
|
||||
|
||||
private:
|
||||
QTextEdit* infotext;
|
||||
};
|
||||
|
||||
#endif
|
14
libs/QMapControl/Samples/Citymap/src/main.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
#include <QApplication>
|
||||
#include "citymap.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
Citymap * mw = new Citymap();
|
||||
|
||||
mw->resize(400,590);
|
||||
mw->setWindowTitle("City Map Mainz");
|
||||
mw->show();
|
||||
return app.exec();
|
||||
}
|
||||
|
188
libs/QMapControl/Samples/GPS/GPS.kdevelop
Normal file
@ -0,0 +1,188 @@
|
||||
<?xml version = '1.0'?>
|
||||
<kdevelop>
|
||||
<general>
|
||||
<author>Kai Winter</author>
|
||||
<email>kaiwinter@gmx.de</email>
|
||||
<version>1</version>
|
||||
<projectmanagement>KDevTrollProject</projectmanagement>
|
||||
<primarylanguage>C++</primarylanguage>
|
||||
<keywords>
|
||||
<keyword>Qt</keyword>
|
||||
</keywords>
|
||||
<projectname>GPS</projectname>
|
||||
<ignoreparts/>
|
||||
<projectdirectory>.</projectdirectory>
|
||||
<absoluteprojectpath>false</absoluteprojectpath>
|
||||
<description/>
|
||||
<defaultencoding/>
|
||||
</general>
|
||||
<kdevfileview>
|
||||
<groups>
|
||||
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
|
||||
<group pattern="*.ui" name="User Interface" />
|
||||
<group pattern="*.png" name="Icons" />
|
||||
<group pattern="*" name="Others" />
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
<hidenonlocation>false</hidenonlocation>
|
||||
</groups>
|
||||
<tree>
|
||||
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
</tree>
|
||||
</kdevfileview>
|
||||
<kdevdoctreeview>
|
||||
<ignoretocs>
|
||||
<toc>bash</toc>
|
||||
<toc>bash_bugs</toc>
|
||||
<toc>clanlib</toc>
|
||||
<toc>w3c-dom-level2-html</toc>
|
||||
<toc>fortran_bugs_gcc</toc>
|
||||
<toc>gnome1</toc>
|
||||
<toc>gnustep</toc>
|
||||
<toc>gtk</toc>
|
||||
<toc>gtk_bugs</toc>
|
||||
<toc>haskell</toc>
|
||||
<toc>haskell_bugs_ghc</toc>
|
||||
<toc>java_bugs_gcc</toc>
|
||||
<toc>java_bugs_sun</toc>
|
||||
<toc>kde2book</toc>
|
||||
<toc>opengl</toc>
|
||||
<toc>pascal_bugs_fp</toc>
|
||||
<toc>php</toc>
|
||||
<toc>php_bugs</toc>
|
||||
<toc>perl</toc>
|
||||
<toc>perl_bugs</toc>
|
||||
<toc>python</toc>
|
||||
<toc>python_bugs</toc>
|
||||
<toc>qt-kdev3</toc>
|
||||
<toc>ruby</toc>
|
||||
<toc>ruby_bugs</toc>
|
||||
<toc>sdl</toc>
|
||||
<toc>stl</toc>
|
||||
<toc>w3c-svg</toc>
|
||||
<toc>sw</toc>
|
||||
<toc>w3c-uaag10</toc>
|
||||
<toc>wxwidgets_bugs</toc>
|
||||
</ignoretocs>
|
||||
<ignoredoxygen>
|
||||
<toc>KDE Libraries (Doxygen)</toc>
|
||||
</ignoredoxygen>
|
||||
</kdevdoctreeview>
|
||||
<kdevdebugger>
|
||||
<general>
|
||||
<dbgshell/>
|
||||
<gdbpath/>
|
||||
<configGdbScript/>
|
||||
<runShellScript/>
|
||||
<runGdbScript/>
|
||||
<breakonloadinglibs>true</breakonloadinglibs>
|
||||
<separatetty>false</separatetty>
|
||||
<floatingtoolbar>false</floatingtoolbar>
|
||||
<raiseGDBOnStart>false</raiseGDBOnStart>
|
||||
</general>
|
||||
<display>
|
||||
<staticmembers>false</staticmembers>
|
||||
<demanglenames>true</demanglenames>
|
||||
<outputradix>10</outputradix>
|
||||
</display>
|
||||
</kdevdebugger>
|
||||
<kdevcppsupport>
|
||||
<qt>
|
||||
<version>4</version>
|
||||
<used>true</used>
|
||||
<includestyle>4</includestyle>
|
||||
<designerintegration>ExternalDesigner</designerintegration>
|
||||
<root>/usr/lib/qt4</root>
|
||||
<qmake>/usr/lib/qt4/bin/qmake-qt4</qmake>
|
||||
<designer>/usr/lib/qt4/bin/designer-qt4</designer>
|
||||
<designerpluginpaths/>
|
||||
</qt>
|
||||
<codecompletion>
|
||||
<automaticCodeCompletion>false</automaticCodeCompletion>
|
||||
<automaticArgumentsHint>true</automaticArgumentsHint>
|
||||
<automaticHeaderCompletion>true</automaticHeaderCompletion>
|
||||
<codeCompletionDelay>250</codeCompletionDelay>
|
||||
<argumentsHintDelay>400</argumentsHintDelay>
|
||||
<headerCompletionDelay>250</headerCompletionDelay>
|
||||
<showOnlyAccessibleItems>false</showOnlyAccessibleItems>
|
||||
<completionBoxItemOrder>0</completionBoxItemOrder>
|
||||
<howEvaluationContextMenu>true</howEvaluationContextMenu>
|
||||
<showCommentWithArgumentHint>true</showCommentWithArgumentHint>
|
||||
<statusBarTypeEvaluation>false</statusBarTypeEvaluation>
|
||||
<namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases>
|
||||
<processPrimaryTypes>true</processPrimaryTypes>
|
||||
<processFunctionArguments>false</processFunctionArguments>
|
||||
<preProcessAllHeaders>false</preProcessAllHeaders>
|
||||
<parseMissingHeadersExperimental>false</parseMissingHeadersExperimental>
|
||||
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
|
||||
<alwaysParseInBackground>true</alwaysParseInBackground>
|
||||
<usePermanentCaching>true</usePermanentCaching>
|
||||
<alwaysIncludeNamespaces>false</alwaysIncludeNamespaces>
|
||||
<includePaths>.;</includePaths>
|
||||
</codecompletion>
|
||||
<creategettersetter>
|
||||
<prefixGet/>
|
||||
<prefixSet>set</prefixSet>
|
||||
<prefixVariable>m_,_</prefixVariable>
|
||||
<parameterName>theValue</parameterName>
|
||||
<inlineGet>true</inlineGet>
|
||||
<inlineSet>true</inlineSet>
|
||||
</creategettersetter>
|
||||
<splitheadersource>
|
||||
<enabled>false</enabled>
|
||||
<synchronize>true</synchronize>
|
||||
<orientation>Vertical</orientation>
|
||||
</splitheadersource>
|
||||
<references>
|
||||
<pcs>QMapControl</pcs>
|
||||
<pcs>Qt4</pcs>
|
||||
</references>
|
||||
</kdevcppsupport>
|
||||
<kdevfilecreate>
|
||||
<useglobaltypes>
|
||||
<type ext="ui" />
|
||||
<type ext="cpp" />
|
||||
<type ext="h" />
|
||||
<type ext="qrc" />
|
||||
</useglobaltypes>
|
||||
</kdevfilecreate>
|
||||
<kdevtrollproject>
|
||||
<general>
|
||||
<activedir></activedir>
|
||||
</general>
|
||||
<run>
|
||||
<directoryradio>executable</directoryradio>
|
||||
<mainprogram>./bin/GPS</mainprogram>
|
||||
<programargs/>
|
||||
<globaldebugarguments/>
|
||||
<globalcwd>./bin/</globalcwd>
|
||||
<useglobalprogram>false</useglobalprogram>
|
||||
<terminal>false</terminal>
|
||||
<autocompile>false</autocompile>
|
||||
<autoinstall>false</autoinstall>
|
||||
<autokdesu>false</autokdesu>
|
||||
<envvars/>
|
||||
</run>
|
||||
<make>
|
||||
<abortonerror>true</abortonerror>
|
||||
<runmultiplejobs>false</runmultiplejobs>
|
||||
<numberofjobs>1</numberofjobs>
|
||||
<dontact>false</dontact>
|
||||
<makebin/>
|
||||
<prio>0</prio>
|
||||
<envvars/>
|
||||
</make>
|
||||
<qmake>
|
||||
<savebehaviour>2</savebehaviour>
|
||||
<replacePaths>false</replacePaths>
|
||||
<disableDefaultOpts>true</disableDefaultOpts>
|
||||
<enableFilenamesOnly>false</enableFilenamesOnly>
|
||||
</qmake>
|
||||
</kdevtrollproject>
|
||||
<cppsupportpart>
|
||||
<filetemplates>
|
||||
<interfacesuffix>.h</interfacesuffix>
|
||||
<implementationsuffix>.cpp</implementationsuffix>
|
||||
</filetemplates>
|
||||
</cppsupportpart>
|
||||
</kdevelop>
|
20
libs/QMapControl/Samples/GPS/GPS.pro
Normal file
@ -0,0 +1,20 @@
|
||||
include(../../QMapControl.pri)
|
||||
DEPENDPATH += src
|
||||
MOC_DIR = tmp
|
||||
OBJECTS_DIR = obj
|
||||
DESTDIR = ../bin
|
||||
TARGET = GPS
|
||||
|
||||
QT+=network
|
||||
QT+=gui
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
greaterThan(QT_MAJOR_VERSION, 4): cache()
|
||||
|
||||
# Input
|
||||
SOURCES += src/gps.cpp \
|
||||
src/main.cpp \
|
||||
src/gps_neo.cpp \
|
||||
src/gps_simulation.cpp
|
||||
HEADERS += src/gps.h \
|
||||
src/gps_neo.h \
|
||||
src/gps_simulation.h
|
12
libs/QMapControl/Samples/GPS/Readme
Normal file
@ -0,0 +1,12 @@
|
||||
/*!
|
||||
* \example gps.cpp
|
||||
* This sample application uses GPS data from the gllin service, which you have to start manually before using this application.
|
||||
* The file /tmp/nmeaNP is read in for the posiitons.
|
||||
*
|
||||
* The application receives positions from the GPS_Neo class and writes it into a label.
|
||||
* You can toggle a button to set the view to the received coordinate.
|
||||
*
|
||||
* You can find this example here: MapAPI/Samples/GPS
|
||||
* \image html sample_gps.png "screenshot"
|
||||
* @see http://3rdparty.downloads.openmoko.org
|
||||
*/
|
125
libs/QMapControl/Samples/GPS/src/gps.cpp
Normal file
@ -0,0 +1,125 @@
|
||||
#include "gps.h"
|
||||
|
||||
/*!
|
||||
* \example gps.cpp
|
||||
* This sample application uses GPS data from the gllin service, which you have to start manually before using this application.
|
||||
* The file /tmp/nmeaNP is read in for the posiitons.
|
||||
*
|
||||
* The application receives positions from the GPS_Neo class and writes it into a label.
|
||||
* You can toggle a button to set the view to the received coordinate.
|
||||
*
|
||||
* You can find this example here: MapAPI/Samples/GPS
|
||||
* \image html sample_gps.png "screenshot"
|
||||
* @see http://3rdparty.downloads.openmoko.org
|
||||
*/
|
||||
|
||||
#include <QPushButton>
|
||||
#include <QHBoxLayout>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
GPS::GPS()
|
||||
{
|
||||
// create MapControl
|
||||
mc = new MapControl(QSize(480,640));
|
||||
// ImageManager::instance()->setProxy("www-cache", 8080);
|
||||
|
||||
// create MapAdapter to get maps from
|
||||
TileMapAdapter* mapadapter = new TileMapAdapter("tile.openstreetmap.org", "/%1/%2/%3.png", 256, 0, 17);
|
||||
|
||||
// create a layer with the mapadapter and type MapLayer
|
||||
Layer* l = new Layer("Custom Layer", mapadapter, Layer::MapLayer);
|
||||
|
||||
//current GPS Location
|
||||
gpsDot = new CirclePoint(0,0, "GPS", CirclePoint::Middle, new QPen( Qt::darkBlue ));
|
||||
l->addGeometry( gpsDot );
|
||||
|
||||
// add Layer to the MapControl
|
||||
mc->addLayer(l);
|
||||
|
||||
// display the MapControl in the application
|
||||
QHBoxLayout* layout = new QHBoxLayout;
|
||||
layout->addWidget(mc);
|
||||
setLayout(layout);
|
||||
|
||||
// create buttons as controls for zoom
|
||||
QPushButton* zoomin = new QPushButton("+");
|
||||
QPushButton* zoomout = new QPushButton("-");
|
||||
|
||||
followgps = new QPushButton("Follow");
|
||||
followgps->setCheckable(true);
|
||||
simulategps = new QPushButton("Simulate");
|
||||
simulategps->setCheckable(true);
|
||||
gpsposition = new QLabel();
|
||||
zoomin->setMaximumWidth(50);
|
||||
zoomout->setMaximumWidth(50);
|
||||
followgps->setMaximumWidth(50);
|
||||
simulategps->setMaximumWidth(50);
|
||||
gpsposition->setFont(QFont("Arial", 10));
|
||||
|
||||
connect(zoomin, SIGNAL(clicked(bool)),
|
||||
mc, SLOT(zoomIn()));
|
||||
connect(zoomout, SIGNAL(clicked(bool)),
|
||||
mc, SLOT(zoomOut()));
|
||||
|
||||
connect(simulategps, SIGNAL(clicked(bool)),
|
||||
this, SLOT(simulategps_checked()));
|
||||
|
||||
// add zoom buttons to the layout of the MapControl
|
||||
QVBoxLayout* innerlayout = new QVBoxLayout;
|
||||
innerlayout->addWidget(zoomin);
|
||||
innerlayout->addWidget(zoomout);
|
||||
innerlayout->addWidget(followgps);
|
||||
innerlayout->addWidget(simulategps);
|
||||
innerlayout->addWidget(gpsposition);
|
||||
mc->setLayout(innerlayout);
|
||||
|
||||
GPS_Neo* gm = new GPS_Neo();
|
||||
connect(gm, SIGNAL(new_position(float, QPointF)),
|
||||
this, SLOT(updatePosition(float, QPointF)));
|
||||
|
||||
gpsSim = new GPS_Simulation(this);
|
||||
connect(gpsSim, SIGNAL(newPosition(float,QPointF)),
|
||||
this, SLOT(updatePosition(float, QPointF)));
|
||||
|
||||
mc->setView(QPointF(0, 0));
|
||||
|
||||
gm->start();
|
||||
}
|
||||
|
||||
GPS::~GPS()
|
||||
{
|
||||
}
|
||||
|
||||
void GPS::updatePosition(float time, QPointF coordinate)
|
||||
{
|
||||
gpsposition->setText(QString::number(time) + " / " + QString::number(coordinate.x()) + " / " + QString::number(coordinate.y()));
|
||||
if (followgps->isChecked())
|
||||
{
|
||||
mc->setView(coordinate);
|
||||
}
|
||||
|
||||
//update the gps dot location on map
|
||||
gpsDot->setCoordinate(coordinate);
|
||||
}
|
||||
|
||||
void GPS::resizeEvent(QResizeEvent *qEvent)
|
||||
{
|
||||
Q_UNUSED( qEvent );
|
||||
if (mc)
|
||||
{
|
||||
mc->resize(size());
|
||||
}
|
||||
}
|
||||
|
||||
void GPS::simulategps_checked()
|
||||
{
|
||||
if ( simulategps->isChecked() )
|
||||
{
|
||||
gpsSim->start();
|
||||
}
|
||||
else
|
||||
{
|
||||
gpsSim->stop();
|
||||
}
|
||||
}
|
||||
|
33
libs/QMapControl/Samples/GPS/src/gps.h
Normal file
@ -0,0 +1,33 @@
|
||||
#ifndef GPS_H
|
||||
#define GPS_H
|
||||
|
||||
#include <QPushButton>
|
||||
#include <QLabel>
|
||||
#include <mapcontrol.h>
|
||||
#include "gps_neo.h"
|
||||
#include "gps_simulation.h"
|
||||
#include "circlepoint.h"
|
||||
|
||||
using namespace qmapcontrol;
|
||||
class GPS: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
GPS();
|
||||
~GPS();
|
||||
|
||||
private:
|
||||
QPushButton* followgps;
|
||||
QPushButton* simulategps;
|
||||
QLabel* gpsposition;
|
||||
MapControl* mc;
|
||||
GPS_Simulation* gpsSim;
|
||||
CirclePoint* gpsDot;
|
||||
|
||||
public slots:
|
||||
void updatePosition(float time, QPointF coordinate);
|
||||
void resizeEvent(QResizeEvent *qEvent);
|
||||
void simulategps_checked();
|
||||
};
|
||||
|
||||
#endif
|
70
libs/QMapControl/Samples/GPS/src/gps_neo.cpp
Normal file
@ -0,0 +1,70 @@
|
||||
#include "gps_neo.h"
|
||||
|
||||
GPS_Neo::GPS_Neo(QObject *parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
running = false;
|
||||
}
|
||||
|
||||
|
||||
GPS_Neo::~GPS_Neo()
|
||||
{
|
||||
}
|
||||
|
||||
void GPS_Neo::start()
|
||||
{
|
||||
if (!running)
|
||||
{
|
||||
running = true;
|
||||
QTimer::singleShot(1000, this, SLOT(tick()));
|
||||
}
|
||||
}
|
||||
void GPS_Neo::stop()
|
||||
{
|
||||
running = false;
|
||||
}
|
||||
|
||||
void GPS_Neo::tick()
|
||||
{
|
||||
QFile file("/tmp/nmeaNP");
|
||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
|
||||
{
|
||||
// qDebug() << file.error();
|
||||
return;
|
||||
}
|
||||
|
||||
QByteArray line;
|
||||
while (!file.atEnd())
|
||||
{
|
||||
line = file.readLine();
|
||||
if (line.contains("GPRMC"))
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
file.close();
|
||||
|
||||
GPS_Position pos = process_line(line);
|
||||
|
||||
emit(new_position(pos.time, QPointF(pos.longitude, pos.latitude)));
|
||||
|
||||
if (running)
|
||||
{
|
||||
QTimer::singleShot(1000, this, SLOT(tick()));
|
||||
}
|
||||
}
|
||||
|
||||
GPS_Position GPS_Neo::process_line(QByteArray line)
|
||||
{
|
||||
line.chop(1);
|
||||
|
||||
QList<QByteArray> elems = line.split(',');
|
||||
|
||||
float time = QString(elems.at(1)).toFloat();
|
||||
float latitude = elems.at(3).toFloat()/100;
|
||||
QString latitude_dir = elems.at(4);
|
||||
float longitude = elems.at(5).toFloat()/100;
|
||||
QString longitude_dir = elems.at(6);
|
||||
|
||||
return GPS_Position(time, longitude, longitude_dir, latitude, latitude_dir);
|
||||
}
|
36
libs/QMapControl/Samples/GPS/src/gps_neo.h
Normal file
@ -0,0 +1,36 @@
|
||||
#ifndef GPS_NEO_H
|
||||
#define GPS_NEO_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QtGui>
|
||||
#include <gps_position.h>
|
||||
//! A parser for the NMEA data format
|
||||
/*!
|
||||
* This class parses gps data from the Neo´s gllin service, which you have to start manually
|
||||
* It reads the device file every seconds and emits a signal which contains a GPS_Position.
|
||||
* @see http://3rdparty.downloads.openmoko.org
|
||||
* @author Kai Winter <kaiwinter@gmx.de>
|
||||
*/
|
||||
using namespace qmapcontrol;
|
||||
class GPS_Neo: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
GPS_Neo(QObject *parent = 0);
|
||||
~GPS_Neo();
|
||||
void start();
|
||||
void stop();
|
||||
|
||||
private:
|
||||
QList<GPS_Position> positions;
|
||||
GPS_Position process_line(QByteArray line);
|
||||
bool running;
|
||||
|
||||
signals:
|
||||
void new_position(float, QPointF);
|
||||
|
||||
public slots:
|
||||
void tick();
|
||||
};
|
||||
|
||||
#endif
|
41
libs/QMapControl/Samples/GPS/src/gps_simulation.cpp
Normal file
@ -0,0 +1,41 @@
|
||||
#include "gps_simulation.h"
|
||||
#include <QDateTime>
|
||||
#include <QtGlobal>
|
||||
#include <QPointF>
|
||||
|
||||
GPS_Simulation::GPS_Simulation(QObject *parent) :
|
||||
QObject(parent),
|
||||
timer(new QTimer(this)),
|
||||
mLat(40.748817f), //new york lat
|
||||
mLong(-73.985428f) //new york lat
|
||||
{
|
||||
bool connected = connect( timer, SIGNAL(timeout()), this, SLOT(tick()), Qt::QueuedConnection );
|
||||
Q_ASSERT( connected );
|
||||
}
|
||||
|
||||
GPS_Simulation::~GPS_Simulation()
|
||||
{
|
||||
}
|
||||
|
||||
void GPS_Simulation::start()
|
||||
{
|
||||
timer->start(1000); //1 sec updates
|
||||
}
|
||||
|
||||
void GPS_Simulation::stop()
|
||||
{
|
||||
timer->stop();
|
||||
}
|
||||
|
||||
void GPS_Simulation::tick()
|
||||
{
|
||||
static float faketime = qrand() % 5000;
|
||||
|
||||
float lTempLat = qrand() % 2 - 1; //gives a number between -1 and 1
|
||||
float lTempLong = qrand() % 2 - 1; //gives a number between -1 and 1
|
||||
|
||||
mLat = qBound(float(-90), (mLat + (lTempLat/10)), float(90));
|
||||
mLong = qBound(float(-180), (mLat + (lTempLong/10)), float(180));
|
||||
|
||||
emit newPosition( ++faketime, QPointF(mLong, mLat) );
|
||||
}
|
30
libs/QMapControl/Samples/GPS/src/gps_simulation.h
Normal file
@ -0,0 +1,30 @@
|
||||
#ifndef GPS_SIMULATION_H
|
||||
#define GPS_SIMULATION_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QTimer>
|
||||
#include <QPointF>
|
||||
|
||||
class GPS_Simulation : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit GPS_Simulation(QObject *parent = 0);
|
||||
~GPS_Simulation();
|
||||
|
||||
void start();
|
||||
void stop();
|
||||
|
||||
signals:
|
||||
void newPosition(float time, QPointF coordinate);
|
||||
|
||||
public slots:
|
||||
void tick();
|
||||
|
||||
private:
|
||||
QTimer* timer;
|
||||
float mLat;
|
||||
float mLong;
|
||||
};
|
||||
|
||||
#endif // GPS_SIMULATION_H
|
13
libs/QMapControl/Samples/GPS/src/main.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
#include <QApplication>
|
||||
#include "gps.h"
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
|
||||
GPS ta;
|
||||
ta.resize(480, 640);
|
||||
|
||||
ta.setWindowTitle("GPS Demo");
|
||||
ta.show();
|
||||
return app.exec();
|
||||
}
|
195
libs/QMapControl/Samples/LinesAndPoints/LinesAndPoints.kdevelop
Normal file
@ -0,0 +1,195 @@
|
||||
<?xml version = '1.0'?>
|
||||
<kdevelop>
|
||||
<general>
|
||||
<author>Kai Winter</author>
|
||||
<email>kaiwinter@gmx.de</email>
|
||||
<version>1</version>
|
||||
<projectmanagement>KDevTrollProject</projectmanagement>
|
||||
<primarylanguage>C++</primarylanguage>
|
||||
<keywords>
|
||||
<keyword>Qt</keyword>
|
||||
</keywords>
|
||||
<projectname>LinesAndPoints</projectname>
|
||||
<ignoreparts/>
|
||||
<projectdirectory>.</projectdirectory>
|
||||
<absoluteprojectpath>false</absoluteprojectpath>
|
||||
<description/>
|
||||
<defaultencoding/>
|
||||
<versioncontrol/>
|
||||
</general>
|
||||
<kdevfileview>
|
||||
<groups>
|
||||
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
|
||||
<group pattern="*.ui" name="User Interface" />
|
||||
<group pattern="*.png" name="Icons" />
|
||||
<group pattern="*" name="Others" />
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
<hidenonlocation>false</hidenonlocation>
|
||||
</groups>
|
||||
<tree>
|
||||
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
</tree>
|
||||
</kdevfileview>
|
||||
<kdevdoctreeview>
|
||||
<ignoretocs>
|
||||
<toc>bash</toc>
|
||||
<toc>bash_bugs</toc>
|
||||
<toc>clanlib</toc>
|
||||
<toc>w3c-dom-level2-html</toc>
|
||||
<toc>fortran_bugs_gcc</toc>
|
||||
<toc>gnome1</toc>
|
||||
<toc>gnustep</toc>
|
||||
<toc>gtk</toc>
|
||||
<toc>gtk_bugs</toc>
|
||||
<toc>haskell</toc>
|
||||
<toc>haskell_bugs_ghc</toc>
|
||||
<toc>java_bugs_gcc</toc>
|
||||
<toc>java_bugs_sun</toc>
|
||||
<toc>kde2book</toc>
|
||||
<toc>opengl</toc>
|
||||
<toc>pascal_bugs_fp</toc>
|
||||
<toc>php</toc>
|
||||
<toc>php_bugs</toc>
|
||||
<toc>perl</toc>
|
||||
<toc>perl_bugs</toc>
|
||||
<toc>python</toc>
|
||||
<toc>python_bugs</toc>
|
||||
<toc>qt-kdev3</toc>
|
||||
<toc>ruby</toc>
|
||||
<toc>ruby_bugs</toc>
|
||||
<toc>sdl</toc>
|
||||
<toc>stl</toc>
|
||||
<toc>w3c-svg</toc>
|
||||
<toc>sw</toc>
|
||||
<toc>w3c-uaag10</toc>
|
||||
<toc>wxwidgets_bugs</toc>
|
||||
</ignoretocs>
|
||||
<ignoredoxygen>
|
||||
<toc>KDE Libraries (Doxygen)</toc>
|
||||
</ignoredoxygen>
|
||||
</kdevdoctreeview>
|
||||
<kdevdebugger>
|
||||
<general>
|
||||
<dbgshell/>
|
||||
<gdbpath/>
|
||||
<configGdbScript/>
|
||||
<runShellScript/>
|
||||
<runGdbScript/>
|
||||
<breakonloadinglibs>true</breakonloadinglibs>
|
||||
<separatetty>false</separatetty>
|
||||
<floatingtoolbar>false</floatingtoolbar>
|
||||
<raiseGDBOnStart>false</raiseGDBOnStart>
|
||||
</general>
|
||||
<display>
|
||||
<staticmembers>false</staticmembers>
|
||||
<demanglenames>true</demanglenames>
|
||||
<outputradix>10</outputradix>
|
||||
</display>
|
||||
</kdevdebugger>
|
||||
<kdevcppsupport>
|
||||
<qt>
|
||||
<version>4</version>
|
||||
<used>true</used>
|
||||
<includestyle>4</includestyle>
|
||||
<designerintegration>ExternalDesigner</designerintegration>
|
||||
<root>/usr/lib/qt4</root>
|
||||
<qmake>/usr/lib/qt4/bin/qmake-qt4</qmake>
|
||||
<designer>/usr/lib/qt4/bin/designer-qt4</designer>
|
||||
<designerpluginpaths/>
|
||||
</qt>
|
||||
<codecompletion>
|
||||
<automaticCodeCompletion>false</automaticCodeCompletion>
|
||||
<automaticArgumentsHint>true</automaticArgumentsHint>
|
||||
<automaticHeaderCompletion>true</automaticHeaderCompletion>
|
||||
<codeCompletionDelay>250</codeCompletionDelay>
|
||||
<argumentsHintDelay>400</argumentsHintDelay>
|
||||
<headerCompletionDelay>250</headerCompletionDelay>
|
||||
<showOnlyAccessibleItems>false</showOnlyAccessibleItems>
|
||||
<completionBoxItemOrder>0</completionBoxItemOrder>
|
||||
<howEvaluationContextMenu>true</howEvaluationContextMenu>
|
||||
<showCommentWithArgumentHint>true</showCommentWithArgumentHint>
|
||||
<statusBarTypeEvaluation>false</statusBarTypeEvaluation>
|
||||
<namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases>
|
||||
<processPrimaryTypes>true</processPrimaryTypes>
|
||||
<processFunctionArguments>false</processFunctionArguments>
|
||||
<preProcessAllHeaders>true</preProcessAllHeaders>
|
||||
<parseMissingHeadersExperimental>false</parseMissingHeadersExperimental>
|
||||
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
|
||||
<alwaysParseInBackground>true</alwaysParseInBackground>
|
||||
<usePermanentCaching>true</usePermanentCaching>
|
||||
<alwaysIncludeNamespaces>false</alwaysIncludeNamespaces>
|
||||
<includePaths>.;</includePaths>
|
||||
</codecompletion>
|
||||
<creategettersetter>
|
||||
<prefixGet/>
|
||||
<prefixSet>set</prefixSet>
|
||||
<prefixVariable>m_,_</prefixVariable>
|
||||
<parameterName>theValue</parameterName>
|
||||
<inlineGet>true</inlineGet>
|
||||
<inlineSet>true</inlineSet>
|
||||
</creategettersetter>
|
||||
<splitheadersource>
|
||||
<enabled>false</enabled>
|
||||
<synchronize>true</synchronize>
|
||||
<orientation>Vertical</orientation>
|
||||
</splitheadersource>
|
||||
<references>
|
||||
<pcs>Qt4</pcs>
|
||||
</references>
|
||||
</kdevcppsupport>
|
||||
<kdevfilecreate>
|
||||
<useglobaltypes>
|
||||
<type ext="ui" />
|
||||
<type ext="cpp" />
|
||||
<type ext="h" />
|
||||
<type ext="qrc" />
|
||||
</useglobaltypes>
|
||||
</kdevfilecreate>
|
||||
<kdevtrollproject>
|
||||
<general>
|
||||
<activedir></activedir>
|
||||
</general>
|
||||
<run>
|
||||
<directoryradio>executable</directoryradio>
|
||||
<mainprogram>./bin/Linesandpoints</mainprogram>
|
||||
<programargs/>
|
||||
<globaldebugarguments/>
|
||||
<globalcwd>./bin/</globalcwd>
|
||||
<useglobalprogram>true</useglobalprogram>
|
||||
<terminal>false</terminal>
|
||||
<autocompile>false</autocompile>
|
||||
<autoinstall>false</autoinstall>
|
||||
<autokdesu>false</autokdesu>
|
||||
<envvars/>
|
||||
</run>
|
||||
<make>
|
||||
<abortonerror>true</abortonerror>
|
||||
<runmultiplejobs>false</runmultiplejobs>
|
||||
<numberofjobs>1</numberofjobs>
|
||||
<dontact>false</dontact>
|
||||
<makebin/>
|
||||
<prio>0</prio>
|
||||
<envvars/>
|
||||
</make>
|
||||
<qmake>
|
||||
<savebehaviour>2</savebehaviour>
|
||||
<replacePaths>false</replacePaths>
|
||||
<disableDefaultOpts>true</disableDefaultOpts>
|
||||
<enableFilenamesOnly>false</enableFilenamesOnly>
|
||||
</qmake>
|
||||
</kdevtrollproject>
|
||||
<cppsupportpart>
|
||||
<filetemplates>
|
||||
<interfacesuffix>.h</interfacesuffix>
|
||||
<implementationsuffix>.cpp</implementationsuffix>
|
||||
</filetemplates>
|
||||
</cppsupportpart>
|
||||
<kdevdocumentation>
|
||||
<projectdoc>
|
||||
<docsystem/>
|
||||
<docurl/>
|
||||
<usermanualurl/>
|
||||
</projectdoc>
|
||||
</kdevdocumentation>
|
||||
</kdevelop>
|
100
libs/QMapControl/Samples/LinesAndPoints/LinesAndPoints.kdevses
Normal file
@ -0,0 +1,100 @@
|
||||
<?xml version = '1.0' encoding = 'UTF-8'?>
|
||||
<!DOCTYPE KDevPrjSession>
|
||||
<KDevPrjSession>
|
||||
<DocsAndViews NumberOfDocuments="25" >
|
||||
<Doc0 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/Samples/LinesAndPoints/src/main.cpp" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc0>
|
||||
<Doc1 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/Samples/LinesAndPoints/src/linesandpoints.h" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc1>
|
||||
<Doc2 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/Samples/LinesAndPoints/src/linesandpoints.cpp" >
|
||||
<View0 Encoding="" line="49" Type="Source" />
|
||||
</Doc2>
|
||||
<Doc3 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/mapcontrol.h" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc3>
|
||||
<Doc4 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/layermanager.cpp" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc4>
|
||||
<Doc5 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/layermanager.h" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc5>
|
||||
<Doc6 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/linestring.cpp" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc6>
|
||||
<Doc7 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/linestring.h" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc7>
|
||||
<Doc8 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/point.cpp" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc8>
|
||||
<Doc9 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/point.h" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc9>
|
||||
<Doc10 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/curve.h" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc10>
|
||||
<Doc11 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/imagepoint.h" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc11>
|
||||
<Doc12 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/circlepoint.h" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc12>
|
||||
<Doc13 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/mapnetwork.cpp" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc13>
|
||||
<Doc14 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/mapnetwork.h" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc14>
|
||||
<Doc15 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/layer.cpp" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc15>
|
||||
<Doc16 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/tilemapadapter.cpp" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc16>
|
||||
<Doc17 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/mapadapter.cpp" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc17>
|
||||
<Doc18 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/wmsmapadapter.cpp" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc18>
|
||||
<Doc19 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/mapadapter.h" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc19>
|
||||
<Doc20 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/mapcontrol.cpp" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc20>
|
||||
<Doc21 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/layer.h" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc21>
|
||||
<Doc22 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/imagemanager.cpp" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc22>
|
||||
<Doc23 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/yahoomapadapter.cpp" >
|
||||
<View0 Encoding="" Type="Source" />
|
||||
</Doc23>
|
||||
<Doc24 NumberOfViews="1" URL="file:///home/kai/kwint001/trunk/code/MapAPI/src/yahoomapadapter.h" >
|
||||
<View0 Encoding="" line="10" Type="Source" />
|
||||
</Doc24>
|
||||
</DocsAndViews>
|
||||
<pluginList>
|
||||
<kdevdebugger>
|
||||
<breakpointList/>
|
||||
<showInternalCommands value="0" />
|
||||
</kdevdebugger>
|
||||
<kdevastyle>
|
||||
<Extensions ext="*.cpp *.h,*.c *.h,*.cxx *.hxx,*.c++ *.h++,*.cc *.hh,*.C *.H,*.diff,*.inl,*.java,*.moc,*.patch,*.tlh,*.xpm" />
|
||||
<AStyle IndentPreprocessors="0" FillCount="4" PadParenthesesOut="1" IndentNamespaces="1" IndentLabels="1" Fill="Tabs" MaxStatement="40" Brackets="Break" MinConditional="-1" IndentBrackets="0" PadParenthesesUn="1" BlockBreak="0" KeepStatements="1" KeepBlocks="1" BlockIfElse="0" IndentSwitches="1" PadOperators="0" FStyle="UserDefined" IndentCases="0" FillEmptyLines="0" BracketsCloseHeaders="0" BlockBreakAll="0" PadParenthesesIn="1" IndentClasses="1" IndentBlocks="0" FillForce="0" />
|
||||
</kdevastyle>
|
||||
<kdevbookmarks>
|
||||
<bookmarks/>
|
||||
</kdevbookmarks>
|
||||
<kdevvalgrind>
|
||||
<executable path="" params="" />
|
||||
<valgrind path="" params="" />
|
||||
<calltree path="" params="" />
|
||||
<kcachegrind path="" />
|
||||
</kdevvalgrind>
|
||||
</pluginList>
|
||||
</KDevPrjSession>
|
15
libs/QMapControl/Samples/LinesAndPoints/LinesAndPoints.pro
Normal file
@ -0,0 +1,15 @@
|
||||
include(../../QMapControl.pri)
|
||||
QT+=network
|
||||
QT+=gui
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
greaterThan(QT_MAJOR_VERSION, 4): cache()
|
||||
DEPENDPATH += src
|
||||
MOC_DIR = tmp
|
||||
OBJECTS_DIR = obj
|
||||
DESTDIR = ../bin
|
||||
TARGET = Linesandpoints
|
||||
|
||||
# Input
|
||||
HEADERS += src/linesandpoints.h
|
||||
SOURCES += src/linesandpoints.cpp src/main.cpp
|
||||
|
16
libs/QMapControl/Samples/LinesAndPoints/Readme
Normal file
@ -0,0 +1,16 @@
|
||||
/*!
|
||||
* \example linesandpoints.cpp
|
||||
* This application demonstrates how to use Geometry objects and how to add them to a layer.
|
||||
*
|
||||
* Here are used three different point types:
|
||||
* - One which displays a image
|
||||
* - One which draws a plain circle
|
||||
* - One which uses a QPen to draw a circle
|
||||
* - One which has no markers
|
||||
* Then these Points were added to a LineString
|
||||
*
|
||||
* Also there is a keylistener.
|
||||
*
|
||||
* You can find this example here: MapAPI/Samples/LinesAndPoints
|
||||
* \image html sample_linesandpoints.png "screenshot"
|
||||
*/
|
176
libs/QMapControl/Samples/LinesAndPoints/src/linesandpoints.cpp
Normal file
@ -0,0 +1,176 @@
|
||||
#include "linesandpoints.h"
|
||||
/*!
|
||||
* \example linesandpoints.cpp
|
||||
* This application demonstrates how to use Geometry objects and how to add them to a layer.
|
||||
*
|
||||
* Here are used three different point types:
|
||||
* - One which displays a image
|
||||
* - One which draws a plain circle
|
||||
* - One which uses a QPen to draw a circle
|
||||
* - One which has no markers
|
||||
* Then these Points were added to a LineString
|
||||
*
|
||||
* Also there is a keylistener.
|
||||
*
|
||||
* You can find this example here: MapAPI/Samples/LinesAndPoints
|
||||
* \image html sample_linesandpoints.png "screenshot"
|
||||
*/
|
||||
|
||||
#include <QPushButton>
|
||||
#include <QHBoxLayout>
|
||||
#include <QVBoxLayout>
|
||||
#include <QMessageBox>
|
||||
|
||||
LinesAndPoints::LinesAndPoints(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
{
|
||||
// the size which the QMapControl should fill
|
||||
QSize size = QSize(480,640);
|
||||
|
||||
mc = new MapControl(size);
|
||||
// create layout
|
||||
QHBoxLayout* layout = new QHBoxLayout;
|
||||
layout->addWidget(mc);
|
||||
setLayout(layout);
|
||||
|
||||
// create layer
|
||||
MapAdapter* mapadapter = new OSMMapAdapter();
|
||||
Layer* l = new MapLayer("Custom Layer", mapadapter);
|
||||
|
||||
mc->addLayer(l);
|
||||
|
||||
// create a LineString
|
||||
QList<Point*> points;
|
||||
// Points with image
|
||||
points.append(new ImagePoint(8.259959, 50.001781, "images/bus_stop.png", "Mainz, Hauptbahnhof", Point::BottomLeft));
|
||||
points.append(new ImagePoint(8.263758, 49.998917, "images/bus_stop.png", "Mainz, Münsterplatz", Point::BottomLeft));
|
||||
points.append(new ImagePoint(8.265812, 50.001952, "images/bus_stop.png","Mainz, Neubrunnenplatz", Point::BottomLeft));
|
||||
// Points with a circle
|
||||
points.append(new CirclePoint(8.2688, 50.004015, "Mainz, Bauhofstraße LRP", Point::Middle));
|
||||
points.append(new CirclePoint(8.272845, 50.00495, "Mainz, Landtag", Point::Middle));
|
||||
points.append(new CirclePoint(8.280349, 50.008173, "Mainz, Brückenkopf", Point::Middle));
|
||||
// A QPen can be used to customize the
|
||||
QPen* pointpen = new QPen(QColor(0,255,0));
|
||||
pointpen->setWidth(3);
|
||||
points.append(new CirclePoint(8.273573, 50.016315, 15, "Wiesbaden-Mainz-Kastel, Eleonorenstraße", Point::Middle, pointpen));
|
||||
points.append(new CirclePoint(8.275145, 50.016992, 15, "Wiesbaden-Mainz-Kastel, Johannes-Goßner-Straße", Point::Middle, pointpen));
|
||||
points.append(new CirclePoint(8.270476, 50.021426, 15, "Wiesbaden-Mainz-Kastel, Ruthof", Point::Middle, pointpen));
|
||||
// "Blind" Points
|
||||
points.append(new Point(8.266445, 50.025913, "Wiesbaden-Mainz-Kastel, Mudra Kaserne"));
|
||||
points.append(new Point(8.260378, 50.030345, "Wiesbaden-Mainz-Amoneburg, Dyckerhoffstraße"));
|
||||
|
||||
// A QPen also can use transparency
|
||||
QPen* linepen = new QPen(QColor(0, 0, 255, 100));
|
||||
linepen->setWidth(5);
|
||||
// Add the Points and the QPen to a LineString
|
||||
LineString* ls = new LineString(points, "Busline 54", linepen);
|
||||
|
||||
// Add the LineString to the layer
|
||||
l->addGeometry(ls);
|
||||
|
||||
// Connect click events of the layer to this object
|
||||
connect(l, SIGNAL(geometryClicked(Geometry*, QPoint)),
|
||||
this, SLOT(geometryClicked(Geometry*, QPoint)));
|
||||
|
||||
// Sets the view to the interesting area
|
||||
mc->setView(QPointF(8.259959, 50.001781));
|
||||
mc->setZoom(11);
|
||||
|
||||
addZoomButtons();
|
||||
}
|
||||
|
||||
void LinesAndPoints::addZoomButtons()
|
||||
{
|
||||
// create buttons as controls for zoom
|
||||
QPushButton* zoomin = new QPushButton("+");
|
||||
QPushButton* zoomout = new QPushButton("-");
|
||||
zoomin->setMaximumWidth(50);
|
||||
zoomout->setMaximumWidth(50);
|
||||
|
||||
connect(zoomin, SIGNAL(clicked(bool)),
|
||||
mc, SLOT(zoomIn()));
|
||||
connect(zoomout, SIGNAL(clicked(bool)),
|
||||
mc, SLOT(zoomOut()));
|
||||
|
||||
// add zoom buttons to the layout of the MapControl
|
||||
QVBoxLayout* innerlayout = new QVBoxLayout;
|
||||
innerlayout->addWidget(zoomin);
|
||||
innerlayout->addWidget(zoomout);
|
||||
mc->setLayout(innerlayout);
|
||||
}
|
||||
|
||||
void LinesAndPoints::geometryClicked(Geometry* geom, QPoint)
|
||||
{
|
||||
qDebug() << "parent: " << geom->parentGeometry();
|
||||
qDebug() << "Element clicked: " << geom->name();
|
||||
if (geom->hasClickedPoints())
|
||||
{
|
||||
QList<Geometry*> pp = geom->clickedPoints();
|
||||
qDebug() << "number of child elements: " << pp.size();
|
||||
for (int i=0; i<pp.size(); ++i)
|
||||
{
|
||||
QMessageBox::information(this, geom->name(), pp.at(i)->name());
|
||||
}
|
||||
}
|
||||
else if (geom->GeometryType == "Point")
|
||||
{
|
||||
QMessageBox::information(this, geom->name(), "just a point");
|
||||
}
|
||||
}
|
||||
|
||||
LinesAndPoints::~LinesAndPoints()
|
||||
{
|
||||
}
|
||||
|
||||
void LinesAndPoints::resizeEvent(QResizeEvent *qEvent)
|
||||
{
|
||||
Q_UNUSED( qEvent );
|
||||
if (mc)
|
||||
{
|
||||
mc->resize(size());
|
||||
}
|
||||
}
|
||||
|
||||
void LinesAndPoints::keyPressEvent(QKeyEvent* evnt)
|
||||
{
|
||||
if (evnt->key() == 49 || evnt->key() == 17825792) // tastatur '1'
|
||||
{
|
||||
mc->zoomIn();
|
||||
}
|
||||
else if (evnt->key() == 50)
|
||||
{
|
||||
mc->moveTo(QPointF(8.25, 60));
|
||||
}
|
||||
else if (evnt->key() == 51 || evnt->key() == 16777313) // tastatur '3'
|
||||
{
|
||||
mc->zoomOut();
|
||||
}
|
||||
else if (evnt->key() == 54) // 6
|
||||
{
|
||||
mc->setView(QPointF(8,50));
|
||||
}
|
||||
else if (evnt->key() == 16777234) // left
|
||||
{
|
||||
mc->scrollLeft();
|
||||
}
|
||||
else if (evnt->key() == 16777236) // right
|
||||
{
|
||||
mc->scrollRight();
|
||||
}
|
||||
else if (evnt->key() == 16777235 ) // up
|
||||
{
|
||||
mc->scrollUp();
|
||||
}
|
||||
else if (evnt->key() == 16777237) // down
|
||||
{
|
||||
mc->scrollDown();
|
||||
}
|
||||
else if (evnt->key() == 48 || evnt->key() == 17825797) // 0
|
||||
{
|
||||
emit(close());
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug() << evnt->key() << endl;
|
||||
}
|
||||
}
|
30
libs/QMapControl/Samples/LinesAndPoints/src/linesandpoints.h
Normal file
@ -0,0 +1,30 @@
|
||||
#ifndef LINESANDPOINTS_H
|
||||
#define LINESANDPOINTS_H
|
||||
|
||||
#include <mapcontrol.h>
|
||||
#include <osmmapadapter.h>
|
||||
#include <maplayer.h>
|
||||
#include <imagepoint.h>
|
||||
#include <circlepoint.h>
|
||||
#include <linestring.h>
|
||||
using namespace qmapcontrol;
|
||||
class LinesAndPoints : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
LinesAndPoints(QWidget *parent = 0);
|
||||
~LinesAndPoints();
|
||||
|
||||
private:
|
||||
MapControl* mc;
|
||||
void addZoomButtons();
|
||||
|
||||
public slots:
|
||||
void geometryClicked(Geometry* geom, QPoint coord_px);
|
||||
void resizeEvent(QResizeEvent *qEvent);
|
||||
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent* evnt);
|
||||
};
|
||||
|
||||
#endif
|
12
libs/QMapControl/Samples/LinesAndPoints/src/main.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
#include <QApplication>
|
||||
#include "linesandpoints.h"
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
|
||||
LinesAndPoints ta;
|
||||
ta.resize(480,640);
|
||||
ta.setWindowTitle("QMapControl Demo");
|
||||
ta.show();
|
||||
return app.exec();
|
||||
}
|
@ -0,0 +1,195 @@
|
||||
<?xml version = '1.0'?>
|
||||
<kdevelop>
|
||||
<general>
|
||||
<author>Kai Winter</author>
|
||||
<email>kaiwinter@gmx.de</email>
|
||||
<version>1</version>
|
||||
<projectmanagement>KDevTrollProject</projectmanagement>
|
||||
<primarylanguage>C++</primarylanguage>
|
||||
<keywords>
|
||||
<keyword>Qt</keyword>
|
||||
</keywords>
|
||||
<projectname>Mapviewer</projectname>
|
||||
<ignoreparts/>
|
||||
<projectdirectory>.</projectdirectory>
|
||||
<absoluteprojectpath>false</absoluteprojectpath>
|
||||
<description/>
|
||||
<defaultencoding/>
|
||||
<versioncontrol/>
|
||||
</general>
|
||||
<kdevfileview>
|
||||
<groups>
|
||||
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
|
||||
<group pattern="*.ui" name="User Interface" />
|
||||
<group pattern="*.png" name="Icons" />
|
||||
<group pattern="*" name="Others" />
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
<hidenonlocation>false</hidenonlocation>
|
||||
</groups>
|
||||
<tree>
|
||||
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
</tree>
|
||||
</kdevfileview>
|
||||
<kdevdoctreeview>
|
||||
<ignoretocs>
|
||||
<toc>bash</toc>
|
||||
<toc>bash_bugs</toc>
|
||||
<toc>clanlib</toc>
|
||||
<toc>w3c-dom-level2-html</toc>
|
||||
<toc>fortran_bugs_gcc</toc>
|
||||
<toc>gnome1</toc>
|
||||
<toc>gnustep</toc>
|
||||
<toc>gtk</toc>
|
||||
<toc>gtk_bugs</toc>
|
||||
<toc>haskell</toc>
|
||||
<toc>haskell_bugs_ghc</toc>
|
||||
<toc>java_bugs_gcc</toc>
|
||||
<toc>java_bugs_sun</toc>
|
||||
<toc>kde2book</toc>
|
||||
<toc>opengl</toc>
|
||||
<toc>pascal_bugs_fp</toc>
|
||||
<toc>php</toc>
|
||||
<toc>php_bugs</toc>
|
||||
<toc>perl</toc>
|
||||
<toc>perl_bugs</toc>
|
||||
<toc>python</toc>
|
||||
<toc>python_bugs</toc>
|
||||
<toc>qt-kdev3</toc>
|
||||
<toc>ruby</toc>
|
||||
<toc>ruby_bugs</toc>
|
||||
<toc>sdl</toc>
|
||||
<toc>stl</toc>
|
||||
<toc>w3c-svg</toc>
|
||||
<toc>sw</toc>
|
||||
<toc>w3c-uaag10</toc>
|
||||
<toc>wxwidgets_bugs</toc>
|
||||
</ignoretocs>
|
||||
<ignoredoxygen>
|
||||
<toc>KDE Libraries (Doxygen)</toc>
|
||||
</ignoredoxygen>
|
||||
</kdevdoctreeview>
|
||||
<kdevdebugger>
|
||||
<general>
|
||||
<dbgshell/>
|
||||
<gdbpath/>
|
||||
<configGdbScript/>
|
||||
<runShellScript/>
|
||||
<runGdbScript/>
|
||||
<breakonloadinglibs>true</breakonloadinglibs>
|
||||
<separatetty>false</separatetty>
|
||||
<floatingtoolbar>false</floatingtoolbar>
|
||||
<raiseGDBOnStart>false</raiseGDBOnStart>
|
||||
</general>
|
||||
<display>
|
||||
<staticmembers>false</staticmembers>
|
||||
<demanglenames>true</demanglenames>
|
||||
<outputradix>10</outputradix>
|
||||
</display>
|
||||
</kdevdebugger>
|
||||
<kdevcppsupport>
|
||||
<qt>
|
||||
<version>4</version>
|
||||
<used>true</used>
|
||||
<includestyle>4</includestyle>
|
||||
<designerintegration>ExternalDesigner</designerintegration>
|
||||
<root>/usr/lib/qt4</root>
|
||||
<qmake>/usr/lib/qt4/bin/qmake-qt4</qmake>
|
||||
<designer>/usr/lib/qt4/bin/designer-qt4</designer>
|
||||
<designerpluginpaths/>
|
||||
</qt>
|
||||
<codecompletion>
|
||||
<automaticCodeCompletion>false</automaticCodeCompletion>
|
||||
<automaticArgumentsHint>true</automaticArgumentsHint>
|
||||
<automaticHeaderCompletion>true</automaticHeaderCompletion>
|
||||
<codeCompletionDelay>250</codeCompletionDelay>
|
||||
<argumentsHintDelay>400</argumentsHintDelay>
|
||||
<headerCompletionDelay>250</headerCompletionDelay>
|
||||
<showOnlyAccessibleItems>false</showOnlyAccessibleItems>
|
||||
<completionBoxItemOrder>0</completionBoxItemOrder>
|
||||
<howEvaluationContextMenu>true</howEvaluationContextMenu>
|
||||
<showCommentWithArgumentHint>true</showCommentWithArgumentHint>
|
||||
<statusBarTypeEvaluation>false</statusBarTypeEvaluation>
|
||||
<namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases>
|
||||
<processPrimaryTypes>true</processPrimaryTypes>
|
||||
<processFunctionArguments>false</processFunctionArguments>
|
||||
<preProcessAllHeaders>false</preProcessAllHeaders>
|
||||
<parseMissingHeadersExperimental>false</parseMissingHeadersExperimental>
|
||||
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
|
||||
<alwaysParseInBackground>true</alwaysParseInBackground>
|
||||
<usePermanentCaching>true</usePermanentCaching>
|
||||
<alwaysIncludeNamespaces>false</alwaysIncludeNamespaces>
|
||||
<includePaths>.;</includePaths>
|
||||
</codecompletion>
|
||||
<creategettersetter>
|
||||
<prefixGet/>
|
||||
<prefixSet>set</prefixSet>
|
||||
<prefixVariable>m_,_</prefixVariable>
|
||||
<parameterName>theValue</parameterName>
|
||||
<inlineGet>true</inlineGet>
|
||||
<inlineSet>true</inlineSet>
|
||||
</creategettersetter>
|
||||
<splitheadersource>
|
||||
<enabled>false</enabled>
|
||||
<synchronize>true</synchronize>
|
||||
<orientation>Vertical</orientation>
|
||||
</splitheadersource>
|
||||
<references>
|
||||
<pcs>Qt4</pcs>
|
||||
</references>
|
||||
</kdevcppsupport>
|
||||
<kdevfilecreate>
|
||||
<useglobaltypes>
|
||||
<type ext="ui" />
|
||||
<type ext="cpp" />
|
||||
<type ext="h" />
|
||||
<type ext="qrc" />
|
||||
</useglobaltypes>
|
||||
</kdevfilecreate>
|
||||
<kdevtrollproject>
|
||||
<general>
|
||||
<activedir></activedir>
|
||||
</general>
|
||||
<run>
|
||||
<directoryradio>executable</directoryradio>
|
||||
<mainprogram>./bin/Mapviewer</mainprogram>
|
||||
<programargs/>
|
||||
<globaldebugarguments/>
|
||||
<globalcwd>./bin</globalcwd>
|
||||
<useglobalprogram>true</useglobalprogram>
|
||||
<terminal>false</terminal>
|
||||
<autocompile>false</autocompile>
|
||||
<autoinstall>false</autoinstall>
|
||||
<autokdesu>false</autokdesu>
|
||||
<envvars/>
|
||||
</run>
|
||||
<make>
|
||||
<abortonerror>true</abortonerror>
|
||||
<runmultiplejobs>false</runmultiplejobs>
|
||||
<numberofjobs>1</numberofjobs>
|
||||
<dontact>false</dontact>
|
||||
<makebin/>
|
||||
<prio>0</prio>
|
||||
<envvars/>
|
||||
</make>
|
||||
<qmake>
|
||||
<savebehaviour>2</savebehaviour>
|
||||
<replacePaths>false</replacePaths>
|
||||
<disableDefaultOpts>true</disableDefaultOpts>
|
||||
<enableFilenamesOnly>false</enableFilenamesOnly>
|
||||
</qmake>
|
||||
</kdevtrollproject>
|
||||
<cppsupportpart>
|
||||
<filetemplates>
|
||||
<interfacesuffix>.h</interfacesuffix>
|
||||
<implementationsuffix>.cpp</implementationsuffix>
|
||||
</filetemplates>
|
||||
</cppsupportpart>
|
||||
<kdevdocumentation>
|
||||
<projectdoc>
|
||||
<docsystem/>
|
||||
<docurl/>
|
||||
<usermanualurl/>
|
||||
</projectdoc>
|
||||
</kdevdocumentation>
|
||||
</kdevelop>
|
@ -0,0 +1,13 @@
|
||||
include(../../QMapControl.pri)
|
||||
MOC_DIR = tmp
|
||||
OBJECTS_DIR = obj
|
||||
DESTDIR = bin
|
||||
TARGET = Mapviewer
|
||||
DEPENDPATH += . ../../src
|
||||
INCLUDEPATH += . ../../src
|
||||
|
||||
# Input
|
||||
HEADERS += src/mapviewer.h
|
||||
SOURCES += src/main.cpp src/mapviewer.cpp
|
||||
|
||||
QT+=network
|
After Width: | Height: | Size: 113 KiB |
@ -0,0 +1,13 @@
|
||||
#include <QApplication>
|
||||
#include "mapviewer.h"
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
QApplication app(argc, argv);
|
||||
|
||||
Mapviewer ta;
|
||||
ta.resize(380, 565);
|
||||
ta.setWindowTitle("Mapviewer");
|
||||
ta.show();
|
||||
return app.exec();
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
#include "mapviewer.h"
|
||||
Mapviewer::Mapviewer(QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
{
|
||||
// create MapControl
|
||||
mc = new MapControl(QSize(380, 540));
|
||||
mc->showScale(true);
|
||||
|
||||
// create mapadapter, for mainlayer and overlay
|
||||
mapadapter = new EmptyMapAdapter(512);
|
||||
|
||||
// create a layer with the mapadapter and type MapLayer
|
||||
mainlayer = new MapLayer("", mapadapter);
|
||||
|
||||
// add Layer to the MapControl
|
||||
mc->addLayer(mainlayer);
|
||||
|
||||
addZoomButtons();
|
||||
|
||||
// show mapcontrol in mainwindow
|
||||
setCentralWidget(mc);
|
||||
|
||||
FixedImageOverlay* fip = new FixedImageOverlay(-36, 66, 37, 23, QCoreApplication::applicationDirPath() + "/sample.png");
|
||||
|
||||
mc->setView(QPointF(10,50));
|
||||
mc->zoomIn();
|
||||
|
||||
mainlayer->addGeometry(fip);
|
||||
|
||||
connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent*, const QPointF)),
|
||||
this, SLOT(coordinateClicked(const QMouseEvent*, const QPointF)));
|
||||
|
||||
}
|
||||
void Mapviewer::addZoomButtons()
|
||||
{
|
||||
// create buttons as controls for zoom
|
||||
QPushButton* zoomin = new QPushButton("+");
|
||||
QPushButton* zoomout = new QPushButton("-");
|
||||
zoomin->setMaximumWidth(50);
|
||||
zoomout->setMaximumWidth(50);
|
||||
|
||||
connect(zoomin, SIGNAL(clicked(bool)),
|
||||
mc, SLOT(zoomIn()));
|
||||
connect(zoomout, SIGNAL(clicked(bool)),
|
||||
mc, SLOT(zoomOut()));
|
||||
|
||||
// add zoom buttons to the layout of the MapControl
|
||||
QVBoxLayout* innerlayout = new QVBoxLayout;
|
||||
innerlayout->addWidget(zoomin);
|
||||
innerlayout->addWidget(zoomout);
|
||||
mc->setLayout(innerlayout);
|
||||
}
|
||||
|
||||
|
||||
Mapviewer::~Mapviewer()
|
||||
{
|
||||
}
|
||||
|
||||
// resize the widget
|
||||
void Mapviewer::resizeEvent ( QResizeEvent * event )
|
||||
{
|
||||
mc->resize(event->size());
|
||||
}
|
||||
|
||||
void Mapviewer::coordinateClicked(const QMouseEvent * evnt, const QPointF coordinate)
|
||||
{
|
||||
if (evnt->type()==QEvent::MouseButtonPress)
|
||||
{
|
||||
qDebug() << coordinate << ": " << evnt->x() << " / " << evnt->y();
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
#ifndef MAPVIEWER_H
|
||||
#define MAPVIEWER_H
|
||||
|
||||
#include <QtGui>
|
||||
#include "../../../qmapcontrol.h"
|
||||
using namespace qmapcontrol;
|
||||
class Mapviewer : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Mapviewer(QWidget *parent = 0);
|
||||
|
||||
~Mapviewer();
|
||||
|
||||
private:
|
||||
MapControl* mc;
|
||||
MapAdapter* mapadapter;
|
||||
Layer* mainlayer;
|
||||
|
||||
void addZoomButtons();
|
||||
|
||||
public slots:
|
||||
void coordinateClicked(const QMouseEvent* evnt, const QPointF coordinate);
|
||||
|
||||
protected:
|
||||
virtual void resizeEvent ( QResizeEvent * event );
|
||||
};
|
||||
|
||||
#endif
|
195
libs/QMapControl/Samples/Mapviewer/Mapviewer.kdevelop
Normal file
@ -0,0 +1,195 @@
|
||||
<?xml version = '1.0'?>
|
||||
<kdevelop>
|
||||
<general>
|
||||
<author>Kai Winter</author>
|
||||
<email>kaiwinter@gmx.de</email>
|
||||
<version>1</version>
|
||||
<projectmanagement>KDevTrollProject</projectmanagement>
|
||||
<primarylanguage>C++</primarylanguage>
|
||||
<keywords>
|
||||
<keyword>Qt</keyword>
|
||||
</keywords>
|
||||
<projectname>Mapviewer</projectname>
|
||||
<ignoreparts/>
|
||||
<projectdirectory>.</projectdirectory>
|
||||
<absoluteprojectpath>false</absoluteprojectpath>
|
||||
<description/>
|
||||
<defaultencoding/>
|
||||
<versioncontrol/>
|
||||
</general>
|
||||
<kdevfileview>
|
||||
<groups>
|
||||
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
|
||||
<group pattern="*.ui" name="User Interface" />
|
||||
<group pattern="*.png" name="Icons" />
|
||||
<group pattern="*" name="Others" />
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
<hidenonlocation>false</hidenonlocation>
|
||||
</groups>
|
||||
<tree>
|
||||
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
</tree>
|
||||
</kdevfileview>
|
||||
<kdevdoctreeview>
|
||||
<ignoretocs>
|
||||
<toc>bash</toc>
|
||||
<toc>bash_bugs</toc>
|
||||
<toc>clanlib</toc>
|
||||
<toc>w3c-dom-level2-html</toc>
|
||||
<toc>fortran_bugs_gcc</toc>
|
||||
<toc>gnome1</toc>
|
||||
<toc>gnustep</toc>
|
||||
<toc>gtk</toc>
|
||||
<toc>gtk_bugs</toc>
|
||||
<toc>haskell</toc>
|
||||
<toc>haskell_bugs_ghc</toc>
|
||||
<toc>java_bugs_gcc</toc>
|
||||
<toc>java_bugs_sun</toc>
|
||||
<toc>kde2book</toc>
|
||||
<toc>opengl</toc>
|
||||
<toc>pascal_bugs_fp</toc>
|
||||
<toc>php</toc>
|
||||
<toc>php_bugs</toc>
|
||||
<toc>perl</toc>
|
||||
<toc>perl_bugs</toc>
|
||||
<toc>python</toc>
|
||||
<toc>python_bugs</toc>
|
||||
<toc>qt-kdev3</toc>
|
||||
<toc>ruby</toc>
|
||||
<toc>ruby_bugs</toc>
|
||||
<toc>sdl</toc>
|
||||
<toc>stl</toc>
|
||||
<toc>w3c-svg</toc>
|
||||
<toc>sw</toc>
|
||||
<toc>w3c-uaag10</toc>
|
||||
<toc>wxwidgets_bugs</toc>
|
||||
</ignoretocs>
|
||||
<ignoredoxygen>
|
||||
<toc>KDE Libraries (Doxygen)</toc>
|
||||
</ignoredoxygen>
|
||||
</kdevdoctreeview>
|
||||
<kdevdebugger>
|
||||
<general>
|
||||
<dbgshell/>
|
||||
<gdbpath/>
|
||||
<configGdbScript/>
|
||||
<runShellScript/>
|
||||
<runGdbScript/>
|
||||
<breakonloadinglibs>true</breakonloadinglibs>
|
||||
<separatetty>false</separatetty>
|
||||
<floatingtoolbar>false</floatingtoolbar>
|
||||
<raiseGDBOnStart>false</raiseGDBOnStart>
|
||||
</general>
|
||||
<display>
|
||||
<staticmembers>false</staticmembers>
|
||||
<demanglenames>true</demanglenames>
|
||||
<outputradix>10</outputradix>
|
||||
</display>
|
||||
</kdevdebugger>
|
||||
<kdevcppsupport>
|
||||
<qt>
|
||||
<version>4</version>
|
||||
<used>true</used>
|
||||
<includestyle>4</includestyle>
|
||||
<designerintegration>ExternalDesigner</designerintegration>
|
||||
<root>/usr/lib/qt4</root>
|
||||
<qmake>/usr/lib/qt4/bin/qmake-qt4</qmake>
|
||||
<designer>/usr/lib/qt4/bin/designer-qt4</designer>
|
||||
<designerpluginpaths/>
|
||||
</qt>
|
||||
<codecompletion>
|
||||
<automaticCodeCompletion>false</automaticCodeCompletion>
|
||||
<automaticArgumentsHint>true</automaticArgumentsHint>
|
||||
<automaticHeaderCompletion>true</automaticHeaderCompletion>
|
||||
<codeCompletionDelay>250</codeCompletionDelay>
|
||||
<argumentsHintDelay>400</argumentsHintDelay>
|
||||
<headerCompletionDelay>250</headerCompletionDelay>
|
||||
<showOnlyAccessibleItems>false</showOnlyAccessibleItems>
|
||||
<completionBoxItemOrder>0</completionBoxItemOrder>
|
||||
<howEvaluationContextMenu>true</howEvaluationContextMenu>
|
||||
<showCommentWithArgumentHint>true</showCommentWithArgumentHint>
|
||||
<statusBarTypeEvaluation>false</statusBarTypeEvaluation>
|
||||
<namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases>
|
||||
<processPrimaryTypes>true</processPrimaryTypes>
|
||||
<processFunctionArguments>false</processFunctionArguments>
|
||||
<preProcessAllHeaders>false</preProcessAllHeaders>
|
||||
<parseMissingHeadersExperimental>false</parseMissingHeadersExperimental>
|
||||
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
|
||||
<alwaysParseInBackground>true</alwaysParseInBackground>
|
||||
<usePermanentCaching>true</usePermanentCaching>
|
||||
<alwaysIncludeNamespaces>false</alwaysIncludeNamespaces>
|
||||
<includePaths>.;</includePaths>
|
||||
</codecompletion>
|
||||
<creategettersetter>
|
||||
<prefixGet/>
|
||||
<prefixSet>set</prefixSet>
|
||||
<prefixVariable>m_,_</prefixVariable>
|
||||
<parameterName>theValue</parameterName>
|
||||
<inlineGet>true</inlineGet>
|
||||
<inlineSet>true</inlineSet>
|
||||
</creategettersetter>
|
||||
<splitheadersource>
|
||||
<enabled>false</enabled>
|
||||
<synchronize>true</synchronize>
|
||||
<orientation>Vertical</orientation>
|
||||
</splitheadersource>
|
||||
<references>
|
||||
<pcs>Qt4</pcs>
|
||||
</references>
|
||||
</kdevcppsupport>
|
||||
<kdevfilecreate>
|
||||
<useglobaltypes>
|
||||
<type ext="ui" />
|
||||
<type ext="cpp" />
|
||||
<type ext="h" />
|
||||
<type ext="qrc" />
|
||||
</useglobaltypes>
|
||||
</kdevfilecreate>
|
||||
<kdevtrollproject>
|
||||
<general>
|
||||
<activedir></activedir>
|
||||
</general>
|
||||
<run>
|
||||
<directoryradio>executable</directoryradio>
|
||||
<mainprogram>./bin/Mapviewer</mainprogram>
|
||||
<programargs/>
|
||||
<globaldebugarguments/>
|
||||
<globalcwd>./bin</globalcwd>
|
||||
<useglobalprogram>true</useglobalprogram>
|
||||
<terminal>false</terminal>
|
||||
<autocompile>false</autocompile>
|
||||
<autoinstall>false</autoinstall>
|
||||
<autokdesu>false</autokdesu>
|
||||
<envvars/>
|
||||
</run>
|
||||
<make>
|
||||
<abortonerror>true</abortonerror>
|
||||
<runmultiplejobs>false</runmultiplejobs>
|
||||
<numberofjobs>1</numberofjobs>
|
||||
<dontact>false</dontact>
|
||||
<makebin/>
|
||||
<prio>0</prio>
|
||||
<envvars/>
|
||||
</make>
|
||||
<qmake>
|
||||
<savebehaviour>2</savebehaviour>
|
||||
<replacePaths>false</replacePaths>
|
||||
<disableDefaultOpts>true</disableDefaultOpts>
|
||||
<enableFilenamesOnly>false</enableFilenamesOnly>
|
||||
</qmake>
|
||||
</kdevtrollproject>
|
||||
<cppsupportpart>
|
||||
<filetemplates>
|
||||
<interfacesuffix>.h</interfacesuffix>
|
||||
<implementationsuffix>.cpp</implementationsuffix>
|
||||
</filetemplates>
|
||||
</cppsupportpart>
|
||||
<kdevdocumentation>
|
||||
<projectdoc>
|
||||
<docsystem/>
|
||||
<docurl/>
|
||||
<usermanualurl/>
|
||||
</projectdoc>
|
||||
</kdevdocumentation>
|
||||
</kdevelop>
|
16
libs/QMapControl/Samples/Mapviewer/Mapviewer.pro
Normal file
@ -0,0 +1,16 @@
|
||||
include(../../QMapControl.pri)
|
||||
QT+=network
|
||||
QT+=gui
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
greaterThan(QT_MAJOR_VERSION, 4): cache()
|
||||
|
||||
DEPENDPATH += src
|
||||
MOC_DIR = tmp
|
||||
OBJECTS_DIR = obj
|
||||
DESTDIR = ../bin
|
||||
TARGET = Mapviewer
|
||||
|
||||
# Input
|
||||
HEADERS += src/mapviewer.h
|
||||
SOURCES += src/main.cpp src/mapviewer.cpp
|
||||
|
9
libs/QMapControl/Samples/Mapviewer/Readme
Normal file
@ -0,0 +1,9 @@
|
||||
/*!
|
||||
* \example mapviewer.cpp
|
||||
* This application is just a simple map viewer. A Mapadapter is created (OpenStreetmaps)
|
||||
* and added to a layer. The layer is given to the MapControl.
|
||||
* Two Buttons are available to adjust the zoom level.
|
||||
*
|
||||
* You can find this example here: MapAPI/Samples/Mapviewer
|
||||
* \image html sample_mapviewer.png "screenshot"
|
||||
*/
|
16
libs/QMapControl/Samples/Mapviewer/src/main.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
#include <QApplication>
|
||||
#include <QMainWindow>
|
||||
|
||||
#include "mapviewer.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
QApplication app(argc, argv);
|
||||
|
||||
Mapviewer ta;
|
||||
ta.resize(380, 565);
|
||||
ta.setWindowTitle("Mapviewer");
|
||||
ta.show();
|
||||
return app.exec();
|
||||
}
|
68
libs/QMapControl/Samples/Mapviewer/src/mapviewer.cpp
Normal file
@ -0,0 +1,68 @@
|
||||
#include "mapviewer.h"
|
||||
|
||||
#include <QPushButton>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
/*!
|
||||
* \example mapviewer.cpp
|
||||
* This application is just a simple map viewer. A Mapadapter is created (OpenStreetmaps)
|
||||
* and added to a layer. The layer is given to the MapControl.
|
||||
* Two Buttons are available to adjust the zoom level. If the window is
|
||||
* resized the map widget will adjust its size.
|
||||
*
|
||||
* You can find this example here: QMapControl/Samples/Mapviewer
|
||||
* \image html sample_mapviewer.png "screenshot"
|
||||
*/
|
||||
Mapviewer::Mapviewer(QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
{
|
||||
// create MapControl
|
||||
mc = new MapControl(QSize(380, 540));
|
||||
mc->showScale(true);
|
||||
|
||||
// create mapadapter, for mainlayer and overlay
|
||||
mapadapter = new OSMMapAdapter();
|
||||
|
||||
// create a layer with the mapadapter and type MapLayer
|
||||
mainlayer = new MapLayer("OpenStreetMap-Layer", mapadapter);
|
||||
|
||||
// add Layer to the MapControl
|
||||
mc->addLayer(mainlayer);
|
||||
|
||||
addZoomButtons();
|
||||
|
||||
mc->setView(QPointF(0,0));
|
||||
mc->setZoom(2);
|
||||
// show mapcontrol in mainwindow
|
||||
setCentralWidget(mc);
|
||||
}
|
||||
|
||||
void Mapviewer::addZoomButtons()
|
||||
{
|
||||
// create buttons as controls for zoom
|
||||
QPushButton* zoomin = new QPushButton("+");
|
||||
QPushButton* zoomout = new QPushButton("-");
|
||||
zoomin->setMaximumWidth(50);
|
||||
zoomout->setMaximumWidth(50);
|
||||
|
||||
connect(zoomin, SIGNAL(clicked(bool)),
|
||||
mc, SLOT(zoomIn()));
|
||||
connect(zoomout, SIGNAL(clicked(bool)),
|
||||
mc, SLOT(zoomOut()));
|
||||
|
||||
// add zoom buttons to the layout of the MapControl
|
||||
QVBoxLayout* innerlayout = new QVBoxLayout;
|
||||
innerlayout->addWidget(zoomin);
|
||||
innerlayout->addWidget(zoomout);
|
||||
mc->setLayout(innerlayout);
|
||||
}
|
||||
|
||||
Mapviewer::~Mapviewer()
|
||||
{
|
||||
}
|
||||
|
||||
// resize the widget
|
||||
void Mapviewer::resizeEvent ( QResizeEvent * event )
|
||||
{
|
||||
mc->resize(event->size());
|
||||
}
|
29
libs/QMapControl/Samples/Mapviewer/src/mapviewer.h
Normal file
@ -0,0 +1,29 @@
|
||||
#ifndef MAPVIEWER_H
|
||||
#define MAPVIEWER_H
|
||||
#include <QApplication>
|
||||
#include <QMainWindow>
|
||||
#include <mapcontrol.h>
|
||||
#include <osmmapadapter.h>
|
||||
#include <maplayer.h>
|
||||
using namespace qmapcontrol;
|
||||
class Mapviewer : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Mapviewer(QWidget *parent = 0);
|
||||
|
||||
~Mapviewer();
|
||||
|
||||
private:
|
||||
MapControl* mc;
|
||||
MapAdapter* mapadapter;
|
||||
Layer* mainlayer;
|
||||
|
||||
void addZoomButtons();
|
||||
|
||||
protected:
|
||||
virtual void resizeEvent ( QResizeEvent * event );
|
||||
};
|
||||
|
||||
#endif
|
197
libs/QMapControl/Samples/Multidemo/Multidemo.kdevelop
Normal file
@ -0,0 +1,197 @@
|
||||
<?xml version = '1.0'?>
|
||||
<kdevelop>
|
||||
<general>
|
||||
<author>Kai Winter</author>
|
||||
<email>kaiwinter@gmx.de</email>
|
||||
<version>1</version>
|
||||
<projectmanagement>KDevTrollProject</projectmanagement>
|
||||
<primarylanguage>C++</primarylanguage>
|
||||
<keywords>
|
||||
<keyword>Qt</keyword>
|
||||
</keywords>
|
||||
<projectname>Multidemo</projectname>
|
||||
<ignoreparts/>
|
||||
<projectdirectory>.</projectdirectory>
|
||||
<absoluteprojectpath>false</absoluteprojectpath>
|
||||
<description/>
|
||||
<defaultencoding/>
|
||||
<versioncontrol/>
|
||||
</general>
|
||||
<kdevfileview>
|
||||
<groups>
|
||||
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
|
||||
<group pattern="*.ui" name="User Interface" />
|
||||
<group pattern="*.png" name="Icons" />
|
||||
<group pattern="*" name="Others" />
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
<hidenonlocation>false</hidenonlocation>
|
||||
</groups>
|
||||
<tree>
|
||||
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
</tree>
|
||||
</kdevfileview>
|
||||
<kdevdoctreeview>
|
||||
<ignoretocs>
|
||||
<toc>bash</toc>
|
||||
<toc>bash_bugs</toc>
|
||||
<toc>clanlib</toc>
|
||||
<toc>w3c-dom-level2-html</toc>
|
||||
<toc>fortran_bugs_gcc</toc>
|
||||
<toc>gnome1</toc>
|
||||
<toc>gnustep</toc>
|
||||
<toc>gtk</toc>
|
||||
<toc>gtk_bugs</toc>
|
||||
<toc>haskell</toc>
|
||||
<toc>haskell_bugs_ghc</toc>
|
||||
<toc>java_bugs_gcc</toc>
|
||||
<toc>java_bugs_sun</toc>
|
||||
<toc>kde2book</toc>
|
||||
<toc>opengl</toc>
|
||||
<toc>pascal_bugs_fp</toc>
|
||||
<toc>php</toc>
|
||||
<toc>php_bugs</toc>
|
||||
<toc>perl</toc>
|
||||
<toc>perl_bugs</toc>
|
||||
<toc>python</toc>
|
||||
<toc>python_bugs</toc>
|
||||
<toc>qt-kdev3</toc>
|
||||
<toc>ruby</toc>
|
||||
<toc>ruby_bugs</toc>
|
||||
<toc>sdl</toc>
|
||||
<toc>stl</toc>
|
||||
<toc>w3c-svg</toc>
|
||||
<toc>sw</toc>
|
||||
<toc>w3c-uaag10</toc>
|
||||
<toc>wxwidgets_bugs</toc>
|
||||
</ignoretocs>
|
||||
<ignoredoxygen>
|
||||
<toc>KDE Libraries (Doxygen)</toc>
|
||||
</ignoredoxygen>
|
||||
</kdevdoctreeview>
|
||||
<kdevdebugger>
|
||||
<general>
|
||||
<dbgshell/>
|
||||
<gdbpath/>
|
||||
<configGdbScript/>
|
||||
<runShellScript/>
|
||||
<runGdbScript/>
|
||||
<breakonloadinglibs>true</breakonloadinglibs>
|
||||
<separatetty>false</separatetty>
|
||||
<floatingtoolbar>false</floatingtoolbar>
|
||||
<raiseGDBOnStart>false</raiseGDBOnStart>
|
||||
</general>
|
||||
<display>
|
||||
<staticmembers>false</staticmembers>
|
||||
<demanglenames>true</demanglenames>
|
||||
<outputradix>10</outputradix>
|
||||
</display>
|
||||
</kdevdebugger>
|
||||
<kdevcppsupport>
|
||||
<qt>
|
||||
<version>4</version>
|
||||
<used>true</used>
|
||||
<includestyle>4</includestyle>
|
||||
<designerintegration>ExternalDesigner</designerintegration>
|
||||
<root>/usr/lib/qt4</root>
|
||||
<qmake>/usr/lib/qt4/bin/qmake-qt4</qmake>
|
||||
<designer>/usr/lib/qt4/bin/designer-qt4</designer>
|
||||
<designerpluginpaths/>
|
||||
</qt>
|
||||
<codecompletion>
|
||||
<automaticCodeCompletion>false</automaticCodeCompletion>
|
||||
<automaticArgumentsHint>true</automaticArgumentsHint>
|
||||
<automaticHeaderCompletion>true</automaticHeaderCompletion>
|
||||
<codeCompletionDelay>250</codeCompletionDelay>
|
||||
<argumentsHintDelay>400</argumentsHintDelay>
|
||||
<headerCompletionDelay>250</headerCompletionDelay>
|
||||
<showOnlyAccessibleItems>false</showOnlyAccessibleItems>
|
||||
<completionBoxItemOrder>0</completionBoxItemOrder>
|
||||
<howEvaluationContextMenu>true</howEvaluationContextMenu>
|
||||
<showCommentWithArgumentHint>true</showCommentWithArgumentHint>
|
||||
<statusBarTypeEvaluation>false</statusBarTypeEvaluation>
|
||||
<namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases>
|
||||
<processPrimaryTypes>true</processPrimaryTypes>
|
||||
<processFunctionArguments>false</processFunctionArguments>
|
||||
<preProcessAllHeaders>false</preProcessAllHeaders>
|
||||
<parseMissingHeadersExperimental>false</parseMissingHeadersExperimental>
|
||||
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
|
||||
<alwaysParseInBackground>true</alwaysParseInBackground>
|
||||
<usePermanentCaching>true</usePermanentCaching>
|
||||
<alwaysIncludeNamespaces>false</alwaysIncludeNamespaces>
|
||||
<includePaths>.;</includePaths>
|
||||
</codecompletion>
|
||||
<creategettersetter>
|
||||
<prefixGet/>
|
||||
<prefixSet>set</prefixSet>
|
||||
<prefixVariable>m_,_</prefixVariable>
|
||||
<parameterName>theValue</parameterName>
|
||||
<inlineGet>true</inlineGet>
|
||||
<inlineSet>true</inlineSet>
|
||||
</creategettersetter>
|
||||
<splitheadersource>
|
||||
<enabled>false</enabled>
|
||||
<synchronize>true</synchronize>
|
||||
<orientation>Vertical</orientation>
|
||||
</splitheadersource>
|
||||
<references>
|
||||
<pcs>QMapControl</pcs>
|
||||
<pcs>Qt4</pcs>
|
||||
</references>
|
||||
</kdevcppsupport>
|
||||
<kdevfilecreate>
|
||||
<filetypes/>
|
||||
<useglobaltypes>
|
||||
<type ext="ui" />
|
||||
<type ext="qrc" />
|
||||
<type ext="cpp" />
|
||||
<type ext="h" />
|
||||
</useglobaltypes>
|
||||
</kdevfilecreate>
|
||||
<kdevtrollproject>
|
||||
<general>
|
||||
<activedir></activedir>
|
||||
</general>
|
||||
<run>
|
||||
<directoryradio>executable</directoryradio>
|
||||
<mainprogram>./bin/Multidemo</mainprogram>
|
||||
<programargs/>
|
||||
<globaldebugarguments/>
|
||||
<globalcwd>./bin</globalcwd>
|
||||
<useglobalprogram>true</useglobalprogram>
|
||||
<terminal>false</terminal>
|
||||
<autocompile>false</autocompile>
|
||||
<autoinstall>false</autoinstall>
|
||||
<autokdesu>false</autokdesu>
|
||||
<envvars/>
|
||||
</run>
|
||||
<make>
|
||||
<abortonerror>true</abortonerror>
|
||||
<runmultiplejobs>false</runmultiplejobs>
|
||||
<numberofjobs>1</numberofjobs>
|
||||
<dontact>false</dontact>
|
||||
<makebin/>
|
||||
<prio>0</prio>
|
||||
<envvars/>
|
||||
</make>
|
||||
<qmake>
|
||||
<savebehaviour>2</savebehaviour>
|
||||
<replacePaths>false</replacePaths>
|
||||
<disableDefaultOpts>true</disableDefaultOpts>
|
||||
<enableFilenamesOnly>false</enableFilenamesOnly>
|
||||
</qmake>
|
||||
</kdevtrollproject>
|
||||
<cppsupportpart>
|
||||
<filetemplates>
|
||||
<interfacesuffix>.h</interfacesuffix>
|
||||
<implementationsuffix>.cpp</implementationsuffix>
|
||||
</filetemplates>
|
||||
</cppsupportpart>
|
||||
<kdevdocumentation>
|
||||
<projectdoc>
|
||||
<docsystem/>
|
||||
<docurl/>
|
||||
<usermanualurl/>
|
||||
</projectdoc>
|
||||
</kdevdocumentation>
|
||||
</kdevelop>
|
16
libs/QMapControl/Samples/Multidemo/Multidemo.pro
Normal file
@ -0,0 +1,16 @@
|
||||
include(../../QMapControl.pri)
|
||||
QT+=network
|
||||
DEPENDPATH += src
|
||||
MOC_DIR = tmp
|
||||
OBJECTS_DIR = obj
|
||||
DESTDIR = ../bin
|
||||
TARGET = Multidemo
|
||||
|
||||
QT+=network
|
||||
QT+=gui
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
greaterThan(QT_MAJOR_VERSION, 4): cache()
|
||||
|
||||
# Input
|
||||
HEADERS += src/multidemo.h src/gps_modul.h
|
||||
SOURCES += src/multidemo.cpp src/main.cpp src/gps_modul.cpp
|
15
libs/QMapControl/Samples/Multidemo/Readme
Normal file
@ -0,0 +1,15 @@
|
||||
/*!
|
||||
* \example multidemo.cpp
|
||||
* This is a bit complexer application, which lets you play around.
|
||||
* There are the following buttons configured:
|
||||
* - Add Point: adds a Point to the coordinate you click (this point will be clickable)
|
||||
* - Drag Rect: lets to drag a rectangular into which will be zoomed in
|
||||
* - Move To Click: moves the view middle to the clicked coordinate
|
||||
* - GPS: starts a "pseudo" GPS receiver which emits new positions, these are connected to the ImagePoint
|
||||
* - Follow Geom: Follows the ImagePoint, when it moves because of new GPS positions
|
||||
*
|
||||
* A overview map lefts you see where you are. You can even click on it to change your position.
|
||||
*
|
||||
* You can find this example here: MapAPI/Samples/Multimap
|
||||
* \image html sample_multidemo.png "screenshot"
|
||||
*/
|
89
libs/QMapControl/Samples/Multidemo/src/gps_modul.cpp
Normal file
@ -0,0 +1,89 @@
|
||||
#include "gps_modul.h"
|
||||
|
||||
double x = 1.0;
|
||||
double y = 1.0;
|
||||
GPS_Modul::GPS_Modul(QObject *parent)
|
||||
: QObject(parent)
|
||||
{
|
||||
// qDebug() << "GPS_Modul()";
|
||||
loadFile();
|
||||
|
||||
running = false;
|
||||
}
|
||||
|
||||
|
||||
GPS_Modul::~GPS_Modul()
|
||||
{
|
||||
}
|
||||
|
||||
void GPS_Modul::start()
|
||||
{
|
||||
|
||||
if (!running)
|
||||
{
|
||||
running = true;
|
||||
QTimer::singleShot(1000/25, this, SLOT(tick()));
|
||||
}
|
||||
}
|
||||
void GPS_Modul::stop()
|
||||
{
|
||||
running = false;
|
||||
}
|
||||
|
||||
void GPS_Modul::tick()
|
||||
{
|
||||
// qDebug() << "GPS_Modul::tick()";
|
||||
|
||||
// GPS_Position pos = positions.takeFirst();
|
||||
// x = pos.longitude;
|
||||
// y = pos.latitude;
|
||||
|
||||
// qDebug() << pos.latitude << ", " << pos.longitude;
|
||||
x += .1;
|
||||
y += .1;
|
||||
emit(new_position(QPointF(x,y)));
|
||||
// emit(changed());
|
||||
|
||||
// if (running && !positions.isEmpty())
|
||||
if (running)
|
||||
QTimer::singleShot(1000/25, this, SLOT(tick()));
|
||||
}
|
||||
|
||||
void GPS_Modul::loadFile()
|
||||
{
|
||||
QFile file("/home/kai/kwint001/trunk/code/MapAPI/src/mainz_gps.nme");
|
||||
// qDebug() << file.exists();
|
||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
|
||||
{
|
||||
qDebug() << file.error();
|
||||
return;
|
||||
}
|
||||
while (!file.atEnd())
|
||||
{
|
||||
QByteArray line = file.readLine();
|
||||
process_line(line);
|
||||
}
|
||||
}
|
||||
|
||||
void GPS_Modul::process_line(QByteArray line)
|
||||
{
|
||||
if (!line.contains("GPRMC"))
|
||||
return;
|
||||
|
||||
line.chop(1);
|
||||
// qDebug() << line;
|
||||
|
||||
// get time
|
||||
QList<QByteArray> elems = line.split(',');
|
||||
|
||||
float time = QString(elems.at(1)).toFloat();
|
||||
float latitude = elems.at(3).toFloat()/100;
|
||||
QString latitude_dir = elems.at(4);
|
||||
float longitude = elems.at(5).toFloat()/100;
|
||||
QString longitude_dir = elems.at(6);
|
||||
|
||||
positions.append(GPS_Position(time, longitude, longitude_dir, latitude, latitude_dir));
|
||||
|
||||
|
||||
// qDebug() << elems.at(6) << " | " << latitude;
|
||||
}
|
36
libs/QMapControl/Samples/Multidemo/src/gps_modul.h
Normal file
@ -0,0 +1,36 @@
|
||||
#ifndef GPS_MODUL_H
|
||||
#define GPS_MODUL_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QtGui>
|
||||
#include <gps_position.h>
|
||||
|
||||
/**
|
||||
@author Kai Winter <kaiwinter@gmx.de>
|
||||
*/
|
||||
using namespace qmapcontrol;
|
||||
class GPS_Modul : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
GPS_Modul(QObject *parent = 0);
|
||||
~GPS_Modul();
|
||||
void start();
|
||||
void stop();
|
||||
|
||||
private:
|
||||
QList<GPS_Position> positions;
|
||||
void loadFile();
|
||||
void process_line(QByteArray line);
|
||||
bool running;
|
||||
|
||||
signals:
|
||||
void new_position(QPointF);
|
||||
void changed();
|
||||
|
||||
public slots:
|
||||
void tick();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
12
libs/QMapControl/Samples/Multidemo/src/main.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
#include <QApplication>
|
||||
#include "multidemo.h"
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
|
||||
Multidemo ta;
|
||||
ta.resize(480,640);
|
||||
ta.setWindowTitle("QMapControl Demo");
|
||||
ta.show();
|
||||
return app.exec();
|
||||
}
|
298
libs/QMapControl/Samples/Multidemo/src/multidemo.cpp
Normal file
@ -0,0 +1,298 @@
|
||||
#include "multidemo.h"
|
||||
|
||||
#include <QHBoxLayout>
|
||||
#include <QVBoxLayout>
|
||||
#include <QMessageBox>
|
||||
|
||||
/*!
|
||||
* \example multidemo.cpp
|
||||
* This is a bit complexer application, which lets you play around.
|
||||
* There are the following buttons configured:
|
||||
* - Add Point: adds a Point to the coordinate you click (this point will be clickable)
|
||||
* - Drag Rect: lets to drag a rectangular into which will be zoomed in
|
||||
* - Move To Click: moves the view middle to the clicked coordinate
|
||||
* - GPS: starts a "pseudo" GPS receiver which emits new positions, these are connected to the ImagePoint
|
||||
* - Follow Geom: Follows the ImagePoint, when it moves because of new GPS positions
|
||||
*
|
||||
* A overview map lefts you see where you are. You can even click on it to change your position.
|
||||
*
|
||||
* You can find this example here: MapAPI/Samples/Multimap
|
||||
* \image html sample_multidemo.png "screenshot"
|
||||
*/
|
||||
Multidemo::Multidemo(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
{
|
||||
setupMaps();
|
||||
createLayout();
|
||||
|
||||
gm = new GPS_Modul();
|
||||
connect(gm, SIGNAL(new_position(QPointF)),
|
||||
ip, SLOT(setCoordinate(QPointF)));
|
||||
|
||||
}
|
||||
|
||||
void Multidemo::setupMaps()
|
||||
{
|
||||
QSize size = QSize(480,640);
|
||||
|
||||
// main map control
|
||||
mc = new MapControl(size);
|
||||
MapAdapter* mapadapter = new WMSMapAdapter("www2.demis.nl", "/wms/wms.asp?wms=WorldMap&LAYERS=Countries,Borders,Cities,Rivers,Settlements,Hillshading,Waterbodies,Railroads,Highways,Roads&FORMAT=image/png&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&TRANSPARENT=FALSE", 256);
|
||||
|
||||
// maplayer
|
||||
Layer* l = new MapLayer("Custom Layer", mapadapter);
|
||||
mc->addLayer(l);
|
||||
// Geometry layer
|
||||
Layer* l2 = new GeometryLayer("Geom Layer", mapadapter);
|
||||
mc->addLayer(l2);
|
||||
|
||||
|
||||
// "minimap" control
|
||||
mc2 = new MapControl(QSize(150,150), MapControl::None);
|
||||
MapAdapter* mapadapter_mini = new OSMMapAdapter();
|
||||
Layer* layer_mini = new MapLayer("Custom Layer", mapadapter_mini);
|
||||
mc2->addLayer(layer_mini);
|
||||
|
||||
// create points
|
||||
QPen* pen = new QPen(QColor(255, 0, 0, 100));
|
||||
pen->setWidth(5);
|
||||
QList<Point*> points;
|
||||
points.append(new CirclePoint(8.259959, 50.001781, "Mainz, Hauptbahnhof", Point::Middle, pen));
|
||||
points.append(new CirclePoint(8.263758, 49.998917, "Mainz, Münsterplatz", Point::Middle, pen));
|
||||
points.append(new CirclePoint(8.265812, 50.001952, "Mainz, Neubrunnenplatz", Point::Middle, pen));
|
||||
points.append(new CirclePoint(8.2688, 50.004015, "Mainz, Bauhofstraße LRP", Point::Middle, pen));
|
||||
points.append(new CirclePoint(8.272845, 50.00495, "Mainz, Landtag", Point::Middle, pen));
|
||||
points.append(new CirclePoint(8.272845, 50.00495, "Mainz, Brückenplatz", Point::Middle, pen));
|
||||
points.append(new CirclePoint(8.280349, 50.008173, "Mainz, Brückenkopf", Point::Middle, pen));
|
||||
points.append(new CirclePoint(8.273573, 50.016315, "Wiesbaden-Mainz-Kastel, Eleonorenstraße", Point::Middle, pen));
|
||||
points.append(new CirclePoint(8.275145, 50.016992, "Wiesbaden-Mainz-Kastel, Johannes-Goßner-Straße", Point::Middle, pen));
|
||||
points.append(new CirclePoint(8.270476, 50.021426, "Wiesbaden-Mainz-Kastel, Ruthof", Point::Middle, pen));
|
||||
points.append(new CirclePoint(8.266445, 50.025913, "Wiesbaden-Mainz-Kastel, Mudra Kaserne", Point::Middle, pen));
|
||||
points.append(new CirclePoint(8.260378, 50.030345, "Wiesbaden-Mainz-Amoneburg, Dyckerhoffstraße", Point::Middle, pen));
|
||||
|
||||
// add points to linestring
|
||||
pen = new QPen(QColor(0, 0, 255, 100));
|
||||
pen->setWidth(5);
|
||||
LineString* ls = new LineString(points, "Busline 54", pen);
|
||||
// the linestring is added to the MapLayer l, since it doenst change its points
|
||||
l->addGeometry(ls);
|
||||
|
||||
// this point receives position changes from the "gps modul"
|
||||
ip = new ImagePoint(0,0, QCoreApplication::applicationDirPath() + "/images/marker1.png", "image point", Point::TopRight);
|
||||
|
||||
// so if have to be added to the GeometryLayer l2
|
||||
l2->addGeometry(ip);
|
||||
QPushButton* pb = new QPushButton("test button", mc);
|
||||
|
||||
// widget example
|
||||
Point* wpoint = new Point(-20,-20, pb, ".", Point::TopLeft);
|
||||
wpoint->setBaselevel(3);
|
||||
l->addGeometry(wpoint);
|
||||
pb->setGeometry(0,0,100,50);
|
||||
|
||||
connect(l, SIGNAL(geometryClicked(Geometry*, QPoint)),
|
||||
this, SLOT(geometryClickEvent(Geometry*, QPoint)));
|
||||
connect(l2, SIGNAL(geometryClicked(Geometry*, QPoint)),
|
||||
this, SLOT(geometryClickEvent(Geometry*, QPoint)));
|
||||
connect(mc, SIGNAL(boxDragged(const QRectF)),
|
||||
this, SLOT(draggedRect(QRectF)));
|
||||
connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent*, const QPointF)),
|
||||
this, SLOT(mouseEventCoordinate(const QMouseEvent*, const QPointF)));
|
||||
connect(mc, SIGNAL(mouseEventCoordinate(const QMouseEvent*, const QPointF)),
|
||||
this, SLOT(coordinateClicked(const QMouseEvent*, const QPointF)));
|
||||
connect(mc2, SIGNAL(mouseEventCoordinate(const QMouseEvent*, const QPointF)),
|
||||
this, SLOT(coordinateClicked_mc2(const QMouseEvent*, const QPointF)));
|
||||
}
|
||||
|
||||
void Multidemo::createLayout()
|
||||
{
|
||||
btn1 = new QPushButton("Add Point");
|
||||
btn1->setCheckable(true);
|
||||
btn1->setMaximumWidth(80);
|
||||
btn1->setMaximumHeight(20);
|
||||
btn1->setFont(QFont("Verdana", 5));
|
||||
|
||||
btn2 = new QPushButton("Drag Rect");
|
||||
btn2->setCheckable(true);
|
||||
btn2->setMaximumHeight(20);
|
||||
btn2->setFont(QFont("Verdana", 5));
|
||||
btn2->setMaximumWidth(80);
|
||||
|
||||
btn3 = new QPushButton("Move to Click");
|
||||
btn3->setCheckable(true);
|
||||
btn3->setMaximumHeight(20);
|
||||
btn3->setFont(QFont("Verdana", 5));
|
||||
btn3->setMaximumWidth(80);
|
||||
|
||||
btn4 = new QPushButton("Follow Geom");
|
||||
btn4->setCheckable(true);
|
||||
btn4->setMaximumHeight(20);
|
||||
btn4->setFont(QFont("Verdana", 5));
|
||||
btn4->setMaximumWidth(80);
|
||||
|
||||
btn5 = new QPushButton("GPS");
|
||||
btn5->setCheckable(true);
|
||||
btn5->setMaximumHeight(20);
|
||||
btn5->setFont(QFont("Verdana", 5));
|
||||
btn5->setMaximumWidth(80);
|
||||
btn1->setFocusPolicy(Qt::NoFocus);
|
||||
btn2->setFocusPolicy(Qt::NoFocus);
|
||||
btn3->setFocusPolicy(Qt::NoFocus);
|
||||
btn4->setFocusPolicy(Qt::NoFocus);
|
||||
btn5->setFocusPolicy(Qt::NoFocus);
|
||||
|
||||
QHBoxLayout* layout = new QHBoxLayout;
|
||||
QVBoxLayout* layoutinner = new QVBoxLayout;
|
||||
|
||||
layoutinner->addWidget(mc2);
|
||||
layoutinner->addWidget(btn1);
|
||||
layoutinner->addWidget(btn2);
|
||||
layoutinner->addWidget(btn3);
|
||||
layoutinner->addWidget(btn4);
|
||||
layoutinner->addWidget(btn5);
|
||||
layoutinner->addSpacing(70);
|
||||
layout->addLayout(layoutinner);
|
||||
|
||||
QHBoxLayout* mclayout = new QHBoxLayout;
|
||||
mclayout->addWidget(mc);
|
||||
mclayout->setMargin(0);
|
||||
setLayout(mclayout);
|
||||
|
||||
mc->setLayout(layoutinner);
|
||||
|
||||
connect(btn2, SIGNAL(toggled( bool )),
|
||||
this, SLOT(buttonToggled(bool)));
|
||||
|
||||
connect(btn4, SIGNAL(toggled( bool )),
|
||||
this, SLOT(toggleFollow(bool)));
|
||||
|
||||
connect(btn5, SIGNAL(toggled( bool )),
|
||||
this, SLOT(toggleGPS(bool)));
|
||||
}
|
||||
|
||||
void Multidemo::coordinateClicked(const QMouseEvent* evnt, const QPointF coord)
|
||||
{
|
||||
if (btn1->isChecked() && evnt->type()==QEvent::MouseButtonPress)
|
||||
{
|
||||
mc->layer("Geom Layer")->addGeometry(new CirclePoint(coord.x(), coord.y(), 10, "added point"));
|
||||
mc->updateRequestNew();
|
||||
}
|
||||
}
|
||||
|
||||
void Multidemo::geometryClickEvent(Geometry* geom, QPoint)
|
||||
{
|
||||
if (geom->hasClickedPoints())
|
||||
{
|
||||
QList<Geometry*> pp = geom->clickedPoints();
|
||||
for (int i=0; i<pp.size(); ++i)
|
||||
{
|
||||
QMessageBox::information(this, geom->name(), pp.at(i)->name());
|
||||
}
|
||||
}
|
||||
else if (geom->GeometryType == "Point")
|
||||
{
|
||||
QMessageBox::information(this, geom->name(), QString("Position: ").append(QString().setNum(((Point*)geom)->longitude())).append(QString("/")).append(QString().setNum(((Point*)geom)->latitude())));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Multidemo::~Multidemo()
|
||||
{
|
||||
}
|
||||
|
||||
void Multidemo::keyPressEvent(QKeyEvent* evnt)
|
||||
{
|
||||
if (evnt->key() == 49 || evnt->key() == 17825792) // keyboard '1'
|
||||
{
|
||||
mc->zoomIn();
|
||||
}
|
||||
else if (evnt->key() == 50)
|
||||
{
|
||||
mc->moveTo(QPointF(8.25, 60));
|
||||
}
|
||||
else if (evnt->key() == 51 || evnt->key() == 16777313) // keyboard '3'
|
||||
{
|
||||
mc->zoomOut();
|
||||
}
|
||||
else if (evnt->key() == 52) //4
|
||||
{
|
||||
mc->updateRequestNew();
|
||||
}
|
||||
else if (evnt->key() == 16777234) // left
|
||||
{
|
||||
mc->scrollLeft();
|
||||
}
|
||||
else if (evnt->key() == 16777236) // right
|
||||
{
|
||||
mc->scrollRight();
|
||||
}
|
||||
else if (evnt->key() == 16777235 ) // up
|
||||
{
|
||||
mc->scrollUp();
|
||||
}
|
||||
else if (evnt->key() == 16777237) // down
|
||||
{
|
||||
mc->scrollDown();
|
||||
}
|
||||
else if (evnt->key() == 48 || evnt->key() == 17825797) // 0
|
||||
{
|
||||
emit(close());
|
||||
}
|
||||
}
|
||||
|
||||
void Multidemo::resizeEvent(QResizeEvent *event)
|
||||
{
|
||||
mc->resize(event->size());
|
||||
}
|
||||
|
||||
void Multidemo::buttonToggled(bool active)
|
||||
{
|
||||
if (active)
|
||||
mc->setMouseMode(MapControl::Dragging);
|
||||
else
|
||||
mc->setMouseMode(MapControl::Panning);
|
||||
}
|
||||
void Multidemo::toggleFollow(bool follow)
|
||||
{
|
||||
if (follow)
|
||||
mc->followGeometry(ip);
|
||||
else
|
||||
mc->stopFollowing(ip);
|
||||
}
|
||||
void Multidemo::toggleGPS(bool gps)
|
||||
{
|
||||
if (gps)
|
||||
gm->start();
|
||||
else
|
||||
gm->stop();
|
||||
|
||||
}
|
||||
|
||||
void Multidemo::draggedRect(QRectF rect)
|
||||
{
|
||||
QList<QPointF> coords;
|
||||
coords.append(rect.topLeft());
|
||||
coords.append(rect.bottomRight());
|
||||
mc->setViewAndZoomIn(coords);
|
||||
}
|
||||
|
||||
void Multidemo::mouseEventCoordinate(const QMouseEvent* evnt, const QPointF coordinate)
|
||||
{
|
||||
if (evnt->type() == QEvent::MouseButtonPress && btn3->isChecked())
|
||||
{
|
||||
mc->moveTo(coordinate);
|
||||
}
|
||||
//update mini-window
|
||||
else if(evnt->type() == QEvent::MouseButtonRelease)
|
||||
{
|
||||
mc2->setView(mc->currentCoordinate());
|
||||
}
|
||||
}
|
||||
void Multidemo::coordinateClicked_mc2(const QMouseEvent* evnt, const QPointF coordinate)
|
||||
{
|
||||
if (evnt->type() == QEvent::MouseButtonPress)
|
||||
{
|
||||
mc2->moveTo(coordinate);
|
||||
mc->setView(coordinate);
|
||||
}
|
||||
}
|
60
libs/QMapControl/Samples/Multidemo/src/multidemo.h
Normal file
@ -0,0 +1,60 @@
|
||||
#ifndef MULTIDEMO_H
|
||||
#define MULTIDEMO_H
|
||||
|
||||
#include <QPushButton>
|
||||
#include <mapcontrol.h>
|
||||
#include <imagepoint.h>
|
||||
#include <maplayer.h>
|
||||
#include <geometrylayer.h>
|
||||
#include <osmmapadapter.h>
|
||||
#include <circlepoint.h>
|
||||
#include <linestring.h>
|
||||
#include "gps_modul.h"
|
||||
using namespace qmapcontrol;
|
||||
class Multidemo : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
Multidemo(QWidget *parent = 0);
|
||||
|
||||
~Multidemo();
|
||||
|
||||
private:
|
||||
MapControl* mc;
|
||||
MapControl* mc2;
|
||||
QPushButton* btn1;
|
||||
QPushButton* btn2;
|
||||
QPushButton* btn3;
|
||||
QPushButton* btn4;
|
||||
QPushButton* btn5;
|
||||
ImagePoint* ip;
|
||||
GPS_Modul* gm;
|
||||
|
||||
void setupMaps();
|
||||
void createLayout();
|
||||
Layer* l;
|
||||
|
||||
public slots:
|
||||
void geometryClickEvent(Geometry* geom, QPoint coord_px);
|
||||
void coordinateClicked(const QMouseEvent*, const QPointF);
|
||||
void coordinateClicked_mc2(const QMouseEvent*, const QPointF);
|
||||
void buttonToggled(bool);
|
||||
void toggleFollow(bool);
|
||||
void toggleGPS(bool);
|
||||
|
||||
void draggedRect(QRectF);
|
||||
void mouseEventCoordinate(const QMouseEvent*, const QPointF);
|
||||
|
||||
protected:
|
||||
void keyPressEvent(QKeyEvent* evnt);
|
||||
virtual void resizeEvent ( QResizeEvent * event );
|
||||
|
||||
signals:
|
||||
void setX(int);
|
||||
void setY(int);
|
||||
void zoomIn();
|
||||
void zoomOut();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
216
libs/QMapControl/Samples/Phonebook/phonebook.kdevelop
Normal file
@ -0,0 +1,216 @@
|
||||
<?xml version = '1.0'?>
|
||||
<kdevelop>
|
||||
<general>
|
||||
<author>Kai Winter</author>
|
||||
<email>kaiwinter@gmx.de</email>
|
||||
<version>0.9</version>
|
||||
<projectmanagement>KDevTrollProject</projectmanagement>
|
||||
<primarylanguage>C++</primarylanguage>
|
||||
<keywords>
|
||||
<keyword>Qt</keyword>
|
||||
</keywords>
|
||||
<ignoreparts/>
|
||||
<projectname>Phonebook</projectname>
|
||||
<projectdirectory>.</projectdirectory>
|
||||
<absoluteprojectpath>false</absoluteprojectpath>
|
||||
<description/>
|
||||
<defaultencoding/>
|
||||
</general>
|
||||
<kdevfileview>
|
||||
<groups>
|
||||
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
|
||||
<group pattern="*.ui" name="User Interface" />
|
||||
<group pattern="*.png" name="Icons" />
|
||||
<group pattern="*" name="Others" />
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
<hidenonlocation>false</hidenonlocation>
|
||||
</groups>
|
||||
<tree>
|
||||
<hidenonprojectfiles>false</hidenonprojectfiles>
|
||||
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
|
||||
</tree>
|
||||
</kdevfileview>
|
||||
<kdevcppsupport>
|
||||
<qt>
|
||||
<used>true</used>
|
||||
<version>4</version>
|
||||
<includestyle>4</includestyle>
|
||||
<designerintegration>ExternalDesigner</designerintegration>
|
||||
<qmake>/usr/lib/qt4/bin/qmake</qmake>
|
||||
<designer>/usr/lib/qt4/bin/designer</designer>
|
||||
<root>/usr/lib/qt4</root>
|
||||
<designerpluginpaths/>
|
||||
</qt>
|
||||
<codecompletion>
|
||||
<automaticCodeCompletion>false</automaticCodeCompletion>
|
||||
<automaticArgumentsHint>true</automaticArgumentsHint>
|
||||
<automaticHeaderCompletion>true</automaticHeaderCompletion>
|
||||
<codeCompletionDelay>250</codeCompletionDelay>
|
||||
<argumentsHintDelay>400</argumentsHintDelay>
|
||||
<headerCompletionDelay>250</headerCompletionDelay>
|
||||
<showOnlyAccessibleItems>false</showOnlyAccessibleItems>
|
||||
<completionBoxItemOrder>0</completionBoxItemOrder>
|
||||
<howEvaluationContextMenu>true</howEvaluationContextMenu>
|
||||
<showCommentWithArgumentHint>true</showCommentWithArgumentHint>
|
||||
<statusBarTypeEvaluation>false</statusBarTypeEvaluation>
|
||||
<namespaceAliases>std=_GLIBCXX_STD;__gnu_cxx=std</namespaceAliases>
|
||||
<processPrimaryTypes>true</processPrimaryTypes>
|
||||
<processFunctionArguments>false</processFunctionArguments>
|
||||
<preProcessAllHeaders>false</preProcessAllHeaders>
|
||||
<parseMissingHeadersExperimental>false</parseMissingHeadersExperimental>
|
||||
<resolveIncludePathsUsingMakeExperimental>false</resolveIncludePathsUsingMakeExperimental>
|
||||
<alwaysParseInBackground>true</alwaysParseInBackground>
|
||||
<usePermanentCaching>true</usePermanentCaching>
|
||||
<alwaysIncludeNamespaces>false</alwaysIncludeNamespaces>
|
||||
<includePaths>.;</includePaths>
|
||||
</codecompletion>
|
||||
<creategettersetter>
|
||||
<prefixGet/>
|
||||
<prefixSet>set</prefixSet>
|
||||
<prefixVariable>m_,_</prefixVariable>
|
||||
<parameterName>theValue</parameterName>
|
||||
<inlineGet>true</inlineGet>
|
||||
<inlineSet>true</inlineSet>
|
||||
</creategettersetter>
|
||||
<splitheadersource>
|
||||
<enabled>false</enabled>
|
||||
<synchronize>true</synchronize>
|
||||
<orientation>Vertical</orientation>
|
||||
</splitheadersource>
|
||||
<references>
|
||||
<pcs>QMapControl</pcs>
|
||||
<pcs>Qt4</pcs>
|
||||
</references>
|
||||
</kdevcppsupport>
|
||||
<kdevdoctreeview>
|
||||
<ignoretocs>
|
||||
<toc>bash</toc>
|
||||
<toc>bash_bugs</toc>
|
||||
<toc>clanlib</toc>
|
||||
<toc>fortran_bugs_gcc</toc>
|
||||
<toc>gnome1</toc>
|
||||
<toc>gnustep</toc>
|
||||
<toc>gtk</toc>
|
||||
<toc>gtk_bugs</toc>
|
||||
<toc>haskell</toc>
|
||||
<toc>haskell_bugs_ghc</toc>
|
||||
<toc>java_bugs_gcc</toc>
|
||||
<toc>java_bugs_sun</toc>
|
||||
<toc>kde2book</toc>
|
||||
<toc>opengl</toc>
|
||||
<toc>pascal_bugs_fp</toc>
|
||||
<toc>php</toc>
|
||||
<toc>php_bugs</toc>
|
||||
<toc>perl</toc>
|
||||
<toc>perl_bugs</toc>
|
||||
<toc>python</toc>
|
||||
<toc>python_bugs</toc>
|
||||
<toc>qt-kdev3</toc>
|
||||
<toc>ruby</toc>
|
||||
<toc>ruby_bugs</toc>
|
||||
<toc>sdl</toc>
|
||||
<toc>stl</toc>
|
||||
<toc>sw</toc>
|
||||
<toc>w3c-dom-level2-html</toc>
|
||||
<toc>w3c-svg</toc>
|
||||
<toc>w3c-uaag10</toc>
|
||||
<toc>wxwidgets_bugs</toc>
|
||||
</ignoretocs>
|
||||
<ignoredoxygen>
|
||||
<toc>KDE Libraries (Doxygen)</toc>
|
||||
</ignoredoxygen>
|
||||
</kdevdoctreeview>
|
||||
<kdevdebugger>
|
||||
<general>
|
||||
<dbgshell/>
|
||||
<breakpoints/>
|
||||
<programargs/>
|
||||
<gdbpath>/usr/bin/gdb</gdbpath>
|
||||
<breakonloadinglibs>true</breakonloadinglibs>
|
||||
<separatetty>false</separatetty>
|
||||
<floatingtoolbar>false</floatingtoolbar>
|
||||
<configGdbScript/>
|
||||
<runShellScript/>
|
||||
<runGdbScript/>
|
||||
<raiseGDBOnStart>false</raiseGDBOnStart>
|
||||
</general>
|
||||
<display>
|
||||
<staticmembers>false</staticmembers>
|
||||
<demanglenames>true</demanglenames>
|
||||
<outputradix>10</outputradix>
|
||||
</display>
|
||||
<breakpoints/>
|
||||
</kdevdebugger>
|
||||
<kdevtrollproject>
|
||||
<run>
|
||||
<mainprogram>./bin/Phonebook</mainprogram>
|
||||
<programargs/>
|
||||
<directoryradio>executable</directoryradio>
|
||||
<globaldebugarguments/>
|
||||
<globalcwd>./bin/</globalcwd>
|
||||
<useglobalprogram>true</useglobalprogram>
|
||||
<terminal>false</terminal>
|
||||
<autocompile>false</autocompile>
|
||||
<autoinstall>false</autoinstall>
|
||||
<autokdesu>false</autokdesu>
|
||||
<envvars/>
|
||||
</run>
|
||||
<general>
|
||||
<activedir></activedir>
|
||||
</general>
|
||||
<make>
|
||||
<abortonerror>true</abortonerror>
|
||||
<runmultiplejobs>false</runmultiplejobs>
|
||||
<numberofjobs>1</numberofjobs>
|
||||
<dontact>false</dontact>
|
||||
<makebin/>
|
||||
<prio>0</prio>
|
||||
<envvars/>
|
||||
</make>
|
||||
<qmake>
|
||||
<savebehaviour>2</savebehaviour>
|
||||
<replacePaths>false</replacePaths>
|
||||
<disableDefaultOpts>true</disableDefaultOpts>
|
||||
<enableFilenamesOnly>false</enableFilenamesOnly>
|
||||
</qmake>
|
||||
</kdevtrollproject>
|
||||
<workspace>
|
||||
<openfiles/>
|
||||
</workspace>
|
||||
<kdevfilecreate>
|
||||
<useglobaltypes>
|
||||
<type ext="ui" />
|
||||
<type ext="cpp" />
|
||||
<type ext="h" />
|
||||
<type ext="ts" />
|
||||
<type ext="qrc" />
|
||||
</useglobaltypes>
|
||||
</kdevfilecreate>
|
||||
<kdevdocumentation>
|
||||
<projectdoc>
|
||||
<docsystem>Doxygen Documentation Collection</docsystem>
|
||||
<docurl>phonebook.tag</docurl>
|
||||
</projectdoc>
|
||||
</kdevdocumentation>
|
||||
<substmap>
|
||||
<APPNAME>Phonebook</APPNAME>
|
||||
<APPNAMELC>phonebook</APPNAMELC>
|
||||
<APPNAMESC>Phonebook</APPNAMESC>
|
||||
<APPNAMEUC>PHONEBOOK</APPNAMEUC>
|
||||
<AUTHOR>Kai Winter</AUTHOR>
|
||||
<DESIGNER>/usr/lib/qt4/bin/designer</DESIGNER>
|
||||
<EMAIL>kaiwinter@gmx.de</EMAIL>
|
||||
<LICENSE>GPL</LICENSE>
|
||||
<LICENSEFILE>COPYING</LICENSEFILE>
|
||||
<QMAKE>/usr/lib/qt4/bin/qmake</QMAKE>
|
||||
<VERSION>0.9</VERSION>
|
||||
<YEAR>2008</YEAR>
|
||||
<dest>/home/kai/kwint001/trunk/code/MapAPI/Samples/Phonebook</dest>
|
||||
</substmap>
|
||||
<cppsupportpart>
|
||||
<filetemplates>
|
||||
<interfacesuffix>.h</interfacesuffix>
|
||||
<implementationsuffix>.cpp</implementationsuffix>
|
||||
</filetemplates>
|
||||
</cppsupportpart>
|
||||
</kdevelop>
|
15
libs/QMapControl/Samples/Phonebook/phonebook.pro
Normal file
@ -0,0 +1,15 @@
|
||||
include(../../QMapControl.pri)
|
||||
MOC_DIR = tmp
|
||||
OBJECTS_DIR = obj
|
||||
DESTDIR = bin
|
||||
TARGET = Phonebook
|
||||
DEPENDPATH += . ../../src
|
||||
INCLUDEPATH += . ../../src
|
||||
|
||||
# Input
|
||||
SOURCES += phonebook.cpp \
|
||||
main.cpp
|
||||
HEADERS += phonebook.h
|
||||
|
||||
QT+=network
|
||||
|
15
libs/QMapControl/Samples/Phonebook/src/main.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#include <QApplication>
|
||||
#include "phonebook.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
QApplication app(argc, argv);
|
||||
|
||||
Phonebook pb;
|
||||
pb.resize(480, 500);
|
||||
pb.setWindowTitle("Phonebook Demo");
|
||||
pb.show();
|
||||
return app.exec();
|
||||
}
|
||||
|
131
libs/QMapControl/Samples/Phonebook/src/phonebook.cpp
Normal file
@ -0,0 +1,131 @@
|
||||
#include "phonebook.h"
|
||||
|
||||
Phonebook::Phonebook(QWidget* parent)
|
||||
{
|
||||
mc = new MapControl(QSize(480, 540));
|
||||
MapAdapter* mapadapter = new OSMMapAdapter();
|
||||
Layer* map = new MapLayer("Karte", mapadapter);
|
||||
friends = new GeometryLayer("Friends", mapadapter);
|
||||
|
||||
friendpoint = new CirclePoint(0.,0., 10);
|
||||
friends->addGeometry(friendpoint);
|
||||
|
||||
mc->addLayer(map);
|
||||
mc->addLayer(friends);
|
||||
|
||||
|
||||
QListWidget* list = new QListWidget();
|
||||
QStringList strlist;
|
||||
strlist << "Kai" << "2";
|
||||
list->addItems(strlist);
|
||||
connect(list, SIGNAL(itemClicked( QListWidgetItem* )),
|
||||
this, SLOT(selectedName(QListWidgetItem*)));
|
||||
|
||||
|
||||
QSlider* slider = new QSlider(Qt::Horizontal);
|
||||
slider->setMinimum(0);
|
||||
slider->setMaximum(17);
|
||||
connect(slider, SIGNAL(valueChanged(int)),
|
||||
mc, SLOT(setZoom(int)));
|
||||
|
||||
mc->setMinimumWidth(480);
|
||||
QVBoxLayout* maplayout = new QVBoxLayout;
|
||||
maplayout->addWidget(mc);
|
||||
maplayout->addWidget(slider);
|
||||
|
||||
QHBoxLayout* layout = new QHBoxLayout;
|
||||
layout->addWidget(list);
|
||||
layout->addLayout(maplayout);
|
||||
|
||||
QWidget* w = new QWidget;
|
||||
|
||||
w->setLayout(layout);
|
||||
setCentralWidget(w);
|
||||
|
||||
|
||||
createActions();
|
||||
createMenus();
|
||||
}
|
||||
|
||||
void Phonebook::selectedName(QListWidgetItem* item)
|
||||
{
|
||||
if (item->text() == "Kai")
|
||||
{
|
||||
friendpoint->setCoordinate(QPointF(8.26, 50));
|
||||
friendpoint->setName("Kai");
|
||||
mc->setView(friendpoint);
|
||||
}
|
||||
else if (item->text() == "2")
|
||||
{
|
||||
friendpoint->setCoordinate(QPointF(6.43, 40));
|
||||
mc->setView(friendpoint);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Phonebook::createActions()
|
||||
{
|
||||
// newAct = new QAction(QIcon(":/filenew.xpm"), tr("&New"), this);
|
||||
// newAct->setShortcut(tr("Ctrl+N"));
|
||||
// newAct->setStatusTip(tr("Create a new file"));
|
||||
// connect(newAct, SIGNAL(triggered()), this, SLOT(newFile()));
|
||||
//
|
||||
// openAct = new QAction(QIcon(":/fileopen.xpm"), tr("&Open..."), this);
|
||||
// openAct->setShortcut(tr("Ctrl+O"));
|
||||
// openAct->setStatusTip(tr("Open an existing file"));
|
||||
// connect(openAct, SIGNAL(triggered()), this, SLOT(open()));
|
||||
//
|
||||
// saveAct = new QAction(QIcon(":/filesave.xpm"), tr("&Save"), this);
|
||||
// saveAct->setShortcut(tr("Ctrl+S"));
|
||||
// saveAct->setStatusTip(tr("Save the document to disk"));
|
||||
// connect(saveAct, SIGNAL(triggered()), this, SLOT(save()));
|
||||
//
|
||||
// saveAsAct = new QAction(tr("Save &As..."), this);
|
||||
// saveAsAct->setStatusTip(tr("Save the document under a new name"));
|
||||
// connect(saveAsAct, SIGNAL(triggered()), this, SLOT(saveAs()));
|
||||
//
|
||||
// exitAct = new QAction(tr("E&xit"), this);
|
||||
// exitAct->setShortcut(tr("Ctrl+Q"));
|
||||
// exitAct->setStatusTip(tr("Exit the application"));
|
||||
// connect(exitAct, SIGNAL(triggered()), this, SLOT(close()));
|
||||
//
|
||||
// aboutAct = new QAction(tr("&About"), this);
|
||||
// aboutAct->setStatusTip(tr("Show the application's About box"));
|
||||
// connect(aboutAct, SIGNAL(triggered()), this, SLOT(about()));
|
||||
//
|
||||
// aboutQtAct = new QAction(tr("About &Qt"), this);
|
||||
// aboutQtAct->setStatusTip(tr("Show the Qt library's About box"));
|
||||
// connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
|
||||
//
|
||||
// cutAct->setEnabled(false);
|
||||
// copyAct->setEnabled(false);
|
||||
|
||||
}
|
||||
|
||||
void Phonebook::createMenus()
|
||||
{
|
||||
fileMenu = menuBar()->addMenu(tr("&File"));
|
||||
// fileMenu->addAction(newAct);
|
||||
// fileMenu->addAction(openAct);
|
||||
// fileMenu->addAction(saveAct);
|
||||
// fileMenu->addAction(saveAsAct);
|
||||
// fileMenu->addSeparator();
|
||||
// fileMenu->addAction(exitAct);
|
||||
|
||||
editMenu = menuBar()->addMenu(tr("&Edit"));
|
||||
// editMenu->addAction(cutAct);
|
||||
// editMenu->addAction(copyAct);
|
||||
// editMenu->addAction(pasteAct);
|
||||
|
||||
menuBar()->addSeparator();
|
||||
|
||||
helpMenu = menuBar()->addMenu(tr("&Help"));
|
||||
// helpMenu->addAction(aboutAct);
|
||||
// helpMenu->addAction(aboutQtAct);
|
||||
}
|
||||
|
||||
Phonebook::~Phonebook()
|
||||
{
|
||||
|
||||
}
|
||||
|
41
libs/QMapControl/Samples/Phonebook/src/phonebook.h
Normal file
@ -0,0 +1,41 @@
|
||||
#ifndef PHONEBOOK_H
|
||||
#define PHONEBOOK_H
|
||||
|
||||
#include <QtGui>
|
||||
#include "../../../qmapcontrol.h"
|
||||
using namespace qmapcontrol;
|
||||
class Phonebook: public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
Phonebook(QWidget* parent = 0);
|
||||
~Phonebook();
|
||||
|
||||
private:
|
||||
MapControl* mc;
|
||||
Layer* friends;
|
||||
Point* friendpoint;
|
||||
void createActions();
|
||||
void createMenus();
|
||||
|
||||
QMenu *fileMenu;
|
||||
QMenu *editMenu;
|
||||
QMenu *helpMenu;
|
||||
QToolBar *fileToolBar;
|
||||
QToolBar *editToolBar;
|
||||
QAction *newAct;
|
||||
QAction *openAct;
|
||||
QAction *saveAct;
|
||||
QAction *saveAsAct;
|
||||
QAction *exitAct;
|
||||
QAction *cutAct;
|
||||
QAction *copyAct;
|
||||
QAction *pasteAct;
|
||||
QAction *aboutAct;
|
||||
QAction *aboutQtAct;
|
||||
|
||||
public slots:
|
||||
void selectedName(QListWidgetItem* item);
|
||||
};
|
||||
|
||||
#endif
|
6
libs/QMapControl/Samples/Samples.pro
Normal file
@ -0,0 +1,6 @@
|
||||
SUBDIRS += Mapviewer \
|
||||
LinesAndPoints \
|
||||
GPS \
|
||||
Multidemo \
|
||||
Citymap
|
||||
TEMPLATE = subdirs
|
BIN
libs/QMapControl/Samples/bin/images/180-dom.jpg
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
libs/QMapControl/Samples/bin/images/180-lm.jpg
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
libs/QMapControl/Samples/bin/images/180-quintin.jpg
Normal file
After Width: | Height: | Size: 17 KiB |
BIN
libs/QMapControl/Samples/bin/images/180-rgzm.jpg
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
libs/QMapControl/Samples/bin/images/180-stephan.jpg
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
libs/QMapControl/Samples/bin/images/bus_stop.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
libs/QMapControl/Samples/bin/images/flag.png
Normal file
After Width: | Height: | Size: 230 B |
BIN
libs/QMapControl/Samples/bin/images/marker1.png
Normal file
After Width: | Height: | Size: 238 B |
BIN
libs/QMapControl/Samples/bin/images/marker2.png
Normal file
After Width: | Height: | Size: 226 B |
BIN
libs/QMapControl/Samples/bin/images/marker3.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
libs/QMapControl/Samples/bin/images/note.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
libs/QMapControl/Samples/bin/images/pub.png
Normal file
After Width: | Height: | Size: 429 B |
87
libs/QMapControl/html/annotated.html
Normal file
@ -0,0 +1,87 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: Class List</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li class="current"><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Class List</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="textblock">Here are the classes, structs, unions and interfaces with brief descriptions:</div><div class="directory">
|
||||
<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span>]</div><table class="directory">
|
||||
<tr id="row_0_" class="even"><td class="entry"><span style="width:0px;display:inline-block;"> </span><span id="arr_0_" class="arrow" onclick="toggleFolder('0_')">▼</span><span class="icona"><span class="icon">N</span></span><a class="el" href="namespaceqmapcontrol.html" target="_self">qmapcontrol</a></td><td class="desc">QMapControl namespace </td></tr>
|
||||
<tr id="row_0_0_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1ArrowPoint.html" target="_self">ArrowPoint</a></td><td class="desc">Draws a directed arrow (showing orientation) into the map </td></tr>
|
||||
<tr id="row_0_1_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1CirclePoint.html" target="_self">CirclePoint</a></td><td class="desc">Draws a circle into the map </td></tr>
|
||||
<tr id="row_0_2_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1Curve.html" target="_self">Curve</a></td><td class="desc">A <a class="el" href="classqmapcontrol_1_1Curve.html" title="A Curve Geometry, implemented to fullfil OGC Spec. ">Curve</a> <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a>, implemented to fullfil OGC Spec </td></tr>
|
||||
<tr id="row_0_3_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html" target="_self">EmptyMapAdapter</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> which do not load map tiles </td></tr>
|
||||
<tr id="row_0_4_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html" target="_self">FixedImageOverlay</a></td><td class="desc">Draws a fixed image into the map </td></tr>
|
||||
<tr id="row_0_5_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1Geometry.html" target="_self">Geometry</a></td><td class="desc">Main class for objects that should be painted in maps </td></tr>
|
||||
<tr id="row_0_6_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1GeometryLayer.html" target="_self">GeometryLayer</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a> class </td></tr>
|
||||
<tr id="row_0_7_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1GoogleMapAdapter.html" target="_self">GoogleMapAdapter</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> for Google </td></tr>
|
||||
<tr id="row_0_8_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1ImagePoint.html" target="_self">ImagePoint</a></td><td class="desc">Draws an image into the map </td></tr>
|
||||
<tr id="row_0_9_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1InvisiblePoint.html" target="_self">InvisiblePoint</a></td><td class="desc">Draws an invisible point into the map </td></tr>
|
||||
<tr id="row_0_10_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1Layer.html" target="_self">Layer</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> class </td></tr>
|
||||
<tr id="row_0_11_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1LineString.html" target="_self">LineString</a></td><td class="desc">A collection of <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> objects to describe a line </td></tr>
|
||||
<tr id="row_0_12_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1MapAdapter.html" target="_self">MapAdapter</a></td><td class="desc">Used to fit map servers into QMapControl </td></tr>
|
||||
<tr id="row_0_13_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1MapControl.html" target="_self">MapControl</a></td><td class="desc">The control element of the widget and also the widget itself </td></tr>
|
||||
<tr id="row_0_14_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1MapLayer.html" target="_self">MapLayer</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. ">MapLayer</a> class </td></tr>
|
||||
<tr id="row_0_15_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1MapNetwork.html" target="_self">MapNetwork</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_0_16_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1OpenAerialMapAdapter.html" target="_self">OpenAerialMapAdapter</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> for OpenStreetMap </td></tr>
|
||||
<tr id="row_0_17_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1OSMMapAdapter.html" target="_self">OSMMapAdapter</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> for OpenStreetMap </td></tr>
|
||||
<tr id="row_0_18_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1Point.html" target="_self">Point</a></td><td class="desc">A geometric point to draw objects into maps </td></tr>
|
||||
<tr id="row_0_19_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1TileMapAdapter.html" target="_self">TileMapAdapter</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> for servers with image tiles </td></tr>
|
||||
<tr id="row_0_20_"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1WMSMapAdapter.html" target="_self">WMSMapAdapter</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> for WMS servers </td></tr>
|
||||
<tr id="row_0_21_" class="even"><td class="entry"><span style="width:32px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classqmapcontrol_1_1YahooMapAdapter.html" target="_self">YahooMapAdapter</a></td><td class="desc"><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> for Yahoo Maps </td></tr>
|
||||
<tr id="row_1_"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classQObject.html" target="_self">QObject</a></td><td class="desc"></td></tr>
|
||||
<tr id="row_2_" class="even"><td class="entry"><span style="width:16px;display:inline-block;"> </span><span class="icona"><span class="icon">C</span></span><a class="el" href="classQWidget.html" target="_self">QWidget</a></td><td class="desc"></td></tr>
|
||||
</table>
|
||||
</div><!-- directory -->
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
122
libs/QMapControl/html/arrowpoint_8h_source.html
Normal file
@ -0,0 +1,122 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: arrowpoint.h Source File</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">arrowpoint.h</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">*</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">* This file is part of QMapControl,</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">* an open-source cross-platform map widget</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">*</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">* Copyright (C) 2010 Jeffery MacEachern</span></div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">* Based on CirclePoint code by Kai Winter</span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">*</span></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">* This program is free software: you can redistribute it and/or modify</span></div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">* it under the terms of the GNU Lesser General Public License as published by</span></div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">* the Free Software Foundation, either version 3 of the License, or</span></div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">* (at your option) any later version.</span></div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">*</span></div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">* This program is distributed in the hope that it will be useful,</span></div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">* but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">* GNU Lesser General Public License for more details.</span></div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">*</span></div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">* You should have received a copy of the GNU Lesser General Public License</span></div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">* along with QMapControl. If not, see <http://www.gnu.org/licenses/>.</span></div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">*</span></div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">* Contact e-mail: kaiwinter@gmx.de</span></div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">* Program URL : http://qmapcontrol.sourceforge.net/</span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">*</span></div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">*/</span></div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#ifndef ARROWPOINT_H</span></div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#define ARROWPOINT_H</span></div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <QBrush></span></div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "qmapcontrol_global.h"</span></div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "math.h"</span></div>
|
||||
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "point.h"</span></div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div>
|
||||
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">namespace </span><a class="code" href="namespaceqmapcontrol.html">qmapcontrol</a></div>
|
||||
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> {</div>
|
||||
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="classqmapcontrol_1_1ArrowPoint.html"> 45</a></span>  <span class="keyword">class </span>QMAPCONTROL_EXPORT <a class="code" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a> : <span class="keyword">public</span> <a class="code" href="classqmapcontrol_1_1Point.html">Point</a></div>
|
||||
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  {</div>
|
||||
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div>
|
||||
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a>(qreal x, qreal y, <span class="keywordtype">int</span> sideLength, qreal heading, QString name = QString(), <a class="code" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> alignment = Middle, QPen* pen=0);</div>
|
||||
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">virtual</span> ~<a class="code" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a>();</div>
|
||||
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div>
|
||||
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div>
|
||||
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPen(QPen* pen);</div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div>
|
||||
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">void</span> setHeading(qreal heading);</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  qreal getHeading() <span class="keyword">const</span>;</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordtype">void</span> drawArrow();</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div>
|
||||
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="comment">// Heading</span></div>
|
||||
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  qreal h;</div>
|
||||
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div>
|
||||
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="comment">// Brush to fill the arrow with - solid colour, same as pen</span></div>
|
||||
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  QBrush mybrush;</div>
|
||||
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  };</div>
|
||||
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> }</div>
|
||||
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="ttc" id="classqmapcontrol_1_1Point_html_acdfaca60ec19c0265bac2692d7982726"><div class="ttname"><a href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">qmapcontrol::Point::Alignment</a></div><div class="ttdeci">Alignment</div><div class="ttdoc">sets where the point should be aligned </div><div class="ttdef"><b>Definition:</b> point.h:75</div></div>
|
||||
<div class="ttc" id="classqmapcontrol_1_1Point_html"><div class="ttname"><a href="classqmapcontrol_1_1Point.html">qmapcontrol::Point</a></div><div class="ttdoc">A geometric point to draw objects into maps. </div><div class="ttdef"><b>Definition:</b> point.h:66</div></div>
|
||||
<div class="ttc" id="classqmapcontrol_1_1ArrowPoint_html"><div class="ttname"><a href="classqmapcontrol_1_1ArrowPoint.html">qmapcontrol::ArrowPoint</a></div><div class="ttdoc">Draws a directed arrow (showing orientation) into the map. </div><div class="ttdef"><b>Definition:</b> arrowpoint.h:45</div></div>
|
||||
<div class="ttc" id="namespaceqmapcontrol_html"><div class="ttname"><a href="namespaceqmapcontrol.html">qmapcontrol</a></div><div class="ttdoc">QMapControl namespace. </div><div class="ttdef"><b>Definition:</b> arrowpoint.cpp:28</div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
BIN
libs/QMapControl/html/bc_s.png
Normal file
After Width: | Height: | Size: 676 B |
BIN
libs/QMapControl/html/bdwn.png
Normal file
After Width: | Height: | Size: 147 B |
111
libs/QMapControl/html/circlepoint_8h_source.html
Normal file
@ -0,0 +1,111 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: circlepoint.h Source File</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">circlepoint.h</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
|
||||
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">*</span></div>
|
||||
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">* This file is part of QMapControl,</span></div>
|
||||
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">* an open-source cross-platform map widget</span></div>
|
||||
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">*</span></div>
|
||||
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">* Copyright (C) 2007 - 2008 Kai Winter</span></div>
|
||||
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">*</span></div>
|
||||
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">* This program is free software: you can redistribute it and/or modify</span></div>
|
||||
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">* it under the terms of the GNU Lesser General Public License as published by</span></div>
|
||||
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">* the Free Software Foundation, either version 3 of the License, or</span></div>
|
||||
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">* (at your option) any later version.</span></div>
|
||||
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">*</span></div>
|
||||
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">* This program is distributed in the hope that it will be useful,</span></div>
|
||||
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">* but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
|
||||
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span></div>
|
||||
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">* GNU Lesser General Public License for more details.</span></div>
|
||||
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">*</span></div>
|
||||
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">* You should have received a copy of the GNU Lesser General Public License</span></div>
|
||||
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">* along with QMapControl. If not, see <http://www.gnu.org/licenses/>.</span></div>
|
||||
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">*</span></div>
|
||||
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">* Contact e-mail: kaiwinter@gmx.de</span></div>
|
||||
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">* Program URL : http://qmapcontrol.sourceforge.net/</span></div>
|
||||
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">*</span></div>
|
||||
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">*/</span></div>
|
||||
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div>
|
||||
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#ifndef CIRCLEPOINT_H</span></div>
|
||||
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#define CIRCLEPOINT_H</span></div>
|
||||
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div>
|
||||
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "qmapcontrol_global.h"</span></div>
|
||||
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "point.h"</span></div>
|
||||
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div>
|
||||
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">namespace </span><a class="code" href="namespaceqmapcontrol.html">qmapcontrol</a></div>
|
||||
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> {</div>
|
||||
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div>
|
||||
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classqmapcontrol_1_1CirclePoint.html"> 41</a></span>  <span class="keyword">class </span>QMAPCONTROL_EXPORT <a class="code" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a> : <span class="keyword">public</span> <a class="code" href="classqmapcontrol_1_1Point.html">Point</a></div>
|
||||
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  {</div>
|
||||
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">public</span>:</div>
|
||||
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div>
|
||||
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <a class="code" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a>(qreal x, qreal y, QString name = QString(), <a class="code" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> alignment = Middle, QPen* pen=0);</div>
|
||||
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div>
|
||||
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div>
|
||||
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a>(qreal x, qreal y, <span class="keywordtype">int</span> radius = 10, QString name = QString(), <a class="code" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> alignment = Middle, QPen* pen=0);</div>
|
||||
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">virtual</span> ~<a class="code" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a>();</div>
|
||||
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div>
|
||||
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div>
|
||||
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPen(QPen* pen);</div>
|
||||
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div>
|
||||
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keyword">private</span>:</div>
|
||||
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordtype">void</span> drawCircle();</div>
|
||||
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  };</div>
|
||||
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> }</div>
|
||||
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="preprocessor">#endif</span></div>
|
||||
<div class="ttc" id="classqmapcontrol_1_1CirclePoint_html"><div class="ttname"><a href="classqmapcontrol_1_1CirclePoint.html">qmapcontrol::CirclePoint</a></div><div class="ttdoc">Draws a circle into the map. </div><div class="ttdef"><b>Definition:</b> circlepoint.h:41</div></div>
|
||||
<div class="ttc" id="classqmapcontrol_1_1Point_html_acdfaca60ec19c0265bac2692d7982726"><div class="ttname"><a href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">qmapcontrol::Point::Alignment</a></div><div class="ttdeci">Alignment</div><div class="ttdoc">sets where the point should be aligned </div><div class="ttdef"><b>Definition:</b> point.h:75</div></div>
|
||||
<div class="ttc" id="classqmapcontrol_1_1Point_html"><div class="ttname"><a href="classqmapcontrol_1_1Point.html">qmapcontrol::Point</a></div><div class="ttdoc">A geometric point to draw objects into maps. </div><div class="ttdef"><b>Definition:</b> point.h:66</div></div>
|
||||
<div class="ttc" id="namespaceqmapcontrol_html"><div class="ttname"><a href="namespaceqmapcontrol.html">qmapcontrol</a></div><div class="ttdoc">QMapControl namespace. </div><div class="ttdef"><b>Definition:</b> arrowpoint.cpp:28</div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
536
libs/QMapControl/html/citymap_8cpp-example.html
Normal file
@ -0,0 +1,536 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||
<title>QMapControl: citymap.cpp</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.5.9 -->
|
||||
<div class="navigation" id="top">
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li><a href="annotated.html"><span>Classes</span></a></li>
|
||||
<li><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="examples.html"><span>Examples</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contents">
|
||||
<h1>citymap.cpp</h1>This demo appclication shows more features of the QMapControl. It shows images, which changes its size when changing the zoomlevel. You can display/hide layers and choose different map providers. Also it demonstrates more possibilities for user interaction:<br>
|
||||
<ul>
|
||||
<li>notes can be added to any coordinate (a QTextEdit is used for editing the note)<br>
|
||||
</li><li>the user can measure distances between two points</li></ul>
|
||||
<p>
|
||||
<div align="center">
|
||||
<img src="sample_citymap.png" alt="sample_citymap.png">
|
||||
<p><strong>screenshot</strong></p></div>
|
||||
<div class="fragment"><pre class="fragment">
|
||||
<span class="preprocessor">#include "citymap.h"</span>
|
||||
|
||||
Citymap::Citymap(QWidget*)
|
||||
{
|
||||
<span class="comment">// create MapControl</span>
|
||||
mc = <span class="keyword">new</span> MapControl(QSize(380,540));
|
||||
mc->showScale(<span class="keyword">true</span>);
|
||||
<span class="comment">// display the MapControl in the application</span>
|
||||
QVBoxLayout* layout = <span class="keyword">new</span> QVBoxLayout;
|
||||
layout->addWidget(mc);
|
||||
|
||||
QWidget* w = <span class="keyword">new</span> QWidget();
|
||||
w->setLayout(layout);
|
||||
setCentralWidget(w);
|
||||
|
||||
|
||||
notepixmap = <span class="keyword">new</span> QPixmap(QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/note.png"</span>);
|
||||
|
||||
coord1 = QPointF();
|
||||
coord2 = QPointF();
|
||||
mapadapter = <span class="keyword">new</span> OSMMapAdapter();
|
||||
MapAdapter* mapadapter_overlay = <span class="keyword">new</span> YahooMapAdapter(<span class="stringliteral">"us.maps3.yimg.com"</span>, <span class="stringliteral">"/aerial.maps.yimg.com/png?v=2.2&t=h&s=256&x=%2&y=%3&z=%1"</span>);
|
||||
|
||||
<span class="comment">// create a layer with the mapadapter and type MapLayer</span>
|
||||
l = <span class="keyword">new</span> MapLayer(<span class="stringliteral">"Custom Layer"</span>, mapadapter);
|
||||
overlay = <span class="keyword">new</span> MapLayer(<span class="stringliteral">"Overlay"</span>, mapadapter_overlay);
|
||||
overlay->setVisible(<span class="keyword">false</span>);
|
||||
|
||||
mc->addLayer(l);
|
||||
mc->addLayer(overlay);
|
||||
|
||||
notes = <span class="keyword">new</span> GeometryLayer(<span class="stringliteral">"Notes"</span>, mapadapter);
|
||||
|
||||
|
||||
createTours();
|
||||
addSights();
|
||||
addPubs();
|
||||
addMuseums();
|
||||
|
||||
addZoomButtons();
|
||||
createActions();
|
||||
createMenus();
|
||||
|
||||
mc->addLayer(notes);
|
||||
connect(notes, SIGNAL(geometryClicked(Geometry*, QPoint)),
|
||||
<span class="keyword">this</span>, SLOT(editNote(Geometry*, QPoint)));
|
||||
|
||||
|
||||
mc->setView(QPointF(8.26,50));
|
||||
mc->setZoom(13);
|
||||
|
||||
ignoreClicks = <span class="keyword">false</span>;
|
||||
addingNote = <span class="keyword">false</span>;
|
||||
noteID = 0;
|
||||
|
||||
notetextedit = <span class="keyword">new</span> QTextEdit(mc);
|
||||
notetextedit->setGeometry(0,0,200,100);
|
||||
notepoint = <span class="keyword">new</span> Point(0, 0, notetextedit, <span class="stringliteral">"."</span>, Point::TopLeft);
|
||||
notepoint->setVisible(<span class="keyword">false</span>);
|
||||
notes->addGeometry(notepoint);
|
||||
|
||||
}
|
||||
|
||||
<span class="keywordtype">void</span> Citymap::createTours()
|
||||
{
|
||||
QPen* pen = <span class="keyword">new</span> QPen(QColor(0,0,255,100));
|
||||
pen->setWidth(5);
|
||||
|
||||
QList<Point*> points;
|
||||
points << <span class="keyword">new</span> Point(8.2606, 50.0051);
|
||||
points << <span class="keyword">new</span> Point(8.2602, 50.0050);
|
||||
points << <span class="keyword">new</span> Point(8.2598, 50.0044);
|
||||
points << <span class="keyword">new</span> Point(8.2569, 50.0057);
|
||||
points << <span class="keyword">new</span> Point(8.2595, 50.0083);
|
||||
points << <span class="keyword">new</span> Point(8.2587, 50.0086);
|
||||
points << <span class="keyword">new</span> Point(8.2589, 50.0100);
|
||||
points << <span class="keyword">new</span> Point(8.2590, 50.0105);
|
||||
pub_tour = <span class="keyword">new</span> LineString(points, <span class="stringliteral">""</span>, pen);
|
||||
notes->addGeometry(pub_tour);
|
||||
|
||||
points.clear();
|
||||
points << <span class="keyword">new</span> Point(8.25987, 50.0018);
|
||||
points << <span class="keyword">new</span> Point(8.26192, 50.0019);
|
||||
points << <span class="keyword">new</span> Point(8.26301, 50.0031);
|
||||
points << <span class="keyword">new</span> Point(8.26459, 50.0026);
|
||||
points << <span class="keyword">new</span> Point(8.26601, 50.004);
|
||||
points << <span class="keyword">new</span> Point(8.26781, 50.0033);
|
||||
points << <span class="keyword">new</span> Point(8.27052, 50.0054);
|
||||
points << <span class="keyword">new</span> Point(8.2697, 50.0059);
|
||||
museum_tour = <span class="keyword">new</span> LineString(points, <span class="stringliteral">""</span>, pen);
|
||||
notes->addGeometry(museum_tour);
|
||||
|
||||
points.clear();
|
||||
points << <span class="keyword">new</span> Point(8.26015, 50.0015);
|
||||
points << <span class="keyword">new</span> Point(8.2617, 50.0012);
|
||||
points << <span class="keyword">new</span> Point(8.26423, 50.0002);
|
||||
points << <span class="keyword">new</span> Point(8.26698, 50.0024);
|
||||
points << <span class="keyword">new</span> Point(8.27065, 50.0012);
|
||||
points << <span class="keyword">new</span> Point(8.27152, 50.0016);
|
||||
points << <span class="keyword">new</span> Point(8.27225, 50.0004);
|
||||
points << <span class="keyword">new</span> Point(8.27333, 49.9994);
|
||||
points << <span class="keyword">new</span> Point(8.26946, 49.9983);
|
||||
points << <span class="keyword">new</span> Point(8.27105, 49.9973);
|
||||
points << <span class="keyword">new</span> Point(8.27024, 49.9972);
|
||||
points << <span class="keyword">new</span> Point(8.26833, 49.9958);
|
||||
sights_tour = <span class="keyword">new</span> LineString(points, <span class="stringliteral">""</span>, pen);
|
||||
notes->addGeometry(sights_tour);
|
||||
}
|
||||
|
||||
<span class="keywordtype">void</span> Citymap::addSights()
|
||||
{
|
||||
sights = <span class="keyword">new</span> GeometryLayer(<span class="stringliteral">"Sehenswürdigkeiten"</span>, mapadapter);
|
||||
mc->addLayer(sights);
|
||||
Point* dom = <span class="keyword">new</span> ImagePoint(8.274167, 49.998889, QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/180-dom.jpg"</span>, <span class="stringliteral">"Mainzer Dom"</span>);
|
||||
dom->setBaselevel(17);
|
||||
sights->addGeometry(dom);
|
||||
|
||||
Point* stephan = <span class="keyword">new</span> ImagePoint(8.268611, 49.995556, QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/180-stephan.jpg"</span>,<span class="stringliteral">"St. Stephan"</span>);
|
||||
stephan->setBaselevel(17);
|
||||
sights->addGeometry(stephan);
|
||||
|
||||
Point* quitin = <span class="keyword">new</span> ImagePoint(8.272222, 50.000833, QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/180-quintin.jpg"</span>,<span class="stringliteral">"St. Quintin"</span>);
|
||||
quitin->setBaselevel(17);
|
||||
sights->addGeometry(quitin);
|
||||
connect(sights, SIGNAL(geometryClicked(Geometry*, QPoint)),
|
||||
<span class="keyword">this</span>, SLOT(geometryClicked(Geometry*, QPoint)));
|
||||
}
|
||||
<span class="keywordtype">void</span> Citymap::addPubs()
|
||||
{
|
||||
pubs = <span class="keyword">new</span> GeometryLayer(<span class="stringliteral">"Kneipe"</span>, mapadapter);
|
||||
mc->addLayer(pubs);
|
||||
QPixmap* pub = <span class="keyword">new</span> QPixmap(QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/pub.png"</span>);
|
||||
|
||||
Point* bagatelle = <span class="keyword">new</span> Point(8.2606, 50.0052, pub, <span class="stringliteral">"Bagatelle"</span>);
|
||||
pubs->addGeometry(bagatelle);
|
||||
|
||||
Point* nirgendwo = <span class="keyword">new</span> Point(8.2595, 50.0048, pub, <span class="stringliteral">"Nirgendwo"</span>);
|
||||
pubs->addGeometry(nirgendwo);
|
||||
|
||||
Point* krokodil = <span class="keyword">new</span> Point(8.2594,50.0106, pub, <span class="stringliteral">"Krokodil"</span>);
|
||||
pubs->addGeometry(krokodil);
|
||||
|
||||
connect(pubs, SIGNAL(geometryClicked(Geometry*, QPoint)),
|
||||
<span class="keyword">this</span>, SLOT(geometryClickEventKneipe(Geometry*, QPoint)));
|
||||
}
|
||||
<span class="keywordtype">void</span> Citymap::addMuseums()
|
||||
{
|
||||
museum = <span class="keyword">new</span> GeometryLayer(<span class="stringliteral">"Museen"</span>, mapadapter);
|
||||
mc->addLayer(museum);
|
||||
Point* rgzm = <span class="keyword">new</span> ImagePoint(8.269722, 50.006111, QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/180-rgzm.jpg"</span>, <span class="stringliteral">"rgzm"</span>);
|
||||
rgzm->setBaselevel(17);
|
||||
museum->addGeometry(rgzm);
|
||||
|
||||
Point* lm= <span class="keyword">new</span> ImagePoint(8.26778, 50.00385, QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/180-lm.jpg"</span>, <span class="stringliteral">"lm"</span>);
|
||||
lm ->setBaselevel(17);
|
||||
museum->addGeometry(lm);
|
||||
|
||||
connect(museum, SIGNAL(geometryClicked(Geometry*, QPoint)),
|
||||
<span class="keyword">this</span>, SLOT(geometryClicked(Geometry*, QPoint)));
|
||||
}
|
||||
|
||||
<span class="keywordtype">void</span> Citymap::geometryClicked(Geometry* geometry, QPoint)
|
||||
{
|
||||
<span class="keywordflow">if</span> (ignoreClicks || addingNote)
|
||||
<span class="keywordflow">return</span>;
|
||||
|
||||
InfoDialog* infodialog = <span class="keyword">new</span> InfoDialog(<span class="keyword">this</span>);
|
||||
infodialog->setWindowTitle(geometry->name());
|
||||
|
||||
<span class="keywordflow">if</span> (geometry->name() == <span class="stringliteral">"Mainzer Dom"</span>)
|
||||
{
|
||||
infodialog->setInfotext(<span class="stringliteral">"<h1>Mainzer Dom</h1><p><img src=\"images/180-dom.jpg\" align=\"left\"/>Der Hohe Dom zu Mainz ist die Bischofskirche der Diözese Mainz und steht unter dem Patrozinium des heiligen Martin von Tours. Der Ostchor ist dem Hl. Stephan geweiht. Der zu den Kaiserdomen zählende Bau ist in seiner heutigen Form eine dreischiffige romanische Säulenbasilika, die in ihren Anbauten sowohl gotische als auch barocke Elemente aufweist.</p>"</span>);
|
||||
|
||||
} <span class="keywordflow">else</span> <span class="keywordflow">if</span> (geometry->name() == <span class="stringliteral">"St. Stephan"</span>)
|
||||
{
|
||||
infodialog->setInfotext(<span class="stringliteral">"<h1>St. Stephan</h1><p><img src=\"images/180-stephan.jpg\" align=\"left\"/>Die katholische Pfarrkirche Sankt Stephan in Mainz wurde 990 von Erzbischof Willigis auf der höchsten Erhebung der Stadt gegründet. Auftraggeberin war höchstwahrscheinlich die Kaiserwitwe Theophanu. Willigis wollte mit ihr die Gebetsstätte des Reiches schaffen. In der Kirche war ursprünglich ein Stift untergebracht. Der Propst des Stiftes verwaltete eines der Archidiakonate (mittelalterliche Organisationseinheit, ähnlich den heutigen Dekanaten) des Erzbistums.</p>"</span>);
|
||||
} <span class="keywordflow">else</span> <span class="keywordflow">if</span> (geometry->name() == <span class="stringliteral">"St. Quintin"</span>)
|
||||
{
|
||||
infodialog->setInfotext(<span class="stringliteral">"<h1>St. Quintin</h1><p><img src=\"images/180-quintin.jpg\" align=\"left\"/>Die Kirche St. Quintin in Mainz ist die Pfarrkirche der ältesten nachgewiesenen Pfarrei der Stadt."</span>);
|
||||
} <span class="keywordflow">else</span> <span class="keywordflow">if</span> (geometry->name() == <span class="stringliteral">"rgzm"</span>)
|
||||
{
|
||||
infodialog->setInfotext(<span class="stringliteral">"<h1>Römisch-Germanisches Zentralmuseum</h1><p><img src=\"images/180-rgzm.jpg\" align=\"left\"/>Das Römisch-Germanische Zentralmuseum (RGZM) in Mainz ist ein Forschungsinstitut für Vor- und Frühgeschichte, das von Bund und Ländern getragen wird und zur Leibniz-Gemeinschaft deutscher Forschungseinrichtungen gehört. Gegliedert in mehrere Abteilungen, arbeitet das Institut im Bereich der Alten Welt sowie seiner Kontaktzonen von der Altsteinzeit bis ins Mittelalter."</span>);
|
||||
} <span class="keywordflow">else</span> <span class="keywordflow">if</span> (geometry->name() == <span class="stringliteral">"lm"</span>)
|
||||
{
|
||||
infodialog->setInfotext(<span class="stringliteral">"<h1>Landesmuseum Mainz</h1><p><img src=\"images/180-lm.jpg\" align=\"left\"/>Das Landesmuseum Mainz ist eines der ältesten Museen in Deutschland. Eine seiner Vorgängerinstitutionen, die Städtische Gemäldesammlung, wurde bereits 1803 von Jean-Antoine Chaptal auf Veranlassung Napoléon Bonapartes durch eine Schenkung von 36 Gemälden gegründet. Das Museum, welches sich heute im ehemaligen kurfürstlichen Marstall befindet, gehört zusammen mit dem Römisch-Germanischen Zentralmuseum und dem Gutenbergmuseum zu den bedeutenden Museen in Mainz. Seine kunst- und kulturgeschichtliche Sammlung erstreckt sich von der Vorgeschichte über die römische Zeit, dem Mittelalter und Barock bis hin zur Jugendstilzeit und der Kunst des 20. Jahrhunderts."</span>);
|
||||
}
|
||||
<span class="keywordflow">if</span> (geometry->name() != <span class="stringliteral">""</span>)
|
||||
infodialog->showMaximized();
|
||||
}
|
||||
|
||||
<span class="keywordtype">void</span> Citymap::geometryClickEventKneipe(Geometry* geometry, QPoint)
|
||||
{
|
||||
<span class="keywordflow">if</span> (ignoreClicks || addingNote)
|
||||
<span class="keywordflow">return</span>;
|
||||
InfoDialog* infodialog = <span class="keyword">new</span> InfoDialog(<span class="keyword">this</span>);
|
||||
infodialog->setWindowTitle(geometry->name());
|
||||
infodialog->setInfotext(<span class="stringliteral">"<h1>"</span> + geometry->name() + <span class="stringliteral">"</h1>"</span>);
|
||||
infodialog->showNormal();
|
||||
}
|
||||
|
||||
<span class="keywordtype">void</span> Citymap::addZoomButtons()
|
||||
{
|
||||
<span class="comment">// create buttons as controls for zoom</span>
|
||||
QPushButton* zoomin = <span class="keyword">new</span> QPushButton(<span class="stringliteral">"+"</span>);
|
||||
QPushButton* zoomout = <span class="keyword">new</span> QPushButton(<span class="stringliteral">"-"</span>);
|
||||
zoomin->setMaximumWidth(50);
|
||||
zoomout->setMaximumWidth(50);
|
||||
|
||||
connect(zoomin, SIGNAL(clicked(<span class="keywordtype">bool</span>)),
|
||||
mc, SLOT(zoomIn()));
|
||||
connect(zoomout, SIGNAL(clicked(<span class="keywordtype">bool</span>)),
|
||||
mc, SLOT(zoomOut()));
|
||||
|
||||
<span class="comment">// add zoom buttons to the layout of the MapControl</span>
|
||||
QVBoxLayout* innerlayout = <span class="keyword">new</span> QVBoxLayout;
|
||||
innerlayout->addWidget(zoomin);
|
||||
innerlayout->addWidget(zoomout);
|
||||
mc->setLayout(innerlayout);
|
||||
}
|
||||
|
||||
<span class="keywordtype">void</span> Citymap::createActions()
|
||||
{
|
||||
toggleSights = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Show Sights"</span>), <span class="keyword">this</span>);
|
||||
toggleSights->setCheckable(<span class="keyword">true</span>);
|
||||
toggleSights->setChecked(<span class="keyword">true</span>);
|
||||
connect(toggleSights, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
|
||||
sights, SLOT(setVisible(<span class="keywordtype">bool</span>)));
|
||||
|
||||
togglePub = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Show Pubs"</span>), <span class="keyword">this</span>);
|
||||
togglePub->setCheckable(<span class="keyword">true</span>);
|
||||
togglePub->setChecked(<span class="keyword">true</span>);
|
||||
connect(togglePub, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
|
||||
pubs, SLOT(setVisible(<span class="keywordtype">bool</span>)));
|
||||
|
||||
toggleMuseum = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Show Museums"</span>), <span class="keyword">this</span>);
|
||||
toggleMuseum->setCheckable(<span class="keyword">true</span>);
|
||||
toggleMuseum->setChecked(<span class="keyword">true</span>);
|
||||
connect(toggleMuseum, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
|
||||
museum, SLOT(setVisible(<span class="keywordtype">bool</span>)));
|
||||
|
||||
|
||||
toggleSightTour = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Show Sight Tour"</span>), <span class="keyword">this</span>);
|
||||
toggleSightTour->setCheckable(<span class="keyword">true</span>);
|
||||
toggleSightTour->setChecked(<span class="keyword">true</span>);
|
||||
connect(toggleSightTour, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
|
||||
sights_tour, SLOT(setVisible(<span class="keywordtype">bool</span>)));
|
||||
|
||||
togglePubTour = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Show Pub Tour"</span>), <span class="keyword">this</span>);
|
||||
togglePubTour->setCheckable(<span class="keyword">true</span>);
|
||||
togglePubTour->setChecked(<span class="keyword">true</span>);
|
||||
connect(togglePubTour, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
|
||||
pub_tour, SLOT(setVisible(<span class="keywordtype">bool</span>)));
|
||||
|
||||
toggleMuseumTour = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Show Museum Tour"</span>), <span class="keyword">this</span>);
|
||||
toggleMuseumTour->setCheckable(<span class="keyword">true</span>);
|
||||
toggleMuseumTour->setChecked(<span class="keyword">true</span>);
|
||||
connect(toggleMuseumTour, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
|
||||
museum_tour, SLOT(setVisible(<span class="keywordtype">bool</span>)));
|
||||
|
||||
addNoteAction = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Add Note"</span>), <span class="keyword">this</span>);
|
||||
connect(addNoteAction, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
|
||||
<span class="keyword">this</span>, SLOT(addNote()));
|
||||
|
||||
toolsDistance = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Calculate Distance"</span>), <span class="keyword">this</span>);
|
||||
connect(toolsDistance, SIGNAL(triggered(<span class="keywordtype">bool</span>)),
|
||||
<span class="keyword">this</span>, SLOT(calcDistance()));
|
||||
|
||||
QActionGroup* mapproviderGroup = <span class="keyword">new</span> QActionGroup(<span class="keyword">this</span>);
|
||||
osmAction = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"OpenStreetMap"</span>), mapproviderGroup);
|
||||
yahooActionMap = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Yahoo: Map"</span>), mapproviderGroup);
|
||||
yahooActionSatellite = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Yahoo: Satellite"</span>), mapproviderGroup);
|
||||
googleActionMap = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Google: Map"</span>), mapproviderGroup);
|
||||
osmAction->setCheckable(<span class="keyword">true</span>);
|
||||
yahooActionMap->setCheckable(<span class="keyword">true</span>);
|
||||
yahooActionSatellite->setCheckable(<span class="keyword">true</span>);
|
||||
googleActionMap->setCheckable(<span class="keyword">true</span>);
|
||||
osmAction->setChecked(<span class="keyword">true</span>);
|
||||
connect(mapproviderGroup, SIGNAL(triggered(QAction*)),
|
||||
<span class="keyword">this</span>, SLOT(mapproviderSelected(QAction*)));
|
||||
|
||||
yahooActionOverlay = <span class="keyword">new</span> QAction(tr(<span class="stringliteral">"Yahoo: street overlay"</span>), <span class="keyword">this</span>);
|
||||
yahooActionOverlay->setCheckable(<span class="keyword">true</span>);
|
||||
yahooActionOverlay->setEnabled(<span class="keyword">false</span>);
|
||||
connect(yahooActionOverlay, SIGNAL(toggled(<span class="keywordtype">bool</span>)),
|
||||
overlay, SLOT(setVisible(<span class="keywordtype">bool</span>)));
|
||||
}
|
||||
|
||||
<span class="keywordtype">void</span> Citymap::createMenus()
|
||||
{
|
||||
layerMenu = menuBar()->addMenu(tr(<span class="stringliteral">"&Layer"</span>));
|
||||
layerMenu->addAction(toggleSights);
|
||||
layerMenu->addAction(togglePub);
|
||||
layerMenu->addAction(toggleMuseum);
|
||||
|
||||
tourMenu = menuBar()->addMenu(tr(<span class="stringliteral">"T&ours"</span>));
|
||||
tourMenu->addAction(toggleSightTour);
|
||||
tourMenu->addAction(togglePubTour);
|
||||
tourMenu->addAction(toggleMuseumTour);
|
||||
|
||||
toolsMenu = menuBar()->addMenu(tr(<span class="stringliteral">"&Tools"</span>));
|
||||
toolsMenu->addAction(addNoteAction);
|
||||
toolsMenu->addAction(toolsDistance);
|
||||
|
||||
mapMenu = menuBar()->addMenu(tr(<span class="stringliteral">"&Map Provider"</span>));
|
||||
mapMenu->addAction(osmAction);
|
||||
mapMenu->addAction(yahooActionMap);
|
||||
mapMenu->addAction(yahooActionSatellite);
|
||||
mapMenu->addAction(googleActionMap);
|
||||
mapMenu->addSeparator();
|
||||
mapMenu->addAction(yahooActionOverlay);
|
||||
|
||||
}
|
||||
|
||||
<span class="keywordtype">void</span> Citymap::addNote()
|
||||
{
|
||||
addingNote = <span class="keyword">true</span>;
|
||||
connect(mc, SIGNAL(mouseEventCoordinate(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)),
|
||||
<span class="keyword">this</span>, SLOT(writeNote(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)));
|
||||
}
|
||||
|
||||
<span class="keywordtype">void</span> Citymap::writeNote(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF coord)
|
||||
{
|
||||
Point* p = <span class="keyword">new</span> Point(coord.x(), coord.y(), notepixmap, QString::number(++noteID), Point::BottomLeft);
|
||||
currentnoteID = noteID;
|
||||
p->setBaselevel(16);
|
||||
p->setMinsize(QSize(12, 10));
|
||||
p->setMaxsize(QSize(47, 40));
|
||||
notes->addGeometry(p);
|
||||
|
||||
notetextedit->clear();
|
||||
|
||||
notepoint->setCoordinate(coord);
|
||||
notepoint->setVisible(<span class="keyword">true</span>);
|
||||
|
||||
mc->updateRequestNew();
|
||||
|
||||
disconnect(mc, SIGNAL(mouseEventCoordinate(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)),
|
||||
<span class="keyword">this</span>, SLOT(writeNote(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)));
|
||||
|
||||
connect(mc, SIGNAL(mouseEventCoordinate(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)),
|
||||
<span class="keyword">this</span>, SLOT(hideNote(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)));
|
||||
}
|
||||
|
||||
<span class="keywordtype">void</span> Citymap::hideNote(<span class="keyword">const</span> QMouseEvent* evnt, <span class="keyword">const</span> QPointF)
|
||||
{
|
||||
<span class="keywordflow">if</span> (addingNote && evnt->type() == QEvent::MouseButtonDblClick)
|
||||
{
|
||||
addingNote = <span class="keyword">false</span>;
|
||||
notepoint->setVisible(<span class="keyword">false</span>);
|
||||
|
||||
mc->updateRequestNew();
|
||||
|
||||
<span class="comment">// save text</span>
|
||||
notestext[currentnoteID] = notetextedit->toPlainText();
|
||||
|
||||
disconnect(mc, SIGNAL(mouseEventCoordinate(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)),
|
||||
<span class="keyword">this</span>, SLOT(hideNote(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)));
|
||||
}
|
||||
}
|
||||
|
||||
<span class="keywordtype">void</span> Citymap::editNote(Geometry* geom, QPoint)
|
||||
{
|
||||
addingNote = <span class="keyword">true</span>;
|
||||
currentnoteID = QVariant(geom->name()).toInt();
|
||||
notetextedit->setPlainText(notestext[currentnoteID]);
|
||||
notepoint->setCoordinate(geom->points().at(0)->coordinate());
|
||||
notepoint->setVisible(<span class="keyword">true</span>);
|
||||
|
||||
mc->updateRequestNew();
|
||||
connect(mc, SIGNAL(mouseEventCoordinate(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)),
|
||||
<span class="keyword">this</span>, SLOT(hideNote(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)));
|
||||
}
|
||||
|
||||
<span class="keywordtype">void</span> Citymap::calcDistance()
|
||||
{
|
||||
ignoreClicks = <span class="keyword">true</span>;
|
||||
connect(mc, SIGNAL(mouseEventCoordinate( <span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF )),
|
||||
<span class="keyword">this</span>, SLOT(calcDistanceClick(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)));
|
||||
}
|
||||
<span class="keywordtype">void</span> Citymap::calcDistanceClick(<span class="keyword">const</span> QMouseEvent* evnt, <span class="keyword">const</span> QPointF coord)
|
||||
{
|
||||
<span class="keywordflow">if</span> (coord1 == QPointF() && evnt->type() == QEvent::MouseButtonPress)
|
||||
{
|
||||
coord1 = coord;
|
||||
l->addGeometry(<span class="keyword">new</span> ImagePoint(coord1.x(), coord1.y(), QCoreApplication::applicationDirPath() + <span class="stringliteral">"/images/flag.png"</span>, <span class="stringliteral">""</span>, Point::BottomRight));
|
||||
mc->updateRequestNew();
|
||||
}
|
||||
<span class="keywordflow">else</span> <span class="keywordflow">if</span> (coord2 == QPointF() && evnt->type() == QEvent::MouseButtonPress)
|
||||
{
|
||||
coord2 = coord;
|
||||
<span class="keywordtype">double</span> PI = acos(-1.0);
|
||||
<span class="keywordtype">double</span> a1 = coord1.x()* (PI/180.0);;
|
||||
<span class="keywordtype">double</span> b1 = coord1.y()* (PI/180.0);;
|
||||
<span class="keywordtype">double</span> a2 = coord2.x()* (PI/180.0);;
|
||||
<span class="keywordtype">double</span> b2 = coord2.y()* (PI/180.0);;
|
||||
<span class="keywordtype">double</span> r = 6378;
|
||||
|
||||
<span class="keywordtype">double</span> km = acos(cos(a1)*cos(b1)*cos(a2)*cos(b2) + cos(a1)*sin(b1)*cos(a2)*sin(b2) + sin(a1)*sin(a2)) * r;
|
||||
|
||||
|
||||
QList<Point*> points;
|
||||
points.append(<span class="keyword">new</span> Point(coord1.x(), coord1.y()));
|
||||
QPixmap* pixm = <span class="keyword">new</span> QPixmap(100,20);
|
||||
pixm->fill(Qt::transparent);
|
||||
QPainter pain(pixm);
|
||||
pain.setFont(QFont(<span class="stringliteral">"Helvetiva"</span>, 6));
|
||||
pain.drawText(pixm->rect(), QString().setNum(km, <span class="charliteral">'f'</span>, 3) + <span class="stringliteral">" km"</span>);
|
||||
pain.end();
|
||||
points.append(<span class="keyword">new</span> Point(coord2.x(), coord2.y(), pixm, <span class="stringliteral">""</span>, Point::BottomLeft));
|
||||
l->addGeometry(<span class="keyword">new</span> LineString(points));
|
||||
mc->updateRequestNew();
|
||||
coord1 = QPointF();
|
||||
coord2 = QPointF();
|
||||
ignoreClicks = <span class="keyword">false</span>;
|
||||
disconnect(mc, SIGNAL(mouseEventCoordinate( <span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)),
|
||||
<span class="keyword">this</span>, SLOT(calcDistanceClick(<span class="keyword">const</span> QMouseEvent*, <span class="keyword">const</span> QPointF)));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
<span class="keywordtype">void</span> Citymap::mapproviderSelected(QAction* action)
|
||||
{
|
||||
<span class="keywordflow">if</span> (action == osmAction)
|
||||
{
|
||||
<span class="keywordtype">int</span> zoom = mapadapter->adaptedZoom();
|
||||
mc->setZoom(0);
|
||||
|
||||
mapadapter = <span class="keyword">new</span> OSMMapAdapter();
|
||||
l->setMapAdapter(mapadapter);
|
||||
sights->setMapAdapter(mapadapter);
|
||||
museum->setMapAdapter(mapadapter);
|
||||
pubs->setMapAdapter(mapadapter);
|
||||
notes->setMapAdapter(mapadapter);
|
||||
|
||||
mc->updateRequestNew();
|
||||
mc->setZoom(zoom);
|
||||
yahooActionOverlay->setEnabled(<span class="keyword">false</span>);
|
||||
overlay->setVisible(<span class="keyword">false</span>);
|
||||
yahooActionOverlay->setChecked(<span class="keyword">false</span>);
|
||||
|
||||
} <span class="keywordflow">else</span> <span class="keywordflow">if</span> (action == yahooActionMap)
|
||||
{
|
||||
<span class="keywordtype">int</span> zoom = mapadapter->adaptedZoom();
|
||||
mc->setZoom(0);
|
||||
|
||||
mapadapter = <span class="keyword">new</span> YahooMapAdapter();
|
||||
l->setMapAdapter(mapadapter);
|
||||
sights->setMapAdapter(mapadapter);
|
||||
museum->setMapAdapter(mapadapter);
|
||||
pubs->setMapAdapter(mapadapter);
|
||||
notes->setMapAdapter(mapadapter);
|
||||
|
||||
mc->updateRequestNew();
|
||||
mc->setZoom(zoom);
|
||||
yahooActionOverlay->setEnabled(<span class="keyword">false</span>);
|
||||
overlay->setVisible(<span class="keyword">false</span>);
|
||||
yahooActionOverlay->setChecked(<span class="keyword">false</span>);
|
||||
} <span class="keywordflow">else</span> <span class="keywordflow">if</span> (action == yahooActionSatellite)
|
||||
{
|
||||
<span class="keywordtype">int</span> zoom = mapadapter->adaptedZoom();
|
||||
QPointF a = mc->currentCoordinate();
|
||||
mc->setZoom(0);
|
||||
|
||||
mapadapter = <span class="keyword">new</span> YahooMapAdapter(<span class="stringliteral">"us.maps3.yimg.com"</span>, <span class="stringliteral">"/aerial.maps.yimg.com/png?v=1.7&t=a&s=256&x=%2&y=%3&z=%1"</span>);
|
||||
l->setMapAdapter(mapadapter);
|
||||
sights->setMapAdapter(mapadapter);
|
||||
museum->setMapAdapter(mapadapter);
|
||||
pubs->setMapAdapter(mapadapter);
|
||||
notes->setMapAdapter(mapadapter);
|
||||
|
||||
mc->updateRequestNew();
|
||||
mc->setZoom(zoom);
|
||||
yahooActionOverlay->setEnabled(<span class="keyword">true</span>);
|
||||
} <span class="keywordflow">else</span> <span class="keywordflow">if</span> (action == googleActionMap)
|
||||
{
|
||||
<span class="keywordtype">int</span> zoom = mapadapter->adaptedZoom();
|
||||
mc->setZoom(0);
|
||||
mapadapter = <span class="keyword">new</span> GoogleMapAdapter();
|
||||
l->setMapAdapter(mapadapter);
|
||||
sights->setMapAdapter(mapadapter);
|
||||
museum->setMapAdapter(mapadapter);
|
||||
pubs->setMapAdapter(mapadapter);
|
||||
notes->setMapAdapter(mapadapter);
|
||||
mc->updateRequestNew();
|
||||
mc->setZoom(zoom);
|
||||
yahooActionOverlay->setEnabled(<span class="keyword">false</span>);
|
||||
overlay->setVisible(<span class="keyword">false</span>);
|
||||
yahooActionOverlay->setChecked(<span class="keyword">false</span>);
|
||||
}
|
||||
}
|
||||
|
||||
Citymap::~Citymap()
|
||||
{
|
||||
<span class="keyword">delete</span> mc;
|
||||
<span class="keyword">delete</span> mapadapter;
|
||||
<span class="keyword">delete</span> notepixmap;
|
||||
<span class="keyword">delete</span> sights;
|
||||
<span class="keyword">delete</span> notes;
|
||||
<span class="keyword">delete</span> pubs;
|
||||
<span class="keyword">delete</span> museum;
|
||||
}
|
||||
|
||||
</pre></div> </div>
|
||||
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jul 29 12:38:09 2009 for QMapControl by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
|
||||
</body>
|
||||
</html>
|
89
libs/QMapControl/html/classQObject.html
Normal file
@ -0,0 +1,89 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: QObject Class Reference</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">QObject Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="dynheader">
|
||||
Inheritance diagram for QObject:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center">
|
||||
<img src="classQObject.png" usemap="#QObject_map" alt=""/>
|
||||
<map id="QObject_map" name="QObject_map">
|
||||
<area href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. " alt="Geometry" shape="rect" coords="78,56,225,80"/>
|
||||
<area href="classqmapcontrol_1_1Layer.html" title="Layer class. " alt="Layer" shape="rect" coords="392,56,539,80"/>
|
||||
<area href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. " alt="MapAdapter" shape="rect" coords="785,56,932,80"/>
|
||||
<area href="classqmapcontrol_1_1MapNetwork.html" alt="MapNetwork" shape="rect" coords="942,56,1089,80"/>
|
||||
<area href="classqmapcontrol_1_1Curve.html" title="A Curve Geometry, implemented to fullfil OGC Spec. " alt="Curve" shape="rect" coords="0,112,147,136"/>
|
||||
<area href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. " alt="Point" shape="rect" coords="157,112,304,136"/>
|
||||
<area href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. " alt="GeometryLayer" shape="rect" coords="314,112,461,136"/>
|
||||
<area href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. " alt="MapLayer" shape="rect" coords="471,112,618,136"/>
|
||||
<area href="classqmapcontrol_1_1EmptyMapAdapter.html" title="MapAdapter which do not load map tiles. " alt="EmptyMapAdapter" shape="rect" coords="628,112,775,136"/>
|
||||
<area href="classqmapcontrol_1_1TileMapAdapter.html" title="MapAdapter for servers with image tiles. " alt="TileMapAdapter" shape="rect" coords="785,112,932,136"/>
|
||||
<area href="classqmapcontrol_1_1WMSMapAdapter.html" title="MapAdapter for WMS servers. " alt="WMSMapAdapter" shape="rect" coords="942,112,1089,136"/>
|
||||
<area href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. " alt="LineString" shape="rect" coords="0,168,147,192"/>
|
||||
<area href="classqmapcontrol_1_1ArrowPoint.html" title="Draws a directed arrow (showing orientation) into the map. " alt="ArrowPoint" shape="rect" coords="314,168,461,192"/>
|
||||
<area href="classqmapcontrol_1_1CirclePoint.html" title="Draws a circle into the map. " alt="CirclePoint" shape="rect" coords="314,224,461,248"/>
|
||||
<area href="classqmapcontrol_1_1ImagePoint.html" title="Draws an image into the map. " alt="ImagePoint" shape="rect" coords="314,280,461,304"/>
|
||||
<area href="classqmapcontrol_1_1InvisiblePoint.html" title="Draws an invisible point into the map. " alt="InvisiblePoint" shape="rect" coords="314,336,461,360"/>
|
||||
<area href="classqmapcontrol_1_1GoogleMapAdapter.html" title="MapAdapter for Google. " alt="GoogleMapAdapter" shape="rect" coords="942,168,1089,192"/>
|
||||
<area href="classqmapcontrol_1_1OpenAerialMapAdapter.html" title="MapAdapter for OpenStreetMap. " alt="OpenAerialMapAdapter" shape="rect" coords="942,224,1089,248"/>
|
||||
<area href="classqmapcontrol_1_1OSMMapAdapter.html" title="MapAdapter for OpenStreetMap. " alt="OSMMapAdapter" shape="rect" coords="942,280,1089,304"/>
|
||||
<area href="classqmapcontrol_1_1YahooMapAdapter.html" title="MapAdapter for Yahoo Maps. " alt="YahooMapAdapter" shape="rect" coords="942,336,1089,360"/>
|
||||
</map>
|
||||
</div></div>
|
||||
<hr/>The documentation for this class was generated from the following file:<ul>
|
||||
<li><a class="el" href="layer_8h_source.html">layer.h</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
BIN
libs/QMapControl/html/classQObject.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
70
libs/QMapControl/html/classQWidget.html
Normal file
@ -0,0 +1,70 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: QWidget Class Reference</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">QWidget Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="dynheader">
|
||||
Inheritance diagram for QWidget:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center">
|
||||
<img src="classQWidget.png" usemap="#QWidget_map" alt=""/>
|
||||
<map id="QWidget_map" name="QWidget_map">
|
||||
<area href="classqmapcontrol_1_1MapControl.html" title="The control element of the widget and also the widget itself. " alt="MapControl" shape="rect" coords="0,56,78,80"/>
|
||||
</map>
|
||||
</div></div>
|
||||
<hr/>The documentation for this class was generated from the following file:<ul>
|
||||
<li><a class="el" href="mapcontrol_8h_source.html">mapcontrol.h</a></li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
BIN
libs/QMapControl/html/classQWidget.png
Normal file
After Width: | Height: | Size: 442 B |
90
libs/QMapControl/html/classes.html
Normal file
@ -0,0 +1,90 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: Class Index</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Class Index</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<div class="qindex"><a class="qindex" href="#letter_A">A</a> | <a class="qindex" href="#letter_C">C</a> | <a class="qindex" href="#letter_E">E</a> | <a class="qindex" href="#letter_F">F</a> | <a class="qindex" href="#letter_G">G</a> | <a class="qindex" href="#letter_I">I</a> | <a class="qindex" href="#letter_L">L</a> | <a class="qindex" href="#letter_M">M</a> | <a class="qindex" href="#letter_O">O</a> | <a class="qindex" href="#letter_P">P</a> | <a class="qindex" href="#letter_Q">Q</a> | <a class="qindex" href="#letter_T">T</a> | <a class="qindex" href="#letter_W">W</a> | <a class="qindex" href="#letter_Y">Y</a></div>
|
||||
<table style="margin: 10px; white-space: nowrap;" align="center" width="95%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td rowspan="2" valign="bottom"><a name="letter_A"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  A  </div></td></tr></table>
|
||||
</td><td rowspan="2" valign="bottom"><a name="letter_G"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  G  </div></td></tr></table>
|
||||
</td><td valign="top"><a class="el" href="classqmapcontrol_1_1LineString.html">LineString</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td rowspan="2" valign="bottom"><a name="letter_P"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  P  </div></td></tr></table>
|
||||
</td><td rowspan="2" valign="bottom"><a name="letter_Y"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  Y  </div></td></tr></table>
|
||||
</td></tr>
|
||||
<tr><td rowspan="2" valign="bottom"><a name="letter_M"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  M  </div></td></tr></table>
|
||||
</td></tr>
|
||||
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td valign="top"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td valign="top"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td valign="top"><a class="el" href="classqmapcontrol_1_1YahooMapAdapter.html">YahooMapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td></tr>
|
||||
<tr><td rowspan="2" valign="bottom"><a name="letter_C"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  C  </div></td></tr></table>
|
||||
</td><td valign="top"><a class="el" href="classqmapcontrol_1_1GeometryLayer.html">GeometryLayer</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td valign="top"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td rowspan="2" valign="bottom"><a name="letter_Q"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  Q  </div></td></tr></table>
|
||||
</td><td></td></tr>
|
||||
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1GoogleMapAdapter.html">GoogleMapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td valign="top"><a class="el" href="classqmapcontrol_1_1MapControl.html">MapControl</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td></td></tr>
|
||||
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td rowspan="2" valign="bottom"><a name="letter_I"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  I  </div></td></tr></table>
|
||||
</td><td valign="top"><a class="el" href="classqmapcontrol_1_1MapLayer.html">MapLayer</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td valign="top"><a class="el" href="classQObject.html">QObject</a>   </td><td></td></tr>
|
||||
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1Curve.html">Curve</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td valign="top"><a class="el" href="classqmapcontrol_1_1MapNetwork.html">MapNetwork</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td valign="top"><a class="el" href="classQWidget.html">QWidget</a>   </td><td></td></tr>
|
||||
<tr><td rowspan="2" valign="bottom"><a name="letter_E"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  E  </div></td></tr></table>
|
||||
</td><td valign="top"><a class="el" href="classqmapcontrol_1_1ImagePoint.html">ImagePoint</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td rowspan="2" valign="bottom"><a name="letter_O"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  O  </div></td></tr></table>
|
||||
</td><td rowspan="2" valign="bottom"><a name="letter_T"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  T  </div></td></tr></table>
|
||||
</td><td></td></tr>
|
||||
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1InvisiblePoint.html">InvisiblePoint</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td></td></tr>
|
||||
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html">EmptyMapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td rowspan="2" valign="bottom"><a name="letter_L"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  L  </div></td></tr></table>
|
||||
</td><td valign="top"><a class="el" href="classqmapcontrol_1_1OpenAerialMapAdapter.html">OpenAerialMapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td valign="top"><a class="el" href="classqmapcontrol_1_1TileMapAdapter.html">TileMapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td></td></tr>
|
||||
<tr><td rowspan="2" valign="bottom"><a name="letter_F"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  F  </div></td></tr></table>
|
||||
</td><td valign="top"><a class="el" href="classqmapcontrol_1_1OSMMapAdapter.html">OSMMapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td rowspan="2" valign="bottom"><a name="letter_W"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">  W  </div></td></tr></table>
|
||||
</td><td></td></tr>
|
||||
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td></td><td></td></tr>
|
||||
<tr><td valign="top"><a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html">FixedImageOverlay</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td></td><td></td><td valign="top"><a class="el" href="classqmapcontrol_1_1WMSMapAdapter.html">WMSMapAdapter</a> (<a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a>)   </td><td></td></tr>
|
||||
<tr><td></td><td></td><td></td><td></td><td></td></tr>
|
||||
</table>
|
||||
<div class="qindex"><a class="qindex" href="#letter_A">A</a> | <a class="qindex" href="#letter_C">C</a> | <a class="qindex" href="#letter_E">E</a> | <a class="qindex" href="#letter_F">F</a> | <a class="qindex" href="#letter_G">G</a> | <a class="qindex" href="#letter_I">I</a> | <a class="qindex" href="#letter_L">L</a> | <a class="qindex" href="#letter_M">M</a> | <a class="qindex" href="#letter_O">O</a> | <a class="qindex" href="#letter_P">P</a> | <a class="qindex" href="#letter_Q">Q</a> | <a class="qindex" href="#letter_T">T</a> | <a class="qindex" href="#letter_W">W</a> | <a class="qindex" href="#letter_Y">Y</a></div>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,99 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: Member List</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">ArrowPoint Member List</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> enum name</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html#a841a287c3d99b6e796442168cbc96cc8">ArrowPoint</a>(qreal x, qreal y, int sideLength, qreal heading, QString name=QString(), Alignment alignment=Middle, QPen *pen=0)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726ae61b9b6ea2fa75ca500d5bb1eaf6f6fc">BottomLeft</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a6165fc7e37a746212ab2911513d3781f">BottomMiddle</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a1640f649d644701a2f4633e6bd88b20c">BottomRight</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">boundingBox</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a2fbb44b2ed047287d715484d2fda7299">coordinate</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a029a8b50c439c719aac173bffe4cfb71">Equals</a>(Geometry *geom)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a685dcab83356e5cc449475f177bb487d">geometryClicked</a>(Geometry *geometry, QPoint point)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html#a5c08ef7caea74bc61c2fee079f45be43">getHeading</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a08422ee75ab02691943c1ca87e2bc563">isVisible</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a6311aabecac471455760aae4790cff91">latitude</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a2b0f7ec9068af09bcf151af61a785845">longitude</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c">Middle</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a771cc513dc079219d5da2c4b81019d7c">parentGeometry</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#ae781b15ef7d46695b2a7d2855b3f670f">pixmap</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a47257eee92b14e7c7f9b778c67bcb9a5">Point</a>(qreal x, qreal y, QString name=QString(), enum Alignment alignment=Middle)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#aa1767675df0bc3c13c75b3a48241125e">Point</a>(qreal x, qreal y, QWidget *widget, QString name=QString(), enum Alignment alignment=Middle)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a2a5d75301b8d2fd2ed406bddd0835740">Point</a>(qreal x, qreal y, QPixmap pixmap, QString name=QString(), enum Alignment alignment=Middle)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a807f9cfb1b9d680ca76cf825cc9cf46a">positionChanged</a>(Geometry *geom)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a91f1496833bfda9f7a7ec5fcb02a1895">setBaselevel</a>(int zoomlevel)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html#a553a63cdc0e822aaf3f324d23b86cec7">setHeading</a>(qreal heading)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#adc2724c4e195727b823ff55c940283de">setMaxsize</a>(QSize maxsize)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#ac40b3e44f54fab1330b9309ac7bd84d2">setMinsize</a>(QSize minsize)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">setName</a>(QString name)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">setPen</a>(QPen *pen)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a61f66ddc6702462a94d3e231f02b9017">TopLeft</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726aaf2dc2d869f46c11d4c97c6649b2087a">TopMiddle</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a7e42a96f07eab63a8c9fa8a0526f34f4">TopRight</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a3a013a6edb6d10a71297978bc31a796b">toString</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Touches</a>(Point *click, const MapAdapter *mapadapter)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"><span class="mlabel">protected</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#ad1eaabeb2b227cd055ccf4b4e2818480">widget</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
958
libs/QMapControl/html/classqmapcontrol_1_1ArrowPoint.html
Normal file
@ -0,0 +1,958 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: ArrowPoint Class Reference</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-types">Public Types</a> |
|
||||
<a href="#signals">Signals</a> |
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="#pro-methods">Protected Member Functions</a> |
|
||||
<a href="classqmapcontrol_1_1ArrowPoint-members.html">List of all members</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">ArrowPoint Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>Draws a directed arrow (showing orientation) into the map.
|
||||
<a href="classqmapcontrol_1_1ArrowPoint.html#details">More...</a></p>
|
||||
|
||||
<p><code>#include <<a class="el" href="arrowpoint_8h_source.html">arrowpoint.h</a>></code></p>
|
||||
<div class="dynheader">
|
||||
Inheritance diagram for ArrowPoint:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center">
|
||||
<img src="classqmapcontrol_1_1ArrowPoint.png" usemap="#ArrowPoint_map" alt=""/>
|
||||
<map id="ArrowPoint_map" name="ArrowPoint_map">
|
||||
<area href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. " alt="Point" shape="rect" coords="0,112,75,136"/>
|
||||
<area href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. " alt="Geometry" shape="rect" coords="0,56,75,80"/>
|
||||
<area href="classQObject.html" alt="QObject" shape="rect" coords="0,0,75,24"/>
|
||||
</map>
|
||||
</div></div>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
|
||||
Public Types</h2></td></tr>
|
||||
<tr class="memitem:acdfaca60ec19c0265bac2692d7982726"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> { <br />
|
||||
  <a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a61f66ddc6702462a94d3e231f02b9017">TopLeft</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a7e42a96f07eab63a8c9fa8a0526f34f4">TopRight</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726aaf2dc2d869f46c11d4c97c6649b2087a">TopMiddle</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726ae61b9b6ea2fa75ca500d5bb1eaf6f6fc">BottomLeft</a>,
|
||||
<br />
|
||||
  <a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a1640f649d644701a2f4633e6bd88b20c">BottomRight</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a6165fc7e37a746212ab2911513d3781f">BottomMiddle</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c">Middle</a>
|
||||
<br />
|
||||
}</td></tr>
|
||||
<tr class="memdesc:acdfaca60ec19c0265bac2692d7982726"><td class="mdescLeft"> </td><td class="mdescRight">sets where the point should be aligned <a href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">More...</a><br /></td></tr>
|
||||
<tr class="separator:acdfaca60ec19c0265bac2692d7982726"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
|
||||
Signals</h2></td></tr>
|
||||
<tr class="memitem:a685dcab83356e5cc449475f177bb487d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a685dcab83356e5cc449475f177bb487d">geometryClicked</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry, QPoint point)</td></tr>
|
||||
<tr class="memdesc:a685dcab83356e5cc449475f177bb487d"><td class="mdescLeft"> </td><td class="mdescRight">This signal is emitted when a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clicked. <a href="#a685dcab83356e5cc449475f177bb487d">More...</a><br /></td></tr>
|
||||
<tr class="separator:a685dcab83356e5cc449475f177bb487d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a807f9cfb1b9d680ca76cf825cc9cf46a">positionChanged</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geom)</td></tr>
|
||||
<tr class="memdesc:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="mdescLeft"> </td><td class="mdescRight">A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> emits this signal, when its position gets changed. <a href="#a807f9cfb1b9d680ca76cf825cc9cf46a">More...</a><br /></td></tr>
|
||||
<tr class="separator:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
||||
Public Member Functions</h2></td></tr>
|
||||
<tr class="memitem:a841a287c3d99b6e796442168cbc96cc8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html#a841a287c3d99b6e796442168cbc96cc8">ArrowPoint</a> (qreal x, qreal y, int sideLength, qreal heading, QString <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>=QString(), <a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> alignment=<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c">Middle</a>, QPen *<a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a>=0)</td></tr>
|
||||
<tr class="separator:a841a287c3d99b6e796442168cbc96cc8"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:acbb256b5f9f888e9cd3bb475108ece24"><td class="memItemLeft" align="right" valign="top">virtual QRectF </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">boundingBox</a> ()</td></tr>
|
||||
<tr class="memdesc:acbb256b5f9f888e9cd3bb475108ece24"><td class="mdescLeft"> </td><td class="mdescRight">returns the bounding box of the point <a href="#acbb256b5f9f888e9cd3bb475108ece24">More...</a><br /></td></tr>
|
||||
<tr class="separator:acbb256b5f9f888e9cd3bb475108ece24"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2fbb44b2ed047287d715484d2fda7299"><td class="memItemLeft" align="right" valign="top">QPointF </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a2fbb44b2ed047287d715484d2fda7299">coordinate</a> () const </td></tr>
|
||||
<tr class="memdesc:a2fbb44b2ed047287d715484d2fda7299"><td class="mdescLeft"> </td><td class="mdescRight">returns the coordinate of the point <a href="#a2fbb44b2ed047287d715484d2fda7299">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2fbb44b2ed047287d715484d2fda7299"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a029a8b50c439c719aac173bffe4cfb71"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a029a8b50c439c719aac173bffe4cfb71">Equals</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geom)</td></tr>
|
||||
<tr class="separator:a029a8b50c439c719aac173bffe4cfb71"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a5c08ef7caea74bc61c2fee079f45be43"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5c08ef7caea74bc61c2fee079f45be43"></a>
|
||||
qreal </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html#a5c08ef7caea74bc61c2fee079f45be43">getHeading</a> () const </td></tr>
|
||||
<tr class="memdesc:a5c08ef7caea74bc61c2fee079f45be43"><td class="mdescLeft"> </td><td class="mdescRight">gets the current heading of the arrow <br /></td></tr>
|
||||
<tr class="separator:a5c08ef7caea74bc61c2fee079f45be43"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a08422ee75ab02691943c1ca87e2bc563"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a08422ee75ab02691943c1ca87e2bc563">isVisible</a> () const </td></tr>
|
||||
<tr class="memdesc:a08422ee75ab02691943c1ca87e2bc563"><td class="mdescLeft"> </td><td class="mdescRight">returns true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible <a href="#a08422ee75ab02691943c1ca87e2bc563">More...</a><br /></td></tr>
|
||||
<tr class="separator:a08422ee75ab02691943c1ca87e2bc563"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6311aabecac471455760aae4790cff91"><td class="memItemLeft" align="right" valign="top">qreal </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a6311aabecac471455760aae4790cff91">latitude</a> () const </td></tr>
|
||||
<tr class="memdesc:a6311aabecac471455760aae4790cff91"><td class="mdescLeft"> </td><td class="mdescRight">returns the latitude of the point <a href="#a6311aabecac471455760aae4790cff91">More...</a><br /></td></tr>
|
||||
<tr class="separator:a6311aabecac471455760aae4790cff91"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2b0f7ec9068af09bcf151af61a785845"><td class="memItemLeft" align="right" valign="top">qreal </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a2b0f7ec9068af09bcf151af61a785845">longitude</a> () const </td></tr>
|
||||
<tr class="memdesc:a2b0f7ec9068af09bcf151af61a785845"><td class="mdescLeft"> </td><td class="mdescRight">returns the longitude of the point <a href="#a2b0f7ec9068af09bcf151af61a785845">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2b0f7ec9068af09bcf151af61a785845"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2b0a198f837184bf6fff555cee3ce770"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a> () const </td></tr>
|
||||
<tr class="memdesc:a2b0a198f837184bf6fff555cee3ce770"><td class="mdescLeft"> </td><td class="mdescRight">returns the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a2b0a198f837184bf6fff555cee3ce770">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2b0a198f837184bf6fff555cee3ce770"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a771cc513dc079219d5da2c4b81019d7c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a771cc513dc079219d5da2c4b81019d7c">parentGeometry</a> () const </td></tr>
|
||||
<tr class="memdesc:a771cc513dc079219d5da2c4b81019d7c"><td class="mdescLeft"> </td><td class="mdescRight">returns the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a771cc513dc079219d5da2c4b81019d7c">More...</a><br /></td></tr>
|
||||
<tr class="separator:a771cc513dc079219d5da2c4b81019d7c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="memItemLeft" align="right" valign="top">QPen * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a> () const </td></tr>
|
||||
<tr class="memdesc:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="mdescLeft"> </td><td class="mdescRight">returns the QPen which is used on drawing <a href="#aed7be2fcd2c1d7bccb55f5ac73d7a662">More...</a><br /></td></tr>
|
||||
<tr class="separator:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae781b15ef7d46695b2a7d2855b3f670f"><td class="memItemLeft" align="right" valign="top">QPixmap </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#ae781b15ef7d46695b2a7d2855b3f670f">pixmap</a> ()</td></tr>
|
||||
<tr class="memdesc:ae781b15ef7d46695b2a7d2855b3f670f"><td class="mdescLeft"> </td><td class="mdescRight">returns the pixmap of the point <a href="#ae781b15ef7d46695b2a7d2855b3f670f">More...</a><br /></td></tr>
|
||||
<tr class="separator:ae781b15ef7d46695b2a7d2855b3f670f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a91f1496833bfda9f7a7ec5fcb02a1895"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a91f1496833bfda9f7a7ec5fcb02a1895">setBaselevel</a> (int zoomlevel)</td></tr>
|
||||
<tr class="memdesc:a91f1496833bfda9f7a7ec5fcb02a1895"><td class="mdescLeft"> </td><td class="mdescRight">Sets the zoom level on which the points pixmap gets displayed on full size. <a href="#a91f1496833bfda9f7a7ec5fcb02a1895">More...</a><br /></td></tr>
|
||||
<tr class="separator:a91f1496833bfda9f7a7ec5fcb02a1895"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a553a63cdc0e822aaf3f324d23b86cec7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html#a553a63cdc0e822aaf3f324d23b86cec7">setHeading</a> (qreal heading)</td></tr>
|
||||
<tr class="memdesc:a553a63cdc0e822aaf3f324d23b86cec7"><td class="mdescLeft"> </td><td class="mdescRight">sets the heading of the arrow and redraws it in the new orientation <a href="#a553a63cdc0e822aaf3f324d23b86cec7">More...</a><br /></td></tr>
|
||||
<tr class="separator:a553a63cdc0e822aaf3f324d23b86cec7"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:adc2724c4e195727b823ff55c940283de"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#adc2724c4e195727b823ff55c940283de">setMaxsize</a> (QSize maxsize)</td></tr>
|
||||
<tr class="memdesc:adc2724c4e195727b823ff55c940283de"><td class="mdescLeft"> </td><td class="mdescRight">sets a maximal size for the pixmap <a href="#adc2724c4e195727b823ff55c940283de">More...</a><br /></td></tr>
|
||||
<tr class="separator:adc2724c4e195727b823ff55c940283de"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ac40b3e44f54fab1330b9309ac7bd84d2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#ac40b3e44f54fab1330b9309ac7bd84d2">setMinsize</a> (QSize minsize)</td></tr>
|
||||
<tr class="memdesc:ac40b3e44f54fab1330b9309ac7bd84d2"><td class="mdescLeft"> </td><td class="mdescRight">sets a minimal size for the pixmap <a href="#ac40b3e44f54fab1330b9309ac7bd84d2">More...</a><br /></td></tr>
|
||||
<tr class="separator:ac40b3e44f54fab1330b9309ac7bd84d2"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6220fae15759fd0fa7d75e415df34e83"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">setName</a> (QString <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>)</td></tr>
|
||||
<tr class="memdesc:a6220fae15759fd0fa7d75e415df34e83"><td class="mdescLeft"> </td><td class="mdescRight">sets the name of the geometry <a href="#a6220fae15759fd0fa7d75e415df34e83">More...</a><br /></td></tr>
|
||||
<tr class="separator:a6220fae15759fd0fa7d75e415df34e83"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa92f0f1b5d2fd424196a33012ffe8ea1"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">setPen</a> (QPen *<a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a>)</td></tr>
|
||||
<tr class="memdesc:aa92f0f1b5d2fd424196a33012ffe8ea1"><td class="mdescLeft"> </td><td class="mdescRight">sets the QPen which is used for drawing the arrow <a href="#aa92f0f1b5d2fd424196a33012ffe8ea1">More...</a><br /></td></tr>
|
||||
<tr class="separator:aa92f0f1b5d2fd424196a33012ffe8ea1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3a013a6edb6d10a71297978bc31a796b"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a3a013a6edb6d10a71297978bc31a796b">toString</a> ()</td></tr>
|
||||
<tr class="memdesc:a3a013a6edb6d10a71297978bc31a796b"><td class="mdescLeft"> </td><td class="mdescRight">returns a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a3a013a6edb6d10a71297978bc31a796b">More...</a><br /></td></tr>
|
||||
<tr class="separator:a3a013a6edb6d10a71297978bc31a796b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad1eaabeb2b227cd055ccf4b4e2818480"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQWidget.html">QWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#ad1eaabeb2b227cd055ccf4b4e2818480">widget</a> ()</td></tr>
|
||||
<tr class="memdesc:ad1eaabeb2b227cd055ccf4b4e2818480"><td class="mdescLeft"> </td><td class="mdescRight">returns the widget of the point <a href="#ad1eaabeb2b227cd055ccf4b4e2818480">More...</a><br /></td></tr>
|
||||
<tr class="separator:ad1eaabeb2b227cd055ccf4b4e2818480"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
|
||||
Protected Member Functions</h2></td></tr>
|
||||
<tr class="memitem:a7dee2100a2d2056511aca25c9390d253"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Touches</a> (<a class="el" href="classqmapcontrol_1_1Point.html">Point</a> *click, const <a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> *mapadapter)</td></tr>
|
||||
<tr class="memdesc:a7dee2100a2d2056511aca25c9390d253"><td class="mdescLeft"> </td><td class="mdescRight">returns true if the given <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> touches this <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> <a href="#a7dee2100a2d2056511aca25c9390d253">More...</a><br /></td></tr>
|
||||
<tr class="separator:a7dee2100a2d2056511aca25c9390d253"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Draws a directed arrow (showing orientation) into the map. </p>
|
||||
<p>This is a convenience class for <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a>. It configures the pixmap of a <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> to draw an arrow in a specific direction. A QPen could be used to change the color or line-width of the arrow</p>
|
||||
<dl class="section author"><dt>Author</dt><dd>Jeffery MacEachern <a href="#" onclick="location.href='mai'+'lto:'+'j.m'+'ac'+'eac'+'he'+'rn@'+'gm'+'ail'+'.c'+'om'; return false;">j.mac<span style="display: none;">.nosp@m.</span>each<span style="display: none;">.nosp@m.</span>ern@g<span style="display: none;">.nosp@m.</span>mail<span style="display: none;">.nosp@m.</span>.com</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
|
||||
<a class="anchor" id="acdfaca60ec19c0265bac2692d7982726"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">enum <a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets where the point should be aligned </p>
|
||||
<table class="fieldtable">
|
||||
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a61f66ddc6702462a94d3e231f02b9017"></a>TopLeft </td><td class="fielddoc">
|
||||
<p>Align on TopLeft </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a7e42a96f07eab63a8c9fa8a0526f34f4"></a>TopRight </td><td class="fielddoc">
|
||||
<p>Align on TopRight </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726aaf2dc2d869f46c11d4c97c6649b2087a"></a>TopMiddle </td><td class="fielddoc">
|
||||
<p>Align on TopLeft </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726ae61b9b6ea2fa75ca500d5bb1eaf6f6fc"></a>BottomLeft </td><td class="fielddoc">
|
||||
<p>Align on BottomLeft </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a1640f649d644701a2f4633e6bd88b20c"></a>BottomRight </td><td class="fielddoc">
|
||||
<p>Align on BottomRight </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a6165fc7e37a746212ab2911513d3781f"></a>BottomMiddle </td><td class="fielddoc">
|
||||
<p>Align on BottomMiddle </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c"></a>Middle </td><td class="fielddoc">
|
||||
<p>Align on Middle </p>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a class="anchor" id="a841a287c3d99b6e796442168cbc96cc8"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classqmapcontrol_1_1ArrowPoint.html">ArrowPoint</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>sideLength</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>heading</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QString </td>
|
||||
<td class="paramname"><em>name</em> = <code>QString()</code>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> </td>
|
||||
<td class="paramname"><em>alignment</em> = <code><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c">Middle</a></code>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QPen * </td>
|
||||
<td class="paramname"><em>pen</em> = <code>0</code> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">x</td><td>longitude </td></tr>
|
||||
<tr><td class="paramname">y</td><td>latitude </td></tr>
|
||||
<tr><td class="paramname">sideLength</td><td>side length of the arrow's bounding box (square) </td></tr>
|
||||
<tr><td class="paramname">heading</td><td>compass heading determining direction that arrow faces, measured in degrees clockwise from North </td></tr>
|
||||
<tr><td class="paramname">name</td><td>name of the arrow point </td></tr>
|
||||
<tr><td class="paramname">alignment</td><td>alignment (Middle or TopLeft) </td></tr>
|
||||
<tr><td class="paramname">pen</td><td>QPen for drawing </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">Geometry::pen()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a class="anchor" id="acbb256b5f9f888e9cd3bb475108ece24"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QRectF boundingBox </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the bounding box of the point </p>
|
||||
<p>The Bounding contains the coordinate of the point and its size. The size is set, if the point contains a pixmap or a widget </p><dl class="section return"><dt>Returns</dt><dd>the bounding box of the point </dd></dl>
|
||||
|
||||
<p>Implements <a class="el" href="classqmapcontrol_1_1Geometry.html#af92c4fa46f711bea92efe5ab80f9084d">Geometry</a>.</p>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Point.html#a6311aabecac471455760aae4790cff91">Point::latitude()</a>, and <a class="el" href="classqmapcontrol_1_1Point.html#a2b0f7ec9068af09bcf151af61a785845">Point::longitude()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a2fbb44b2ed047287d715484d2fda7299"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QPointF coordinate </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the coordinate of the point </p>
|
||||
<p>The x component of the returned QPointF is the longitude value, the y component the latitude </p><dl class="section return"><dt>Returns</dt><dd>the coordinate of a point </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1MapControl.html#a4ea85421ec8df905fba209510c909e2c">MapControl::setView()</a>, and <a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Point::Touches()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a029a8b50c439c719aac173bffe4cfb71"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool Equals </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geom</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p>returns true if the given <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is equal to this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> not implemented yet! </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geom</td><td>The <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> to be tested </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>true if the given <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is equal to this </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a685dcab83356e5cc449475f177bb487d"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void geometryClicked </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geometry</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QPoint </td>
|
||||
<td class="paramname"><em>point</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">signal</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>This signal is emitted when a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clicked. </p>
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clickable, if the containing layer is clickable. The objects emits a signal if it gets clicked </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geometry</td><td>The clicked <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </td></tr>
|
||||
<tr><td class="paramname">point</td><td>-unused- </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Point::Touches()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a08422ee75ab02691943c1ca87e2bc563"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool isVisible </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Point::Touches()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a6311aabecac471455760aae4790cff91"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">qreal latitude </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the latitude of the point </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the latitude of the point </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1LineString.html#acbb256b5f9f888e9cd3bb475108ece24">LineString::boundingBox()</a>, and <a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">Point::boundingBox()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a2b0f7ec9068af09bcf151af61a785845"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">qreal longitude </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the longitude of the point </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the longitude of the point </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1LineString.html#acbb256b5f9f888e9cd3bb475108ece24">LineString::boundingBox()</a>, and <a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">Point::boundingBox()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a2b0a198f837184bf6fff555cee3ce770"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QString name </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">Geometry::setName()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a771cc513dc079219d5da2c4b81019d7c"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * parentGeometry </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. ">LineString</a> is a composition of many Points. This methods returns the parent (the <a class="el" href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. ">LineString</a>) of a <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> </p><dl class="section return"><dt>Returns</dt><dd>the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="aed7be2fcd2c1d7bccb55f5ac73d7a662"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QPen * pen </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the QPen which is used on drawing </p>
|
||||
<p>The pen is set depending on the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a>. A <a class="el" href="classqmapcontrol_1_1CirclePoint.html" title="Draws a circle into the map. ">CirclePoint</a> for example takes one with the constructor. </p><dl class="section return"><dt>Returns</dt><dd>the QPen which is used for drawing </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1ArrowPoint.html#a841a287c3d99b6e796442168cbc96cc8">ArrowPoint::ArrowPoint()</a>, <a class="el" href="classqmapcontrol_1_1CirclePoint.html#a13300765d52da11cc8cbb4384e8e9e23">CirclePoint::CirclePoint()</a>, <a class="el" href="classqmapcontrol_1_1LineString.html#ad8efdad1cc0ff6c63357cb72180c3a0a">LineString::LineString()</a>, <a class="el" href="classqmapcontrol_1_1ArrowPoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">ArrowPoint::setPen()</a>, and <a class="el" href="classqmapcontrol_1_1CirclePoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">CirclePoint::setPen()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ae781b15ef7d46695b2a7d2855b3f670f"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QPixmap pixmap </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the pixmap of the point </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the pixmap of the point </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html#aa5c420b6584232328fc12d8bc699129c">FixedImageOverlay::FixedImageOverlay()</a>, and <a class="el" href="classqmapcontrol_1_1ImagePoint.html#a5859a1a7467f65a24ef7009acb927446">ImagePoint::ImagePoint()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a807f9cfb1b9d680ca76cf825cc9cf46a"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void positionChanged </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geom</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">signal</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> emits this signal, when its position gets changed. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geom</td><td>the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a91f1496833bfda9f7a7ec5fcb02a1895"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setBaselevel </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>zoomlevel</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Sets the zoom level on which the points pixmap gets displayed on full size. </p>
|
||||
<p>Use this method to set a zoom level on which the pixmap gets displayed with its real size. On zoomlevels below it will be displayed smaller, and on zoom levels thereover it will be displayed larger </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classqmapcontrol_1_1Point.html#ac40b3e44f54fab1330b9309ac7bd84d2" title="sets a minimal size for the pixmap ">setMinsize</a>, <a class="el" href="classqmapcontrol_1_1Point.html#adc2724c4e195727b823ff55c940283de" title="sets a maximal size for the pixmap ">setMaxsize</a> </dd></dl>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">zoomlevel</td><td>the zoomlevel on which the point will be displayed on full size </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a553a63cdc0e822aaf3f324d23b86cec7"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setHeading </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>heading</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets the heading of the arrow and redraws it in the new orientation </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">heading</td><td>new heading </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="adc2724c4e195727b823ff55c940283de"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setMaxsize </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">QSize </td>
|
||||
<td class="paramname"><em>maxsize</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets a maximal size for the pixmap </p>
|
||||
<p>When the point´s pixmap should change its size on zooming, this method sets the maximal size. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classqmapcontrol_1_1Point.html#a91f1496833bfda9f7a7ec5fcb02a1895" title="Sets the zoom level on which the points pixmap gets displayed on full size. ">setBaselevel</a> </dd></dl>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">maxsize</td><td>the maximal size which the pixmap should have </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ac40b3e44f54fab1330b9309ac7bd84d2"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setMinsize </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">QSize </td>
|
||||
<td class="paramname"><em>minsize</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets a minimal size for the pixmap </p>
|
||||
<p>When the point's pixmap should change its size on zooming, this method sets the minimal size. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classqmapcontrol_1_1Point.html#a91f1496833bfda9f7a7ec5fcb02a1895" title="Sets the zoom level on which the points pixmap gets displayed on full size. ">setBaselevel</a> </dd></dl>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">minsize</td><td>the minimal size which the pixmap should have </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a6220fae15759fd0fa7d75e415df34e83"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setName </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">QString </td>
|
||||
<td class="paramname"><em>name</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets the name of the geometry </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">name</td><td>the new name of the geometry </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">Geometry::name()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="aa92f0f1b5d2fd424196a33012ffe8ea1"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setPen </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">QPen * </td>
|
||||
<td class="paramname"><em>pen</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets the QPen which is used for drawing the arrow </p>
|
||||
<p>A QPen can be used to modify the look of the drawn arrow </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">pen</td><td>the QPen which should be used for drawing </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section see"><dt>See also</dt><dd><a href="http://doc.trolltech.com/4.3/qpen.html">http://doc.trolltech.com/4.3/qpen.html</a> </dd></dl>
|
||||
|
||||
<p>Reimplemented from <a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a>.</p>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">Geometry::pen()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a3a013a6edb6d10a71297978bc31a796b"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QString toString </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<p>not implemented yet! </p><dl class="section return"><dt>Returns</dt><dd>a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a7dee2100a2d2056511aca25c9390d253"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool Touches </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a> * </td>
|
||||
<td class="paramname"><em>click</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> * </td>
|
||||
<td class="paramname"><em>mapadapter</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns true if the given <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> touches this <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> </p>
|
||||
<p>The collision detection checks for the bounding rectangulars. </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geom</td><td>the other point which should be tested on collision </td></tr>
|
||||
<tr><td class="paramname">mapadapter</td><td>the mapadapter which is used for calculations </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
|
||||
|
||||
<p>Implements <a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a>.</p>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Point.html#a2fbb44b2ed047287d715484d2fda7299">Point::coordinate()</a>, <a class="el" href="classqmapcontrol_1_1MapAdapter.html#a0a7f30d12395e615eec9440070795349">MapAdapter::coordinateToDisplay()</a>, <a class="el" href="classqmapcontrol_1_1Geometry.html#a685dcab83356e5cc449475f177bb487d">Geometry::geometryClicked()</a>, and <a class="el" href="classqmapcontrol_1_1Geometry.html#a08422ee75ab02691943c1ca87e2bc563">Geometry::isVisible()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ad1eaabeb2b227cd055ccf4b4e2818480"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classQWidget.html">QWidget</a> * widget </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the widget of the point </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the widget of the point </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following files:<ul>
|
||||
<li><a class="el" href="arrowpoint_8h_source.html">arrowpoint.h</a></li>
|
||||
<li>arrowpoint.cpp</li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
BIN
libs/QMapControl/html/classqmapcontrol_1_1ArrowPoint.png
Normal file
After Width: | Height: | Size: 704 B |
@ -0,0 +1,98 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: Member List</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">CirclePoint Member List</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> enum name</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726ae61b9b6ea2fa75ca500d5bb1eaf6f6fc">BottomLeft</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a6165fc7e37a746212ab2911513d3781f">BottomMiddle</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a1640f649d644701a2f4633e6bd88b20c">BottomRight</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">boundingBox</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1CirclePoint.html#aa0dd3496708e507c8185d5ae5f5e79ad">CirclePoint</a>(qreal x, qreal y, QString name=QString(), Alignment alignment=Middle, QPen *pen=0)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1CirclePoint.html#a13300765d52da11cc8cbb4384e8e9e23">CirclePoint</a>(qreal x, qreal y, int radius=10, QString name=QString(), Alignment alignment=Middle, QPen *pen=0)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a2fbb44b2ed047287d715484d2fda7299">coordinate</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a029a8b50c439c719aac173bffe4cfb71">Equals</a>(Geometry *geom)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a685dcab83356e5cc449475f177bb487d">geometryClicked</a>(Geometry *geometry, QPoint point)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a08422ee75ab02691943c1ca87e2bc563">isVisible</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a6311aabecac471455760aae4790cff91">latitude</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a2b0f7ec9068af09bcf151af61a785845">longitude</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c">Middle</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a771cc513dc079219d5da2c4b81019d7c">parentGeometry</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#ae781b15ef7d46695b2a7d2855b3f670f">pixmap</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a47257eee92b14e7c7f9b778c67bcb9a5">Point</a>(qreal x, qreal y, QString name=QString(), enum Alignment alignment=Middle)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#aa1767675df0bc3c13c75b3a48241125e">Point</a>(qreal x, qreal y, QWidget *widget, QString name=QString(), enum Alignment alignment=Middle)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a2a5d75301b8d2fd2ed406bddd0835740">Point</a>(qreal x, qreal y, QPixmap pixmap, QString name=QString(), enum Alignment alignment=Middle)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a807f9cfb1b9d680ca76cf825cc9cf46a">positionChanged</a>(Geometry *geom)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a91f1496833bfda9f7a7ec5fcb02a1895">setBaselevel</a>(int zoomlevel)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#adc2724c4e195727b823ff55c940283de">setMaxsize</a>(QSize maxsize)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#ac40b3e44f54fab1330b9309ac7bd84d2">setMinsize</a>(QSize minsize)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">setName</a>(QString name)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1CirclePoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">setPen</a>(QPen *pen)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a61f66ddc6702462a94d3e231f02b9017">TopLeft</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726aaf2dc2d869f46c11d4c97c6649b2087a">TopMiddle</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a7e42a96f07eab63a8c9fa8a0526f34f4">TopRight</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a3a013a6edb6d10a71297978bc31a796b">toString</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Touches</a>(Point *click, const MapAdapter *mapadapter)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"><span class="mlabel">protected</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#ad1eaabeb2b227cd055ccf4b4e2818480">widget</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
978
libs/QMapControl/html/classqmapcontrol_1_1CirclePoint.html
Normal file
@ -0,0 +1,978 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: CirclePoint Class Reference</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-types">Public Types</a> |
|
||||
<a href="#signals">Signals</a> |
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="#pro-methods">Protected Member Functions</a> |
|
||||
<a href="classqmapcontrol_1_1CirclePoint-members.html">List of all members</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">CirclePoint Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>Draws a circle into the map.
|
||||
<a href="classqmapcontrol_1_1CirclePoint.html#details">More...</a></p>
|
||||
|
||||
<p><code>#include <<a class="el" href="circlepoint_8h_source.html">circlepoint.h</a>></code></p>
|
||||
<div class="dynheader">
|
||||
Inheritance diagram for CirclePoint:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center">
|
||||
<img src="classqmapcontrol_1_1CirclePoint.png" usemap="#CirclePoint_map" alt=""/>
|
||||
<map id="CirclePoint_map" name="CirclePoint_map">
|
||||
<area href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. " alt="Point" shape="rect" coords="0,112,74,136"/>
|
||||
<area href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. " alt="Geometry" shape="rect" coords="0,56,74,80"/>
|
||||
<area href="classQObject.html" alt="QObject" shape="rect" coords="0,0,74,24"/>
|
||||
</map>
|
||||
</div></div>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
|
||||
Public Types</h2></td></tr>
|
||||
<tr class="memitem:acdfaca60ec19c0265bac2692d7982726"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> { <br />
|
||||
  <a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a61f66ddc6702462a94d3e231f02b9017">TopLeft</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a7e42a96f07eab63a8c9fa8a0526f34f4">TopRight</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726aaf2dc2d869f46c11d4c97c6649b2087a">TopMiddle</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726ae61b9b6ea2fa75ca500d5bb1eaf6f6fc">BottomLeft</a>,
|
||||
<br />
|
||||
  <a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a1640f649d644701a2f4633e6bd88b20c">BottomRight</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a6165fc7e37a746212ab2911513d3781f">BottomMiddle</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c">Middle</a>
|
||||
<br />
|
||||
}</td></tr>
|
||||
<tr class="memdesc:acdfaca60ec19c0265bac2692d7982726"><td class="mdescLeft"> </td><td class="mdescRight">sets where the point should be aligned <a href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">More...</a><br /></td></tr>
|
||||
<tr class="separator:acdfaca60ec19c0265bac2692d7982726"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
|
||||
Signals</h2></td></tr>
|
||||
<tr class="memitem:a685dcab83356e5cc449475f177bb487d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a685dcab83356e5cc449475f177bb487d">geometryClicked</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry, QPoint point)</td></tr>
|
||||
<tr class="memdesc:a685dcab83356e5cc449475f177bb487d"><td class="mdescLeft"> </td><td class="mdescRight">This signal is emitted when a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clicked. <a href="#a685dcab83356e5cc449475f177bb487d">More...</a><br /></td></tr>
|
||||
<tr class="separator:a685dcab83356e5cc449475f177bb487d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a807f9cfb1b9d680ca76cf825cc9cf46a">positionChanged</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geom)</td></tr>
|
||||
<tr class="memdesc:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="mdescLeft"> </td><td class="mdescRight">A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> emits this signal, when its position gets changed. <a href="#a807f9cfb1b9d680ca76cf825cc9cf46a">More...</a><br /></td></tr>
|
||||
<tr class="separator:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
||||
Public Member Functions</h2></td></tr>
|
||||
<tr class="memitem:acbb256b5f9f888e9cd3bb475108ece24"><td class="memItemLeft" align="right" valign="top">virtual QRectF </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">boundingBox</a> ()</td></tr>
|
||||
<tr class="memdesc:acbb256b5f9f888e9cd3bb475108ece24"><td class="mdescLeft"> </td><td class="mdescRight">returns the bounding box of the point <a href="#acbb256b5f9f888e9cd3bb475108ece24">More...</a><br /></td></tr>
|
||||
<tr class="separator:acbb256b5f9f888e9cd3bb475108ece24"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa0dd3496708e507c8185d5ae5f5e79ad"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1CirclePoint.html#aa0dd3496708e507c8185d5ae5f5e79ad">CirclePoint</a> (qreal x, qreal y, QString <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>=QString(), <a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> alignment=<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c">Middle</a>, QPen *<a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a>=0)</td></tr>
|
||||
<tr class="separator:aa0dd3496708e507c8185d5ae5f5e79ad"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a13300765d52da11cc8cbb4384e8e9e23"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1CirclePoint.html#a13300765d52da11cc8cbb4384e8e9e23">CirclePoint</a> (qreal x, qreal y, int radius=10, QString <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>=QString(), <a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> alignment=<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c">Middle</a>, QPen *<a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a>=0)</td></tr>
|
||||
<tr class="separator:a13300765d52da11cc8cbb4384e8e9e23"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2fbb44b2ed047287d715484d2fda7299"><td class="memItemLeft" align="right" valign="top">QPointF </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a2fbb44b2ed047287d715484d2fda7299">coordinate</a> () const </td></tr>
|
||||
<tr class="memdesc:a2fbb44b2ed047287d715484d2fda7299"><td class="mdescLeft"> </td><td class="mdescRight">returns the coordinate of the point <a href="#a2fbb44b2ed047287d715484d2fda7299">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2fbb44b2ed047287d715484d2fda7299"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a029a8b50c439c719aac173bffe4cfb71"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a029a8b50c439c719aac173bffe4cfb71">Equals</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geom)</td></tr>
|
||||
<tr class="separator:a029a8b50c439c719aac173bffe4cfb71"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a08422ee75ab02691943c1ca87e2bc563"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a08422ee75ab02691943c1ca87e2bc563">isVisible</a> () const </td></tr>
|
||||
<tr class="memdesc:a08422ee75ab02691943c1ca87e2bc563"><td class="mdescLeft"> </td><td class="mdescRight">returns true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible <a href="#a08422ee75ab02691943c1ca87e2bc563">More...</a><br /></td></tr>
|
||||
<tr class="separator:a08422ee75ab02691943c1ca87e2bc563"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6311aabecac471455760aae4790cff91"><td class="memItemLeft" align="right" valign="top">qreal </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a6311aabecac471455760aae4790cff91">latitude</a> () const </td></tr>
|
||||
<tr class="memdesc:a6311aabecac471455760aae4790cff91"><td class="mdescLeft"> </td><td class="mdescRight">returns the latitude of the point <a href="#a6311aabecac471455760aae4790cff91">More...</a><br /></td></tr>
|
||||
<tr class="separator:a6311aabecac471455760aae4790cff91"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2b0f7ec9068af09bcf151af61a785845"><td class="memItemLeft" align="right" valign="top">qreal </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a2b0f7ec9068af09bcf151af61a785845">longitude</a> () const </td></tr>
|
||||
<tr class="memdesc:a2b0f7ec9068af09bcf151af61a785845"><td class="mdescLeft"> </td><td class="mdescRight">returns the longitude of the point <a href="#a2b0f7ec9068af09bcf151af61a785845">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2b0f7ec9068af09bcf151af61a785845"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2b0a198f837184bf6fff555cee3ce770"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a> () const </td></tr>
|
||||
<tr class="memdesc:a2b0a198f837184bf6fff555cee3ce770"><td class="mdescLeft"> </td><td class="mdescRight">returns the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a2b0a198f837184bf6fff555cee3ce770">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2b0a198f837184bf6fff555cee3ce770"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a771cc513dc079219d5da2c4b81019d7c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a771cc513dc079219d5da2c4b81019d7c">parentGeometry</a> () const </td></tr>
|
||||
<tr class="memdesc:a771cc513dc079219d5da2c4b81019d7c"><td class="mdescLeft"> </td><td class="mdescRight">returns the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a771cc513dc079219d5da2c4b81019d7c">More...</a><br /></td></tr>
|
||||
<tr class="separator:a771cc513dc079219d5da2c4b81019d7c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="memItemLeft" align="right" valign="top">QPen * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a> () const </td></tr>
|
||||
<tr class="memdesc:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="mdescLeft"> </td><td class="mdescRight">returns the QPen which is used on drawing <a href="#aed7be2fcd2c1d7bccb55f5ac73d7a662">More...</a><br /></td></tr>
|
||||
<tr class="separator:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae781b15ef7d46695b2a7d2855b3f670f"><td class="memItemLeft" align="right" valign="top">QPixmap </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#ae781b15ef7d46695b2a7d2855b3f670f">pixmap</a> ()</td></tr>
|
||||
<tr class="memdesc:ae781b15ef7d46695b2a7d2855b3f670f"><td class="mdescLeft"> </td><td class="mdescRight">returns the pixmap of the point <a href="#ae781b15ef7d46695b2a7d2855b3f670f">More...</a><br /></td></tr>
|
||||
<tr class="separator:ae781b15ef7d46695b2a7d2855b3f670f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a91f1496833bfda9f7a7ec5fcb02a1895"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a91f1496833bfda9f7a7ec5fcb02a1895">setBaselevel</a> (int zoomlevel)</td></tr>
|
||||
<tr class="memdesc:a91f1496833bfda9f7a7ec5fcb02a1895"><td class="mdescLeft"> </td><td class="mdescRight">Sets the zoom level on which the points pixmap gets displayed on full size. <a href="#a91f1496833bfda9f7a7ec5fcb02a1895">More...</a><br /></td></tr>
|
||||
<tr class="separator:a91f1496833bfda9f7a7ec5fcb02a1895"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:adc2724c4e195727b823ff55c940283de"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#adc2724c4e195727b823ff55c940283de">setMaxsize</a> (QSize maxsize)</td></tr>
|
||||
<tr class="memdesc:adc2724c4e195727b823ff55c940283de"><td class="mdescLeft"> </td><td class="mdescRight">sets a maximal size for the pixmap <a href="#adc2724c4e195727b823ff55c940283de">More...</a><br /></td></tr>
|
||||
<tr class="separator:adc2724c4e195727b823ff55c940283de"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ac40b3e44f54fab1330b9309ac7bd84d2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#ac40b3e44f54fab1330b9309ac7bd84d2">setMinsize</a> (QSize minsize)</td></tr>
|
||||
<tr class="memdesc:ac40b3e44f54fab1330b9309ac7bd84d2"><td class="mdescLeft"> </td><td class="mdescRight">sets a minimal size for the pixmap <a href="#ac40b3e44f54fab1330b9309ac7bd84d2">More...</a><br /></td></tr>
|
||||
<tr class="separator:ac40b3e44f54fab1330b9309ac7bd84d2"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6220fae15759fd0fa7d75e415df34e83"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">setName</a> (QString <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>)</td></tr>
|
||||
<tr class="memdesc:a6220fae15759fd0fa7d75e415df34e83"><td class="mdescLeft"> </td><td class="mdescRight">sets the name of the geometry <a href="#a6220fae15759fd0fa7d75e415df34e83">More...</a><br /></td></tr>
|
||||
<tr class="separator:a6220fae15759fd0fa7d75e415df34e83"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa92f0f1b5d2fd424196a33012ffe8ea1"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1CirclePoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">setPen</a> (QPen *<a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a>)</td></tr>
|
||||
<tr class="memdesc:aa92f0f1b5d2fd424196a33012ffe8ea1"><td class="mdescLeft"> </td><td class="mdescRight">sets the QPen which is used for drawing the circle <a href="#aa92f0f1b5d2fd424196a33012ffe8ea1">More...</a><br /></td></tr>
|
||||
<tr class="separator:aa92f0f1b5d2fd424196a33012ffe8ea1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3a013a6edb6d10a71297978bc31a796b"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a3a013a6edb6d10a71297978bc31a796b">toString</a> ()</td></tr>
|
||||
<tr class="memdesc:a3a013a6edb6d10a71297978bc31a796b"><td class="mdescLeft"> </td><td class="mdescRight">returns a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a3a013a6edb6d10a71297978bc31a796b">More...</a><br /></td></tr>
|
||||
<tr class="separator:a3a013a6edb6d10a71297978bc31a796b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad1eaabeb2b227cd055ccf4b4e2818480"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQWidget.html">QWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#ad1eaabeb2b227cd055ccf4b4e2818480">widget</a> ()</td></tr>
|
||||
<tr class="memdesc:ad1eaabeb2b227cd055ccf4b4e2818480"><td class="mdescLeft"> </td><td class="mdescRight">returns the widget of the point <a href="#ad1eaabeb2b227cd055ccf4b4e2818480">More...</a><br /></td></tr>
|
||||
<tr class="separator:ad1eaabeb2b227cd055ccf4b4e2818480"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
|
||||
Protected Member Functions</h2></td></tr>
|
||||
<tr class="memitem:a7dee2100a2d2056511aca25c9390d253"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Touches</a> (<a class="el" href="classqmapcontrol_1_1Point.html">Point</a> *click, const <a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> *mapadapter)</td></tr>
|
||||
<tr class="memdesc:a7dee2100a2d2056511aca25c9390d253"><td class="mdescLeft"> </td><td class="mdescRight">returns true if the given <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> touches this <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> <a href="#a7dee2100a2d2056511aca25c9390d253">More...</a><br /></td></tr>
|
||||
<tr class="separator:a7dee2100a2d2056511aca25c9390d253"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Draws a circle into the map. </p>
|
||||
<p>This is a conveniece class for <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a>. It configures the pixmap of a <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> to draw a circle. A QPen could be used to change the color or line-width of the circle</p>
|
||||
<dl class="section author"><dt>Author</dt><dd>Kai Winter <a href="#" onclick="location.href='mai'+'lto:'+'kai'+'wi'+'nte'+'r@'+'gmx'+'.d'+'e'; return false;">kaiwi<span style="display: none;">.nosp@m.</span>nter<span style="display: none;">.nosp@m.</span>@gmx.<span style="display: none;">.nosp@m.</span>de</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
|
||||
<a class="anchor" id="acdfaca60ec19c0265bac2692d7982726"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">enum <a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets where the point should be aligned </p>
|
||||
<table class="fieldtable">
|
||||
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a61f66ddc6702462a94d3e231f02b9017"></a>TopLeft </td><td class="fielddoc">
|
||||
<p>Align on TopLeft </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a7e42a96f07eab63a8c9fa8a0526f34f4"></a>TopRight </td><td class="fielddoc">
|
||||
<p>Align on TopRight </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726aaf2dc2d869f46c11d4c97c6649b2087a"></a>TopMiddle </td><td class="fielddoc">
|
||||
<p>Align on TopLeft </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726ae61b9b6ea2fa75ca500d5bb1eaf6f6fc"></a>BottomLeft </td><td class="fielddoc">
|
||||
<p>Align on BottomLeft </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a1640f649d644701a2f4633e6bd88b20c"></a>BottomRight </td><td class="fielddoc">
|
||||
<p>Align on BottomRight </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a6165fc7e37a746212ab2911513d3781f"></a>BottomMiddle </td><td class="fielddoc">
|
||||
<p>Align on BottomMiddle </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c"></a>Middle </td><td class="fielddoc">
|
||||
<p>Align on Middle </p>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a class="anchor" id="aa0dd3496708e507c8185d5ae5f5e79ad"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QString </td>
|
||||
<td class="paramname"><em>name</em> = <code>QString()</code>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> </td>
|
||||
<td class="paramname"><em>alignment</em> = <code><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c">Middle</a></code>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QPen * </td>
|
||||
<td class="paramname"><em>pen</em> = <code>0</code> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">x</td><td>longitude </td></tr>
|
||||
<tr><td class="paramname">y</td><td>latitude </td></tr>
|
||||
<tr><td class="paramname">name</td><td>name of the circle point </td></tr>
|
||||
<tr><td class="paramname">alignment</td><td>alignment (Middle or TopLeft) </td></tr>
|
||||
<tr><td class="paramname">pen</td><td>QPen for drawing </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">Geometry::pen()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a13300765d52da11cc8cbb4384e8e9e23"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classqmapcontrol_1_1CirclePoint.html">CirclePoint</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>x</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>y</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>radius</em> = <code>10</code>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QString </td>
|
||||
<td class="paramname"><em>name</em> = <code>QString()</code>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> </td>
|
||||
<td class="paramname"><em>alignment</em> = <code><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c">Middle</a></code>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QPen * </td>
|
||||
<td class="paramname"><em>pen</em> = <code>0</code> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">x</td><td>longitude </td></tr>
|
||||
<tr><td class="paramname">y</td><td>latitude </td></tr>
|
||||
<tr><td class="paramname">radius</td><td>the radius of the circle </td></tr>
|
||||
<tr><td class="paramname">name</td><td>name of the circle point </td></tr>
|
||||
<tr><td class="paramname">alignment</td><td>alignment (Middle or TopLeft) </td></tr>
|
||||
<tr><td class="paramname">pen</td><td>QPen for drawing </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">Geometry::pen()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a class="anchor" id="acbb256b5f9f888e9cd3bb475108ece24"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QRectF boundingBox </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the bounding box of the point </p>
|
||||
<p>The Bounding contains the coordinate of the point and its size. The size is set, if the point contains a pixmap or a widget </p><dl class="section return"><dt>Returns</dt><dd>the bounding box of the point </dd></dl>
|
||||
|
||||
<p>Implements <a class="el" href="classqmapcontrol_1_1Geometry.html#af92c4fa46f711bea92efe5ab80f9084d">Geometry</a>.</p>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Point.html#a6311aabecac471455760aae4790cff91">Point::latitude()</a>, and <a class="el" href="classqmapcontrol_1_1Point.html#a2b0f7ec9068af09bcf151af61a785845">Point::longitude()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a2fbb44b2ed047287d715484d2fda7299"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QPointF coordinate </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the coordinate of the point </p>
|
||||
<p>The x component of the returned QPointF is the longitude value, the y component the latitude </p><dl class="section return"><dt>Returns</dt><dd>the coordinate of a point </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1MapControl.html#a4ea85421ec8df905fba209510c909e2c">MapControl::setView()</a>, and <a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Point::Touches()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a029a8b50c439c719aac173bffe4cfb71"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool Equals </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geom</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p>returns true if the given <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is equal to this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> not implemented yet! </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geom</td><td>The <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> to be tested </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>true if the given <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is equal to this </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a685dcab83356e5cc449475f177bb487d"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void geometryClicked </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geometry</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QPoint </td>
|
||||
<td class="paramname"><em>point</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">signal</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>This signal is emitted when a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clicked. </p>
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clickable, if the containing layer is clickable. The objects emits a signal if it gets clicked </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geometry</td><td>The clicked <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </td></tr>
|
||||
<tr><td class="paramname">point</td><td>-unused- </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Point::Touches()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a08422ee75ab02691943c1ca87e2bc563"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool isVisible </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Point::Touches()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a6311aabecac471455760aae4790cff91"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">qreal latitude </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the latitude of the point </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the latitude of the point </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1LineString.html#acbb256b5f9f888e9cd3bb475108ece24">LineString::boundingBox()</a>, and <a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">Point::boundingBox()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a2b0f7ec9068af09bcf151af61a785845"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">qreal longitude </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the longitude of the point </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the longitude of the point </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1LineString.html#acbb256b5f9f888e9cd3bb475108ece24">LineString::boundingBox()</a>, and <a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">Point::boundingBox()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a2b0a198f837184bf6fff555cee3ce770"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QString name </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">Geometry::setName()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a771cc513dc079219d5da2c4b81019d7c"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * parentGeometry </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. ">LineString</a> is a composition of many Points. This methods returns the parent (the <a class="el" href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. ">LineString</a>) of a <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> </p><dl class="section return"><dt>Returns</dt><dd>the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="aed7be2fcd2c1d7bccb55f5ac73d7a662"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QPen * pen </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the QPen which is used on drawing </p>
|
||||
<p>The pen is set depending on the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a>. A <a class="el" href="classqmapcontrol_1_1CirclePoint.html" title="Draws a circle into the map. ">CirclePoint</a> for example takes one with the constructor. </p><dl class="section return"><dt>Returns</dt><dd>the QPen which is used for drawing </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1ArrowPoint.html#a841a287c3d99b6e796442168cbc96cc8">ArrowPoint::ArrowPoint()</a>, <a class="el" href="classqmapcontrol_1_1CirclePoint.html#a13300765d52da11cc8cbb4384e8e9e23">CirclePoint::CirclePoint()</a>, <a class="el" href="classqmapcontrol_1_1LineString.html#ad8efdad1cc0ff6c63357cb72180c3a0a">LineString::LineString()</a>, <a class="el" href="classqmapcontrol_1_1ArrowPoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">ArrowPoint::setPen()</a>, and <a class="el" href="classqmapcontrol_1_1CirclePoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">CirclePoint::setPen()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ae781b15ef7d46695b2a7d2855b3f670f"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QPixmap pixmap </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the pixmap of the point </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the pixmap of the point </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html#aa5c420b6584232328fc12d8bc699129c">FixedImageOverlay::FixedImageOverlay()</a>, and <a class="el" href="classqmapcontrol_1_1ImagePoint.html#a5859a1a7467f65a24ef7009acb927446">ImagePoint::ImagePoint()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a807f9cfb1b9d680ca76cf825cc9cf46a"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void positionChanged </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geom</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">signal</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> emits this signal, when its position gets changed. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geom</td><td>the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a91f1496833bfda9f7a7ec5fcb02a1895"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setBaselevel </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>zoomlevel</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Sets the zoom level on which the points pixmap gets displayed on full size. </p>
|
||||
<p>Use this method to set a zoom level on which the pixmap gets displayed with its real size. On zoomlevels below it will be displayed smaller, and on zoom levels thereover it will be displayed larger </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classqmapcontrol_1_1Point.html#ac40b3e44f54fab1330b9309ac7bd84d2" title="sets a minimal size for the pixmap ">setMinsize</a>, <a class="el" href="classqmapcontrol_1_1Point.html#adc2724c4e195727b823ff55c940283de" title="sets a maximal size for the pixmap ">setMaxsize</a> </dd></dl>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">zoomlevel</td><td>the zoomlevel on which the point will be displayed on full size </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="adc2724c4e195727b823ff55c940283de"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setMaxsize </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">QSize </td>
|
||||
<td class="paramname"><em>maxsize</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets a maximal size for the pixmap </p>
|
||||
<p>When the point´s pixmap should change its size on zooming, this method sets the maximal size. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classqmapcontrol_1_1Point.html#a91f1496833bfda9f7a7ec5fcb02a1895" title="Sets the zoom level on which the points pixmap gets displayed on full size. ">setBaselevel</a> </dd></dl>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">maxsize</td><td>the maximal size which the pixmap should have </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ac40b3e44f54fab1330b9309ac7bd84d2"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setMinsize </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">QSize </td>
|
||||
<td class="paramname"><em>minsize</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets a minimal size for the pixmap </p>
|
||||
<p>When the point's pixmap should change its size on zooming, this method sets the minimal size. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classqmapcontrol_1_1Point.html#a91f1496833bfda9f7a7ec5fcb02a1895" title="Sets the zoom level on which the points pixmap gets displayed on full size. ">setBaselevel</a> </dd></dl>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">minsize</td><td>the minimal size which the pixmap should have </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a6220fae15759fd0fa7d75e415df34e83"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setName </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">QString </td>
|
||||
<td class="paramname"><em>name</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets the name of the geometry </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">name</td><td>the new name of the geometry </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">Geometry::name()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="aa92f0f1b5d2fd424196a33012ffe8ea1"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setPen </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">QPen * </td>
|
||||
<td class="paramname"><em>pen</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets the QPen which is used for drawing the circle </p>
|
||||
<p>A QPen can be used to modify the look of the drawn circle </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">pen</td><td>the QPen which should be used for drawing </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section see"><dt>See also</dt><dd><a href="http://doc.trolltech.com/4.3/qpen.html">http://doc.trolltech.com/4.3/qpen.html</a> </dd></dl>
|
||||
|
||||
<p>Reimplemented from <a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a>.</p>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">Geometry::pen()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a3a013a6edb6d10a71297978bc31a796b"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QString toString </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<p>not implemented yet! </p><dl class="section return"><dt>Returns</dt><dd>a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a7dee2100a2d2056511aca25c9390d253"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool Touches </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a> * </td>
|
||||
<td class="paramname"><em>click</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> * </td>
|
||||
<td class="paramname"><em>mapadapter</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns true if the given <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> touches this <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> </p>
|
||||
<p>The collision detection checks for the bounding rectangulars. </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geom</td><td>the other point which should be tested on collision </td></tr>
|
||||
<tr><td class="paramname">mapadapter</td><td>the mapadapter which is used for calculations </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
|
||||
|
||||
<p>Implements <a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a>.</p>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Point.html#a2fbb44b2ed047287d715484d2fda7299">Point::coordinate()</a>, <a class="el" href="classqmapcontrol_1_1MapAdapter.html#a0a7f30d12395e615eec9440070795349">MapAdapter::coordinateToDisplay()</a>, <a class="el" href="classqmapcontrol_1_1Geometry.html#a685dcab83356e5cc449475f177bb487d">Geometry::geometryClicked()</a>, and <a class="el" href="classqmapcontrol_1_1Geometry.html#a08422ee75ab02691943c1ca87e2bc563">Geometry::isVisible()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ad1eaabeb2b227cd055ccf4b4e2818480"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classQWidget.html">QWidget</a> * widget </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the widget of the point </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the widget of the point </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following files:<ul>
|
||||
<li><a class="el" href="circlepoint_8h_source.html">circlepoint.h</a></li>
|
||||
<li>circlepoint.cpp</li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
BIN
libs/QMapControl/html/classqmapcontrol_1_1CirclePoint.png
Normal file
After Width: | Height: | Size: 697 B |
76
libs/QMapControl/html/classqmapcontrol_1_1Curve-members.html
Normal file
@ -0,0 +1,76 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: Member List</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1Curve.html">Curve</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Curve Member List</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="classqmapcontrol_1_1Curve.html">Curve</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#af92c4fa46f711bea92efe5ab80f9084d">boundingBox</a>()=0</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">pure virtual</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a029a8b50c439c719aac173bffe4cfb71">Equals</a>(Geometry *geom)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a685dcab83356e5cc449475f177bb487d">geometryClicked</a>(Geometry *geometry, QPoint point)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a08422ee75ab02691943c1ca87e2bc563">isVisible</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a771cc513dc079219d5da2c4b81019d7c">parentGeometry</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a807f9cfb1b9d680ca76cf825cc9cf46a">positionChanged</a>(Geometry *geom)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">setName</a>(QString name)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a18e44e30b31525a243960ca3928125aa">setVisible</a>(bool visible)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">virtual</span><span class="mlabel">slot</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a3a013a6edb6d10a71297978bc31a796b">toString</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
476
libs/QMapControl/html/classqmapcontrol_1_1Curve.html
Normal file
@ -0,0 +1,476 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: Curve Class Reference</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1Curve.html">Curve</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-slots">Public Slots</a> |
|
||||
<a href="#signals">Signals</a> |
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="classqmapcontrol_1_1Curve-members.html">List of all members</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">Curve Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1Curve.html" title="A Curve Geometry, implemented to fullfil OGC Spec. ">Curve</a> <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a>, implemented to fullfil OGC Spec.
|
||||
<a href="classqmapcontrol_1_1Curve.html#details">More...</a></p>
|
||||
|
||||
<p><code>#include <<a class="el" href="curve_8h_source.html">curve.h</a>></code></p>
|
||||
<div class="dynheader">
|
||||
Inheritance diagram for Curve:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center">
|
||||
<img src="classqmapcontrol_1_1Curve.png" usemap="#Curve_map" alt=""/>
|
||||
<map id="Curve_map" name="Curve_map">
|
||||
<area href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. " alt="Geometry" shape="rect" coords="0,56,69,80"/>
|
||||
<area href="classQObject.html" alt="QObject" shape="rect" coords="0,0,69,24"/>
|
||||
<area href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. " alt="LineString" shape="rect" coords="0,168,69,192"/>
|
||||
</map>
|
||||
</div></div>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
|
||||
Public Slots</h2></td></tr>
|
||||
<tr class="memitem:a18e44e30b31525a243960ca3928125aa"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a18e44e30b31525a243960ca3928125aa">setVisible</a> (bool visible)</td></tr>
|
||||
<tr class="memdesc:a18e44e30b31525a243960ca3928125aa"><td class="mdescLeft"> </td><td class="mdescRight">if visible is true, the layer is made visible <a href="#a18e44e30b31525a243960ca3928125aa">More...</a><br /></td></tr>
|
||||
<tr class="separator:a18e44e30b31525a243960ca3928125aa"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
|
||||
Signals</h2></td></tr>
|
||||
<tr class="memitem:a685dcab83356e5cc449475f177bb487d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a685dcab83356e5cc449475f177bb487d">geometryClicked</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry, QPoint point)</td></tr>
|
||||
<tr class="memdesc:a685dcab83356e5cc449475f177bb487d"><td class="mdescLeft"> </td><td class="mdescRight">This signal is emitted when a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clicked. <a href="#a685dcab83356e5cc449475f177bb487d">More...</a><br /></td></tr>
|
||||
<tr class="separator:a685dcab83356e5cc449475f177bb487d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a807f9cfb1b9d680ca76cf825cc9cf46a">positionChanged</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geom)</td></tr>
|
||||
<tr class="memdesc:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="mdescLeft"> </td><td class="mdescRight">A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> emits this signal, when its position gets changed. <a href="#a807f9cfb1b9d680ca76cf825cc9cf46a">More...</a><br /></td></tr>
|
||||
<tr class="separator:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
||||
Public Member Functions</h2></td></tr>
|
||||
<tr class="memitem:af92c4fa46f711bea92efe5ab80f9084d"><td class="memItemLeft" align="right" valign="top">virtual QRectF </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#af92c4fa46f711bea92efe5ab80f9084d">boundingBox</a> ()=0</td></tr>
|
||||
<tr class="memdesc:af92c4fa46f711bea92efe5ab80f9084d"><td class="mdescLeft"> </td><td class="mdescRight">returns the BoundingBox <a href="#af92c4fa46f711bea92efe5ab80f9084d">More...</a><br /></td></tr>
|
||||
<tr class="separator:af92c4fa46f711bea92efe5ab80f9084d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a029a8b50c439c719aac173bffe4cfb71"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a029a8b50c439c719aac173bffe4cfb71">Equals</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geom)</td></tr>
|
||||
<tr class="separator:a029a8b50c439c719aac173bffe4cfb71"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a08422ee75ab02691943c1ca87e2bc563"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a08422ee75ab02691943c1ca87e2bc563">isVisible</a> () const </td></tr>
|
||||
<tr class="memdesc:a08422ee75ab02691943c1ca87e2bc563"><td class="mdescLeft"> </td><td class="mdescRight">returns true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible <a href="#a08422ee75ab02691943c1ca87e2bc563">More...</a><br /></td></tr>
|
||||
<tr class="separator:a08422ee75ab02691943c1ca87e2bc563"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2b0a198f837184bf6fff555cee3ce770"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a> () const </td></tr>
|
||||
<tr class="memdesc:a2b0a198f837184bf6fff555cee3ce770"><td class="mdescLeft"> </td><td class="mdescRight">returns the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a2b0a198f837184bf6fff555cee3ce770">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2b0a198f837184bf6fff555cee3ce770"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a771cc513dc079219d5da2c4b81019d7c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a771cc513dc079219d5da2c4b81019d7c">parentGeometry</a> () const </td></tr>
|
||||
<tr class="memdesc:a771cc513dc079219d5da2c4b81019d7c"><td class="mdescLeft"> </td><td class="mdescRight">returns the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a771cc513dc079219d5da2c4b81019d7c">More...</a><br /></td></tr>
|
||||
<tr class="separator:a771cc513dc079219d5da2c4b81019d7c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="memItemLeft" align="right" valign="top">QPen * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a> () const </td></tr>
|
||||
<tr class="memdesc:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="mdescLeft"> </td><td class="mdescRight">returns the QPen which is used on drawing <a href="#aed7be2fcd2c1d7bccb55f5ac73d7a662">More...</a><br /></td></tr>
|
||||
<tr class="separator:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6220fae15759fd0fa7d75e415df34e83"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">setName</a> (QString <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>)</td></tr>
|
||||
<tr class="memdesc:a6220fae15759fd0fa7d75e415df34e83"><td class="mdescLeft"> </td><td class="mdescRight">sets the name of the geometry <a href="#a6220fae15759fd0fa7d75e415df34e83">More...</a><br /></td></tr>
|
||||
<tr class="separator:a6220fae15759fd0fa7d75e415df34e83"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3a013a6edb6d10a71297978bc31a796b"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a3a013a6edb6d10a71297978bc31a796b">toString</a> ()</td></tr>
|
||||
<tr class="memdesc:a3a013a6edb6d10a71297978bc31a796b"><td class="mdescLeft"> </td><td class="mdescRight">returns a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a3a013a6edb6d10a71297978bc31a796b">More...</a><br /></td></tr>
|
||||
<tr class="separator:a3a013a6edb6d10a71297978bc31a796b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>A <a class="el" href="classqmapcontrol_1_1Curve.html" title="A Curve Geometry, implemented to fullfil OGC Spec. ">Curve</a> <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a>, implemented to fullfil OGC Spec. </p>
|
||||
<p>The <a class="el" href="classqmapcontrol_1_1Curve.html" title="A Curve Geometry, implemented to fullfil OGC Spec. ">Curve</a> class is used by <a class="el" href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. ">LineString</a> as parent class. This class could not be used directly.</p>
|
||||
<p>From the OGC Candidate Implementation Specification: "A <a class="el" href="classqmapcontrol_1_1Curve.html" title="A Curve Geometry, implemented to fullfil OGC Spec. ">Curve</a> is a 1-dimensional geometric object usually stored as a sequence of Points, with the subtype of <a class="el" href="classqmapcontrol_1_1Curve.html" title="A Curve Geometry, implemented to fullfil OGC Spec. ">Curve</a> specifying the form of the interpolation between Points. This specification defines only one subclass of <a class="el" href="classqmapcontrol_1_1Curve.html" title="A Curve Geometry, implemented to fullfil OGC Spec. ">Curve</a>, <a class="el" href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. ">LineString</a>, which uses a linear interpolation between Points." </p><dl class="section author"><dt>Author</dt><dd>Kai Winter <a href="#" onclick="location.href='mai'+'lto:'+'kai'+'wi'+'nte'+'r@'+'gmx'+'.d'+'e'; return false;">kaiwi<span style="display: none;">.nosp@m.</span>nter<span style="display: none;">.nosp@m.</span>@gmx.<span style="display: none;">.nosp@m.</span>de</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a class="anchor" id="af92c4fa46f711bea92efe5ab80f9084d"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">virtual QRectF boundingBox </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">pure virtual</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the BoundingBox </p>
|
||||
<p>The bounding box in world coordinates </p><dl class="section return"><dt>Returns</dt><dd>the BoundingBox </dd></dl>
|
||||
|
||||
<p>Implemented in <a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">Point</a>, and <a class="el" href="classqmapcontrol_1_1LineString.html#acbb256b5f9f888e9cd3bb475108ece24">LineString</a>.</p>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Layer.html#ab692d7d08414ed2b744946b88872827f">Layer::addGeometry()</a>, <a class="el" href="classqmapcontrol_1_1MapControl.html#a81804b97ecc3e2fff3a64314ff866587">MapControl::isGeometryVisible()</a>, <a class="el" href="classqmapcontrol_1_1Layer.html#af2a2f7fec3f6e5fbf623f466a961bfb7">Layer::removeGeometry()</a>, and <a class="el" href="classqmapcontrol_1_1Geometry.html#a18e44e30b31525a243960ca3928125aa">Geometry::setVisible()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a029a8b50c439c719aac173bffe4cfb71"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool Equals </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geom</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p>returns true if the given <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is equal to this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> not implemented yet! </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geom</td><td>The <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> to be tested </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>true if the given <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is equal to this </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a685dcab83356e5cc449475f177bb487d"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void geometryClicked </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geometry</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QPoint </td>
|
||||
<td class="paramname"><em>point</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">signal</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>This signal is emitted when a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clicked. </p>
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clickable, if the containing layer is clickable. The objects emits a signal if it gets clicked </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geometry</td><td>The clicked <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </td></tr>
|
||||
<tr><td class="paramname">point</td><td>-unused- </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Point::Touches()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a08422ee75ab02691943c1ca87e2bc563"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool isVisible </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Point::Touches()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a2b0a198f837184bf6fff555cee3ce770"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QString name </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">Geometry::setName()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a771cc513dc079219d5da2c4b81019d7c"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * parentGeometry </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. ">LineString</a> is a composition of many Points. This methods returns the parent (the <a class="el" href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. ">LineString</a>) of a <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> </p><dl class="section return"><dt>Returns</dt><dd>the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="aed7be2fcd2c1d7bccb55f5ac73d7a662"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QPen * pen </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the QPen which is used on drawing </p>
|
||||
<p>The pen is set depending on the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a>. A <a class="el" href="classqmapcontrol_1_1CirclePoint.html" title="Draws a circle into the map. ">CirclePoint</a> for example takes one with the constructor. </p><dl class="section return"><dt>Returns</dt><dd>the QPen which is used for drawing </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1ArrowPoint.html#a841a287c3d99b6e796442168cbc96cc8">ArrowPoint::ArrowPoint()</a>, <a class="el" href="classqmapcontrol_1_1CirclePoint.html#a13300765d52da11cc8cbb4384e8e9e23">CirclePoint::CirclePoint()</a>, <a class="el" href="classqmapcontrol_1_1LineString.html#ad8efdad1cc0ff6c63357cb72180c3a0a">LineString::LineString()</a>, <a class="el" href="classqmapcontrol_1_1ArrowPoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">ArrowPoint::setPen()</a>, and <a class="el" href="classqmapcontrol_1_1CirclePoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">CirclePoint::setPen()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a807f9cfb1b9d680ca76cf825cc9cf46a"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void positionChanged </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geom</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">signal</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> emits this signal, when its position gets changed. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geom</td><td>the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a6220fae15759fd0fa7d75e415df34e83"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setName </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">QString </td>
|
||||
<td class="paramname"><em>name</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets the name of the geometry </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">name</td><td>the new name of the geometry </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">Geometry::name()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a18e44e30b31525a243960ca3928125aa"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setVisible </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">bool </td>
|
||||
<td class="paramname"><em>visible</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">slot</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>if visible is true, the layer is made visible </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">visible</td><td>if the layer should be visible </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#af92c4fa46f711bea92efe5ab80f9084d">Geometry::boundingBox()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a3a013a6edb6d10a71297978bc31a796b"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QString toString </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<p>not implemented yet! </p><dl class="section return"><dt>Returns</dt><dd>a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following files:<ul>
|
||||
<li><a class="el" href="curve_8h_source.html">curve.h</a></li>
|
||||
<li>curve.cpp</li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
BIN
libs/QMapControl/html/classqmapcontrol_1_1Curve.png
Normal file
After Width: | Height: | Size: 714 B |
@ -0,0 +1,75 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: Member List</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html">EmptyMapAdapter</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">EmptyMapAdapter Member List</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html">EmptyMapAdapter</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#a7807022d8586d6d050541d2344eb12cb">changeHostAddress</a>(const QString qHost, const QString qServerPath=QString())</td><td class="entry"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html#a94134b06e350d302f5b3a63f0016aa60">coordinateToDisplay</a>(const QPointF &) const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html">EmptyMapAdapter</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#a8c7b803b9faa35db237e40c361e1c036">currentZoom</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html#a601b4631d9d891eabffb063c510cc088">displayToCoordinate</a>(const QPoint &) const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html">EmptyMapAdapter</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html#a9208e1a9da209564f85a50318cda7310">EmptyMapAdapter</a>(int tileSize=256, int minZoom=0, int maxZoom=17)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html">EmptyMapAdapter</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#a7ee8388c7880d8a3466967464f5034b6">host</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#a3a33e897bc474405772d17a7c81f8747">maxZoom</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#a7457f51db57914a85bbefcc8c9fa97b4">minZoom</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#a12436fe3d5d3cac5930f5b50fb508d36">serverPath</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#af105c5a0cf588a3f60d67744bd353391">tilesize</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a></td><td class="entry"></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
444
libs/QMapControl/html/classqmapcontrol_1_1EmptyMapAdapter.html
Normal file
@ -0,0 +1,444 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: EmptyMapAdapter Class Reference</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html">EmptyMapAdapter</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="classqmapcontrol_1_1EmptyMapAdapter-members.html">List of all members</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">EmptyMapAdapter Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> which do not load map tiles.
|
||||
<a href="classqmapcontrol_1_1EmptyMapAdapter.html#details">More...</a></p>
|
||||
|
||||
<p><code>#include <<a class="el" href="emptymapadapter_8h_source.html">emptymapadapter.h</a>></code></p>
|
||||
<div class="dynheader">
|
||||
Inheritance diagram for EmptyMapAdapter:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center">
|
||||
<img src="classqmapcontrol_1_1EmptyMapAdapter.png" usemap="#EmptyMapAdapter_map" alt=""/>
|
||||
<map id="EmptyMapAdapter_map" name="EmptyMapAdapter_map">
|
||||
<area href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. " alt="MapAdapter" shape="rect" coords="0,56,116,80"/>
|
||||
<area href="classQObject.html" alt="QObject" shape="rect" coords="0,0,116,24"/>
|
||||
</map>
|
||||
</div></div>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
||||
Public Member Functions</h2></td></tr>
|
||||
<tr class="memitem:a7807022d8586d6d050541d2344eb12cb"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#a7807022d8586d6d050541d2344eb12cb">changeHostAddress</a> (const QString qHost, const QString qServerPath=QString())</td></tr>
|
||||
<tr class="memdesc:a7807022d8586d6d050541d2344eb12cb"><td class="mdescLeft"> </td><td class="mdescRight">change or update server host address post init <a href="#a7807022d8586d6d050541d2344eb12cb">More...</a><br /></td></tr>
|
||||
<tr class="separator:a7807022d8586d6d050541d2344eb12cb"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a94134b06e350d302f5b3a63f0016aa60"><td class="memItemLeft" align="right" valign="top">virtual QPoint </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html#a94134b06e350d302f5b3a63f0016aa60">coordinateToDisplay</a> (const QPointF &) const </td></tr>
|
||||
<tr class="memdesc:a94134b06e350d302f5b3a63f0016aa60"><td class="mdescLeft"> </td><td class="mdescRight">translates a world coordinate to display coordinate <a href="#a94134b06e350d302f5b3a63f0016aa60">More...</a><br /></td></tr>
|
||||
<tr class="separator:a94134b06e350d302f5b3a63f0016aa60"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a8c7b803b9faa35db237e40c361e1c036"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#a8c7b803b9faa35db237e40c361e1c036">currentZoom</a> () const </td></tr>
|
||||
<tr class="memdesc:a8c7b803b9faa35db237e40c361e1c036"><td class="mdescLeft"> </td><td class="mdescRight">returns the current zoom <a href="#a8c7b803b9faa35db237e40c361e1c036">More...</a><br /></td></tr>
|
||||
<tr class="separator:a8c7b803b9faa35db237e40c361e1c036"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a601b4631d9d891eabffb063c510cc088"><td class="memItemLeft" align="right" valign="top">virtual QPointF </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html#a601b4631d9d891eabffb063c510cc088">displayToCoordinate</a> (const QPoint &) const </td></tr>
|
||||
<tr class="memdesc:a601b4631d9d891eabffb063c510cc088"><td class="mdescLeft"> </td><td class="mdescRight">translates display coordinate to world coordinate <a href="#a601b4631d9d891eabffb063c510cc088">More...</a><br /></td></tr>
|
||||
<tr class="separator:a601b4631d9d891eabffb063c510cc088"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a9208e1a9da209564f85a50318cda7310"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html#a9208e1a9da209564f85a50318cda7310">EmptyMapAdapter</a> (int tileSize=256, int <a class="el" href="classqmapcontrol_1_1MapAdapter.html#a7457f51db57914a85bbefcc8c9fa97b4">minZoom</a>=0, int <a class="el" href="classqmapcontrol_1_1MapAdapter.html#a3a33e897bc474405772d17a7c81f8747">maxZoom</a>=17)</td></tr>
|
||||
<tr class="memdesc:a9208e1a9da209564f85a50318cda7310"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a9208e1a9da209564f85a50318cda7310">More...</a><br /></td></tr>
|
||||
<tr class="separator:a9208e1a9da209564f85a50318cda7310"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a7ee8388c7880d8a3466967464f5034b6"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#a7ee8388c7880d8a3466967464f5034b6">host</a> () const </td></tr>
|
||||
<tr class="memdesc:a7ee8388c7880d8a3466967464f5034b6"><td class="mdescLeft"> </td><td class="mdescRight">returns the host of this <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> <a href="#a7ee8388c7880d8a3466967464f5034b6">More...</a><br /></td></tr>
|
||||
<tr class="separator:a7ee8388c7880d8a3466967464f5034b6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3a33e897bc474405772d17a7c81f8747"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#a3a33e897bc474405772d17a7c81f8747">maxZoom</a> () const </td></tr>
|
||||
<tr class="memdesc:a3a33e897bc474405772d17a7c81f8747"><td class="mdescLeft"> </td><td class="mdescRight">returns the max zoom value <a href="#a3a33e897bc474405772d17a7c81f8747">More...</a><br /></td></tr>
|
||||
<tr class="separator:a3a33e897bc474405772d17a7c81f8747"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a7457f51db57914a85bbefcc8c9fa97b4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#a7457f51db57914a85bbefcc8c9fa97b4">minZoom</a> () const </td></tr>
|
||||
<tr class="memdesc:a7457f51db57914a85bbefcc8c9fa97b4"><td class="mdescLeft"> </td><td class="mdescRight">returns the min zoom value <a href="#a7457f51db57914a85bbefcc8c9fa97b4">More...</a><br /></td></tr>
|
||||
<tr class="separator:a7457f51db57914a85bbefcc8c9fa97b4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a12436fe3d5d3cac5930f5b50fb508d36"><td class="memItemLeft" align="right" valign="top">virtual QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#a12436fe3d5d3cac5930f5b50fb508d36">serverPath</a> () const </td></tr>
|
||||
<tr class="memdesc:a12436fe3d5d3cac5930f5b50fb508d36"><td class="mdescLeft"> </td><td class="mdescRight">returns the server path part of this <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> <a href="#a12436fe3d5d3cac5930f5b50fb508d36">More...</a><br /></td></tr>
|
||||
<tr class="separator:a12436fe3d5d3cac5930f5b50fb508d36"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af105c5a0cf588a3f60d67744bd353391"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1MapAdapter.html#af105c5a0cf588a3f60d67744bd353391">tilesize</a> () const </td></tr>
|
||||
<tr class="memdesc:af105c5a0cf588a3f60d67744bd353391"><td class="mdescLeft"> </td><td class="mdescRight">returns the size of the tiles <a href="#af105c5a0cf588a3f60d67744bd353391">More...</a><br /></td></tr>
|
||||
<tr class="separator:af105c5a0cf588a3f60d67744bd353391"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p><a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> which do not load map tiles. </p>
|
||||
<p>The <a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html" title="MapAdapter which do not load map tiles. ">EmptyMapAdapter</a> can be used if QMapControl should not load any map tiles. This is useful if you only want to display an image through a <a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html" title="Draws a fixed image into the map. ">FixedImageOverlay</a> e.g. </p><dl class="section author"><dt>Author</dt><dd>Kai Winter <a href="#" onclick="location.href='mai'+'lto:'+'kai'+'wi'+'nte'+'r@'+'gmx'+'.d'+'e'; return false;">kaiwi<span style="display: none;">.nosp@m.</span>nter<span style="display: none;">.nosp@m.</span>@gmx.<span style="display: none;">.nosp@m.</span>de</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a class="anchor" id="a9208e1a9da209564f85a50318cda7310"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classqmapcontrol_1_1EmptyMapAdapter.html">EmptyMapAdapter</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>tileSize</em> = <code>256</code>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>minZoom</em> = <code>0</code>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>maxZoom</em> = <code>17</code> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Constructor. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">tileSize</td><td>This parameter seems unnecessary for this type of MapAdaper on first sight. But since this parameter defines the size of the offscreen image it could be used for a little performance tuning (larger offscreen-images have to be redrawed less times). </td></tr>
|
||||
<tr><td class="paramname">minZoom</td><td>the minimum zoom level </td></tr>
|
||||
<tr><td class="paramname">maxZoom</td><td>the maximum zoom level </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a class="anchor" id="a7807022d8586d6d050541d2344eb12cb"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void changeHostAddress </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const QString </td>
|
||||
<td class="paramname"><em>qHost</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const QString </td>
|
||||
<td class="paramname"><em>qServerPath</em> = <code>QString()</code> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>change or update server host address post init </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">host</td><td>the host address </td></tr>
|
||||
<tr><td class="paramname">serverPath</td><td>the server path </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>Reimplemented in <a class="el" href="classqmapcontrol_1_1WMSMapAdapter.html#a7807022d8586d6d050541d2344eb12cb">WMSMapAdapter</a>.</p>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1WMSMapAdapter.html#a7807022d8586d6d050541d2344eb12cb">WMSMapAdapter::changeHostAddress()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a94134b06e350d302f5b3a63f0016aa60"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QPoint coordinateToDisplay </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const QPointF & </td>
|
||||
<td class="paramname"><em>coordinate</em></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>translates a world coordinate to display coordinate </p>
|
||||
<p>The calculations also needs the current zoom. The current zoom is managed by the <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a>, so this is no problem. To divide model from view the current zoom should be moved to the layers. </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">coordinate</td><td>the world coordinate </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the display coordinate (in widget coordinates) </dd></dl>
|
||||
|
||||
<p>Implements <a class="el" href="classqmapcontrol_1_1MapAdapter.html#a0a7f30d12395e615eec9440070795349">MapAdapter</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a8c7b803b9faa35db237e40c361e1c036"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int currentZoom </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the current zoom </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the current zoom </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a601b4631d9d891eabffb063c510cc088"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QPointF displayToCoordinate </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const QPoint & </td>
|
||||
<td class="paramname"><em>point</em></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>translates display coordinate to world coordinate </p>
|
||||
<p>The calculations also needs the current zoom. The current zoom is managed by the <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a>, so this is no problem. To divide model from view the current zoom should be moved to the layers. </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">point</td><td>the display coordinate </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the world coordinate </dd></dl>
|
||||
|
||||
<p>Implements <a class="el" href="classqmapcontrol_1_1MapAdapter.html#aa26c33260233907672b1b23f4b1fd033">MapAdapter</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a7ee8388c7880d8a3466967464f5034b6"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QString host </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the host of this <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the host of this <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a3a33e897bc474405772d17a7c81f8747"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int maxZoom </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the max zoom value </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the max zoom value </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a7457f51db57914a85bbefcc8c9fa97b4"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int minZoom </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the min zoom value </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the min zoom value </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a12436fe3d5d3cac5930f5b50fb508d36"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QString serverPath </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the server path part of this <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the serverpath of this <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> </dd></dl>
|
||||
|
||||
<p>Reimplemented in <a class="el" href="classqmapcontrol_1_1WMSMapAdapter.html#a12436fe3d5d3cac5930f5b50fb508d36">WMSMapAdapter</a>.</p>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1WMSMapAdapter.html#a12436fe3d5d3cac5930f5b50fb508d36">WMSMapAdapter::serverPath()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="af105c5a0cf588a3f60d67744bd353391"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">int tilesize </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the size of the tiles </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the size of the tiles </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1WMSMapAdapter.html#a7807022d8586d6d050541d2344eb12cb">WMSMapAdapter::changeHostAddress()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following files:<ul>
|
||||
<li><a class="el" href="emptymapadapter_8h_source.html">emptymapadapter.h</a></li>
|
||||
<li>emptymapadapter.cpp</li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
BIN
libs/QMapControl/html/classqmapcontrol_1_1EmptyMapAdapter.png
Normal file
After Width: | Height: | Size: 762 B |
@ -0,0 +1,99 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: Member List</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html">FixedImageOverlay</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">FixedImageOverlay Member List</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html">FixedImageOverlay</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> enum name</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726ae61b9b6ea2fa75ca500d5bb1eaf6f6fc">BottomLeft</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a6165fc7e37a746212ab2911513d3781f">BottomMiddle</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a1640f649d644701a2f4633e6bd88b20c">BottomRight</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">boundingBox</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a2fbb44b2ed047287d715484d2fda7299">coordinate</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a029a8b50c439c719aac173bffe4cfb71">Equals</a>(Geometry *geom)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html#a621806ec022f1b35a2383b64787a5827">FixedImageOverlay</a>(qreal x_upperleft, qreal y_upperleft, qreal x_lowerright, qreal y_lowerright, QString filename, QString name=QString())</td><td class="entry"><a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html">FixedImageOverlay</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html#aa5c420b6584232328fc12d8bc699129c">FixedImageOverlay</a>(qreal x_upperleft, qreal y_upperleft, qreal x_lowerright, qreal y_lowerright, QPixmap pixmap, QString name=QString())</td><td class="entry"><a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html">FixedImageOverlay</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a685dcab83356e5cc449475f177bb487d">geometryClicked</a>(Geometry *geometry, QPoint point)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1ImagePoint.html#aa5121dbb37cf1b8924a376e4c7edd728">ImagePoint</a>(qreal x, qreal y, QString filename, QString name=QString(), Alignment alignment=Middle)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1ImagePoint.html">ImagePoint</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1ImagePoint.html#a5859a1a7467f65a24ef7009acb927446">ImagePoint</a>(qreal x, qreal y, QPixmap pixmap, QString name=QString(), Alignment alignment=Middle)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1ImagePoint.html">ImagePoint</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a08422ee75ab02691943c1ca87e2bc563">isVisible</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a6311aabecac471455760aae4790cff91">latitude</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a2b0f7ec9068af09bcf151af61a785845">longitude</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c">Middle</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a771cc513dc079219d5da2c4b81019d7c">parentGeometry</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#ae781b15ef7d46695b2a7d2855b3f670f">pixmap</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a47257eee92b14e7c7f9b778c67bcb9a5">Point</a>(qreal x, qreal y, QString name=QString(), enum Alignment alignment=Middle)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#aa1767675df0bc3c13c75b3a48241125e">Point</a>(qreal x, qreal y, QWidget *widget, QString name=QString(), enum Alignment alignment=Middle)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a2a5d75301b8d2fd2ed406bddd0835740">Point</a>(qreal x, qreal y, QPixmap pixmap, QString name=QString(), enum Alignment alignment=Middle)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a807f9cfb1b9d680ca76cf825cc9cf46a">positionChanged</a>(Geometry *geom)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a91f1496833bfda9f7a7ec5fcb02a1895">setBaselevel</a>(int zoomlevel)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#adc2724c4e195727b823ff55c940283de">setMaxsize</a>(QSize maxsize)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#ac40b3e44f54fab1330b9309ac7bd84d2">setMinsize</a>(QSize minsize)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">setName</a>(QString name)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a61f66ddc6702462a94d3e231f02b9017">TopLeft</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726aaf2dc2d869f46c11d4c97c6649b2087a">TopMiddle</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a7e42a96f07eab63a8c9fa8a0526f34f4">TopRight</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a3a013a6edb6d10a71297978bc31a796b">toString</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Touches</a>(Point *click, const MapAdapter *mapadapter)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"><span class="mlabel">protected</span><span class="mlabel">virtual</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html#ad1eaabeb2b227cd055ccf4b4e2818480">widget</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a></td><td class="entry"></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
950
libs/QMapControl/html/classqmapcontrol_1_1FixedImageOverlay.html
Normal file
@ -0,0 +1,950 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: FixedImageOverlay Class Reference</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html">FixedImageOverlay</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-types">Public Types</a> |
|
||||
<a href="#signals">Signals</a> |
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="#pro-methods">Protected Member Functions</a> |
|
||||
<a href="classqmapcontrol_1_1FixedImageOverlay-members.html">List of all members</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">FixedImageOverlay Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>Draws a fixed image into the map.
|
||||
<a href="classqmapcontrol_1_1FixedImageOverlay.html#details">More...</a></p>
|
||||
|
||||
<p><code>#include <<a class="el" href="fixedimageoverlay_8h_source.html">fixedimageoverlay.h</a>></code></p>
|
||||
<div class="dynheader">
|
||||
Inheritance diagram for FixedImageOverlay:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center">
|
||||
<img src="classqmapcontrol_1_1FixedImageOverlay.png" usemap="#FixedImageOverlay_map" alt=""/>
|
||||
<map id="FixedImageOverlay_map" name="FixedImageOverlay_map">
|
||||
<area href="classqmapcontrol_1_1ImagePoint.html" title="Draws an image into the map. " alt="ImagePoint" shape="rect" coords="0,168,122,192"/>
|
||||
<area href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. " alt="Point" shape="rect" coords="0,112,122,136"/>
|
||||
<area href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. " alt="Geometry" shape="rect" coords="0,56,122,80"/>
|
||||
<area href="classQObject.html" alt="QObject" shape="rect" coords="0,0,122,24"/>
|
||||
</map>
|
||||
</div></div>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
|
||||
Public Types</h2></td></tr>
|
||||
<tr class="memitem:acdfaca60ec19c0265bac2692d7982726"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a> { <br />
|
||||
  <a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a61f66ddc6702462a94d3e231f02b9017">TopLeft</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a7e42a96f07eab63a8c9fa8a0526f34f4">TopRight</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726aaf2dc2d869f46c11d4c97c6649b2087a">TopMiddle</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726ae61b9b6ea2fa75ca500d5bb1eaf6f6fc">BottomLeft</a>,
|
||||
<br />
|
||||
  <a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a1640f649d644701a2f4633e6bd88b20c">BottomRight</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a6165fc7e37a746212ab2911513d3781f">BottomMiddle</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c">Middle</a>
|
||||
<br />
|
||||
}</td></tr>
|
||||
<tr class="memdesc:acdfaca60ec19c0265bac2692d7982726"><td class="mdescLeft"> </td><td class="mdescRight">sets where the point should be aligned <a href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">More...</a><br /></td></tr>
|
||||
<tr class="separator:acdfaca60ec19c0265bac2692d7982726"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
|
||||
Signals</h2></td></tr>
|
||||
<tr class="memitem:a685dcab83356e5cc449475f177bb487d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a685dcab83356e5cc449475f177bb487d">geometryClicked</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry, QPoint point)</td></tr>
|
||||
<tr class="memdesc:a685dcab83356e5cc449475f177bb487d"><td class="mdescLeft"> </td><td class="mdescRight">This signal is emitted when a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clicked. <a href="#a685dcab83356e5cc449475f177bb487d">More...</a><br /></td></tr>
|
||||
<tr class="separator:a685dcab83356e5cc449475f177bb487d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a807f9cfb1b9d680ca76cf825cc9cf46a">positionChanged</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geom)</td></tr>
|
||||
<tr class="memdesc:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="mdescLeft"> </td><td class="mdescRight">A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> emits this signal, when its position gets changed. <a href="#a807f9cfb1b9d680ca76cf825cc9cf46a">More...</a><br /></td></tr>
|
||||
<tr class="separator:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
||||
Public Member Functions</h2></td></tr>
|
||||
<tr class="memitem:acbb256b5f9f888e9cd3bb475108ece24"><td class="memItemLeft" align="right" valign="top">virtual QRectF </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">boundingBox</a> ()</td></tr>
|
||||
<tr class="memdesc:acbb256b5f9f888e9cd3bb475108ece24"><td class="mdescLeft"> </td><td class="mdescRight">returns the bounding box of the point <a href="#acbb256b5f9f888e9cd3bb475108ece24">More...</a><br /></td></tr>
|
||||
<tr class="separator:acbb256b5f9f888e9cd3bb475108ece24"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2fbb44b2ed047287d715484d2fda7299"><td class="memItemLeft" align="right" valign="top">QPointF </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a2fbb44b2ed047287d715484d2fda7299">coordinate</a> () const </td></tr>
|
||||
<tr class="memdesc:a2fbb44b2ed047287d715484d2fda7299"><td class="mdescLeft"> </td><td class="mdescRight">returns the coordinate of the point <a href="#a2fbb44b2ed047287d715484d2fda7299">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2fbb44b2ed047287d715484d2fda7299"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a029a8b50c439c719aac173bffe4cfb71"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a029a8b50c439c719aac173bffe4cfb71">Equals</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geom)</td></tr>
|
||||
<tr class="separator:a029a8b50c439c719aac173bffe4cfb71"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a621806ec022f1b35a2383b64787a5827"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html#a621806ec022f1b35a2383b64787a5827">FixedImageOverlay</a> (qreal x_upperleft, qreal y_upperleft, qreal x_lowerright, qreal y_lowerright, QString filename, QString <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>=QString())</td></tr>
|
||||
<tr class="memdesc:a621806ec022f1b35a2383b64787a5827"><td class="mdescLeft"> </td><td class="mdescRight">Creates an image overlay which loads and displays the given image file. <a href="#a621806ec022f1b35a2383b64787a5827">More...</a><br /></td></tr>
|
||||
<tr class="separator:a621806ec022f1b35a2383b64787a5827"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa5c420b6584232328fc12d8bc699129c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html#aa5c420b6584232328fc12d8bc699129c">FixedImageOverlay</a> (qreal x_upperleft, qreal y_upperleft, qreal x_lowerright, qreal y_lowerright, QPixmap <a class="el" href="classqmapcontrol_1_1Point.html#ae781b15ef7d46695b2a7d2855b3f670f">pixmap</a>, QString <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>=QString())</td></tr>
|
||||
<tr class="memdesc:aa5c420b6584232328fc12d8bc699129c"><td class="mdescLeft"> </td><td class="mdescRight">Creates an image overlay which displays the given image. <a href="#aa5c420b6584232328fc12d8bc699129c">More...</a><br /></td></tr>
|
||||
<tr class="separator:aa5c420b6584232328fc12d8bc699129c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a08422ee75ab02691943c1ca87e2bc563"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a08422ee75ab02691943c1ca87e2bc563">isVisible</a> () const </td></tr>
|
||||
<tr class="memdesc:a08422ee75ab02691943c1ca87e2bc563"><td class="mdescLeft"> </td><td class="mdescRight">returns true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible <a href="#a08422ee75ab02691943c1ca87e2bc563">More...</a><br /></td></tr>
|
||||
<tr class="separator:a08422ee75ab02691943c1ca87e2bc563"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6311aabecac471455760aae4790cff91"><td class="memItemLeft" align="right" valign="top">qreal </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a6311aabecac471455760aae4790cff91">latitude</a> () const </td></tr>
|
||||
<tr class="memdesc:a6311aabecac471455760aae4790cff91"><td class="mdescLeft"> </td><td class="mdescRight">returns the latitude of the point <a href="#a6311aabecac471455760aae4790cff91">More...</a><br /></td></tr>
|
||||
<tr class="separator:a6311aabecac471455760aae4790cff91"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2b0f7ec9068af09bcf151af61a785845"><td class="memItemLeft" align="right" valign="top">qreal </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a2b0f7ec9068af09bcf151af61a785845">longitude</a> () const </td></tr>
|
||||
<tr class="memdesc:a2b0f7ec9068af09bcf151af61a785845"><td class="mdescLeft"> </td><td class="mdescRight">returns the longitude of the point <a href="#a2b0f7ec9068af09bcf151af61a785845">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2b0f7ec9068af09bcf151af61a785845"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2b0a198f837184bf6fff555cee3ce770"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a> () const </td></tr>
|
||||
<tr class="memdesc:a2b0a198f837184bf6fff555cee3ce770"><td class="mdescLeft"> </td><td class="mdescRight">returns the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a2b0a198f837184bf6fff555cee3ce770">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2b0a198f837184bf6fff555cee3ce770"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a771cc513dc079219d5da2c4b81019d7c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a771cc513dc079219d5da2c4b81019d7c">parentGeometry</a> () const </td></tr>
|
||||
<tr class="memdesc:a771cc513dc079219d5da2c4b81019d7c"><td class="mdescLeft"> </td><td class="mdescRight">returns the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a771cc513dc079219d5da2c4b81019d7c">More...</a><br /></td></tr>
|
||||
<tr class="separator:a771cc513dc079219d5da2c4b81019d7c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="memItemLeft" align="right" valign="top">QPen * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a> () const </td></tr>
|
||||
<tr class="memdesc:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="mdescLeft"> </td><td class="mdescRight">returns the QPen which is used on drawing <a href="#aed7be2fcd2c1d7bccb55f5ac73d7a662">More...</a><br /></td></tr>
|
||||
<tr class="separator:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae781b15ef7d46695b2a7d2855b3f670f"><td class="memItemLeft" align="right" valign="top">QPixmap </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#ae781b15ef7d46695b2a7d2855b3f670f">pixmap</a> ()</td></tr>
|
||||
<tr class="memdesc:ae781b15ef7d46695b2a7d2855b3f670f"><td class="mdescLeft"> </td><td class="mdescRight">returns the pixmap of the point <a href="#ae781b15ef7d46695b2a7d2855b3f670f">More...</a><br /></td></tr>
|
||||
<tr class="separator:ae781b15ef7d46695b2a7d2855b3f670f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a91f1496833bfda9f7a7ec5fcb02a1895"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a91f1496833bfda9f7a7ec5fcb02a1895">setBaselevel</a> (int zoomlevel)</td></tr>
|
||||
<tr class="memdesc:a91f1496833bfda9f7a7ec5fcb02a1895"><td class="mdescLeft"> </td><td class="mdescRight">Sets the zoom level on which the points pixmap gets displayed on full size. <a href="#a91f1496833bfda9f7a7ec5fcb02a1895">More...</a><br /></td></tr>
|
||||
<tr class="separator:a91f1496833bfda9f7a7ec5fcb02a1895"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:adc2724c4e195727b823ff55c940283de"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#adc2724c4e195727b823ff55c940283de">setMaxsize</a> (QSize maxsize)</td></tr>
|
||||
<tr class="memdesc:adc2724c4e195727b823ff55c940283de"><td class="mdescLeft"> </td><td class="mdescRight">sets a maximal size for the pixmap <a href="#adc2724c4e195727b823ff55c940283de">More...</a><br /></td></tr>
|
||||
<tr class="separator:adc2724c4e195727b823ff55c940283de"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ac40b3e44f54fab1330b9309ac7bd84d2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#ac40b3e44f54fab1330b9309ac7bd84d2">setMinsize</a> (QSize minsize)</td></tr>
|
||||
<tr class="memdesc:ac40b3e44f54fab1330b9309ac7bd84d2"><td class="mdescLeft"> </td><td class="mdescRight">sets a minimal size for the pixmap <a href="#ac40b3e44f54fab1330b9309ac7bd84d2">More...</a><br /></td></tr>
|
||||
<tr class="separator:ac40b3e44f54fab1330b9309ac7bd84d2"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6220fae15759fd0fa7d75e415df34e83"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">setName</a> (QString <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>)</td></tr>
|
||||
<tr class="memdesc:a6220fae15759fd0fa7d75e415df34e83"><td class="mdescLeft"> </td><td class="mdescRight">sets the name of the geometry <a href="#a6220fae15759fd0fa7d75e415df34e83">More...</a><br /></td></tr>
|
||||
<tr class="separator:a6220fae15759fd0fa7d75e415df34e83"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3a013a6edb6d10a71297978bc31a796b"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a3a013a6edb6d10a71297978bc31a796b">toString</a> ()</td></tr>
|
||||
<tr class="memdesc:a3a013a6edb6d10a71297978bc31a796b"><td class="mdescLeft"> </td><td class="mdescRight">returns a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a3a013a6edb6d10a71297978bc31a796b">More...</a><br /></td></tr>
|
||||
<tr class="separator:a3a013a6edb6d10a71297978bc31a796b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ad1eaabeb2b227cd055ccf4b4e2818480"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQWidget.html">QWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#ad1eaabeb2b227cd055ccf4b4e2818480">widget</a> ()</td></tr>
|
||||
<tr class="memdesc:ad1eaabeb2b227cd055ccf4b4e2818480"><td class="mdescLeft"> </td><td class="mdescRight">returns the widget of the point <a href="#ad1eaabeb2b227cd055ccf4b4e2818480">More...</a><br /></td></tr>
|
||||
<tr class="separator:ad1eaabeb2b227cd055ccf4b4e2818480"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
|
||||
Protected Member Functions</h2></td></tr>
|
||||
<tr class="memitem:a7dee2100a2d2056511aca25c9390d253"><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Touches</a> (<a class="el" href="classqmapcontrol_1_1Point.html">Point</a> *click, const <a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> *mapadapter)</td></tr>
|
||||
<tr class="memdesc:a7dee2100a2d2056511aca25c9390d253"><td class="mdescLeft"> </td><td class="mdescRight">returns true if the given <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> touches this <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> <a href="#a7dee2100a2d2056511aca25c9390d253">More...</a><br /></td></tr>
|
||||
<tr class="separator:a7dee2100a2d2056511aca25c9390d253"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Draws a fixed image into the map. </p>
|
||||
<p>This class draws a image overlay onto a map, whose upper left and lower right corners lay always on the given coordinates. The methods setBaselevel, setMaxsize and setMinsize have no effect for this class.</p>
|
||||
<dl class="section author"><dt>Author</dt><dd>Kai Winter <a href="#" onclick="location.href='mai'+'lto:'+'kai'+'wi'+'nte'+'r@'+'gmx'+'.d'+'e'; return false;">kaiwi<span style="display: none;">.nosp@m.</span>nter<span style="display: none;">.nosp@m.</span>@gmx.<span style="display: none;">.nosp@m.</span>de</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
|
||||
<a class="anchor" id="acdfaca60ec19c0265bac2692d7982726"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">enum <a class="el" href="classqmapcontrol_1_1Point.html#acdfaca60ec19c0265bac2692d7982726">Alignment</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets where the point should be aligned </p>
|
||||
<table class="fieldtable">
|
||||
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a61f66ddc6702462a94d3e231f02b9017"></a>TopLeft </td><td class="fielddoc">
|
||||
<p>Align on TopLeft </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a7e42a96f07eab63a8c9fa8a0526f34f4"></a>TopRight </td><td class="fielddoc">
|
||||
<p>Align on TopRight </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726aaf2dc2d869f46c11d4c97c6649b2087a"></a>TopMiddle </td><td class="fielddoc">
|
||||
<p>Align on TopLeft </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726ae61b9b6ea2fa75ca500d5bb1eaf6f6fc"></a>BottomLeft </td><td class="fielddoc">
|
||||
<p>Align on BottomLeft </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a1640f649d644701a2f4633e6bd88b20c"></a>BottomRight </td><td class="fielddoc">
|
||||
<p>Align on BottomRight </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a6165fc7e37a746212ab2911513d3781f"></a>BottomMiddle </td><td class="fielddoc">
|
||||
<p>Align on BottomMiddle </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="acdfaca60ec19c0265bac2692d7982726a673e6efef9aafe98078c5552e99c923c"></a>Middle </td><td class="fielddoc">
|
||||
<p>Align on Middle </p>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a class="anchor" id="a621806ec022f1b35a2383b64787a5827"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html">FixedImageOverlay</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>x_upperleft</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>y_upperleft</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>x_lowerright</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>y_lowerright</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QString </td>
|
||||
<td class="paramname"><em>filename</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QString </td>
|
||||
<td class="paramname"><em>name</em> = <code>QString()</code> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Creates an image overlay which loads and displays the given image file. </p>
|
||||
<p>Use this contructor to load the given image file and let the point display it. When you want multiple points to display the same image, use the other contructor and pass a pointer to that image. </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">x_upperleft</td><td>the coordinate of the upper left corner where the image should be aligned </td></tr>
|
||||
<tr><td class="paramname">y_upperleft</td><td>the coordinate of the upper left corner where the image should be aligned </td></tr>
|
||||
<tr><td class="paramname">x_lowerright</td><td>the coordinate of the lower right corner where the image should be aligned </td></tr>
|
||||
<tr><td class="paramname">y_lowerright</td><td>the coordinate of the lower right corner where the image should be aligned </td></tr>
|
||||
<tr><td class="paramname">filename</td><td>the file which should be loaded and displayed </td></tr>
|
||||
<tr><td class="paramname">name</td><td>the name of the image point </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="aa5c420b6584232328fc12d8bc699129c"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html">FixedImageOverlay</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>x_upperleft</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>y_upperleft</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>x_lowerright</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">qreal </td>
|
||||
<td class="paramname"><em>y_lowerright</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QPixmap </td>
|
||||
<td class="paramname"><em>pixmap</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QString </td>
|
||||
<td class="paramname"><em>name</em> = <code>QString()</code> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Creates an image overlay which displays the given image. </p>
|
||||
<p>Use this contructor to display the given image. </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">x_upperleft</td><td>the coordinate of the upper left corner where the image should be aligned </td></tr>
|
||||
<tr><td class="paramname">y_upperleft</td><td>the coordinate of the upper left corner where the image should be aligned </td></tr>
|
||||
<tr><td class="paramname">x_lowerright</td><td>the coordinate of the lower right corner where the image should be aligned </td></tr>
|
||||
<tr><td class="paramname">y_lowerright</td><td>the coordinate of the lower right corner where the image should be aligned </td></tr>
|
||||
<tr><td class="paramname">pixmap</td><td>pointer to the image pixmap </td></tr>
|
||||
<tr><td class="paramname">name</td><td>the name of the image point </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Point.html#ae781b15ef7d46695b2a7d2855b3f670f">Point::pixmap()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a class="anchor" id="acbb256b5f9f888e9cd3bb475108ece24"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QRectF boundingBox </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the bounding box of the point </p>
|
||||
<p>The Bounding contains the coordinate of the point and its size. The size is set, if the point contains a pixmap or a widget </p><dl class="section return"><dt>Returns</dt><dd>the bounding box of the point </dd></dl>
|
||||
|
||||
<p>Implements <a class="el" href="classqmapcontrol_1_1Geometry.html#af92c4fa46f711bea92efe5ab80f9084d">Geometry</a>.</p>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Point.html#a6311aabecac471455760aae4790cff91">Point::latitude()</a>, and <a class="el" href="classqmapcontrol_1_1Point.html#a2b0f7ec9068af09bcf151af61a785845">Point::longitude()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a2fbb44b2ed047287d715484d2fda7299"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QPointF coordinate </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the coordinate of the point </p>
|
||||
<p>The x component of the returned QPointF is the longitude value, the y component the latitude </p><dl class="section return"><dt>Returns</dt><dd>the coordinate of a point </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1MapControl.html#a4ea85421ec8df905fba209510c909e2c">MapControl::setView()</a>, and <a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Point::Touches()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a029a8b50c439c719aac173bffe4cfb71"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool Equals </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geom</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p>returns true if the given <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is equal to this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> not implemented yet! </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geom</td><td>The <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> to be tested </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>true if the given <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is equal to this </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a685dcab83356e5cc449475f177bb487d"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void geometryClicked </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geometry</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QPoint </td>
|
||||
<td class="paramname"><em>point</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">signal</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>This signal is emitted when a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clicked. </p>
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clickable, if the containing layer is clickable. The objects emits a signal if it gets clicked </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geometry</td><td>The clicked <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </td></tr>
|
||||
<tr><td class="paramname">point</td><td>-unused- </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Point::Touches()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a08422ee75ab02691943c1ca87e2bc563"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool isVisible </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Point::Touches()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a6311aabecac471455760aae4790cff91"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">qreal latitude </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the latitude of the point </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the latitude of the point </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1LineString.html#acbb256b5f9f888e9cd3bb475108ece24">LineString::boundingBox()</a>, and <a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">Point::boundingBox()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a2b0f7ec9068af09bcf151af61a785845"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">qreal longitude </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the longitude of the point </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the longitude of the point </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1LineString.html#acbb256b5f9f888e9cd3bb475108ece24">LineString::boundingBox()</a>, and <a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">Point::boundingBox()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a2b0a198f837184bf6fff555cee3ce770"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QString name </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">Geometry::setName()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a771cc513dc079219d5da2c4b81019d7c"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * parentGeometry </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. ">LineString</a> is a composition of many Points. This methods returns the parent (the <a class="el" href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. ">LineString</a>) of a <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> </p><dl class="section return"><dt>Returns</dt><dd>the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="aed7be2fcd2c1d7bccb55f5ac73d7a662"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QPen * pen </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the QPen which is used on drawing </p>
|
||||
<p>The pen is set depending on the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a>. A <a class="el" href="classqmapcontrol_1_1CirclePoint.html" title="Draws a circle into the map. ">CirclePoint</a> for example takes one with the constructor. </p><dl class="section return"><dt>Returns</dt><dd>the QPen which is used for drawing </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1ArrowPoint.html#a841a287c3d99b6e796442168cbc96cc8">ArrowPoint::ArrowPoint()</a>, <a class="el" href="classqmapcontrol_1_1CirclePoint.html#a13300765d52da11cc8cbb4384e8e9e23">CirclePoint::CirclePoint()</a>, <a class="el" href="classqmapcontrol_1_1LineString.html#ad8efdad1cc0ff6c63357cb72180c3a0a">LineString::LineString()</a>, <a class="el" href="classqmapcontrol_1_1ArrowPoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">ArrowPoint::setPen()</a>, and <a class="el" href="classqmapcontrol_1_1CirclePoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">CirclePoint::setPen()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ae781b15ef7d46695b2a7d2855b3f670f"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QPixmap pixmap </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the pixmap of the point </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the pixmap of the point </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1FixedImageOverlay.html#aa5c420b6584232328fc12d8bc699129c">FixedImageOverlay::FixedImageOverlay()</a>, and <a class="el" href="classqmapcontrol_1_1ImagePoint.html#a5859a1a7467f65a24ef7009acb927446">ImagePoint::ImagePoint()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a807f9cfb1b9d680ca76cf825cc9cf46a"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void positionChanged </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geom</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">signal</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> emits this signal, when its position gets changed. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geom</td><td>the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a91f1496833bfda9f7a7ec5fcb02a1895"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setBaselevel </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">int </td>
|
||||
<td class="paramname"><em>zoomlevel</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Sets the zoom level on which the points pixmap gets displayed on full size. </p>
|
||||
<p>Use this method to set a zoom level on which the pixmap gets displayed with its real size. On zoomlevels below it will be displayed smaller, and on zoom levels thereover it will be displayed larger </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classqmapcontrol_1_1Point.html#ac40b3e44f54fab1330b9309ac7bd84d2" title="sets a minimal size for the pixmap ">setMinsize</a>, <a class="el" href="classqmapcontrol_1_1Point.html#adc2724c4e195727b823ff55c940283de" title="sets a maximal size for the pixmap ">setMaxsize</a> </dd></dl>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">zoomlevel</td><td>the zoomlevel on which the point will be displayed on full size </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="adc2724c4e195727b823ff55c940283de"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setMaxsize </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">QSize </td>
|
||||
<td class="paramname"><em>maxsize</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets a maximal size for the pixmap </p>
|
||||
<p>When the point´s pixmap should change its size on zooming, this method sets the maximal size. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classqmapcontrol_1_1Point.html#a91f1496833bfda9f7a7ec5fcb02a1895" title="Sets the zoom level on which the points pixmap gets displayed on full size. ">setBaselevel</a> </dd></dl>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">maxsize</td><td>the maximal size which the pixmap should have </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ac40b3e44f54fab1330b9309ac7bd84d2"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setMinsize </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">QSize </td>
|
||||
<td class="paramname"><em>minsize</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets a minimal size for the pixmap </p>
|
||||
<p>When the point's pixmap should change its size on zooming, this method sets the minimal size. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="classqmapcontrol_1_1Point.html#a91f1496833bfda9f7a7ec5fcb02a1895" title="Sets the zoom level on which the points pixmap gets displayed on full size. ">setBaselevel</a> </dd></dl>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">minsize</td><td>the minimal size which the pixmap should have </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a6220fae15759fd0fa7d75e415df34e83"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setName </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">QString </td>
|
||||
<td class="paramname"><em>name</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets the name of the geometry </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">name</td><td>the new name of the geometry </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">Geometry::name()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a3a013a6edb6d10a71297978bc31a796b"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QString toString </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<p>not implemented yet! </p><dl class="section return"><dt>Returns</dt><dd>a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a7dee2100a2d2056511aca25c9390d253"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool Touches </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Point.html">Point</a> * </td>
|
||||
<td class="paramname"><em>click</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> * </td>
|
||||
<td class="paramname"><em>mapadapter</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns true if the given <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> touches this <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> </p>
|
||||
<p>The collision detection checks for the bounding rectangulars. </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geom</td><td>the other point which should be tested on collision </td></tr>
|
||||
<tr><td class="paramname">mapadapter</td><td>the mapadapter which is used for calculations </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd></dd></dl>
|
||||
|
||||
<p>Implements <a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a>.</p>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Point.html#a2fbb44b2ed047287d715484d2fda7299">Point::coordinate()</a>, <a class="el" href="classqmapcontrol_1_1MapAdapter.html#a0a7f30d12395e615eec9440070795349">MapAdapter::coordinateToDisplay()</a>, <a class="el" href="classqmapcontrol_1_1Geometry.html#a685dcab83356e5cc449475f177bb487d">Geometry::geometryClicked()</a>, and <a class="el" href="classqmapcontrol_1_1Geometry.html#a08422ee75ab02691943c1ca87e2bc563">Geometry::isVisible()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ad1eaabeb2b227cd055ccf4b4e2818480"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classQWidget.html">QWidget</a> * widget </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the widget of the point </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the widget of the point </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following files:<ul>
|
||||
<li><a class="el" href="fixedimageoverlay_8h_source.html">fixedimageoverlay.h</a></li>
|
||||
<li>fixedimageoverlay.cpp</li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
BIN
libs/QMapControl/html/classqmapcontrol_1_1FixedImageOverlay.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
@ -0,0 +1,76 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: Member List</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">Geometry Member List</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#af92c4fa46f711bea92efe5ab80f9084d">boundingBox</a>()=0</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">pure virtual</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a029a8b50c439c719aac173bffe4cfb71">Equals</a>(Geometry *geom)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a685dcab83356e5cc449475f177bb487d">geometryClicked</a>(Geometry *geometry, QPoint point)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a08422ee75ab02691943c1ca87e2bc563">isVisible</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a771cc513dc079219d5da2c4b81019d7c">parentGeometry</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a807f9cfb1b9d680ca76cf825cc9cf46a">positionChanged</a>(Geometry *geom)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">setName</a>(QString name)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a18e44e30b31525a243960ca3928125aa">setVisible</a>(bool visible)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"><span class="mlabel">virtual</span><span class="mlabel">slot</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html#a3a013a6edb6d10a71297978bc31a796b">toString</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></td><td class="entry"></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
427
libs/QMapControl/html/classqmapcontrol_1_1Geometry.html
Normal file
@ -0,0 +1,427 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: Geometry Class Reference</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-slots">Public Slots</a> |
|
||||
<a href="#signals">Signals</a> |
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="classqmapcontrol_1_1Geometry-members.html">List of all members</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">Geometry Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>Main class for objects that should be painted in maps.
|
||||
<a href="classqmapcontrol_1_1Geometry.html#details">More...</a></p>
|
||||
|
||||
<p><code>#include <<a class="el" href="geometry_8h_source.html">geometry.h</a>></code></p>
|
||||
<div class="dynheader">
|
||||
Inheritance diagram for Geometry:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center">
|
||||
<img src="classqmapcontrol_1_1Geometry.png" usemap="#Geometry_map" alt=""/>
|
||||
<map id="Geometry_map" name="Geometry_map">
|
||||
<area href="classQObject.html" alt="QObject" shape="rect" coords="165,0,287,24"/>
|
||||
<area href="classqmapcontrol_1_1Curve.html" title="A Curve Geometry, implemented to fullfil OGC Spec. " alt="Curve" shape="rect" coords="0,112,122,136"/>
|
||||
<area href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. " alt="Point" shape="rect" coords="330,112,452,136"/>
|
||||
<area href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. " alt="LineString" shape="rect" coords="0,168,122,192"/>
|
||||
<area href="classqmapcontrol_1_1ArrowPoint.html" title="Draws a directed arrow (showing orientation) into the map. " alt="ArrowPoint" shape="rect" coords="132,168,254,192"/>
|
||||
<area href="classqmapcontrol_1_1CirclePoint.html" title="Draws a circle into the map. " alt="CirclePoint" shape="rect" coords="264,168,386,192"/>
|
||||
<area href="classqmapcontrol_1_1ImagePoint.html" title="Draws an image into the map. " alt="ImagePoint" shape="rect" coords="396,168,518,192"/>
|
||||
<area href="classqmapcontrol_1_1InvisiblePoint.html" title="Draws an invisible point into the map. " alt="InvisiblePoint" shape="rect" coords="528,168,650,192"/>
|
||||
<area href="classqmapcontrol_1_1FixedImageOverlay.html" title="Draws a fixed image into the map. " alt="FixedImageOverlay" shape="rect" coords="396,224,518,248"/>
|
||||
</map>
|
||||
</div></div>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
|
||||
Public Slots</h2></td></tr>
|
||||
<tr class="memitem:a18e44e30b31525a243960ca3928125aa"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a18e44e30b31525a243960ca3928125aa">setVisible</a> (bool visible)</td></tr>
|
||||
<tr class="memdesc:a18e44e30b31525a243960ca3928125aa"><td class="mdescLeft"> </td><td class="mdescRight">if visible is true, the layer is made visible <a href="#a18e44e30b31525a243960ca3928125aa">More...</a><br /></td></tr>
|
||||
<tr class="separator:a18e44e30b31525a243960ca3928125aa"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
|
||||
Signals</h2></td></tr>
|
||||
<tr class="memitem:a685dcab83356e5cc449475f177bb487d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a685dcab83356e5cc449475f177bb487d">geometryClicked</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry, QPoint point)</td></tr>
|
||||
<tr class="memdesc:a685dcab83356e5cc449475f177bb487d"><td class="mdescLeft"> </td><td class="mdescRight">This signal is emitted when a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clicked. <a href="#a685dcab83356e5cc449475f177bb487d">More...</a><br /></td></tr>
|
||||
<tr class="separator:a685dcab83356e5cc449475f177bb487d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a807f9cfb1b9d680ca76cf825cc9cf46a">positionChanged</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geom)</td></tr>
|
||||
<tr class="memdesc:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="mdescLeft"> </td><td class="mdescRight">A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> emits this signal, when its position gets changed. <a href="#a807f9cfb1b9d680ca76cf825cc9cf46a">More...</a><br /></td></tr>
|
||||
<tr class="separator:a807f9cfb1b9d680ca76cf825cc9cf46a"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
||||
Public Member Functions</h2></td></tr>
|
||||
<tr class="memitem:af92c4fa46f711bea92efe5ab80f9084d"><td class="memItemLeft" align="right" valign="top">virtual QRectF </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#af92c4fa46f711bea92efe5ab80f9084d">boundingBox</a> ()=0</td></tr>
|
||||
<tr class="memdesc:af92c4fa46f711bea92efe5ab80f9084d"><td class="mdescLeft"> </td><td class="mdescRight">returns the BoundingBox <a href="#af92c4fa46f711bea92efe5ab80f9084d">More...</a><br /></td></tr>
|
||||
<tr class="separator:af92c4fa46f711bea92efe5ab80f9084d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a029a8b50c439c719aac173bffe4cfb71"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a029a8b50c439c719aac173bffe4cfb71">Equals</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geom)</td></tr>
|
||||
<tr class="separator:a029a8b50c439c719aac173bffe4cfb71"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a08422ee75ab02691943c1ca87e2bc563"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a08422ee75ab02691943c1ca87e2bc563">isVisible</a> () const </td></tr>
|
||||
<tr class="memdesc:a08422ee75ab02691943c1ca87e2bc563"><td class="mdescLeft"> </td><td class="mdescRight">returns true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible <a href="#a08422ee75ab02691943c1ca87e2bc563">More...</a><br /></td></tr>
|
||||
<tr class="separator:a08422ee75ab02691943c1ca87e2bc563"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2b0a198f837184bf6fff555cee3ce770"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a> () const </td></tr>
|
||||
<tr class="memdesc:a2b0a198f837184bf6fff555cee3ce770"><td class="mdescLeft"> </td><td class="mdescRight">returns the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a2b0a198f837184bf6fff555cee3ce770">More...</a><br /></td></tr>
|
||||
<tr class="separator:a2b0a198f837184bf6fff555cee3ce770"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a771cc513dc079219d5da2c4b81019d7c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a771cc513dc079219d5da2c4b81019d7c">parentGeometry</a> () const </td></tr>
|
||||
<tr class="memdesc:a771cc513dc079219d5da2c4b81019d7c"><td class="mdescLeft"> </td><td class="mdescRight">returns the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a771cc513dc079219d5da2c4b81019d7c">More...</a><br /></td></tr>
|
||||
<tr class="separator:a771cc513dc079219d5da2c4b81019d7c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="memItemLeft" align="right" valign="top">QPen * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#aed7be2fcd2c1d7bccb55f5ac73d7a662">pen</a> () const </td></tr>
|
||||
<tr class="memdesc:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="mdescLeft"> </td><td class="mdescRight">returns the QPen which is used on drawing <a href="#aed7be2fcd2c1d7bccb55f5ac73d7a662">More...</a><br /></td></tr>
|
||||
<tr class="separator:aed7be2fcd2c1d7bccb55f5ac73d7a662"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a6220fae15759fd0fa7d75e415df34e83"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">setName</a> (QString <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">name</a>)</td></tr>
|
||||
<tr class="memdesc:a6220fae15759fd0fa7d75e415df34e83"><td class="mdescLeft"> </td><td class="mdescRight">sets the name of the geometry <a href="#a6220fae15759fd0fa7d75e415df34e83">More...</a><br /></td></tr>
|
||||
<tr class="separator:a6220fae15759fd0fa7d75e415df34e83"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a3a013a6edb6d10a71297978bc31a796b"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Geometry.html#a3a013a6edb6d10a71297978bc31a796b">toString</a> ()</td></tr>
|
||||
<tr class="memdesc:a3a013a6edb6d10a71297978bc31a796b"><td class="mdescLeft"> </td><td class="mdescRight">returns a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> <a href="#a3a013a6edb6d10a71297978bc31a796b">More...</a><br /></td></tr>
|
||||
<tr class="separator:a3a013a6edb6d10a71297978bc31a796b"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Main class for objects that should be painted in maps. </p>
|
||||
<p><a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is the root class of the hierarchy. <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is an abstract (non-instantiable) class.</p>
|
||||
<p>This class and the derived classes <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a>, <a class="el" href="classqmapcontrol_1_1Curve.html" title="A Curve Geometry, implemented to fullfil OGC Spec. ">Curve</a> and <a class="el" href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. ">LineString</a> are leant on the Simple Feature Specification of the Open Geospatial Consortium. </p><dl class="section see"><dt>See also</dt><dd>www.opengeospatial.com</dd></dl>
|
||||
<dl class="section author"><dt>Author</dt><dd>Kai Winter <a href="#" onclick="location.href='mai'+'lto:'+'kai'+'wi'+'nte'+'r@'+'gmx'+'.d'+'e'; return false;">kaiwi<span style="display: none;">.nosp@m.</span>nter<span style="display: none;">.nosp@m.</span>@gmx.<span style="display: none;">.nosp@m.</span>de</a> </dd></dl>
|
||||
</div><h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a class="anchor" id="af92c4fa46f711bea92efe5ab80f9084d"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">virtual QRectF boundingBox </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the BoundingBox </p>
|
||||
<p>The bounding box in world coordinates </p><dl class="section return"><dt>Returns</dt><dd>the BoundingBox </dd></dl>
|
||||
|
||||
<p>Implemented in <a class="el" href="classqmapcontrol_1_1Point.html#acbb256b5f9f888e9cd3bb475108ece24">Point</a>, and <a class="el" href="classqmapcontrol_1_1LineString.html#acbb256b5f9f888e9cd3bb475108ece24">LineString</a>.</p>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Layer.html#ab692d7d08414ed2b744946b88872827f">Layer::addGeometry()</a>, <a class="el" href="classqmapcontrol_1_1MapControl.html#a81804b97ecc3e2fff3a64314ff866587">MapControl::isGeometryVisible()</a>, <a class="el" href="classqmapcontrol_1_1Layer.html#af2a2f7fec3f6e5fbf623f466a961bfb7">Layer::removeGeometry()</a>, and <a class="el" href="classqmapcontrol_1_1Geometry.html#a18e44e30b31525a243960ca3928125aa">Geometry::setVisible()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a029a8b50c439c719aac173bffe4cfb71"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool Equals </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geom</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p>returns true if the given <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is equal to this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> not implemented yet! </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geom</td><td>The <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> to be tested </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>true if the given <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is equal to this </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a685dcab83356e5cc449475f177bb487d"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void geometryClicked </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geometry</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QPoint </td>
|
||||
<td class="paramname"><em>point</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">signal</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>This signal is emitted when a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clicked. </p>
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clickable, if the containing layer is clickable. The objects emits a signal if it gets clicked </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geometry</td><td>The clicked <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </td></tr>
|
||||
<tr><td class="paramname">point</td><td>-unused- </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Point::Touches()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a08422ee75ab02691943c1ca87e2bc563"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool isVisible </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>true if this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is visible </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Point.html#a7dee2100a2d2056511aca25c9390d253">Point::Touches()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a2b0a198f837184bf6fff555cee3ce770"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QString name </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the name of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Geometry.html#a6220fae15759fd0fa7d75e415df34e83">Geometry::setName()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a771cc513dc079219d5da2c4b81019d7c"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * parentGeometry </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. ">LineString</a> is a composition of many Points. This methods returns the parent (the <a class="el" href="classqmapcontrol_1_1LineString.html" title="A collection of Point objects to describe a line. ">LineString</a>) of a <a class="el" href="classqmapcontrol_1_1Point.html" title="A geometric point to draw objects into maps. ">Point</a> </p><dl class="section return"><dt>Returns</dt><dd>the parent <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="aed7be2fcd2c1d7bccb55f5ac73d7a662"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QPen * pen </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the QPen which is used on drawing </p>
|
||||
<p>The pen is set depending on the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a>. A <a class="el" href="classqmapcontrol_1_1CirclePoint.html" title="Draws a circle into the map. ">CirclePoint</a> for example takes one with the constructor. </p><dl class="section return"><dt>Returns</dt><dd>the QPen which is used for drawing </dd></dl>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1ArrowPoint.html#a841a287c3d99b6e796442168cbc96cc8">ArrowPoint::ArrowPoint()</a>, <a class="el" href="classqmapcontrol_1_1CirclePoint.html#a13300765d52da11cc8cbb4384e8e9e23">CirclePoint::CirclePoint()</a>, <a class="el" href="classqmapcontrol_1_1LineString.html#ad8efdad1cc0ff6c63357cb72180c3a0a">LineString::LineString()</a>, <a class="el" href="classqmapcontrol_1_1ArrowPoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">ArrowPoint::setPen()</a>, and <a class="el" href="classqmapcontrol_1_1CirclePoint.html#aa92f0f1b5d2fd424196a33012ffe8ea1">CirclePoint::setPen()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a807f9cfb1b9d680ca76cf825cc9cf46a"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void positionChanged </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geom</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">signal</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> emits this signal, when its position gets changed. </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geom</td><td>the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a6220fae15759fd0fa7d75e415df34e83"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setName </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">QString </td>
|
||||
<td class="paramname"><em>name</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets the name of the geometry </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">name</td><td>the new name of the geometry </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#a2b0a198f837184bf6fff555cee3ce770">Geometry::name()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a18e44e30b31525a243960ca3928125aa"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setVisible </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">bool </td>
|
||||
<td class="paramname"><em>visible</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">slot</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>if visible is true, the layer is made visible </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">visible</td><td>if the layer should be visible </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#af92c4fa46f711bea92efe5ab80f9084d">Geometry::boundingBox()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a3a013a6edb6d10a71297978bc31a796b"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QString toString </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </p>
|
||||
<p>not implemented yet! </p><dl class="section return"><dt>Returns</dt><dd>a String representation of this <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following files:<ul>
|
||||
<li><a class="el" href="geometry_8h_source.html">geometry.h</a></li>
|
||||
<li>geometry.cpp</li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
BIN
libs/QMapControl/html/classqmapcontrol_1_1Geometry.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
@ -0,0 +1,83 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: Member List</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1GeometryLayer.html">GeometryLayer</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="headertitle">
|
||||
<div class="title">GeometryLayer Member List</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p>This is the complete list of members for <a class="el" href="classqmapcontrol_1_1GeometryLayer.html">GeometryLayer</a>, including all inherited members.</p>
|
||||
<table class="directory">
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#ab692d7d08414ed2b744946b88872827f">addGeometry</a>(Geometry *geometry)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#acb2413f25e560a0cfadb7128d5af99b0">clearGeometries</a>(bool qDeleteObject=false)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#a0b0b1de1c0e21dbec196d11b336628f4">containsGeometry</a>(Geometry *geometry)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#a685dcab83356e5cc449475f177bb487d">geometryClicked</a>(Geometry *geometry, QPoint point)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1GeometryLayer.html#a64e2ab047db14f0d86424bee947c94af">GeometryLayer</a>(QString layername, MapAdapter *mapadapter, bool takeevents=true)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1GeometryLayer.html">GeometryLayer</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4a6c04bd58c42df8a7539aba782503fee0">qmapcontrol::Layer::GeometryLayer</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#ae5f0dce6ce743e714b314f95a6305908">getGeometries</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#a08422ee75ab02691943c1ca87e2bc563">isVisible</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#a7ffb001076dc500ad13e523836bda23d">Layer</a>(QString layername, MapAdapter *mapadapter, enum LayerType layertype, bool takeevents=true)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#a414e94fdd70490d75ddccb6923ae3410">layername</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#a1cfbd8a5c27cf9cb400fa458a1f70ba5">layertype</a>() const </td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4">LayerType</a> enum name</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#a732b5e9de3b67ed69aa7dd165c9778d6">mapadapter</a>()</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4afe7df421203e4175d260b8dabcbe3002">MapLayer</a> enum value</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#af2a2f7fec3f6e5fbf623f466a961bfb7">removeGeometry</a>(Geometry *geometry, bool qDeleteObject=false)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#a4a6d2f001e34be8d424ccfb45b8d7622">sendGeometryToBack</a>(Geometry *geometry)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr class="even"><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#a42afc531c673c3adc2e38fae58f87d52">sendGeometryToFront</a>(Geometry *geometry)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"></td></tr>
|
||||
<tr><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html#a18e44e30b31525a243960ca3928125aa">setVisible</a>(bool visible)</td><td class="entry"><a class="el" href="classqmapcontrol_1_1Layer.html">Layer</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
|
||||
</table></div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
627
libs/QMapControl/html/classqmapcontrol_1_1GeometryLayer.html
Normal file
@ -0,0 +1,627 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.8"/>
|
||||
<title>QMapControl: GeometryLayer Class Reference</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="dynsections.js"></script>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<div id="titlearea">
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr style="height: 56px;">
|
||||
<td style="padding-left: 0.5em;">
|
||||
<div id="projectname">QMapControl
|
||||
 <span id="projectnumber">0.9.7.4</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.8 -->
|
||||
<div id="navrow1" class="tabs">
|
||||
<ul class="tablist">
|
||||
<li><a href="index.html"><span>Main Page</span></a></li>
|
||||
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
||||
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="navrow2" class="tabs2">
|
||||
<ul class="tablist">
|
||||
<li><a href="annotated.html"><span>Class List</span></a></li>
|
||||
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
||||
<li><a href="functions.html"><span>Class Members</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="nav-path" class="navpath">
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="namespaceqmapcontrol.html">qmapcontrol</a></li><li class="navelem"><a class="el" href="classqmapcontrol_1_1GeometryLayer.html">GeometryLayer</a></li> </ul>
|
||||
</div>
|
||||
</div><!-- top -->
|
||||
<div class="header">
|
||||
<div class="summary">
|
||||
<a href="#pub-types">Public Types</a> |
|
||||
<a href="#pub-slots">Public Slots</a> |
|
||||
<a href="#signals">Signals</a> |
|
||||
<a href="#pub-methods">Public Member Functions</a> |
|
||||
<a href="classqmapcontrol_1_1GeometryLayer-members.html">List of all members</a> </div>
|
||||
<div class="headertitle">
|
||||
<div class="title">GeometryLayer Class Reference</div> </div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
|
||||
<p><a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a> class.
|
||||
<a href="classqmapcontrol_1_1GeometryLayer.html#details">More...</a></p>
|
||||
|
||||
<p><code>#include <<a class="el" href="geometrylayer_8h_source.html">geometrylayer.h</a>></code></p>
|
||||
<div class="dynheader">
|
||||
Inheritance diagram for GeometryLayer:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center">
|
||||
<img src="classqmapcontrol_1_1GeometryLayer.png" usemap="#GeometryLayer_map" alt=""/>
|
||||
<map id="GeometryLayer_map" name="GeometryLayer_map">
|
||||
<area href="classqmapcontrol_1_1Layer.html" title="Layer class. " alt="Layer" shape="rect" coords="0,56,99,80"/>
|
||||
<area href="classQObject.html" alt="QObject" shape="rect" coords="0,0,99,24"/>
|
||||
</map>
|
||||
</div></div>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
|
||||
Public Types</h2></td></tr>
|
||||
<tr class="memitem:a56943a0946e5f15e5e58054b8e7a04a4"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4">LayerType</a> { <a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4afe7df421203e4175d260b8dabcbe3002">MapLayer</a>,
|
||||
<a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4a6c04bd58c42df8a7539aba782503fee0">GeometryLayer</a>
|
||||
}</td></tr>
|
||||
<tr class="memdesc:a56943a0946e5f15e5e58054b8e7a04a4"><td class="mdescLeft"> </td><td class="mdescRight">sets the type of a layer, see <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> class doc for further information <a href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4">More...</a><br /></td></tr>
|
||||
<tr class="separator:a56943a0946e5f15e5e58054b8e7a04a4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
|
||||
Public Slots</h2></td></tr>
|
||||
<tr class="memitem:a18e44e30b31525a243960ca3928125aa"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a18e44e30b31525a243960ca3928125aa">setVisible</a> (bool visible)</td></tr>
|
||||
<tr class="memdesc:a18e44e30b31525a243960ca3928125aa"><td class="mdescLeft"> </td><td class="mdescRight">if visible is true, the layer is made visible <a href="#a18e44e30b31525a243960ca3928125aa">More...</a><br /></td></tr>
|
||||
<tr class="separator:a18e44e30b31525a243960ca3928125aa"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
|
||||
Signals</h2></td></tr>
|
||||
<tr class="memitem:a685dcab83356e5cc449475f177bb487d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a685dcab83356e5cc449475f177bb487d">geometryClicked</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry, QPoint point)</td></tr>
|
||||
<tr class="memdesc:a685dcab83356e5cc449475f177bb487d"><td class="mdescLeft"> </td><td class="mdescRight">This signal is emitted when a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clicked. <a href="#a685dcab83356e5cc449475f177bb487d">More...</a><br /></td></tr>
|
||||
<tr class="separator:a685dcab83356e5cc449475f177bb487d"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
||||
Public Member Functions</h2></td></tr>
|
||||
<tr class="memitem:ab692d7d08414ed2b744946b88872827f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#ab692d7d08414ed2b744946b88872827f">addGeometry</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry)</td></tr>
|
||||
<tr class="memdesc:ab692d7d08414ed2b744946b88872827f"><td class="mdescLeft"> </td><td class="mdescRight">adds a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> object to this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> <a href="#ab692d7d08414ed2b744946b88872827f">More...</a><br /></td></tr>
|
||||
<tr class="separator:ab692d7d08414ed2b744946b88872827f"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:acb2413f25e560a0cfadb7128d5af99b0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#acb2413f25e560a0cfadb7128d5af99b0">clearGeometries</a> (bool qDeleteObject=false)</td></tr>
|
||||
<tr class="memdesc:acb2413f25e560a0cfadb7128d5af99b0"><td class="mdescLeft"> </td><td class="mdescRight">removes all <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> <a href="#acb2413f25e560a0cfadb7128d5af99b0">More...</a><br /></td></tr>
|
||||
<tr class="separator:acb2413f25e560a0cfadb7128d5af99b0"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0b0b1de1c0e21dbec196d11b336628f4"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a0b0b1de1c0e21dbec196d11b336628f4">containsGeometry</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry)</td></tr>
|
||||
<tr class="memdesc:a0b0b1de1c0e21dbec196d11b336628f4"><td class="mdescLeft"> </td><td class="mdescRight">returns true if <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> contains geometry <a href="#a0b0b1de1c0e21dbec196d11b336628f4">More...</a><br /></td></tr>
|
||||
<tr class="separator:a0b0b1de1c0e21dbec196d11b336628f4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a64e2ab047db14f0d86424bee947c94af"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1GeometryLayer.html#a64e2ab047db14f0d86424bee947c94af">GeometryLayer</a> (QString <a class="el" href="classqmapcontrol_1_1Layer.html#a414e94fdd70490d75ddccb6923ae3410">layername</a>, <a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> *<a class="el" href="classqmapcontrol_1_1Layer.html#a732b5e9de3b67ed69aa7dd165c9778d6">mapadapter</a>, bool takeevents=true)</td></tr>
|
||||
<tr class="memdesc:a64e2ab047db14f0d86424bee947c94af"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a> constructor. <a href="#a64e2ab047db14f0d86424bee947c94af">More...</a><br /></td></tr>
|
||||
<tr class="separator:a64e2ab047db14f0d86424bee947c94af"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ae5f0dce6ce743e714b314f95a6305908"><td class="memItemLeft" align="right" valign="top">QList< <a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#ae5f0dce6ce743e714b314f95a6305908">getGeometries</a> ()</td></tr>
|
||||
<tr class="memdesc:ae5f0dce6ce743e714b314f95a6305908"><td class="mdescLeft"> </td><td class="mdescRight">returns all <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> <a href="#ae5f0dce6ce743e714b314f95a6305908">More...</a><br /></td></tr>
|
||||
<tr class="separator:ae5f0dce6ce743e714b314f95a6305908"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a08422ee75ab02691943c1ca87e2bc563"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a08422ee75ab02691943c1ca87e2bc563">isVisible</a> () const </td></tr>
|
||||
<tr class="memdesc:a08422ee75ab02691943c1ca87e2bc563"><td class="mdescLeft"> </td><td class="mdescRight">return true if the layer is visible <a href="#a08422ee75ab02691943c1ca87e2bc563">More...</a><br /></td></tr>
|
||||
<tr class="separator:a08422ee75ab02691943c1ca87e2bc563"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a414e94fdd70490d75ddccb6923ae3410"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a414e94fdd70490d75ddccb6923ae3410">layername</a> () const </td></tr>
|
||||
<tr class="memdesc:a414e94fdd70490d75ddccb6923ae3410"><td class="mdescLeft"> </td><td class="mdescRight">returns the layer's name <a href="#a414e94fdd70490d75ddccb6923ae3410">More...</a><br /></td></tr>
|
||||
<tr class="separator:a414e94fdd70490d75ddccb6923ae3410"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a1cfbd8a5c27cf9cb400fa458a1f70ba5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4">Layer::LayerType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a1cfbd8a5c27cf9cb400fa458a1f70ba5">layertype</a> () const </td></tr>
|
||||
<tr class="memdesc:a1cfbd8a5c27cf9cb400fa458a1f70ba5"><td class="mdescLeft"> </td><td class="mdescRight">returns the LayerType of the <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> <a href="#a1cfbd8a5c27cf9cb400fa458a1f70ba5">More...</a><br /></td></tr>
|
||||
<tr class="separator:a1cfbd8a5c27cf9cb400fa458a1f70ba5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a732b5e9de3b67ed69aa7dd165c9778d6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a732b5e9de3b67ed69aa7dd165c9778d6">mapadapter</a> ()</td></tr>
|
||||
<tr class="memdesc:a732b5e9de3b67ed69aa7dd165c9778d6"><td class="mdescLeft"> </td><td class="mdescRight">returns the layer´s <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> <a href="#a732b5e9de3b67ed69aa7dd165c9778d6">More...</a><br /></td></tr>
|
||||
<tr class="separator:a732b5e9de3b67ed69aa7dd165c9778d6"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:af2a2f7fec3f6e5fbf623f466a961bfb7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#af2a2f7fec3f6e5fbf623f466a961bfb7">removeGeometry</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry, bool qDeleteObject=false)</td></tr>
|
||||
<tr class="memdesc:af2a2f7fec3f6e5fbf623f466a961bfb7"><td class="mdescLeft"> </td><td class="mdescRight">removes the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> object from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> <a href="#af2a2f7fec3f6e5fbf623f466a961bfb7">More...</a><br /></td></tr>
|
||||
<tr class="separator:af2a2f7fec3f6e5fbf623f466a961bfb7"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a4a6d2f001e34be8d424ccfb45b8d7622"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a4a6d2f001e34be8d424ccfb45b8d7622">sendGeometryToBack</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry)</td></tr>
|
||||
<tr class="memdesc:a4a6d2f001e34be8d424ccfb45b8d7622"><td class="mdescLeft"> </td><td class="mdescRight">allow moving a geometry to the top of the list (drawing last) <a href="#a4a6d2f001e34be8d424ccfb45b8d7622">More...</a><br /></td></tr>
|
||||
<tr class="separator:a4a6d2f001e34be8d424ccfb45b8d7622"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a42afc531c673c3adc2e38fae58f87d52"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classqmapcontrol_1_1Layer.html#a42afc531c673c3adc2e38fae58f87d52">sendGeometryToFront</a> (<a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> *geometry)</td></tr>
|
||||
<tr class="memdesc:a42afc531c673c3adc2e38fae58f87d52"><td class="mdescLeft"> </td><td class="mdescRight">allow moving a geometry to the top of the list (drawing last) <a href="#a42afc531c673c3adc2e38fae58f87d52">More...</a><br /></td></tr>
|
||||
<tr class="separator:a42afc531c673c3adc2e38fae58f87d52"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p><a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a> class. </p>
|
||||
<p>There are two different layer types:</p><ul>
|
||||
<li><a class="el" href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. ">MapLayer</a>: Displays Maps, but also Geometries. The configuration for displaying maps have to be done in the <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a></li>
|
||||
<li><a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a>: Only displays <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects.</li>
|
||||
</ul>
|
||||
<p>MapLayers also can display <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects. The difference to the <a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a> is the repainting. Objects that are added to a <a class="el" href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. ">MapLayer</a> are "baken" on the map. This means, when you change it´s position for example the changes are not visible until a new offscreen image has been drawn. If you have "static" Geometries which won´t change their position this is fine. But if you want to change the objects position or pen you should use a <a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a>. Those are repainted immediately on changes. </p><pre class="fragment"> @author Kai Winter <kaiwinter@gmx.de></pre> </div><h2 class="groupheader">Member Enumeration Documentation</h2>
|
||||
<a class="anchor" id="a56943a0946e5f15e5e58054b8e7a04a4"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">enum <a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4">LayerType</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>sets the type of a layer, see <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> class doc for further information </p>
|
||||
<table class="fieldtable">
|
||||
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a56943a0946e5f15e5e58054b8e7a04a4afe7df421203e4175d260b8dabcbe3002"></a>MapLayer </td><td class="fielddoc">
|
||||
<p>uses the <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> to display maps, only gets refreshed when a new offscreen image is needed </p>
|
||||
</td></tr>
|
||||
<tr><td class="fieldname"><a class="anchor" id="a56943a0946e5f15e5e58054b8e7a04a4a6c04bd58c42df8a7539aba782503fee0"></a>GeometryLayer </td><td class="fielddoc">
|
||||
<p>gets refreshed everytime when a geometry changes </p>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
||||
<a class="anchor" id="a64e2ab047db14f0d86424bee947c94af"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classqmapcontrol_1_1GeometryLayer.html">GeometryLayer</a> </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">QString </td>
|
||||
<td class="paramname"><em>layername</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> * </td>
|
||||
<td class="paramname"><em>mapadapter</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">bool </td>
|
||||
<td class="paramname"><em>takeevents</em> = <code>true</code> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p><a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a> constructor. </p>
|
||||
<p>This is used to construct a map layer.</p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">layername</td><td>The name of the <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </td></tr>
|
||||
<tr><td class="paramname">mapadapter</td><td>The <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> which does coordinate translation and Query-String-Forming </td></tr>
|
||||
<tr><td class="paramname">takeevents</td><td>Should the <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> receive MouseEvents? This is set to true by default. Setting it to false could be something like a "speed up hint" </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a class="anchor" id="ab692d7d08414ed2b744946b88872827f"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void addGeometry </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geometry</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>adds a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> object to this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </p>
|
||||
<p>Please notice the different LayerTypes (<a class="el" href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. ">MapLayer</a> and <a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a>) and the differences </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geometry</td><td>the new <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#af92c4fa46f711bea92efe5ab80f9084d">Geometry::boundingBox()</a>, and <a class="el" href="classqmapcontrol_1_1Layer.html#a0b0b1de1c0e21dbec196d11b336628f4">Layer::containsGeometry()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="acb2413f25e560a0cfadb7128d5af99b0"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void clearGeometries </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">bool </td>
|
||||
<td class="paramname"><em>qDeleteObject</em> = <code>false</code></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>removes all <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </p>
|
||||
<p>This method removes all <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a>. NOTE: this method does not delete the object unless qDeleteObject is set </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">qDeleteObject</td><td>cleans up memory of object after removal </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a0b0b1de1c0e21dbec196d11b336628f4"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool containsGeometry </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geometry</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns true if <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> contains geometry </p>
|
||||
<p>This method returns if a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects is on this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a>. </p>
|
||||
|
||||
<p>Referenced by <a class="el" href="classqmapcontrol_1_1Layer.html#ab692d7d08414ed2b744946b88872827f">Layer::addGeometry()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a685dcab83356e5cc449475f177bb487d"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void geometryClicked </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geometry</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">QPoint </td>
|
||||
<td class="paramname"><em>point</em> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">signal</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>This signal is emitted when a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clicked. </p>
|
||||
<p>A <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> is clickable, if the containing layer is clickable. The layer emits a signal for every clicked geometry </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">geometry</td><td>The clicked <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> </td></tr>
|
||||
<tr><td class="paramname">point</td><td>The coordinate (in widget coordinates) of the click </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="ae5f0dce6ce743e714b314f95a6305908"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QList< <a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * > & getGeometries </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns all <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </p>
|
||||
<p>This method removes all <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a>. </p><dl class="section return"><dt>Returns</dt><dd>a list of geometries that are on this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a08422ee75ab02691943c1ca87e2bc563"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">bool isVisible </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>return true if the layer is visible </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>if the layer is visible </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a414e94fdd70490d75ddccb6923ae3410"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">QString layername </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the layer's name </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the name of this layer </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a1cfbd8a5c27cf9cb400fa458a1f70ba5"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classqmapcontrol_1_1Layer.html#a56943a0946e5f15e5e58054b8e7a04a4">Layer::LayerType</a> layertype </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td> const</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the LayerType of the <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </p>
|
||||
<p>There are two LayerTypes: <a class="el" href="classqmapcontrol_1_1MapLayer.html" title="MapLayer class. ">MapLayer</a> and <a class="el" href="classqmapcontrol_1_1GeometryLayer.html" title="GeometryLayer class. ">GeometryLayer</a> </p><dl class="section return"><dt>Returns</dt><dd>the LayerType of this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a732b5e9de3b67ed69aa7dd165c9778d6"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="el" href="classqmapcontrol_1_1MapAdapter.html">MapAdapter</a> * mapadapter </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>returns the layer´s <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> </p>
|
||||
<p>This method returns the <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> of this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a>, which can be useful to do coordinate transformations. </p><dl class="section return"><dt>Returns</dt><dd>the <a class="el" href="classqmapcontrol_1_1MapAdapter.html" title="Used to fit map servers into QMapControl. ">MapAdapter</a> which us used by this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </dd></dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="af2a2f7fec3f6e5fbf623f466a961bfb7"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void removeGeometry </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geometry</em>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">bool </td>
|
||||
<td class="paramname"><em>qDeleteObject</em> = <code>false</code> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>)</td>
|
||||
<td></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>removes the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> object from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a> </p>
|
||||
<p>This method removes a <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> object from this <a class="el" href="classqmapcontrol_1_1Layer.html" title="Layer class. ">Layer</a>. NOTE: this method does not delete the object unless qDeleteObject is set </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">qDeleteObject</td><td>cleans up memory of object after removal </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>References <a class="el" href="classqmapcontrol_1_1Geometry.html#af92c4fa46f711bea92efe5ab80f9084d">Geometry::boundingBox()</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a4a6d2f001e34be8d424ccfb45b8d7622"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void sendGeometryToBack </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geometry</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>allow moving a geometry to the top of the list (drawing last) </p>
|
||||
<p>This method re-order the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects so the desired geometry is drawn first and under all other geometries </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a42afc531c673c3adc2e38fae58f87d52"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void sendGeometryToFront </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype"><a class="el" href="classqmapcontrol_1_1Geometry.html">Geometry</a> * </td>
|
||||
<td class="paramname"><em>geometry</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>allow moving a geometry to the top of the list (drawing last) </p>
|
||||
<p>This method re-order the <a class="el" href="classqmapcontrol_1_1Geometry.html" title="Main class for objects that should be painted in maps. ">Geometry</a> objects so the desired geometry is drawn last and visible above all geometries </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<a class="anchor" id="a18e44e30b31525a243960ca3928125aa"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
<table class="mlabels">
|
||||
<tr>
|
||||
<td class="mlabels-left">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname">void setVisible </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">bool </td>
|
||||
<td class="paramname"><em>visible</em></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td class="mlabels-right">
|
||||
<span class="mlabels"><span class="mlabel">slot</span><span class="mlabel">inherited</span></span> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>if visible is true, the layer is made visible </p>
|
||||
<dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">visible</td><td>if the layer should be visible </td></tr>
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<hr/>The documentation for this class was generated from the following files:<ul>
|
||||
<li><a class="el" href="geometrylayer_8h_source.html">geometrylayer.h</a></li>
|
||||
<li>geometrylayer.cpp</li>
|
||||
</ul>
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Nov 16 2014 18:28:17 for QMapControl by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.8
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|