Krisjanis Rijnieks
5dc8c9dc36
Integrate projection mapping gui surface and joint events
Now the mouse pressed events from surfaces and joints in projection mapping mode are generating commands in the application layer
10 years ago
Krisjanis Rijnieks
61453d29ea
Add notify joint and surface mouse events
10 years ago
Krisjanis Rijnieks
f7b1d74c2b
Add `/` key as an alternative to shift key
Because the terminal listener is not able to detect shift keys. `/` works like a toggle - press once to simulate shift-down, press again to simulate shift-up.
10 years ago
Krisjanis Rijnieks
a856c7421b
Optimize terminal listener A, B, C, D checks with a switch statement
10 years ago
Krisjanis Rijnieks
92e4d55c56
Add A, B, C, D checks to `Application::onCharacterReceived`
10 years ago
Krisjanis Rijnieks
4ceb87f014
Add `TerminalListener` to `Application`
10 years ago
Krisjanis Rijnieks
92df6bef84
Use `GuiEventType` in `Application` and `Gui`
10 years ago
Krisjanis Rijnieks
b1d953f2df
Add `GuiEventType`
10 years ago
Krisjanis Rijnieks
c9a2d066da
Create a test case with `GuiEvent` in `Application`
10 years ago
Krisjanis Rijnieks
2e1fae811e
Add new `Gui` system files for first test
10 years ago
Krisjanis Rijnieks
07232410b5
Exec `MvSelectionCmd` on arrow keypresses
10 years ago
Krisjanis Rijnieks
2cf81a1eac
Add shift key handling in `Application`
10 years ago
Krisjanis Rijnieks
051e2a4450
Use `SelNext...` and `SelPrevVertex` commands on `>` and `<` keypress
10 years ago
Krisjanis Rijnieks
a01605702f
Integrate `SelNextSurfaceCmd` and `SelPrevSurfaceCmd` into `Application`
10 years ago
Krisjanis Rijnieks
24d912bcf6
Fix `Aplication` code to match new `SelSurfaceCmd` interface
10 years ago
Krisjanis Rijnieks
72b0053e88
Adjust `GridWarpSurface` commands to not go less than 2 rows and cols
10 years ago
Krisjanis Rijnieks
29bc46732e
Fix saving and loading `GridWarpSurface`s
Had to add rows and cols parameters in xml
10 years ago
Krisjanis Rijnieks
dd508088e8
Adapt to new `GridWarpSurface` related interface
Additionally remove destructors as they caused SIGABRT errors when shutting down the application
10 years ago
Krisjanis Rijnieks
2ef85c8999
Integrate `RmGridColCmd` into `Application`
10 years ago
Krisjanis Rijnieks
5d7937a482
Do not create `RmGridRowCmd` if surface rows are <= 1
10 years ago
Krisjanis Rijnieks
62a11838ac
Integrate `AddGridColCmd` into `Application`
10 years ago
Krisjanis Rijnieks
d1b6b8dc6a
Integrate `RmGridRowCmd` into `Application`
10 years ago
Krisjanis Rijnieks
dc7bc09019
Integrate `AddGridRowCmd` into `Application`
10 years ago
Krisjanis Rijnieks
f125b68c8f
Fix saving source name blank string
10 years ago
Krisjanis Rijnieks
32e5739a3e
Make it possible to save `GridWarpSurface`
10 years ago
Krisjanis Rijnieks
ab6a6032ac
Test create `GridMeshSurface` on `g` keypress
10 years ago
Krisjanis Rijnieks
0d6106b22a
Move all essential application parts to `Application` class
10 years ago
Krisjanis Rijnieks
d1f483899b
Fix confusing `xml->push` in one method and `xml->pop` in another
10 years ago
Krisjanis Rijnieks
f6f91bf498
Add nesting to `SettingsLoader::getQuadSurface`
10 years ago
Krisjanis Rijnieks
4b47c2ef4c
Add nesting to `SettingsLoader::getTriangleSurface`
10 years ago
Krisjanis Rijnieks
1b7768de92
Add nesting to `SettingsLoader::load`
10 years ago
Krisjanis Rijnieks
aece000bc2
Read per surface perspective warping setting from xml
10 years ago
Krisjanis Rijnieks
127b766208
Add per surface perspective warping property saving to xml
10 years ago
Krisjanis Rijnieks
6c4748e458
Integrate `TogglePerspectiveCmd` into `ProjectionMappingState`
By hitting `p` while in the projection mapping editor, selected surface toggles perspective on and off
10 years ago
Krisjanis Rijnieks
6381eec5dd
Add `xml->pushTag()` and `xml->popTag()` todo
10 years ago
Krisjanis Rijnieks
606d396635
Add blank lines before line comments
10 years ago
Krisjanis Rijnieks
3a4dad4fde
Fix `SettingsLoader` warnings
10 years ago
Krisjanis Rijnieks
920b3d2a0b
Improve `SettingsLoader`
Simplify the `load()` method by moving the quad and triangle surface creation to private methods
10 years ago
Krisjanis Rijnieks
6bb151b369
Move XML settings save and load to `SettingsLoader` singleton
10 years ago
Krisjanis Rijnieks
079c4d5853
Add `Settings` class placeholder
10 years ago
Krisjanis Rijnieks
a681bfbd49
Add `SurfaceManager` as pointer in `ofxPiMapper` root class
Update the rest of the code to treat `getSurfaceManager()` return value as a pointer.
10 years ago
Krisjanis Rijnieks
873edcfa60
Add `SurfaceManagerGui` as pointer in `ofxPiMapper` class
Update the rest of the code to treat it as a pointer.
10 years ago
Krisjanis Rijnieks
2e311e89b0
Add `_cmdManager` as a pointer to `ofxPiMapper` root class
- Change the getter to return pointer as well.
- Update code elsewhere to call methods on `CmdManager` as if it was a pointer.
10 years ago
Krisjanis Rijnieks
2aa24ad581
Use the new `Info` class instead of inline code
10 years ago
Krisjanis Rijnieks
95b366ada5
Change src code style using ofStyler
10 years ago
Krisjanis Rijnieks
b554740a34
Remove yellow color overlay in PresentationState `draw()` method
10 years ago
Krisjanis Rijnieks
502f76b4a9
Move keyboard input mappings completely to application state system
10 years ago
Krisjanis Rijnieks
8867edb8f2
Add AddSurfaceCmd and move surface creation key commands
- from ofxPiMapper to application state machine
10 years ago
Krisjanis Rijnieks
04a345b377
Create a bridge between the new state system and the old solution
10 years ago
Krisjanis Rijnieks
175067dc98
Set application state instead of changing gui mode (in progress)
10 years ago