Representations

DrawAs Values

The "DrawAs" attribute value defines how an HepRepInstance will be represented on the screen. A "DrawAs" value may expect a number of points to be attached to the HepRepInstance as well as some attributes attached to the HepRepInstance or to its individual HepRepPoints.

The default "DrawAs" value is "Point" and represents any points attached to the HepRepInstance as points. Implementations may choose to draw a single pixel or a small square for better visibility.

The following table shows how "DrawAs" values are interpreted, how many HepRepPoints are to be attached to the HepRepInstance.

Any drawas value between parenthesis () is NOT implemented by WIRED 4 (yet).

DrawAs Value# of PointsBehaviour
Point (default)1*Draws a marker at every point.
Line2*Draws a line segment between all the points given.
(Helix)1*Draws one or more of helices.
Polygon3*Draws a (closed) polyline connecting the last point to the first point.
Circle1*Draws one or more circles centered around the given points.
Curve4+3nDraws a cubic-bezier curve for the given points.
Order of Points is as normally used for bezier curves.
First section of the curve needs 4 points: P0, CP0b, CP1a, P1 where P is Point and CP is Control Point.
Subsequent sections need sets of 3 points: CP1b, CP2a, P2 through CPn-1b, CPna, Pn.
Ellipse1*Draws one or more ellipses centered around the given points.
Ellipsoid1*Draws one or more ellipsoids centered around the given points.
Prism2nDraws a prism.
First half of the Points define inner face, second half define outer face.
Faces are connected from point 0 to point n/2, point 1 to point n/2+1, etc.
Cylinder2*Draws one or more cylinders or cones. Every end can have its own radius and angle.
EllipsePrism2*Draws one or more cylinders with elliptical ends.
Every end can have its own ellipse parameters.
Text0Draws text.
DrawAs Values and their meaning.

Attributes

The following table shows which HepRepAttributes are allowed (x) for a each DrawAs value and their defaults. Attributes are always optional since they have a default value, but sometimes the default value does not make much sense.

Any marker between parenthesis () is NOT implemented by WIRED 4 (yet).

DrawAs Value
------------
Attribute
Default
Value
P
o
i
n
t
L
i
n
e
H
e
l
i
x
P
o
l
y
g
o
n
C
i
r
c
l
e
C
u
r
v
e
E
l
l
i
p
s
e
E
l
l
i
p
s
o
i
d
P
r
i
s
m
C
y
l
i
n
d
e
r
E
l
l
i
p
s
e
P
r
i
s
m
T
e
x
t
Visibilitytruexx(x)xxxxxxxxx
Label""(x)(x)(x)(x)(x)(x)(x)(x)(x)(x)(x)(x)
FontName"SansSerif"x
FontStyle"Plain"x
FontSize12x
FontColorWhitex
FontHasFramefalsex
FontFrameWidth1.0x
FontFrameColorWhitex
FontHasBannerfalsex
FontBannerColorBlackx
ColorWhitexx(x)xxxxxxxxx
Layer"default"xx(x)xxxxxxxxx
MarkName"Circle"x
MarkSize5.0x
MarkSizeMultiplier1.0x
MarkType"Symbol"x
HasFrametruexx(x)xxxxxxxx
FrameColorBlackxx(x)xxxxxxxx
FrameWidth1.0xx(x)xxxxxxxx
LineStyle"Solid"(x)(x)(x)(x)(x)(x)(x)(x)(x)(x)(x)
LineWidth2.0xx(x)xxxxxxxx
LineWidthMultiplier1.0xx(x)xxxxxxxx
LineHasArrow"None"x(x)(x)
FillColorWhitexxxxxxxx
FillType"EvenOdd"(x)(x)(x)(x)(x)(x)(x)(x)
Fillfalsexxxxxxxx
Radius5.0xxxxx
Phi0.0xxxxx
Theta0.0xxxxx
Omega0.0xxx
Radius25.0xxx
Radius35.0x
Curvature0.2(x)
FlyLength10.0(x)
Faces4x
Text""x
HPos0.0x
VPos0.5x
HAlign"Left"x
VAlign"Baseline"x
IsPickabletruexx(x)xxxxxxxxx
ShowParentAttributesfalsexx(x)xxxxxxxxx
PickParentfalsexx(x)xxxxxxxxx
Necessary (x) and optional Attributes applicable to DrawAs values.