Mercurial > cortex
comparison org/util.org @ 335:5dcd44576cbc
add BufferedImage to Viewable Protocol
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Fri, 20 Jul 2012 13:02:58 -0500 |
parents | 52de8a36edde |
children | 70469ff8eb56 |
comparison
equal
deleted
inserted
replaced
334:c264ebf683b4 | 335:5dcd44576cbc |
---|---|
98 (:import com.jme3.material.Material) | 98 (:import com.jme3.material.Material) |
99 (:import com.jme3.scene.Geometry) | 99 (:import com.jme3.scene.Geometry) |
100 (:import java.awt.image.BufferedImage) | 100 (:import java.awt.image.BufferedImage) |
101 (:import javax.swing.JPanel) | 101 (:import javax.swing.JPanel) |
102 (:import javax.swing.JFrame) | 102 (:import javax.swing.JFrame) |
103 (:import ij.ImagePlus) | |
103 (:import javax.swing.SwingUtilities) | 104 (:import javax.swing.SwingUtilities) |
104 (:import com.jme3.scene.plugins.blender.BlenderModelLoader) | 105 (:import com.jme3.scene.plugins.blender.BlenderModelLoader) |
105 (:import (java.util.logging Level Logger))) | 106 (:import (java.util.logging Level Logger))) |
106 | 107 |
107 (def println-repl | 108 (def println-repl |
530 (view | 531 (view |
531 [color] | 532 [color] |
532 (view (doto (Node.) | 533 (view (doto (Node.) |
533 (.attachChild (box 1 1 1 :color color)))))) | 534 (.attachChild (box 1 1 1 :color color)))))) |
534 | 535 |
536 (extend-type java.awt.image.BufferedImage | |
537 Viewable | |
538 (view | |
539 [image] | |
540 (.show (ImagePlus. "view-buffered-image" image)))) | |
541 | |
535 (defprotocol Textual | 542 (defprotocol Textual |
536 (text [something] | 543 (text [something] |
537 "Display a detailed textual analysis of the given object.")) | 544 "Display a detailed textual analysis of the given object.")) |
538 | 545 |
539 (extend-type com.jme3.scene.Node | 546 (extend-type com.jme3.scene.Node |