public class AnnotationObjectList extends AttributeSubject
Constructor and Description |
---|
AnnotationObjectList() |
AnnotationObjectList(AnnotationObjectList obj) |
AnnotationObjectList(int nMoreFields) |
Modifier and Type | Method and Description |
---|---|
void |
AddAnnotation(AnnotationObject obj) |
void |
ClearAnnotations() |
boolean |
equals(AnnotationObjectList obj) |
java.util.Vector |
GetAnnotation() |
AnnotationObject |
GetAnnotation(int i) |
AnnotationObject |
GetAnnotation(java.lang.String name)
Returned the annotation object with the specified name
|
int |
GetNumAdditionalAttributes()
Returns the number of attributes added in this level of the state object.
|
int |
GetNumAnnotations() |
int |
Offset()
Returns the offset into the selected table where this state object's fields begin.
|
void |
ReadAtts(int index,
CommunicationBuffer buf)
Reads the specified index's data from the buffer into the object.
|
void |
RemoveAnnotation(int index) |
void |
SetImageOptions(java.lang.String annotName,
java.lang.String filename,
double x,
double y,
double xScale,
double yScale,
boolean scalesLinked,
ColorAttribute transColor,
boolean removeTransColor,
double opacity,
boolean visible)
Sets the options for the named image annotation object.
|
void |
SetLegendOptions(java.lang.String annotName,
boolean managePosition,
double x,
double y,
double scaleX,
double scaleY,
int numTicks,
boolean drawBox,
boolean drawLabels,
boolean horizontalLegend,
boolean alternateText,
boolean drawTitle,
boolean drawMinMax,
boolean controlTicks,
boolean minMaxInclusive,
boolean drawValues,
double fontHeight,
ColorAttribute textColor,
boolean useForegroundColor,
int fontFamily,
boolean bold,
boolean italic,
boolean shadow,
boolean visible) |
void |
SetLine2DOptions(java.lang.String annotName,
double x0,
double y0,
double x1,
double y1,
int lineWidth,
int startArrow,
int endArrow,
ColorAttribute color,
boolean useForegroundColor,
boolean visible)
Sets the options for the named 2D line annotation object.
|
void |
SetLine3DOptions(java.lang.String annotName,
double x0,
double y0,
double z0,
double x1,
double y1,
double z1,
int lineWidth,
int lineType,
int tubeQuality,
double tubeRadius,
boolean arrow1,
int arrow1Resolution,
double arrow1Radius,
double arrow1Height,
boolean arrow2,
int arrow2Resolution,
double arrow2Radius,
double arrow2Height,
ColorAttribute color,
boolean useForegroundColor,
boolean visible)
Sets the options for the named 3D line annotation object.
|
void |
SetText2DOptions(java.lang.String annotName,
double x,
double y,
double height,
java.lang.String text,
ColorAttribute textColor,
boolean useForegroundColor,
int fontFamily,
boolean bold,
boolean italic,
boolean shadow,
boolean visible)
Sets the options for the named 2D text annotation object.
|
void |
SetText3DOptions(java.lang.String annotName,
double x,
double y,
double z,
java.lang.String text,
boolean heightMode,
double fixedHeight,
int relativeHeight,
boolean facesCamera,
double rotX,
double rotY,
double rotZ,
ColorAttribute textColor,
boolean useForegroundColor,
boolean visible)
Sets the options for the named 3D text annotation object.
|
void |
SetTimeSliderOptions(java.lang.String annotName,
double x,
double y,
double width,
double height,
java.lang.String label,
java.lang.String timeFormat,
ColorAttribute startColor,
ColorAttribute endColor,
ColorAttribute textColor,
boolean useForegroundColor,
int timeDisplay,
boolean visible,
boolean rounded,
boolean shaded)
Sets the options for the named time slider annotation object.
|
java.lang.String |
toString(java.lang.String indent) |
void |
WriteAtts(CommunicationBuffer buf)
Writes the selected fields of the object to the buffer.
|
Attach, boolArrayToString, boolToString, boolVectorToString, Detach, doubleArrayToString, doubleToString, doubleVectorToString, floatArrayToString, floatToString, floatVectorToString, GetAttributeId, GetClassName, intArrayToString, intToString, intVectorToString, IsSelected, Notify, NumAttributes, NumAttributesSelected, Read, Select, SelectAll, SetAttributeId, stringToString, stringVectorToString, toString, ucharArrayToString, ucharToString, ucharVectorToString, UnSelectAll, Write, WriteSelect
public AnnotationObjectList()
public AnnotationObjectList(int nMoreFields)
public AnnotationObjectList(AnnotationObjectList obj)
public int Offset()
AttributeSubject
Offset
in class AttributeSubject
public int GetNumAdditionalAttributes()
AttributeSubject
GetNumAdditionalAttributes
in class AttributeSubject
public boolean equals(AnnotationObjectList obj)
public java.util.Vector GetAnnotation()
public void WriteAtts(CommunicationBuffer buf)
AttributeSubject
WriteAtts
in class AttributeSubject
buf
- The communication buffer to which the object will be written.public void ReadAtts(int index, CommunicationBuffer buf)
AttributeSubject
ReadAtts
in class AttributeSubject
buf
- The communication buffer to from which the object will be read.public java.lang.String toString(java.lang.String indent)
toString
in class AttributeSubject
public void AddAnnotation(AnnotationObject obj)
public void ClearAnnotations()
public void RemoveAnnotation(int index)
public int GetNumAnnotations()
public AnnotationObject GetAnnotation(int i)
public AnnotationObject GetAnnotation(java.lang.String name)
name
- Name of the annotation object we want to return.public void SetTimeSliderOptions(java.lang.String annotName, double x, double y, double width, double height, java.lang.String label, java.lang.String timeFormat, ColorAttribute startColor, ColorAttribute endColor, ColorAttribute textColor, boolean useForegroundColor, int timeDisplay, boolean visible, boolean rounded, boolean shaded)
annotName
- Name of the time slider annotation that we want to modify.x
- X location of the lower left corner in the visualization window [0.,1.]y
- Y location of the lower left corner in the visualization window [0.,1.]width
- Width of the annotation [0.,1.]height
- Height of the annotation [0.,1.]label
- Label to be used in the time slidertimeFormat
- C-style format string for the time number, such as "%1.3f"startColor
- Color used for the left progress part of the time slider.endColor
- Color used for the right part of the time slider progress.textColor
- Color used for the text if we're not using the fg color.useForegroundColor
- True to use the foreground color as the text colortimeDisplay
- 0=All frames, 1=Frames for plot, 2=States for plotvisible
- Whether the annotation is visible.rounded
- Whether the ends of the progress bar are roundedshaded
- Whether the progress bar is shadedpublic void SetText2DOptions(java.lang.String annotName, double x, double y, double height, java.lang.String text, ColorAttribute textColor, boolean useForegroundColor, int fontFamily, boolean bold, boolean italic, boolean shadow, boolean visible)
annotName
- Name of the 2D text annotation that we want to modify.x
- X location of the lower left corner in the visualization window [0.,1.]y
- Y location of the lower left corner in the visualization window [0.,1.]height
- Height of the annotation [0.,1.]text
- Text to be displayedtextColor
- Color used for the text if we're not using the fg color.useForegroundColor
- True to use the foreground color as the text colorfontFamily
- 0=Arial, 1=Courier, 2=Timesbold
- Whether the font is bolditalic
- Whether the font is italicshadow
- Whether the font has a shadow.visible
- Whether the annotation is visible.public void SetText3DOptions(java.lang.String annotName, double x, double y, double z, java.lang.String text, boolean heightMode, double fixedHeight, int relativeHeight, boolean facesCamera, double rotX, double rotY, double rotZ, ColorAttribute textColor, boolean useForegroundColor, boolean visible)
annotName
- Name of the 3D text annotation that we want to modify.x
- X location of the texty
- Y location of the textz
- Z location of the texttext
- Text to be displayedheightMode
- 0=fixed, 1=relativefixedHeight
- Height to use when heightMode==0relativeHeight
- Height to use when heightMode==1. Percent of original height [1,100]facesCamera
- Whether the text should face the camera.rotX
- X rotation in degrees.rotY
- Y rotation in degrees.rotZ
- Z rotation in degrees.textColor
- Color used for the text if we're not using the fg color.useForegroundColor
- True to use the foreground color as the text colorvisible
- Whether the annotation is visible.public void SetLine2DOptions(java.lang.String annotName, double x0, double y0, double x1, double y1, int lineWidth, int startArrow, int endArrow, ColorAttribute color, boolean useForegroundColor, boolean visible)
annotName
- Name of the 2D line annotation that we want to modify.x0
- X location of the start point in the visualization window [0.,1.]y0
- Y location of the start point in the visualization window [0.,1.]x1
- X location of the end point in the visualization window [0.,1.]y1
- Y location of the end point in the visualization window [0.,1.]lineWidth
- Width of the line.startArrow
- 0=None, 1=Line, 2=SolidendArrow
- 0=None, 1=Line, 2=Solidcolor
- Color used for the line if we're not using the fg color.useForegroundColor
- True to use the foreground color as the text colorvisible
- Whether the annotation is visible.public void SetLine3DOptions(java.lang.String annotName, double x0, double y0, double z0, double x1, double y1, double z1, int lineWidth, int lineType, int tubeQuality, double tubeRadius, boolean arrow1, int arrow1Resolution, double arrow1Radius, double arrow1Height, boolean arrow2, int arrow2Resolution, double arrow2Radius, double arrow2Height, ColorAttribute color, boolean useForegroundColor, boolean visible)
annotName
- Name of the 3D line annotation that we want to modify.x0
- X location of the start pointy0
- Y location of the start pointz0
- Z location of the start pointx1
- X location of the end pointy1
- Y location of the end pointz1
- Z location of the end pointlineWidth
- Width of the line.lineType
- 0=Line, 1=TubetubeQuality
- 0=Low, 1=Medium, 2=HightubeRadius
- radius for tubearrow1
- True to draw an arrow at the start pointarrow1Resolution
- number of sides for arrow1 [1..20]arrow1Radius
- radius for arrow1arrow1Height
- height for arrow1arrow2
- True to draw an arrow at the end pointarrow2Resolution
- number of sides for arrow2 [1..20]arrow2Radius
- radius for arrow2arrow2Height
- height for arrow2color
- Color used for the line if we're not using the fg color.useForegroundColor
- True to use the foreground color as the text colorvisible
- Whether the annotation is visible.public void SetImageOptions(java.lang.String annotName, java.lang.String filename, double x, double y, double xScale, double yScale, boolean scalesLinked, ColorAttribute transColor, boolean removeTransColor, double opacity, boolean visible)
annotName
- Name of the text annotation that we want to modify.filename
- Filename that contains the image.x
- X location of the start point in the visualization window [0.,1.]y
- Y location of the start point in the visualization window [0.,1.]xScale
- X scale.yScale
- Y scale.scalesLinked
- Keeps the scales linked.transColor
- The color to remove from the image so it becomes clear.removeTransColor
- Tells VisIt to remove the transparent color.opacity
- Overal opacity of the image.visible
- Whether the annotation is visible.public void SetLegendOptions(java.lang.String annotName, boolean managePosition, double x, double y, double scaleX, double scaleY, int numTicks, boolean drawBox, boolean drawLabels, boolean horizontalLegend, boolean alternateText, boolean drawTitle, boolean drawMinMax, boolean controlTicks, boolean minMaxInclusive, boolean drawValues, double fontHeight, ColorAttribute textColor, boolean useForegroundColor, int fontFamily, boolean bold, boolean italic, boolean shadow, boolean visible)