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

catmaid / CATMAID / 6672
45%
master: 45%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 23 Nov 2019 06:30AM UTC
Jobs 3
Files 212
Run time 11min
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

pending completion
6672

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.

17222 of 38318 relevant lines covered (44.94%)

1.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6672.1 23 Nov 2019 06:30AM UTC 0
44.94
Travis Job 6672.1
2 6672.2 23 Nov 2019 06:31AM UTC 0
44.94
Travis Job 6672.2
3 6672.3 23 Nov 2019 06:42AM UTC 0
41.86
Travis Job 6672.3
Source Files on build 6672
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6672
  • e289c3aa on github
  • Prev Build on dev (#6668)
  • Next Build on dev (#6673)
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