How to use the interaction-viewer/InteractionViewer.prototype function in interaction-viewer

To help you get started, we’ve selected a few interaction-viewer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github smartscenes / sstk / client / js / lib / interaction-viewer / RecordingViewer.js View on Github external
var Object3DUtil = require('geo/Object3DUtil');
var _ = require('util/util');

function RecordingViewer(params) {
  var defaults = {
  };
  this.urlParams = _.getUrlParams();
  InteractionViewer.call(this, _.defaults(Object.create(null), params, defaults));

  this.recordingId = this.urlParams.fullId;
  this.characterCreator = new CharacterCreator();
  this.timeSlider = $(this.__options.timeSlider || '#timeSlider');
  this.annotationLabels = $(this.__options.annotationLabels || '#annotationLabels');
}

RecordingViewer.prototype = Object.create(InteractionViewer.prototype);
RecordingViewer.prototype.constructor = RecordingViewer;

RecordingViewer.prototype.__loadRecording = function(recordingInfo) {
  var scope = this;
  KinectRecording.load(this.assetLoader, recordingInfo, scope.skeleton, function(err, recording) {
    if (recording) {
      scope.recording = recording;
      console.log(scope.recording);
      //scope.timeSlider.slider('option', 'max', scope.recording.duration);
      scope.timeSlider.slider('option', 'max', scope.recording.getSkeletons().length-1);
      scope.__showSkeletonAtIndex(0);
    }
  });
};

RecordingViewer.prototype.__loadScan = function(scanId) {
github smartscenes / sstk / client / js / lib / interaction-viewer / RecordingViewer.js View on Github external
RecordingViewer.prototype.setupUI = function() {
  InteractionViewer.prototype.setupUI.call(this);
  var scope = this;
  this.timeSlider.slider({
    slide: function( event, ui ) {
      scope.setTime(ui.value);
    }
  });
};
github smartscenes / sstk / client / js / lib / interaction-viewer / RecordingViewer.js View on Github external
RecordingViewer.prototype.__initSearch = function (options, assetGroups) {
  InteractionViewer.prototype.__initSearch.call(this, options, assetGroups);
  this.showRecording(this.recordingId, this.urlParams['startTime'], this.urlParams['endTime']);
};

interaction-viewer

Display interaction information for different proteins and overlay information about diseases and subcellular location.

MIT
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis