Krisjanis Rijnieks
ef52cf893b
Add SurfaceManager::removeSurface(index)
9 years ago
Krisjanis Rijnieks
fa4e263321
Update RmSurfaceCmd
Instead of removing selected surface, let user remove specific surface without selecting it.
9 years ago
Krisjanis Rijnieks
9e0b302e1f
Add ofxPiMapper::createSurface(SurfaceType)
9 years ago
Krisjanis Rijnieks
d955a54c37
Replace ofMain.h with ofEvents.h and ofLog.h
9 years ago
Krisjanis Rijnieks
c182d96b10
Remove obsolete includes from ofxPiMapper.h
9 years ago
Krisjanis Rijnieks
03b06f108a
Improve ScaleWidget mouse dragged fix
The problem was in ofxPiMapper class where mousePressed(x, y, button) was transformed into
onMousePressed(ofMouseEventArgs & args) version. The event type was missing. Added now.
9 years ago
Krisjanis Rijnieks
882dafc3a8
Remove cout from BaseSurface::scaleTo
9 years ago
Krisjanis Rijnieks
25555be25c
Fix ScaleWidget
The issue was and still is that the ofMouseEventArgs::type is not set correctly in
openFrameworks.
9 years ago
Krisjanis Rijnieks
79034f24d5
Remove GuiMode.h include
9 years ago
Krisjanis Rijnieks
197145bb33
Add piping down app events into fbo sources instead of registering
9 years ago
Krisjanis Rijnieks
a0ce7cce39
Add SourceTypeHelper.h
Move SourceTypeHelper class code from SourceType.h to new file.
9 years ago
Krisjanis Rijnieks
518bb76182
Fix SourceType, replace all int vars with decent type
Divide SourceType class into SourceType enum and SourceTypeHelper class
9 years ago
Krisjanis Rijnieks
ff20c60789
Fix SurfaceType enum so it can be used as type for real
The problem was that wherever we use SurfaceType, the variable type was int, which leads to
confusion sometimes.
9 years ago
Krisjanis Rijnieks
363d05679b
Fix crash on trying to get scale of non-selected surface
9 years ago
Krisjanis Rijnieks
eef99d4465
Add ProjectionMappingMode::createSurface method
Use it with existing surface creation shortcuts.
9 years ago
Krisjanis Rijnieks
c274d39e7b
Beautify TextureMappingMode code
9 years ago
Krisjanis Rijnieks
e7424d492e
Add passing key events instead of registering to them
9 years ago
Krisjanis Rijnieks
038c408919
Add passing mouse events instead of registering to them
9 years ago
Krisjanis Rijnieks
c8c32f417e
Add ofxPiMapper::toggleInfo
9 years ago
Krisjanis Rijnieks
dc13e607fd
Remove ofxPiMapper::loadXmlSettings
In favour of loadProject.
9 years ago
Krisjanis Rijnieks
e01c0585cf
Add ofxPiMapper::saveProject and loadProject
9 years ago
Krisjanis Rijnieks
3d75763382
Connect ofxPiMapper::selectNext and PrevVertex to TextureMappingMode
9 years ago
Krisjanis Rijnieks
430996bb44
Fix select next and prev surface on > and < keypress
There was no check whether a surface is selected and thus an undoable command was created,
which is not what should happen.
9 years ago
Krisjanis Rijnieks
08b6e1e13d
Add ofxPiMapper::selectNext and PrevVertex()
9 years ago
Krisjanis Rijnieks
6f3ba63a9f
Add prev selected vertex to SelSurfaceCmd
9 years ago
Krisjanis Rijnieks
aec929d45b
Add prev selected vertex to SelPrevSurfaceCmd
9 years ago
Krisjanis Rijnieks
cb645a0847
Add prev selected vertex to SelNextSurfaceCmd
9 years ago
Krisjanis Rijnieks
1e860fe95a
Fix crash caused by ScaleWidget::onMousePressed
Adding check if surface is selected.
9 years ago
Krisjanis Rijnieks
d7b458393f
Add l shortcut to Info
9 years ago
Krisjanis Rijnieks
e7a23a4a2b
Hide/show layer panel on l press
9 years ago
Krisjanis Rijnieks
517cbf1e69
Do not exec Sel..TexCoordCmd in tex mode if no surface selected
9 years ago
Krisjanis Rijnieks
41c21c0cc4
Fix crash when hitting arrow in tex mode, close #81
9 years ago
Krisjanis Rijnieks
ed0ee4fd96
React to image added events
9 years ago
Krisjanis Rijnieks
1cc8ba5ae4
Add some todos
9 years ago
Krisjanis Rijnieks
c83c001967
Add usb0 to usb3 to media server locations
9 years ago
Krisjanis Rijnieks
21533b6b90
Add tex coord polling in case texture not loaded yet
9 years ago
Krisjanis Rijnieks
abb17e88fe
Fix texture coords not matching tex crop area
After hitting TAB and changing to nex texture in texture mode, joints were not matchin the
actual texture coordinates. Fix here. There is another problem though. There is a problem
with videos that have not been allocated yet. There is no size for the texture, thus it is
not possible calculate the texture coods.
9 years ago
Krisjanis Rijnieks
b6b0c17713
Make use of DeselectTexCoordCmd when click drag all coords
9 years ago
Krisjanis Rijnieks
77efc60938
Clean up TextureMappingMode
9 years ago
Krisjanis Rijnieks
dd19417ad2
Create SaveTexCoordPosCmd only if tex coord move has happened
9 years ago
Krisjanis Rijnieks
099e25baff
Optimize TextureMappingMode tex coord moving exec/undo
9 years ago
Krisjanis Rijnieks
50e152f3d4
Make TextureMappingMode::moveSelection more elegant
9 years ago
Krisjanis Rijnieks
dfa4fc8085
Improve SelPrevTexCoordCmd
9 years ago
Krisjanis Rijnieks
4b350db18c
Improve SelNextTexCoordCmd
9 years ago
Krisjanis Rijnieks
5e7bc8a194
Add TextureEditorWidget::getTexCoord and selectTexCoord
9 years ago
Krisjanis Rijnieks
9fd904cef4
Create command on TextureMappingMode::moveSelection
9 years ago
Krisjanis Rijnieks
d78cd8f02e
Add TextureMappingMode::moveSelection
Discovery: the method used this far did not have an undoable command. Added a TODO as well.
9 years ago
Krisjanis Rijnieks
68e3ab8cb6
Add ofxPiMapper::moveSelection method
9 years ago
Krisjanis Rijnieks
94cbfcab79
Implement ProjectionMappingMode::moveSelection
Use the method when arrow keys are pressed instead of creating commands directly
9 years ago
Krisjanis Rijnieks
a8a47892fa
Add ApplicationBaseMode::moveSelection empty virtual method
9 years ago