1. 15 Oct, 2014 1 commit
    • Christian Schulte zu Berge's avatar
      Started refactoring the CAMPVis OpenGL Wrapping API: · 58512d30
      Christian Schulte zu Berge authored
      The new OpenGL wrapping API allows for full multi-threaded access to OpenGL contexts. Instead of one single thread scheduling all OpenGL jobs for all contexts, the new GlContextManager allows for OpenGL access from multiple threads while ensuring that each OpenGL context is acquired by only one thread at a time.
      
      Detailed list of changes:
      * tgt::GlContextManager keeping track of which threads acquire which OpenGL contexts and which threads currently have a context acquired.
      * OpenGLJobProcessor does no longer schedules and execute the OpenGL calls for all existing contexts, but only for one single context that can be used for background tasks or other jobs that explicitly need a valid OpenGL context.
      * AbstractPipeline now implements the Runnable interface and thus runs in it's own thread. This thread also owns the pipeline's OpenGL context.
      * AbstractPipeline has a new pure virtual method executePipeline() that has to perform all computations done by the pipeline.
      * AbstractPipeline now takes directly care of calling Painter::paint() of the pipeline's canvas (instead of signalling the Painter). However, the Painter interface needs further cleanup.
      * AutoEvaluationPipeline was adapted to the new AbstractPipeline API, hence executing processors is no longer delegated to the OpenGLJobProcessor or the SimpleJobProcessor but entirely done in AutoEvaluationPipeline::executePipeline() and thus in the pipeline's thread.
      * Adjusted CampVisApplication, DataContainerInspectorWidget, and GeometryTransferFunctionEditor to the new API.
      58512d30
  2. 30 Sep, 2014 1 commit
    • CAMP C++ Builder's avatar
      some improvements to the core api · ddfa21e1
      CAMP C++ Builder authored
      * AbstractPipeline offers getter for the canvas to execute jobs in the pipeline's OpenGL context
      * PropertyCollectionWidget adds a spacer element at the end to prevent element stretching when there is too much free space
      * job.h offers new CallFunctionObjectJob to create jobs on the fly using lambda functions (the respective makeJob and makeJobOnHeap are inlined to prevent linker errors)
      ddfa21e1
  3. 08 Aug, 2014 1 commit
  4. 27 Jul, 2014 3 commits
    • Christian Schulte zu Berge's avatar
      Removed all occasions where references to DataHandles were used, since... · 0249b136
      Christian Schulte zu Berge authored
      Removed all occasions where references to DataHandles were used, since especially their use in signals may lead to segfaults or other undesired behavior.
      0249b136
    • Christian Schulte zu Berge's avatar
      Removed unlockInExtraThread flag from AbstractProcessor::process() - this is... · 4700bbba
      Christian Schulte zu Berge authored
      Removed unlockInExtraThread flag from AbstractProcessor::process() - this is no longer needed as signal handling is done asynchroneously now anyway.
      
      #ref 384
      
      Conflicts:
      	core/pipeline/abstractprocessor.cpp
      
      Conflicts:
      	core/pipeline/abstractprocessor.cpp
      	core/pipeline/abstractprocessor.h
      4700bbba
    • Christian Schulte zu Berge's avatar
      Introducing sigslot::concurrent_pointer_list<T> a list-like container allowing... · 8671e65c
      Christian Schulte zu Berge authored
      Introducing sigslot::concurrent_pointer_list<T> a list-like container allowing thread-safe bidirectional iteration, insertion and removal of elements. Single constraint is that the element type must be a pointer type (or at least have pointer semantics) and never be 0. This is neat, as this class offers exactly what we need for a lock-free sigslot implementation.
      
      Updated sigslot implementation to use concurrent_pointer_list for connection storage. Hence, we can get rid of the locking mechanisms, which got completely removed.
      
      Since this simplified template definitions for sigslot, many campvis files needed to be adapted (i.e. removing the <> from has_slots<> and signal0<>).
      
      refs #384
      
      Conflicts:
      	core/classification/genericgeometrytransferfunction.h
      	core/eventhandlers/trackballnavigationeventlistener.h
      	core/pipeline/processordecoratormasking.h
      	core/properties/propertycollection.h
      	core/properties/transferfunctionproperty.h
      	core/tools/opengljobprocessor.h
      8671e65c
  5. 05 May, 2014 1 commit
  6. 01 Mar, 2014 1 commit
  7. 08 Jan, 2014 1 commit
    • Christian Schulte zu Berge's avatar
      Refactoring AbstractProcessor::process() for clearer semantics and better and... · cd9d3feb
      Christian Schulte zu Berge authored
      Refactoring AbstractProcessor::process() for clearer semantics and better and more uniform handling of invalidation levels:
       * AbstractProcessor::process() now calls updateShader(), updateProperties() and/or updateResult() with respect to the current invalidation level
       * each processor shall no longer override process() but the updateXYZ() methods, at minimum updateResult()
       * AbstractProcessor::process() takes care of (un)locking the processor itself (no need to do this from the outside anymore)
      
      Further implicit changes:
       * Removed redundant HasPropertyCollection::updateProperties()
      cd9d3feb
  8. 13 Dec, 2013 1 commit
  9. 15 Oct, 2013 1 commit
  10. 08 Oct, 2013 4 commits
  11. 27 Sep, 2013 1 commit
  12. 24 May, 2013 1 commit
  13. 23 Feb, 2013 1 commit
  14. 11 Feb, 2013 1 commit
  15. 08 Feb, 2013 1 commit
  16. 06 Feb, 2013 1 commit
  17. 08 Jan, 2013 1 commit
  18. 04 Nov, 2012 1 commit
  19. 02 Nov, 2012 1 commit
  20. 31 Oct, 2012 1 commit
  21. 26 Oct, 2012 1 commit
  22. 21 Sep, 2012 1 commit
  23. 27 Aug, 2012 2 commits
  24. 22 Aug, 2012 1 commit
  25. 10 Aug, 2012 2 commits
  26. 06 Aug, 2012 1 commit
  27. 03 Aug, 2012 1 commit
  28. 27 Jul, 2012 2 commits
  29. 24 Jul, 2012 1 commit
  30. 23 Jul, 2012 1 commit
    • schultezub's avatar
      It took quite some time, but this commit introduces thread-safe management and... · 1302ca97
      schultezub authored
      It took quite some time, but this commit introduces thread-safe management and access to multiple OpenGL contexts.
       * added tgt::QtContextManager for managing multiple OpenGL contexts
       * adapted tgt::GLContext and tgt::QtGLContext, tgt::QtThreadedPainter
       * added PipelineEvaluator for evaluating pipelines in separate threads
       * added various lock/sync features to processors, pipelines, and processors
      
      However, there's still plenty of clean-up work to do: some parts of the tgt library are quite messed up and the core library interfaces need some polishing...
      
      
      git-svn-id: https://camplinux.in.tum.de/svn/campvis/trunk@195 bb408c1c-ae56-11e1-83d9-df6b3e0c105e
      1302ca97
  31. 19 Jul, 2012 1 commit
  32. 12 Jul, 2012 1 commit