1
2
3
4 __author__ = "Ricardo Ribeiro"
5 __credits__ = ["Ricardo Ribeiro"]
6 __license__ = "MIT"
7 __version__ = "0.0"
8 __maintainer__ = "Ricardo Ribeiro"
9 __email__ = "ricardojvr@gmail.com"
10 __status__ = "Development"
11
12
13 import pyforms.Utils.tools as tools
14 from PyQt4 import uic, QtGui, QtCore
15 from pyforms.gui.Controls.ControlBase import ControlBase
16
17 from visvis import Point, Pointset
18 import visvis as vv
19 import numpy as np
22
40
41
42
43
44
45 @property
48
49 @colorMap.setter
51 self._colorMap=value
52 self.refresh()
53
55 if len(self._value)>1:
56 a = vv.gca()
57 view = a.GetView()
58 a.Clear()
59 vv.volshow3(self._value, renderStyle='mip', cm=self._colorMap )
60 if not self._first:
61 a = vv.gca()
62 a.SetView(view)
63
64 self._first=False
65
66 @property
67 - def value(self): return None
68
69 @value.setter
75