rajincse / VizOnline

Research Project FIU SCIS Visualization group of Dr. Radu Jianu
0 stars 2 forks source link

Create BrainDemo #39

Open rajincse opened 10 years ago

rajincse commented 10 years ago

At revision: 120

39

BrainDemo_Web is added

rajincse commented 10 years ago

At revision: 122

39

BrainDemo for desktop is added

rajincse commented 10 years ago

At revision: 136

39

Dr. Radu's Mail: "Please integrate the following code, add it to github, and add to server. There are differences in the viewer containers and a few other places."

New Perspectives source updated.

rajincse commented 10 years ago

At revision: 137

39

  1. New Perspectives Library added
  2. 3D model is centered.
  3. New Image Transfere added.
rajincse commented 10 years ago

Things to do in BrainDemo:

  1. Also, the coordinates in the tube file are in a meaningful unit (maybe cm or mm). I am scaling it down to show it on the screen. I'd like you to keep track of the scaling factor and pass it along to your histogram viewer so you can show the lengths of the tubes in meaningful units (50 mm instead of just a number). Do you understand?
  2. You will realize that the large brain model is not centered if start rotating it. I think the z value is not centered and you need to do that for z as well: Vector3D center = new Vector3D(min.x+ (max.x-min.x)/2, min.y+(max.y-min.y)/2, min.z);
  3. In the repository the brain demo should be a single project with a main and MyInitServlet file in the root src.
  4. Please make sure that the property values for tube width, tube color etc. match the initial values of the model. For instance now, if I change the color of the tube, the tubes will look very thick because of that 10 in the thickness field.
  5. In the viewers there should be a vertical bar/button between the drawing area and the property manager that allows the user to hide the property manager. It's visible in vizlab/vizonline but not in the braindemo. Fix that.
  6. I think the brain demo has died on me now and I can't restart it. Any idea what happened?
  7. Can you look into starting the jvm in the server with lots of memory using the xms or xmx commands? When I was playing around with the large brain model on my desktop I found that Java was calling the garbage collector way to often because there wasn't enough memory and the interaction was choppy. I then started java with more memory and the problems went away.
  8. A POptions called "selection mode" with the following options: add, remove. If add is on, then any new tubes that are crossed by the selection line are added to the current selection. If remove is on and the selection line crosses selected tubes, then those tubes will be removed from the current selection.
  9. A PBoolean called "only selected" that when true will only show the selected tubes and will hide all others. Future selection operations are only applied to what is visible.
  10. Finally, I'd like you to create a smaller tube file from the big file by doing the following: for each tube remove it with the probability (0.6- 0.3 * min(1, tube_length/max_tube_length))
rajincse commented 10 years ago

At revision: 141

39

Issue:2 Center Calculation changed to Vector3D center = new Vector3D(min.x+ (max.x-min.x)/2, min.y+(max.y-min.y)/2, min.z+(max.z- min.z)/2);

rajincse commented 10 years ago

At revision: 142

39

Issue:4

  1. The tube face, width and color is set to 6,1 and Gray.
  2. For tube width the value is multiplied by a coefficient =0.01
  3. The request render is being called for each property change.

Issue 11. On Viewer Resize the model gets vanished.

rajincse commented 10 years ago

At revision: 143

39

Issue:8 & 9

  1. Selection Mode and Only Selected Property added.
  2. isSelected field added to tube

Mouse Pressed doesn't deselect all tubes now.

rajincse commented 10 years ago

At revision: 144 (0df08d5)

39

Issue 5: Fixed

rajincse commented 10 years ago

At revision: 145 (010e0dd)

39

Issue 10: BrainDataModifier viewer added.