|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.presentation.Shape
com.xj.anylogic.engine.presentation.ShapeLineFill
com.xj.anylogic.engine.presentation.ShapeOval
com.xj.anylogic.engine.presentation.ShapeArc
com.xj.anylogic.engine.presentation.Shape3DArc
public class Shape3DArc
Persistent 3D arc shape. Also visible on 2D animation.
3D surface is actually an extrusion of an ordinary Arc shape (lying in the
horizontal plane, with center at (x, y, z)) by
Z-Height amount along +Z axis.
| Field Summary |
|---|
| Fields inherited from class com.xj.anylogic.engine.presentation.Shape |
|---|
UNKNOWN_NAME |
| Constructor Summary | |
|---|---|
Shape3DArc()
Constructs a 3D arc with default attributes. |
|
Shape3DArc(boolean ispublic,
double x,
double y,
double z,
double rotation,
java.lang.Object lineColor,
java.lang.Object fillColor,
double radiusX,
double radiusY,
double zHeight,
double dz,
double angleStart,
double angle,
double lineWidth,
int lineStyle)
Constructs a 3D arc with specific attributes. |
|
Shape3DArc(boolean ispublic,
double x,
double y,
double z,
double rotation,
java.lang.Object lineColor,
java.lang.Object fillColor,
double radiusX,
double radiusY,
double zHeight,
double angleStart,
double angle,
double lineWidth,
int lineStyle)
Deprecated. This constructor is obsolete and will be removed in future releases. Please use constructor Shape3DArc(boolean, double, double, double, double, Object, Object, double, double, double, double, double, double, double, int) |
|
| Method Summary | |
|---|---|
Shape3DArc |
clone()
Creates and returns a copy of this shape (i.e. new shape instance). |
Element3D_xjal |
get3DElement_xjal()
This method is internal and shouldn't be accessed by user. |
double |
getDz()
Returns the difference of z coordinates of the arc end and start points. |
Presentable |
getPresentable()
Returns the Presentable object (ActiveObject or Experiment) where this shape belongs to, or null. |
double |
getRadiusX()
Returns the radius of the arc along X-axis. |
double |
getRadiusY()
Returns the radius of the arc along Y-axis. |
double |
getScaleZ()
Returns the scale of the shape along z axis |
double |
getZ()
Returns the z coordinate of the arc base. |
double |
getZHeight()
Returns the height of the arc along Z-axis |
double |
getZOffset()
Returns the offset from z coordinate of the location base. |
void |
set3DElement_xjal(Element3D_xjal element3D)
This method is internal and shouldn't be accessed by user. |
void |
setAngle(double angle)
Sets the the angular extent of the arc in radians, clockwise. |
void |
setAngleStart(double angleStart)
Sets the starting angle of the arc (0 means 3 o'clock) in radians, clockwise. |
void |
setContextReference_xjal(Presentable contextReference)
This method is internal and shouldn't be accessed by user. |
void |
setDz(double dz)
Sets the difference of z coordinates of the arc end and start points. |
void |
setFillColor(java.lang.Object fillColor)
Sets the fill color (or Texture) of the shape. |
void |
setLineColor(java.lang.Object lineColor)
Sets the line color (or Texture) of the shape. |
void |
setLineStyle(int style)
Does nothing: the only supported in 3D line style is solid |
void |
setLineWidth(double width)
Sets the line width of the shape, 0 means thinnest possible |
void |
setPos(double x,
double y)
Sets (x, y) coordinates of the shape. |
void |
setPos(double x,
double y,
double z)
Sets coordinates of the base arc center |
void |
setRadius(double radius)
Sets both radiuses of the oval to the same given value, i.e. makes it a circle. |
void |
setRadiusX(double radiusX)
Sets the radius of the arc along X-axis. |
void |
setRadiusY(double radiusY)
Sets the radius of the arc along Y-axis. |
void |
setRotation(double rotation)
Sets the rotation of the shape. |
void |
setScale(double scale)
Sets the scale of the shape along all the axes |
void |
setScale(double sx,
double sy)
Sets the scales of the shape along both axes |
void |
setScaleX(double sx)
Sets the scale of the shape along x axis |
void |
setScaleY(double sy)
Sets the scale of the shape along y axis |
void |
setScaleZ(double sz)
Sets the scale of the shape along z axis |
void |
setVisible(boolean visible)
Sets the visibility of the shape. |
void |
setX(double x)
Sets the x coordinate of the shape |
void |
setY(double y)
Sets the y coordinate of the shape |
void |
setZ(double z)
Sets the z coordinate of the arc base |
void |
setZHeight(double zHeight)
Sets the height of the arc along Z-axis |
| Methods inherited from class com.xj.anylogic.engine.presentation.ShapeArc |
|---|
contains, draw, getAngle, getAngleStart, onClickAt |
| Methods inherited from class com.xj.anylogic.engine.presentation.ShapeLineFill |
|---|
getFillColor, getFillTexture, getLineColor, getLineStyle, getLineTexture, getLineWidth, setFillColor, setLineColor |
| Methods inherited from class com.xj.anylogic.engine.presentation.Shape |
|---|
canHandleClick, getGroup, getName, getRotation, getScaleX, getScaleY, getX, getY, isVisible, onClick, restoreOwner |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.xj.anylogic.engine.Locatable2D |
|---|
getX, getY |
| Constructor Detail |
|---|
public Shape3DArc()
@Deprecated
public Shape3DArc(boolean ispublic,
double x,
double y,
double z,
double rotation,
java.lang.Object lineColor,
java.lang.Object fillColor,
double radiusX,
double radiusY,
double zHeight,
double angleStart,
double angle,
double lineWidth,
int lineStyle)
Shape3DArc(boolean, double, double, double, double, Object, Object, double, double, double, double, double, double, double, int)
public Shape3DArc(boolean ispublic,
double x,
double y,
double z,
double rotation,
java.lang.Object lineColor,
java.lang.Object fillColor,
double radiusX,
double radiusY,
double zHeight,
double dz,
double angleStart,
double angle,
double lineWidth,
int lineStyle)
ispublic - if true, the shape is visible on container's presentationx - the x coordinate of the arc centery - the y coordinate of the arc centerz - the z coordinate of the arc centerrotation - the rotation of the arc in radianslineColor - line color (or Texture) of the arcfillColor - fill color (or Texture) of the arcradiusX - the radius of the arc along X-axisradiusY - the radius of the arc along Y-axiszHeight - the height of the arc along Z-axisdz - the difference of z coordinates of the arc end and start pointsangleStart - the starting angle of the arc (0 means 3 o'clock) in radians, clockwiseangle - the angular extent of the arc in radians, clockwiselineWidth - the line width of the arclineStyle - the line stroke style of the arc
(only solid is supported)| Method Detail |
|---|
public Shape3DArc clone()
Shape
clone in class ShapeArcpublic void setX(double x)
Shape
setX in class Shapex - the new value of x coordinatepublic void setY(double y)
Shape
setY in class Shapey - the new value of y coordinatepublic void setZ(double z)
z - the new value of z coordinatepublic double getZ()
getZ in interface Locatable3Dpublic double getZOffset()
Locatable3DgetZHeight() for
some 3D shapes
getZOffset in interface Locatable3Dpublic void setZHeight(double zHeight)
zHeight - the new value of z-heightpublic double getZHeight()
public void setDz(double dz)
dz - the new difference of z coordinates of the arc end and start pointspublic double getDz()
public void setRadiusX(double radiusX)
setRadiusX in class ShapeOvalradiusX - the radius of the arc along X-axispublic double getRadiusX()
getRadiusX in class ShapeOvalpublic void setRadiusY(double radiusY)
setRadiusY in class ShapeOvalradiusY - the radius of the arc along Y-axispublic double getRadiusY()
getRadiusY in class ShapeOvalpublic void setRadius(double radius)
ShapeOval
setRadius in class ShapeOvalradius - the circle radiuspublic void setAngleStart(double angleStart)
ShapeArc
setAngleStart in class ShapeArcangleStart - the starting angle of the arcpublic void setAngle(double angle)
ShapeArc
setAngle in class ShapeArcangle - the the angular extent of the arcpublic void setLineWidth(double width)
ShapeLineFill
setLineWidth in class ShapeLineFillwidth - the new line width of the shapepublic void setLineStyle(int style)
setLineStyle in class ShapeLineFillstyle - the new style of the shapepublic void setLineColor(java.lang.Object lineColor)
ShapeLineFillTexture) of the shape.
setLineColor in class ShapeLineFilllineColor - the new line color, null = do not draw the shape linepublic void setFillColor(java.lang.Object fillColor)
ShapeLineFillTexture) of the shape.
setFillColor in class ShapeLineFillfillColor - the new fill color, null = do not fill the shape
public void setPos(double x,
double y)
setPos in class Shapex - the new value of x coordinatey - the new value of y coordinate
public void setPos(double x,
double y,
double z)
x - the new value of x coordinatey - the new value of y coordinatez - the new value of z coordinatepublic void setScale(double scale)
setScale in class Shapescale - the new value of scale, 1 = keep original size
public void setScale(double sx,
double sy)
Shape
setScale in class Shapesx - the new value of scale along x axis, 1 = keep original sizesy - the new value of scale along y axis, 1 = keep original sizepublic void setScaleX(double sx)
Shape
setScaleX in class Shapesx - the new value of scale along x axis, 1 = keep original sizepublic void setScaleY(double sy)
Shape
setScaleY in class Shapesy - the new value of scale along y axis, 1 = keep original sizepublic void setScaleZ(double sz)
sz - the new value of scale along z axis, 1 = keep original sizepublic double getScaleZ()
public void setRotation(double rotation)
Shape
setRotation in class Shaperotation - the new value of rotation in radianspublic void setVisible(boolean visible)
Shape
setVisible in class Shapevisible - visibility: true - visible, false - notpublic Presentable getPresentable()
Shape
getPresentable in interface com.xj.anylogic.engine.internal.presentation.WorldObject3D_xjalgetPresentable in class Shapepublic Element3D_xjal get3DElement_xjal()
com.xj.anylogic.engine.internal.presentation.Accessor3D_xjal
get3DElement_xjal in interface com.xj.anylogic.engine.internal.presentation.Accessor3D_xjalpublic void set3DElement_xjal(Element3D_xjal element3D)
com.xj.anylogic.engine.internal.presentation.Accessor3D_xjal
set3DElement_xjal in interface com.xj.anylogic.engine.internal.presentation.Accessor3D_xjalpublic void setContextReference_xjal(Presentable contextReference)
com.xj.anylogic.engine.internal.presentation.WorldObject3D_xjal
setContextReference_xjal in interface com.xj.anylogic.engine.internal.presentation.WorldObject3D_xjal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||