|
ShapeViewer client commands
|
|
| addShape | url [,"true"/"false"] | Url of a shape file, Whether it is grid ucf | addShape("http://loni.ucla.edu/~qma/shapeviewer/FFFclrd.obj") | You may have to type command "clearViewer()" first to remove all loaded shapes, and you may have to type "fitViewer()" to make it visible thereafter |
| addScene | url | Url of a scene file | addScene( "http://loni.ucla.edu/~qma/shapeviewer/sceneshapes/colormap.xml") | To first clear the display enter the command: "clearViewer()" |
| clearViewer | | | clearViewer() | to remove all loaded shapes |
|
< < |
| fitViewer | | | fitViewer() | to make new added shape visible |
| rotX | a double value of angle in radiant | | rotX(1.234) | to rotate view around X axis 1.234 |
| rotY | a double value of angle in radiant | | rotY(1.234) | to rotate view around Y axis 1.234 |
| rotZ | a double value of angle in radiant | | rotZ(1.234) | to rotate view around Z axis 1.234 |
|
> > |
| fitViewer | | | fitViewer() | Adjust the zoom to fit all currently displayed shapes into the view display. |
| rotX | a double value of angle in radians | | rotX(1.234) | Rotate view around X axis 1.234 Radians |
| rotY | a double value of angle in radians | | rotY(1.234) | Rotate view around Y axis 1.234 Radians |
| rotZ | a double value of angle in radians | | rotZ(1.234) | Rotate view around Z axis 1.234 Radians |
|
|
| transformChanged | an 16 elments float array or a String which has 16 elements of float delimited by space | | transformChanged(newval) | to set current view transformation as newval |
|
< < |
| transformChangeBy | an 16 elments float array or a String which has 16 elements of float delimited by space | | transformChangeBy(val) | to set current view transformation as timing by val |
|
> > |
| transformChangeBy | an 16 elments float array or a String which has 16 elements of float delimited by space | | transformChangeBy(val) | Multiply current transform matrix (M) by a new matrix (N). The resulting current transform matrix will be NM. |
|
|
| setViewerProperty | String attribute , String value | see table of arguments below | setViewerProperty("background_color", "-1") | Sets display bacground to new color whose RGBA as int is -1, (Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue). |
| setShapeProperty | String shapeId, String attribute, String value | see table of arguments below | setShapeProperty("1","visible", "true" | to make the shape whose id is "1" visible |
| escapeString | a text String | | str = escapeString(str) | name="shape viewer" => name=\"shape viewer\" |
|
|
| "show_msg_pane", | "true" or "false" | ATTNAME.SHOW_MSG_PANEL | true or false | |
| "draw_mode" | 0 (lines) 1 (surface) 2 (shaded, filled surface) 3 (points) | ATTNAME.DRAW_MODE | Viewer.POINTS Viewer.LINESTRIP Viewer.SURFACE Viewer.SURFACE_FILL | |
| "transform" | "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0" | ATTNAME.TRANSFORM | A 16 element space delimited transform column major array | Uses homogenous coordinates. Example string encodes the identity transform: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 |
|
> > |
| "rotation_transform" | "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0" | ATTNAME.ROTATION_TRANSFORM | A 16 element space delimited transform column major array | Uses homogenous coordinates. Example string encodes the identity transform: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0. Only rotation components are changed. The scale and translation of client views are unaltered. |
|
|
| "draw_start_point" | "true" or "false" | ATTNAME.DRAW_START_POINT | true or false | |
| "draw_end_point" | "true" or "false" | ATTNAME.DRAW_END_POINT`` | true or false | |
| "light_direction" | "0.0 1.0 2.5" | ATTNAME_LIGHT_DIRECTION | 3 element space delimited vector | currently supporting 6 axis directions |
|
|
Shape properties and their allowed values are:
|
< < |
| "transform" | (see above table) | ATTNAME.TRANSFORM | A 16 element space delimited colum major transform matrix | If the matrix does not contain 16 elements the local transformation will be reset (_to what ?) |
|
> > |
| "transform" | (see above table) | ATTNAME.TRANSFORM | A 16 element space delimited column major transform matrix | If the matrix does not contain 16 elements the local transformation will be reset. |
|
|
| "selected" | "" | ATTNAME.SELECTED | Empty or null String | property value parmeter is unused. |
| "visible" | "true" or "false" | ATTNAME.VISIBLE | true or false | |
| "normal_mode" | "0" (normals off ) "1" (Normals on) "2" (Normals reversed) | ATTNAME.NORMAL_MODE | IShape.NORMAL_OFF IShape.NORMAL.ON IShape.NORMAL_FLIP | |
|
< < |
| Others: literal value of attribute name, .eg. "ucfData0" | an XML format of color map | | colormap.toXML("") | You need escape double quot first by invoke command str = escapeString(str) or str = GUIUTIL.escapeString(str) |
|
> > |
| Others: literal value of attribute name, .eg. "ucfData0" | an XML format of color map | | colormap.toXML("") | You must escape double quotes (str = escapeString(str) or str = GUIUTIL.escapeString(str)) |
|
|
|
< < |
Updated: 6 April 2006
|
> > |
Updated: 15 January 2007
|
|
|
|
ShapeViewer client commands
|
< < |
The ShapeViewer may be controlled by text string commands.
The following are the commands, and their allowed argument values, to which
the ShapeViewer responds.
Thsese commands apply to ShapeViewer version: 1.1.0d9
|
> > |
The ShapeViewer may be controlled by text commands (entered into it's BeanShell terminal window).
The set of defined commands, and their arguments, are defined in the table, below.
|
|
|
> > |
Thsese commands apply to ShapeViewer version: 1.1.0
|
|
| Command | Arguments | Description | Example | Notes |
| addShape | url [,"true"/"false"] | Url of a shape file, Whether it is grid ucf | addShape("http://loni.ucla.edu/~qma/shapeviewer/FFFclrd.obj") | You may have to type command "clearViewer()" first to remove all loaded shapes, and you may have to type "fitViewer()" to make it visible thereafter |
|
< < |
| addScene | url | Url of a scene file | addScene("http://loni.ucla.edu/~qma/shapeviewer/sceneshapes/colormap.xml") | You may have to type command "clearViewer()" first to remove all loaded shapes |
|
> > |
| addScene | url | Url of a scene file | addScene( "http://loni.ucla.edu/~qma/shapeviewer/sceneshapes/colormap.xml") | To first clear the display enter the command: "clearViewer()" |
|
|
| clearViewer | | | clearViewer() | to remove all loaded shapes |
| fitViewer | | | fitViewer() | to make new added shape visible |
| rotX | a double value of angle in radiant | | rotX(1.234) | to rotate view around X axis 1.234 |
|
|
| transformChangeBy | an 16 elments float array or a String which has 16 elements of float delimited by space | | transformChangeBy(val) | to set current view transformation as timing by val |
| setViewerProperty | String attribute , String value | see table of arguments below | setViewerProperty("background_color", "-1") | Sets display bacground to new color whose RGBA as int is -1, (Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue). |
| setShapeProperty | String shapeId, String attribute, String value | see table of arguments below | setShapeProperty("1","visible", "true" | to make the shape whose id is "1" visible |
|
< < |
| escapeString | a String need escape | | str = escapeString(str) | name="shape viewer" => name=\"shape viewer\" |
|
> > |
| escapeString | a text String | | str = escapeString(str) | name="shape viewer" => name=\"shape viewer\" |
|
|
Viewer Properties and Property Values
|
|
| "light_direction" | "0.0 1.0 2.5" | ATTNAME_LIGHT_DIRECTION | 3 element space delimited vector | currently supporting 6 axis directions |
| "view_direction" | "0 0 1" | ATTNAME.VIEW_DIRECTION | 3 element space delimited vector | currently supporting 6 axis directions |
| "perspective_projection" | "true" or "false" | ATTNAME.PERSPECTIVE | true or false | |
|
< < |
| "stadard_orientations" | "0 0 1" | ATTNAME.STD_ORIENTATIONS | 3 element space delimited vector | currently supporting 6 axis directions |
|
> > |
| "standard_orientations" | "0 0 1" | ATTNAME.STD_ORIENTATIONS | 3 element space delimited vector | currently supporting 6 axis directions |
|
|
Shape Properties
|
|
ShapeViewer client commands
|
|
|
< < |
| "draw_mode" | 0 (points) 1 (lines) 2 (surface) 3 (shaded, filled surface) | ATTNAME.DRAW_MODE | Viewer.PONTS Viewer.LINESTRIP Viewer.SURFACE Viewer.SURFACE_FILL | |
|
> > |
| "draw_mode" | 0 (lines) 1 (surface) 2 (shaded, filled surface) 3 (points) | ATTNAME.DRAW_MODE | Viewer.POINTS Viewer.LINESTRIP Viewer.SURFACE Viewer.SURFACE_FILL | |
|
|
| "transform" | "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0" | ATTNAME.TRANSFORM | A 16 element space delimited transform column major array | Uses homogenous coordinates. Example string encodes the identity transform: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 |
| "draw_start_point" | "true" or "false" | ATTNAME.DRAW_START_POINT | true or false | |
| "draw_end_point" | "true" or "false" | ATTNAME.DRAW_END_POINT`` | true or false | |
|
< < |
| "light_direction" | "0.0 1.0 2.5" | ATTNAME_LIGHT_DIRECTION | 3 element space delimited vector | |
| "view_direction" | "0 0 1" | ATTNAME.VIEW_DIRECTION | 3 element space delimited vector | |
|
> > |
| "light_direction" | "0.0 1.0 2.5" | ATTNAME_LIGHT_DIRECTION | 3 element space delimited vector | currently supporting 6 axis directions |
| "view_direction" | "0 0 1" | ATTNAME.VIEW_DIRECTION | 3 element space delimited vector | currently supporting 6 axis directions |
|
|
| "perspective_projection" | "true" or "false" | ATTNAME.PERSPECTIVE | true or false | |
|
< < |
| "stadard_orientations" | "0 0 1" | ATTNAME.STD_ORIENTATIONS | 3 element space delimited vector | |
|
> > |
| "stadard_orientations" | "0 0 1" | ATTNAME.STD_ORIENTATIONS | 3 element space delimited vector | currently supporting 6 axis directions |
|
|
Shape Properties
|
|
ShapeViewer client commands
|
|
| transformChangeBy | an 16 elments float array or a String which has 16 elements of float delimited by space | | transformChangeBy(val) | to set current view transformation as timing by val |
| setViewerProperty | String attribute , String value | see table of arguments below | setViewerProperty("background_color", "-1") | Sets display bacground to new color whose RGBA as int is -1, (Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue). |
| setShapeProperty | String shapeId, String attribute, String value | see table of arguments below | setShapeProperty("1","visible", "true" | to make the shape whose id is "1" visible |
|
> > |
| escapeString | a String need escape | | str = escapeString(str) | name="shape viewer" => name=\"shape viewer\" |
|
|
Viewer Properties and Property Values
|
|
| "selected" | "" | ATTNAME.SELECTED | Empty or null String | property value parmeter is unused. |
| "visible" | "true" or "false" | ATTNAME.VISIBLE | true or false | |
| "normal_mode" | "0" (normals off ) "1" (Normals on) "2" (Normals reversed) | ATTNAME.NORMAL_MODE | IShape.NORMAL_OFF IShape.NORMAL.ON IShape.NORMAL_FLIP | |
|
> > |
| Others: literal value of attribute name, .eg. "ucfData0" | an XML format of color map | | colormap.toXML("") | You need escape double quot first by invoke command str = escapeString(str) or str = GUIUTIL.escapeString(str) |
|
|
Updated: 6 April 2006
|
|
ShapeViewer client commands
|
|
| transformChanged | an 16 elments float array or a String which has 16 elements of float delimited by space | | transformChanged(newval) | to set current view transformation as newval |
| transformChangeBy | an 16 elments float array or a String which has 16 elements of float delimited by space | | transformChangeBy(val) | to set current view transformation as timing by val |
| setViewerProperty | String attribute , String value | see table of arguments below | setViewerProperty("background_color", "-1") | Sets display bacground to new color whose RGBA as int is -1, (Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue). |
|
< < |
| setShapeProperty | String shapeId, String attribute, String value | see table of arguments below | setShapeProperty("http://loni.ucla.edu/~qma/shapeviewer/FFFclrd.obj","visible", "true" | to make the shape loaded from the http visible |
|
> > |
| setShapeProperty | String shapeId, String attribute, String value | see table of arguments below | setShapeProperty("1","visible", "true" | to make the shape whose id is "1" visible |
|
|
Viewer Properties and Property Values
|
|
|
< < |
| "Background_Color", | "0.3 0.2 1.0" | Viewer.ATTNAME_BACKGROUND_COLOR | Color.getRGB() | Red,Green and Blue saturations as a number between 0.0 (none) and 1.0 (saturated). |
| "Show_Msg_Pane", | "true" or "false" | Viewer.ATTNAME_SHOW_MSGPANEL | true or false | |
| "Draw_Mode" | 0 (points) 1 (lines) 2 (surface) 3 (shaded, filled surface) | Viewer.ATTNAME_DRAW_MODE | Viewer.PONTS Viewer.LINESTRIP Viewer.SURFACE Viewer.SURFACE_FILL | |
| "Transform" | "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0" | Viewer.ATTNAME_TRANSFORM | A 16 element space delimited transform column major array | Uses homogenous coordinates. Example string encodes the identity transform: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 |
| "Draw_Start_Point" | "true" or "false" | Viewer.ATTNAME_DRAW_START_POINT | true or false | |
| "Draw_End_Point" | "true" or "false" | Viewer.ATTNAME_DRAW_END_POINT`` | true or false | |
| "Light_Direction" | "0.0 1.0 2.5" | Viewer.ATTNAME_LIGHT_DIRECTION | 3 element space delimited vector | |
| "View_Direction" | "0 0 1000" | Viewer.ATTNAME_VIEW_DIRECTION | 3 element space delimited vector | |
|
> > |
| "background_color", | "-12345" | ATTNAME.BACKGROUND_COLOR | Color.getRGB() | an int whose bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue. |
| "show_msg_pane", | "true" or "false" | ATTNAME.SHOW_MSG_PANEL | true or false | |
| "draw_mode" | 0 (points) 1 (lines) 2 (surface) 3 (shaded, filled surface) | ATTNAME.DRAW_MODE | Viewer.PONTS Viewer.LINESTRIP Viewer.SURFACE Viewer.SURFACE_FILL | |
| "transform" | "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0" | ATTNAME.TRANSFORM | A 16 element space delimited transform column major array | Uses homogenous coordinates. Example string encodes the identity transform: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 |
| "draw_start_point" | "true" or "false" | ATTNAME.DRAW_START_POINT | true or false | |
| "draw_end_point" | "true" or "false" | ATTNAME.DRAW_END_POINT`` | true or false | |
| "light_direction" | "0.0 1.0 2.5" | ATTNAME_LIGHT_DIRECTION | 3 element space delimited vector | |
| "view_direction" | "0 0 1" | ATTNAME.VIEW_DIRECTION | 3 element space delimited vector | |
|
|
Shape Properties
|
|
Shape properties and their allowed values are:
|
< < |
| "Color", | "0.3 0.2 1.0" | Viewer.ATTNAME_COLOR | Color.getRGB() | Red,Green and Blue saturations as a number between 0.0 (none) and 1.0 (saturated). |
| "Transform" | (see above table) | Viewer.ATTNAME_TRANSFORM | A 16 element space delimited colum major transform matrix | If the matrix does not contain 16 elements the local transformation will be reset (_to what ?) |
| "Selected" | "" | Viewer.ATTNAME_SELECTED | Empty or null String | property value parmeter is unused. |
| "Visible" | "true" or "false" | Viewer.ATTNAME_VISIBLE | true or false | |
| "Normal_Mode" | "0" (normals off ) "1" (Normals on) "2" (Normals reversed) | Viewer.ATTNAME_NORMALMODE | IShape.NORMAL_OFF IShape.NORMAL.ON IShape.NORMAL_FLIP | |
|
> > |
| "color", | "-12345" | ATTNAME.COLOR | Color.getRGB() | an int whose bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue. |
| "transform" | (see above table) | ATTNAME.TRANSFORM | A 16 element space delimited colum major transform matrix | If the matrix does not contain 16 elements the local transformation will be reset (_to what ?) |
| "selected" | "" | ATTNAME.SELECTED | Empty or null String | property value parmeter is unused. |
| "visible" | "true" or "false" | ATTNAME.VISIBLE | true or false | |
| "normal_mode" | "0" (normals off ) "1" (Normals on) "2" (Normals reversed) | ATTNAME.NORMAL_MODE | IShape.NORMAL_OFF IShape.NORMAL.ON IShape.NORMAL_FLIP | |
|
|
Updated: 6 April 2006
|
|
ShapeViewer client commands
|
|
|
< < |
| loadUrl | Url | Url of a shape file or a shape scene file. | LoadUrl http://loni.ucla.edu/~qma/shape.ucf | |
| setViewerProperty | String attribute , String value | see table of arguments below | setViewerProperty Background_Color 1.0 0.0 1.0 | Sets display bacground to bright orange. |
| setShapeProperty | String shapeId, String name, String value | see table of arguments below | setShapeProperty ShapeID Normal_Mode 1 | Enables use of normals for shape ShapeID |
|
> > |
| addShape | url [,"true"/"false"] | Url of a shape file, Whether it is grid ucf | addShape("http://loni.ucla.edu/~qma/shapeviewer/FFFclrd.obj") | You may have to type command "clearViewer()" first to remove all loaded shapes, and you may have to type "fitViewer()" to make it visible thereafter |
| addScene | url | Url of a scene file | addScene("http://loni.ucla.edu/~qma/shapeviewer/sceneshapes/colormap.xml") | You may have to type command "clearViewer()" first to remove all loaded shapes |
| clearViewer | | | clearViewer() | to remove all loaded shapes |
| fitViewer | | | fitViewer() | to make new added shape visible |
| rotX | a double value of angle in radiant | | rotX(1.234) | to rotate view around X axis 1.234 |
| rotY | a double value of angle in radiant | | rotY(1.234) | to rotate view around Y axis 1.234 |
| rotZ | a double value of angle in radiant | | rotZ(1.234) | to rotate view around Z axis 1.234 |
| transformChanged | an 16 elments float array or a String which has 16 elements of float delimited by space | | transformChanged(newval) | to set current view transformation as newval |
| transformChangeBy | an 16 elments float array or a String which has 16 elements of float delimited by space | | transformChangeBy(val) | to set current view transformation as timing by val |
| setViewerProperty | String attribute , String value | see table of arguments below | setViewerProperty("background_color", "-1") | Sets display bacground to new color whose RGBA as int is -1, (Bits 24-31 are alpha, 16-23 are red, 8-15 are green, 0-7 are blue). |
| setShapeProperty | String shapeId, String attribute, String value | see table of arguments below | setShapeProperty("http://loni.ucla.edu/~qma/shapeviewer/FFFclrd.obj","visible", "true" | to make the shape loaded from the http visible |
|
|
Viewer Properties and Property Values
|
|
ShapeViewer client commands
|
< < |
Applies to ShapeViewer version: 1.1.0d9
Viewer Properties
set by command *setViewerProperty*(String property, String value )
| Java Viewer Property name | Text String | Property value(s) | String Values | Example |
| Viewer.ATTNAME_BACKGROUND_COLOR | "background_color", | Color.getRGB() | | |
| Viewer.ATTNAME_SHOW_MSGPANEL | "show_msg_pane", | "true" or "false" | | |
| Viewer.ATTNAME_DRAW_MODE | "Draw Mode" | - Viewer.LINESTRIP
- Viewer.SURFACE
- Viewer.SURFACE_FILL
- Viewer.POINTS
| 0 1 2 3 | |
| Viewer.ATTNAME_TRANSFORM | "Transform" | a 16 element space delimited transform column major array | | |
| Viewer.ATTNAME_DRAW_START_POINT | "Draw Start Point" | true false. | "true" "false" | |
| Viewer.ATTNAME_DRAW_END_POINT`` | "Draw End Point" | true false | "true" "false". | |
| Viewer.ATTNAME_LIGHT_DIRECTION | "Light Direction" | 3 element space delimited vector | | |
| Viewer.ATTNAME_VIEW_DIRECTION | "View Direction" | 3 element space delimited vector | | |
|
> > |
The ShapeViewer may be controlled by text string commands.
The following are the commands, and their allowed argument values, to which
the ShapeViewer responds.
|
|
|
> > |
Thsese commands apply to ShapeViewer version: 1.1.0d9
|
|
|
> > |
| Command | Arguments | Description | Example | Notes |
| loadUrl | Url | Url of a shape file or a shape scene file. | LoadUrl http://loni.ucla.edu/~qma/shape.ucf | |
| setViewerProperty | String attribute , String value | see table of arguments below | setViewerProperty Background_Color 1.0 0.0 1.0 | Sets display bacground to bright orange. |
| setShapeProperty | String shapeId, String name, String value | see table of arguments below | setShapeProperty ShapeID Normal_Mode 1 | Enables use of normals for shape ShapeID |
Viewer Properties and Property Values
(set by command setViewerProperty)
| String Property Name | String Property Values | Java Property name | Java Property value(s) | Note |
| "Background_Color", | "0.3 0.2 1.0" | Viewer.ATTNAME_BACKGROUND_COLOR | Color.getRGB() | Red,Green and Blue saturations as a number between 0.0 (none) and 1.0 (saturated). |
| "Show_Msg_Pane", | "true" or "false" | Viewer.ATTNAME_SHOW_MSGPANEL | true or false | |
| "Draw_Mode" | 0 (points) 1 (lines) 2 (surface) 3 (shaded, filled surface) | Viewer.ATTNAME_DRAW_MODE | Viewer.PONTS Viewer.LINESTRIP Viewer.SURFACE Viewer.SURFACE_FILL | |
| "Transform" | "1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0" | Viewer.ATTNAME_TRANSFORM | A 16 element space delimited transform column major array | Uses homogenous coordinates. Example string encodes the identity transform: 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 |
| "Draw_Start_Point" | "true" or "false" | Viewer.ATTNAME_DRAW_START_POINT | true or false | |
| "Draw_End_Point" | "true" or "false" | Viewer.ATTNAME_DRAW_END_POINT`` | true or false | |
| "Light_Direction" | "0.0 1.0 2.5" | Viewer.ATTNAME_LIGHT_DIRECTION | 3 element space delimited vector | |
| "View_Direction" | "0 0 1000" | Viewer.ATTNAME_VIEW_DIRECTION | 3 element space delimited vector | |
|
|
Shape Properties
|
< < |
Set by command *setShapeProperty*(String shapeId, String name, String value)
|
> > |
(set by command setShapeProperty)
|
|
*shapeId* is a String which identifies the shape whose properties will be set.
Shape properties and their allowed values are:
|
> > |
| String Property Name | String Property Values | Java Property name | Java Property value(s) | Note |
| "Color", | "0.3 0.2 1.0" | Viewer.ATTNAME_COLOR | Color.getRGB() | Red,Green and Blue saturations as a number between 0.0 (none) and 1.0 (saturated). |
| "Transform" | (see above table) | Viewer.ATTNAME_TRANSFORM | A 16 element space delimited colum major transform matrix | If the matrix does not contain 16 elements the local transformation will be reset (_to what ?) |
| "Selected" | "" | Viewer.ATTNAME_SELECTED | Empty or null String | property value parmeter is unused. |
| "Visible" | "true" or "false" | Viewer.ATTNAME_VISIBLE | true or false | |
| "Normal_Mode" | "0" (normals off ) "1" (Normals on) "2" (Normals reversed) | Viewer.ATTNAME_NORMALMODE | IShape.NORMAL_OFF IShape.NORMAL.ON IShape.NORMAL_FLIP | |
|
|
|
< < |
| Name | Value | Notes |
| Viewer.ATTNAME_COLOR or "Color". | Color.getRGB() |
| Viewer.ATTNAME_TRANSFORM or "Transform" | a 16 element space delimited colum major transform matrix | if the matrix does not contain 16 elements the local transformation will be reset to what ? |
| Viewer.ATTNAME_SELECTED or "Selected" | Empty or null String | unused |
| Viewer.ATTNAME_VISIBLE or "Visible" | "true" or "false". | |
| Viewer.ATTNAME_NORMALMODE or "Normalmode" | - IShape.NORMAL_OFF or "0"
- IShape.NORMAL.ON or "1"
- IShape.NORMAL_FLIP or "2"
| |
| One of the 4th dimension attribute name | String representing a color map. | |
|
|
|
< < |
Updated: 5 April 2006
|
> > |
Updated: 6 April 2006
|
|
|
|
ShapeViewer client commands
|
|
set by command *setViewerProperty*(String property, String value )
|
< < |
| Viewer Property name | Property value(s) |
| Viewer.ATTNAME_BACKGROUND_COLOR or "background_color", | Color.getRGB() | |
| Viewer.ATTNAME_SHOW_MSGPANEL or "show_msg_pane", | "true" or "false" |
| Viewer.ATTNAME_DRAW_MODE or "Draw Mode" | - Viewer.LINESTRIP or "0"
- Viewer.SURFACE or "1"
- Viewer.SURFACE_FILL or "2
- Viewer.POINTS or "3"
|
| Viewer.ATTNAME_TRANSFORM or "Transform" | a 16 element space delimited transform column major array |
| Viewer.ATTNAME_DRAW_START_POINT or "Draw Start Point", value is "true" or "false". |
| Viewer.ATTNAME_DRAW_END_POINT or "Draw End Point" | "true" or "false". |
| Viewer.ATTNAME_LIGHT_DIRECTION or "Light Direction" | 3 element space delimited vector |
| Viewer.ATTNAME_VIEW_DIRECTION or "View Direction" | 3 element space delimited vector |
|
> > |
| Java Viewer Property name | Text String | Property value(s) | String Values | Example |
| Viewer.ATTNAME_BACKGROUND_COLOR | "background_color", | Color.getRGB() | | |
| Viewer.ATTNAME_SHOW_MSGPANEL | "show_msg_pane", | "true" or "false" | | |
| Viewer.ATTNAME_DRAW_MODE | "Draw Mode" | - Viewer.LINESTRIP
- Viewer.SURFACE
- Viewer.SURFACE_FILL
- Viewer.POINTS
| 0 1 2 3 | |
| Viewer.ATTNAME_TRANSFORM | "Transform" | a 16 element space delimited transform column major array | | |
| Viewer.ATTNAME_DRAW_START_POINT | "Draw Start Point" | true false. | "true" "false" | |
| Viewer.ATTNAME_DRAW_END_POINT`` | "Draw End Point" | true false | "true" "false". | |
| Viewer.ATTNAME_LIGHT_DIRECTION | "Light Direction" | 3 element space delimited vector | | |
| Viewer.ATTNAME_VIEW_DIRECTION | "View Direction" | 3 element space delimited vector | | |
|
|
|
|
ShapeViewer client commands
|
< < |
Applies to ShapeViewer version: 1.1.0d2
|
> > |
Applies to ShapeViewer version: 1.1.0d9
|
|
|
> > |
| setViewerProperty | String attribute , String value | see table of arguments below | | |
| setShapeProperty | String shapeId, String name, String value | see table of arguments below | | |
|
|
|
< < |
Updated: 3 March 2006
|
> > |
Viewer Properties
set by command *setViewerProperty*(String property, String value )
| Viewer Property name | Property value(s) |
| Viewer.ATTNAME_BACKGROUND_COLOR or "background_color", | Color.getRGB() | |
| Viewer.ATTNAME_SHOW_MSGPANEL or "show_msg_pane", | "true" or "false" |
| Viewer.ATTNAME_DRAW_MODE or "Draw Mode" | - Viewer.LINESTRIP or "0"
- Viewer.SURFACE or "1"
- Viewer.SURFACE_FILL or "2
- Viewer.POINTS or "3"
|
| Viewer.ATTNAME_TRANSFORM or "Transform" | a 16 element space delimited transform column major array |
| Viewer.ATTNAME_DRAW_START_POINT or "Draw Start Point", value is "true" or "false". |
| Viewer.ATTNAME_DRAW_END_POINT or "Draw End Point" | "true" or "false". |
| Viewer.ATTNAME_LIGHT_DIRECTION or "Light Direction" | 3 element space delimited vector |
| Viewer.ATTNAME_VIEW_DIRECTION or "View Direction" | 3 element space delimited vector |
Shape Properties
Set by command *setShapeProperty*(String shapeId, String name, String value)
*shapeId* is a String which identifies the shape whose properties will be set.
Shape properties and their allowed values are:
| Name | Value | Notes |
| Viewer.ATTNAME_COLOR or "Color". | Color.getRGB() |
| Viewer.ATTNAME_TRANSFORM or "Transform" | a 16 element space delimited colum major transform matrix | if the matrix does not contain 16 elements the local transformation will be reset to what ? |
| Viewer.ATTNAME_SELECTED or "Selected" | Empty or null String | unused |
| Viewer.ATTNAME_VISIBLE or "Visible" | "true" or "false". | |
| Viewer.ATTNAME_NORMALMODE or "Normalmode" | - IShape.NORMAL_OFF or "0"
- IShape.NORMAL.ON or "1"
- IShape.NORMAL_FLIP or "2"
| |
| One of the 4th dimension attribute name | String representing a color map. | |
Updated: 5 April 2006
|
|
|