|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mil.navy.nps.rra.PrintVRML
Utility methods used to build a VRML scene, each returning standard VRML node strings.
Specifically, PrintVRML sends VRML strings for various header, DirectionalLight, NavigationInfo, Viewpoint and legend-building PROTO nodes to standard output.
Contact: Don Brutzman (web.nps.navy.mil/~brutzman) brutzman@nps.navy.mil
15 Jan 98 | Timothy M. Holliday | New |
14 May 98 | Timothy M. Holliday | Added color and intensity schemes |
18 May 98 | Timothy M. Holliday | Added VRML colorBarView and textNode |
10 Oct 98 | Don Brutzman | Javadoc updates for jdk1.2b4
Fixed PROTO initialization/repetition problems |
26 April 99 | Don Brutzman | Javadoc updates for jdk1.2.1, revised some method names to match get/set naming convention. |
Bottom
,
Surface
,
SSP
,
Lobe
,
ExampleColorBar
,
ExampleLobeStatic
,
ExampleLobeDynamic
Field Summary | |
static int |
BLUE
|
static java.lang.String |
CENTER
|
static int |
CONSTANT
|
static int |
GREEN
|
static java.lang.String |
HORIZONTAL
|
static java.lang.String |
LEFT
|
static int |
LINEAR
|
int |
protoColorBarCount
|
static boolean |
protoLegendViewpointFirstInvocation
|
static int |
RAINBOW
|
static int |
RED
|
static java.lang.String |
RIGHT
|
static int |
TRICOLOR
|
static java.lang.String |
VERTICAL
|
Constructor Summary | |
PrintVRML()
|
Method Summary | |
java.lang.String |
colorBar(java.lang.String verticalLabel,
java.lang.String horizontalLabel,
java.lang.String detectionLabel,
java.lang.String counterDetectionLabel)
Produce colorbar; only includes detectionLabel and counterDetectionLabel if colorScheme is case TRICOLOR. |
boolean |
getAppendLineFeed()
Return what character is used for end-of-line. |
java.lang.String |
getBackground()
Return Background node with default values. |
java.lang.String |
getBackground(double r,
double g,
double b)
Return Background node with specified (r, g, b) values. |
java.lang.String |
getColor()
Return color value for current point based on color scheme. |
java.lang.String |
getColorBarViewpoint(java.lang.String title,
double x,
double y,
double z,
double xAxis,
double yAxis,
double zAxis,
double theta)
Return colorBar Viewpoint node, requires protoColorBar for initialization first. |
java.lang.String |
getLegendViewpoint(java.lang.String title,
java.lang.String info1,
java.lang.String info2,
java.lang.String info3,
java.lang.String info4,
java.lang.String info5,
double x,
double y,
double z)
Initialization prior to producing viewpoint for scene legend (color scales and description), by defining a PROTO node. |
java.lang.String |
getScaleGeometry(java.lang.String label,
double maximum,
double minimum,
double x,
double y,
double z,
double xAxis,
double yAxis,
double zAxis,
double theta,
int divisions)
Return VRML string for the in-scene spatial scale. |
java.lang.String |
getSceneHeader()
Return standard VRML file header, DirectionalLight, NavigationInfo. |
java.lang.String |
protoColorBar(java.lang.String verticalLabel,
java.lang.String horizontalLabel,
java.lang.String vSubLabel1,
java.lang.String vSubLabel2)
Return another sequentially numbered protoColorBar. |
void |
setAppendLineFeed(boolean pAppendLineFeed)
Specify whether linefeeds are appended to lines. |
void |
setColorScheme(int scheme)
Default stub to set counterdetection color scheme - needs work. |
void |
setColorScheme(int scheme,
double maximum,
double minimum)
User-selectable stub to set counterdetection color scheme - needs work. |
void |
setColorScheme(int scheme,
double maximum,
double detection,
double counterDetection,
double minimum)
User-selectable stub to set counterdetection color scheme - needs work. |
void |
setColorValue(double value)
Set color intensity if capped. |
void |
setIntensityScheme(int scheme)
User-selectable stub to set color intensity scheme, current values for scheme are LINEAR and CONSTANT - needs work. |
void |
setIntensityScheme(int scheme,
double maximum,
double minimum)
User-selectable stub to set color intensity scheme, current values for scheme are LINEAR and CONSTANT - needs work. |
void |
setIntensityValue(double value)
Intensity factor is multiplied against all color components. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final int RAINBOW
public static final int RED
public static final int GREEN
public static final int BLUE
public static final int TRICOLOR
public static final int CONSTANT
public static final int LINEAR
public static final java.lang.String HORIZONTAL
public static final java.lang.String VERTICAL
public static final java.lang.String RIGHT
public static final java.lang.String CENTER
public static final java.lang.String LEFT
public static boolean protoLegendViewpointFirstInvocation
public int protoColorBarCount
Constructor Detail |
public PrintVRML()
Method Detail |
public java.lang.String getSceneHeader()
public java.lang.String getBackground()
public java.lang.String getBackground(double r, double g, double b)
public java.lang.String getLegendViewpoint(java.lang.String title, java.lang.String info1, java.lang.String info2, java.lang.String info3, java.lang.String info4, java.lang.String info5, double x, double y, double z)
public java.lang.String protoColorBar(java.lang.String verticalLabel, java.lang.String horizontalLabel, java.lang.String vSubLabel1, java.lang.String vSubLabel2)
public java.lang.String getColorBarViewpoint(java.lang.String title, double x, double y, double z, double xAxis, double yAxis, double zAxis, double theta)
public void setAppendLineFeed(boolean pAppendLineFeed)
public boolean getAppendLineFeed()
public void setColorScheme(int scheme)
public void setColorScheme(int scheme, double maximum, double minimum)
public void setColorScheme(int scheme, double maximum, double detection, double counterDetection, double minimum)
public void setColorValue(double value)
public void setIntensityScheme(int scheme)
public void setIntensityScheme(int scheme, double maximum, double minimum)
public void setIntensityValue(double value)
public java.lang.String getColor()
public java.lang.String colorBar(java.lang.String verticalLabel, java.lang.String horizontalLabel, java.lang.String detectionLabel, java.lang.String counterDetectionLabel)
public java.lang.String getScaleGeometry(java.lang.String label, double maximum, double minimum, double x, double y, double z, double xAxis, double yAxis, double zAxis, double theta, int divisions)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |