SMILX  1.01
milxQtDiffusionTensorModel.h
1 /*=========================================================================
2  The Software is copyright (c) Commonwealth Scientific and Industrial Research Organisation (CSIRO)
3  ABN 41 687 119 230.
4  All rights reserved.
5 
6  Licensed under the CSIRO BSD 3-Clause License
7  You may not use this file except in compliance with the License.
8  You may obtain a copy of the License in the file LICENSE.md or at
9 
10  https://stash.csiro.au/projects/SMILI/repos/smili/browse/license.txt
11 
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  See the License for the specific language governing permissions and
16  limitations under the License.
17 =========================================================================*/
18 #ifndef milxQtDIFFUSIONTENSORMODEL_H
19 #define milxQtDIFFUSIONTENSORMODEL_H
20 
21 #include "milxQtModel.h"
22 
24 {
25  Q_OBJECT
26 
27 public:
28  milxQtDiffusionTensorModel(QWidget *theParent = 0);
29  virtual ~milxQtDiffusionTensorModel();
30 
31  static double computeAmplitude(std::vector<double> SH, double x, double y, double z, int lmax);
32  static int NforL (int lmax) { return ((lmax+1)*(lmax+2)/2); }
33  static int LforN (int N) { return (2*(((int) (sqrt((float) (1+8*N)))-3)/4)); }
34  static int index (int l, int m) { return (l*(l+1)/2 + m); }
35 
36 public slots:
37  void colourByDirection();
38  void harmonics(QString ordersString = "");
39 
40 protected:
41  QAction *colourDirectionAct;
42  QAction *harmonicsAct;
43 
44 private:
45  void createActions();
46  void createConnections();
47  void contextMenuEvent(QContextMenuEvent *currentEvent);
48 
49 };
50 
51 #endif // milxQtDIFFUSIONTENSORMODEL_H
QAction * colourDirectionAct
colour by direction axes action
void contextMenuEvent(QContextMenuEvent *event)
The context menu setup member.
void createActions()
Create the actions for context menu etc.
void createConnections()
Create the connections for context menu etc.
This class represents the MILX Qt Model/Mesh Display object using VTK.
Definition: milxQtModel.h:115
QAction * harmonicsAct
Display spherical harmonic.
#define MILXQT_PLUGIN_EXPORT
Define Windows Plugin DLL importing.