forked from DerThorsten/orthos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71e4ec8
commit 3accfdc
Showing
51 changed files
with
2,928 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
|
||
//--------------------------------------------------------------------------- | ||
// Threading / Parallelism (needs restart) | ||
//--------------------------------------------------------------------------- | ||
"nThreadRenderThreadPool" : -1, | ||
|
||
//--------------------------------------------------------------------------- | ||
// Pyqtgraph settings (needs restart) | ||
//--------------------------------------------------------------------------- | ||
"useOpenGl" : true, | ||
"antiAliasing" : false, | ||
|
||
//--------------------------------------------------------------------------- | ||
// tiling (needs restart) | ||
//--------------------------------------------------------------------------- | ||
"useDynamicTiling" : true, | ||
"tileSize" : 256, | ||
"tileShape" :[10, 10] | ||
|
||
|
||
//--------------------------------------------------------------------------- | ||
// | ||
//--------------------------------------------------------------------------- | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import numpy | ||
import orthos | ||
|
||
|
||
"here where try a 4d" | ||
shape = (150,)*4 | ||
|
||
class Axis(object): | ||
def __init__(self, name, shortName, shape, color=None, isChannelAxis=False, channelNames=None): | ||
pass | ||
|
||
class DataSourceAxis(object): | ||
def __init__(self, dataAxis): | ||
self.dataAxis = | ||
|
||
|
||
xAxis = Axis(name='X0-Axis',shortName='x0', shape=shape[0], color=orthos.colors.defaultAxisColor(0)) | ||
yAxis = Axis(name='X1-Axis',shortName='x1', shape=shape[1], color=orthos.colors.defaultAxisColor(1)) | ||
zAxis = Axis(name='X2-Axis',shortName='x2', shape=shape[2], color=orthos.colors.defaultAxisColor(2)) | ||
tAxis = Axis(name='X3-Axis',shortName='x3', shape=shape[3], color=orthos.colors.defaultAxisColor(3)) | ||
|
||
# channel axis do not need a color | ||
rgbAxis = Axis(name='RGB',shortName='RGB',shape=shape[3]) | ||
|
||
globalAxis = [xAxis, yAxis, zAxis, tAxis] | ||
|
||
|
||
# negative number indicate channel axis | ||
rawSource = DataSourceAxis(dataAxis=[0,1,2,3,4]) | ||
rgbSource = DataSourceAxis(dataAxis=dataAxis, axisOrdering=[0,1,2,3,4],channels=None) | ||
|
||
# negative number indicate channel axis | ||
rgbChannel = Channel(name='RGB',channelNames=['r','g','b'], shape=3) | ||
rgbSource = DataSourceAxis(dataAxis=dataAxis, axisOrdering=[0,1,2,3,4,-1],channels=[rgbChannel]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import orthos_cpp | ||
import colors | ||
import widgets | ||
from orthos_cpp import * | ||
|
||
from icons_rc import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
#http://stackoverflow.com/questions/309149/generate-distinctly-different-rgb-colors-in-graphs | ||
# http://phrogz.net/css/distinct-colors.html | ||
|
||
import numpy | ||
|
||
distinctiveColors13 = numpy.array([ | ||
(255,0,0), | ||
(0,255,0), | ||
(0,0,255), | ||
(242,79,19), | ||
(255,174,13), | ||
(140,255,8), | ||
(9,64,24), | ||
(160,242,193), | ||
(17,197,242), | ||
(24,24,242), | ||
(63,8,77), | ||
(242,155,213) | ||
], dtype='uint8') | ||
|
||
|
||
|
||
def defaultAxisColor(i): | ||
global distinctiveColors13 | ||
return distinctiveColors13[i] |
Oops, something went wrong.