~ubuntu-branches/ubuntu/raring/openwalnut/raring

« back to all changes in this revision

Viewing changes to src/modules/eegView/WMEEGView.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Eichelbaum
  • Date: 2012-12-12 11:26:32 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20121212112632-xhiuwkxuz5h0idkh
Tags: 1.3.1+hg5849-1
* Minor changes compared to 1.3.0 but included several bug fixes.
* See http://www.openwalnut.org/versions/4

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#define WMEEGVIEW_H
27
27
 
28
28
#include <string>
 
29
#include <vector>
29
30
 
30
31
#include <osg/Texture1D>
31
32
#include <osgSim/ScalarsToColors>
34
35
 
35
36
// forward declarations
36
37
class WCustomWidget;
 
38
class WDataSetDipole;
37
39
class WEEG2;
 
40
class WEEGSourceCalculator;
 
41
class WEEGViewHandler;
38
42
class WGEGroupNode;
39
43
class WROIBox;
40
 
class WEEGViewHandler;
41
 
class WEEGSourceCalculator;
42
44
template< class T > class WModuleInputData;
43
45
 
44
46
/**
123
125
    /**
124
126
     * Input connector for a EEG dataset
125
127
     */
126
 
    boost::shared_ptr< WModuleInputData< WEEG2 > > m_input;
 
128
    boost::shared_ptr< WModuleInputData< WEEG2 > > m_eeg_input;
 
129
 
 
130
    /**
 
131
     * Input connector for dipoles of EEG data
 
132
     */
 
133
    boost::shared_ptr< WModuleInputData< WDataSetDipoles > > m_dipoles_input;
127
134
 
128
135
    /**
129
136
     * A condition used to notify about changes in several properties.
131
138
    boost::shared_ptr< WCondition > m_propCondition;
132
139
 
133
140
    /**
 
141
     * Group for parameters that are normally adjusted using mouse actions.
 
142
     */
 
143
    WPropGroup m_manualNavigationGroup;
 
144
 
 
145
    /**
 
146
     * Group for parameters that adjust the appearance of the EEG widget
 
147
     */
 
148
    WPropGroup m_appearanceGroup;
 
149
 
 
150
    /**
134
151
     * Property determining whether electode positions should be drawn.
135
152
     */
136
153
    WPropBool m_drawElectrodes;
146
163
    WPropBool m_drawLabels;
147
164
 
148
165
    /**
 
166
     * Property determining whether we only show the proof of concept or the real dipoles
 
167
     */
 
168
    WPropBool m_proofOfConcept;
 
169
 
 
170
    /**
 
171
     * Property determining whether the selected time position should be snapped to an active dipole
 
172
     */
 
173
    WPropBool m_snapToDipole;
 
174
 
 
175
    /**
 
176
     * Property switching between standard and butterfly plot of curves (overlay of all curves in one row)
 
177
     */
 
178
    WPropBool m_butterfly;
 
179
 
 
180
    /**
 
181
     * Size of the region of interest
 
182
     */
 
183
    WPropDouble m_ROIsize;
 
184
 
 
185
    /**
149
186
     * the width of the label display in pixel as property
150
187
     */
151
188
    WPropInt m_labelsWidth;
198
235
    boost::shared_ptr< WEEG2 > m_eeg;
199
236
 
200
237
    /**
 
238
     * Pointer to the loaded dipoles dataset
 
239
     */
 
240
    boost::shared_ptr< WDataSetDipoles > m_dipoles;
 
241
 
 
242
    /**
201
243
     * Custom widget which is used by this module to display its data.
202
244
     */
203
245
    boost::shared_ptr< WCustomWidget > m_widget;
235
277
    osg::ref_ptr< osg::Node > m_labelsNode;
236
278
 
237
279
    /**
238
 
     * The ROI around the source dipole position at the time determined by
 
280
     * The ROIs around the source dipole positions at the time determined by
239
281
     * m_event.
240
 
     * Used to select the fibers around this dipole.
 
282
     * Used to select the fibers around this dipoles.
241
283
     */
242
 
    osg::ref_ptr< WROIBox > m_roi;
 
284
    std::vector< osg::ref_ptr< WROIBox > > m_rois;
243
285
 
244
286
    /**
245
287
     * Bool flag which gets set when the data was changed.
275
317
    boost::shared_ptr< WEEGSourceCalculator > m_sourceCalculator;
276
318
 
277
319
    /**
 
320
     * Prepare textures for colormapping EEG signal
 
321
     */
 
322
    void createColorMap();
 
323
 
 
324
    /**
278
325
     * Opens a custom widget and connects the m_node with it.
279
326
     *
280
327
     * \returns whether the custom widget could be opened successfully