Krisjanis Rijnieks
2aa24ad581
Use the new `Info` class instead of inline code
10 years ago
Krisjanis Rijnieks
0c6659703c
Add `Info` class for displaying info
10 years ago
Krisjanis Rijnieks
1606f38b92
Remove `addTriangleSurface()` and `addQuadSurface()` methods from `ofxPiMapper` class
10 years ago
Krisjanis Rijnieks
dbc4eb0d07
Make `loadXmlSettings()` return `bool` value
10 years ago
Krisjanis Rijnieks
ac2a2e7834
Rename `SurfaceManager::addSurface(...)` to `createSurface` where it creates surface
There has to be a difference between creational and "additional" methods.
10 years ago
Krisjanis Rijnieks
2b268349c7
Remove `addSurface(int surfaceType, BaseSource * newSource)` from `SurfaceManager`
It is not used anywhere.
10 years ago
Krisjanis Rijnieks
26e89f11a7
Move `SurfaceManager` variable initialization to constructor body
Because sticking to this kind of convention is so much more readable.
10 years ago
Krisjanis Rijnieks
bdd3f88d2b
Remove `addSurface(int surfaceType)` from `SurfaceManager`
Cleaning up. This method is not used anywhere.
10 years ago
Krisjanis Rijnieks
0fbfe7174b
Remove `std::` prefix everywhere in `src`
10 years ago
Krisjanis Rijnieks
f160fbd232
Replace `NULL` with `0` everywhere
10 years ago
Krisjanis Rijnieks
ef50c97e08
Add TODO for `SurfaceManager::loadXmlSettings()` method
10 years ago
Krisjanis Rijnieks
a3e2f621d7
Add `ofxPiMapper::loadXmlSettings()` method.
10 years ago
Krisjanis Rijnieks
ec3a60b742
Fix deprecations for oF v0.9.0 in src
10 years ago
Krisjanis Rijnieks
95b366ada5
Change src code style using ofStyler
10 years ago
Krisjanis Rijnieks
ed7d0fab02
Refactor RadioList to comply with oF code style
10 years ago
Krisjanis Rijnieks
25770a92a2
Fix source selection for oF v0.9.0 and above, close #34
10 years ago
Krisjanis Rijnieks
360021a09d
Fix deprecated `ofVideoPlayer` method calls
10 years ago
Krisjanis Rijnieks
46de203b62
Fix missing semicolon
10 years ago
Krisjanis Rijnieks
ffc2a54151
Improve indentation of `VideoSource`
10 years ago
Krisjanis Rijnieks
aa1397f50a
Add static enableAudio member to `VideoSource` class
10 years ago
Krisjanis Rijnieks
e425856a93
Rename `addFboSource()` to `registerFboSource()` and refactor a bit
10 years ago
Krisjanis Rijnieks
b81cf62af4
Add `getWidth()` and `getHeight()`, additionally:
Additionally refactor the code according to oF guidelines. To be done for the rest of the code.
10 years ago
Krisjanis Rijnieks
59da45360a
Reset color to white before drawing joints
10 years ago
Krisjanis Rijnieks
423d17af86
Reset color to white before drawing each of the surfaces
10 years ago
Krisjanis Rijnieks
9bf14255c8
Reset color to white before drawing texture
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
76f225de8d
Save current state of xcode project and add TODO to SurfaceManagerGui
10 years ago
Krisjanis Rijnieks
175067dc98
Set application state instead of changing gui mode (in progress)
10 years ago
Krisjanis Rijnieks
05396890eb
Move state change keyboard mappings to Application to handle
10 years ago
Krisjanis Rijnieks
20904a8abf
Remove ofLogNotice when no source selected
10 years ago
Krisjanis Rijnieks
2306be1c5d
Rename MainView to Application and not just that
- Rename ViewState to ApplicationBaseState
- Rename all ..ViewState's to just ..State's
- Adjust ofxPiMapper main class so app compiles
10 years ago
Krisjanis Rijnieks
5fd8c2bbd5
Add keyboard input handler and move the view switching functionality there
10 years ago
Krisjanis Rijnieks
a65a11bfed
Remove log messages from new view states
10 years ago
Krisjanis Rijnieks
c5cea9004a
Add and test MainView as singleton and ViewStates
10 years ago
Krisjanis Rijnieks
d1d9cd3421
Replace #import with #include in CmdManager.h
10 years ago
Krisjanis Rijnieks
0d0bae9f43
Remove the `auto` specifier from `i` variable in `for` loops
`auto` is available in C++11+ compilers and this is not the case of a basic RPi setup.
10 years ago
Krisjanis Rijnieks
377d37cebc
Add main view state feature base
Main view has one active state which is an object subclassed from the ViewState. Each of the states will be a singleton as they will relay on the data stored in the MainView class instance.
10 years ago
Krisjanis Rijnieks
05edf64d04
Fix another getSelectedSurface() relatedbug that caused crash
10 years ago
Krisjanis Rijnieks
bb720731f2
Fix crashing on mouse release if no source selected
- SurfaceManagerGui mouseRelease method did not check whether a surface is selected before checking if a selected surface has been moved
10 years ago
Krisjanis Rijnieks
7e7aa93226
Add SelSourceCmd select source undoable command
10 years ago
Krisjanis Rijnieks
35593c1612
Add MvTexCoordCmd undo command
10 years ago
Krisjanis Rijnieks
424a7827c1
Add MvAllTexCoordsCmd undo feature
10 years ago
Krisjanis Rijnieks
c69ca799b4
Add gui mode/state switch undo command
10 years ago
Krisjanis Rijnieks
bbd462f551
Rename command class names to shorter versions
- Also remove initial undo test code
10 years ago
Krisjanis Rijnieks
2f42b0e783
Fix crash after RemoveSurfaceCommand undo call
- Surface had to be selected again after putting it back into surfaceManager
10 years ago
Krisjanis Rijnieks
ef8d701176
Add ofLogNotice on existing command undo calls
10 years ago
Krisjanis Rijnieks
5ab0caad34
Remove drawing undo test value
10 years ago