-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added keyboard shortcuts management #39
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two commits with the same message? Either separate into clearer smaller commits or make it one with a bullet-list of changes.
Also, the RedHat build fails with a segfault it seems...
private: | ||
|
||
virtual void _registerKeyboardShortcuts() final; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
either virtual or final
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final :-) Thanks
@@ -542,7 +542,7 @@ VolumeHandlerPtr Scene::getVolumeHandler() | |||
{ | |||
boost::filesystem::path fileExtension = | |||
dirIter->path( ).extension( ); | |||
if( fileExtension==".raw" ) | |||
//if( fileExtension==".raw" ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, on purpose, cleaned up.
soma.getMeanRadius() * | ||
_geometryParameters.getRadiusMultiplier() ); | ||
soma.getMeanRadius() /* * | ||
_geometryParameters.getRadiusMultiplier()*/ ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dito?
@@ -228,6 +229,10 @@ bool NESTLoader::_load( const float timestamp ) | |||
BRAYNS_DEBUG << "Loading spikes at timestamp: " << timestamp | |||
<< " (" << start << " ms)" << std::endl; | |||
|
|||
|
|||
char filename[1024]; | |||
sprintf( filename, "/home/favreau/medias/volumes/spikes/10pct/events/spikes_%05d.events", int(timestamp*10) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dito?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, not on purpose. Thanks again.
BRAYNS_INFO << "Closing Deflect stream" << std::endl; | ||
delete _stream.get(); | ||
_stream.release(); | ||
_stream = nullptr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ouch! _stream.reset() should be enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should have read 'smart pointers for dummies'. Fixed.
|
||
bool success = _stream->send(deflectImage); | ||
// TODO: Big Memory Leak on every send. FIX NEEDED!!!!! | ||
const bool success = _stream->send( deflectImage ); | ||
_stream->finishFrame(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also evaluate result of finishFrame(). We typically do result = send() && finish();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
c8d921c
to
83fd63f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You squash merge?
No description provided.