• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

catmaid / CATMAID / 6672 / 3
45%
master: 45%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 23 Nov 2019 06:42AM UTC
Files 106
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Nov 2019 06:05AM UTC coverage: 41.859% (-3.1%) from 44.945%
6672.3

push

travis-ci

tomka
3D viewer: add basic infrastructure for showing additional planes

This is already useful on the command line for some visualizations. With
3D Viewer active:

  var w = CATMAID.front();

One can now create e.g. three stack sized planes, all orthogonal to each
other:

  w.space.staticContent.createOrthoPlane(w.space, 'x', project.focusedStackViewer.primaryStack, CATMAID.Stack.ORIENTATION_XY, {color: 0xff0000, opacity: 0.5}, {color: 0xffff00, opacity: 0.7}, {x: 1.0, y: 1.0, z: 1.0});
  w.space.staticContent.createOrthoPlane(w.space, 'y', project.focusedStackViewer.primaryStack, CATMAID.Stack.ORIENTATION_XZ, {color: 0x00ff00, opacity: 0.5}, {color: 0x00ffff, opacity: 0.7}, {x: 1.0, y: 1.0, z: 1.0});
  w.space.staticContent.createOrthoPlane(w.space, 'z', project.focusedStackViewer.primaryStack, CATMAID.Stack.ORIENTATION_ZY, {color: 0x0000ff, opacity: 0.5}, {color: 0xff00ff, opacity: 0.7}, {x: 1.0, y: 1.0, z: 1.0});

The second parameter needs to be unique for each plane. Otherwise one
can't clear the space again like this:

  w.space.staticContent.removeAllOrthoPlanes(w.space)

The first parameter after the orientation is the plane color/opacity,
followed by the border color opacity. If they are null, the respective
part won't be drawn. The last parameter is a scale factor, which can be
used to make the planes smaller so that they don't cover the full extent
of the stack. This however also has the consequence that that planes can
reach outside of the stack bounding box when the location is changed.
Generally, these planes move with project location changes. You can
prevent this by providing an additional prarameter with the fixed
coordinate value for the respective depth dimension of the provide
orientation.

7849 of 18751 relevant lines covered (41.86%)

0.42 hits per line

Source Files on job 6672.3
  • Tree
  • List 0
  • Changed 29
  • Source Changed 0
  • Coverage Changed 29
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5808
  • Travis Job 6672.3
  • e289c3aa on github
  • Prev Job for on dev (#6668.1)
  • Next Job for on dev (#6673.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc