Simon Richter
1b2fd6a382
Replace BOOST_FOREACH with C++11 range based for.
9 years ago
Maciej Suminski
d9f4877c94
Fixed a crash when starting pcbnew with OpenGL GAL.
10 years ago
Maciej Suminski
702be4903f
Vertices are stored in GPU memory (OpenGL GAL).
10 years ago
Maciej Suminski
36dd6eb6b3
GAL profiling output is enabled with WXTRACE env variable.
10 years ago
Simon Richter
da9ca2def2
Avoid cast from const_iterator to iterator
The standard library requires iterators passed to functions that modify the
container to be mutable iterators, but GCC's implementation accepts
const_iterator in some places where these are only used to mark a place,
but the actual modification happens through a different parameter.
As this breaks implementations that use the passed iterator to modify the
container (e.g. because they use a different data organization), this is
not portable; because we already have a non-const reference to the
container anyway, this is trivially fixed as well.
10 years ago
Maciej Suminski
6ad6f0bde2
Corrected VIEW::ToScreen().
11 years ago
Maciej Suminski
28a270a328
Refactored grid origin point drawing (GAL).
11 years ago
Maciej Suminski
d89d1d49a3
Fixed ghost effect in GAL view.
11 years ago
Maciej Suminski
4026cb6c58
Moved zoom limits and area boundaries handling to VIEW.
11 years ago
Maciej Suminski
d281d86eee
Fixed undo/redo display refresh for miras & dimensions (GAL).
11 years ago
Maciej Suminski
9e8719d3ff
Fixed overlapping segment endings in OpenGL view.
11 years ago
Tomasz Włostowski
8bd9dd49bb
view: added quick hiding mechanism in VIEW/VIEW_ITEM
11 years ago
Maciej Suminski
8a5fedb728
Code formatting and cleaning.
12 years ago
Maciej Suminski
5134781a38
GAL view in pad properties dialog - initial version.
12 years ago
Maciej Suminski
0fc93666c6
Rework to support multiple views with OpenGL GAL canvas.
12 years ago
Maciej Suminski
13e67e1f3c
Fixed VIEW::SetViewport().
12 years ago
Lorenzo Marcantonio
89f14906a4
- Added the courtyard/fabrication layer to the layer combo and layer
panel
- Corrected handling of scrollability in layer panel (fixes 1336996)
12 years ago
Bernhard Stegmaier
60a86853ec
Removed a few warnings.
12 years ago
Tomasz Włostowski
5bf50ee910
VIEW: added CalculateExtents() method
12 years ago
Maciej Suminski
89161331e4
Fixed refreshing issues (DRC, new items after reloading netlist and probably many other places).
12 years ago
Maciej Suminski
39bca76df7
>Added handled hotkeys:
- resetting relative coordinates
- switching units
- not official: changing transparency for layers (works only for main layers, does not work on vias/pads/etc.)
12 years ago
Maciej Suminski
dbc4a8f292
GAL zooms in and out using the default hot keys (F1/F2).
Screen size is saved in VECTOR2I instead of VECTOR2D.
12 years ago
Maciej Suminski
f6959c039c
Comments.
12 years ago
Maciej Suminski
afc56d3f6f
Moved panning boundaries and scale limits from VIEW to VIEW_CONTROL.
12 years ago
Maciej Suminski
54bf21768c
Added a few settings to make the layer settings more similar to KiCad defaults (moved vias to VIA_THROUGH_VISIBLE, added a few rules for required layers).
12 years ago
Maciej Suminski
ecb3aebce3
Fixed a bug caused by removed VIEW_ITEMs that were marked for updating.
12 years ago
Maciej Suminski
e6598e9d41
Added VIEW::ToWorld( double ).
TOOL_EVENT message is supposed to contain string as parameter.
Added missing header for class_drawsegment.h (KiROUND).
Renamed SELECTION_TOOL::containsSelected() to SELECTION_TOOL::selectionContains().
12 years ago
Maciej Suminski
d583280bb0
Minor code cleaning and optimizations.
12 years ago
Maciej Suminski
de637d2b8d
Fixed a missing group clearing and update for restored VIEW_ITEMs.Fixed a missing group clearing and update for restored VIEW_ITEMs.
12 years ago
Maciej Suminski
5ac699776d
Revisiting GAL:
- VIEW_ITEM::ViewUpdate() does not update items immediately. Now it marks them to be updated and the real update occurs on the next rendering frame.
- VIEW::InvalidateItem() made private.
- VIEW_LAYER::enabled -> visible
- Some functions moved to header files.
12 years ago
Maciej Suminski
f9f0b46b63
Small GAL refactorization, mostly correcting constness.
12 years ago
Maciej Suminski
4a0407fb69
Removed some debug logs.
12 years ago
Maciej Suminski
d8acd1c718
Moved Init() & Reset() from TOOL_INTERACTIVE to TOOL_BASE.
Added REASON enum for Reset() function, so tools will know why a reset occured.
Fixed SELECTION_TOOL (it was bailing out, when a new board was loaded and some items were still selected).
Added removal of VIEW_ITEM groups after changing layers and removing items.
12 years ago
Maciej Suminski
08fd9d8cbd
Overridden ViewUpdate() for MODULE class, so it handles its pads, drawings and texts.
12 years ago
Maciej Suminski
06f4662ea0
Profile counter simplified, so it should be more portable.
12 years ago
Maciej Suminski
89b80b2bcd
Merged rtree.h, to avoid code duplication.
Fixes the case, when waste is never greater then the worst case and seeds assignment does not occur.
12 years ago
Maciej Sumiński
bb0f4b9ac3
Patches one by Lorenzo, one by Orson
12 years ago
Maciej Suminski
bc305859b2
Mainly case changes.
12 years ago
Maciej Suminski
0ac3e1fbf2
Namespace KiGfx->KIGFX.
template<> -> template <>
Some more reformatting according to uncrustify results.
12 years ago
Maciej Suminski
54946f46f7
Fixed memory leak caused by ViewUpdate() with VIEW_ITEM::GEOMETRY/LAYER parameters.
12 years ago
Maciej Suminski
1de8eba49e
Added functions for refreshing the layer set occupied by a VIEW_ITEM.
12 years ago
Maciej Suminski
9b16651607
Added limits for VIEW scale values & panning area.
12 years ago
tomasz.wlostowski@cern.ch
dea793209d
VIEW: added GetTopLayer() method
12 years ago
Maciej Suminski
573f9841df
Better way of marking 'brightened' mode for items.
12 years ago
Maciej Suminski
e00c8e92cb
Removed VIEW_LAYER.isDirty flag.
12 years ago
Maciej Suminski
42860b5d02
Changed VIEW::PrepareTargets() to more appropriate name VIEW::ClearTargets(). Added SELECTION layer to always-on-top list.
12 years ago
Maciej Suminski
d9ff4b851a
Currently selected layer is displayed on the top.
12 years ago
Maciej Suminski
f179183dea
Removed some dead code.
12 years ago
Maciej Suminski
afe2e27b0a
Moved GetColor() from PAINTER to RENDER_SETTINGS. Fixed recaching of custom items.
12 years ago
Maciej Suminski
ab4cb862b0
Solved refreshing issues.
12 years ago