|
||||||||||
| 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.ShapeLine
com.xj.anylogic.engine.presentation.Shape3DLine
public class Shape3DLine
Persistent 3D line shape. Also visible on 2D animation.
3D surface is actually an extrusion of an ordinary Line shape by
Z-Height amount along +Z axis.
| Field Summary |
|---|
| Fields inherited from class com.xj.anylogic.engine.presentation.Shape |
|---|
UNKNOWN_NAME |
| Constructor Summary | |
|---|---|
Shape3DLine()
Constructs a line with default attributes. |
|
Shape3DLine(boolean ispublic,
double x,
double y,
double z,
java.lang.Object color,
double dx,
double dy,
double dz,
double width,
double zHeight,
int style)
Constructs a line with specific attributes. |
|
| Method Summary | |
|---|---|
Shape3DLine |
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 line end and start points. |
double |
getEndZ()
Returns the z coordinate of the line end point. |
double |
getLength()
Returns the length of the line. |
Presentable |
getPresentable()
Returns the Presentable object (ActiveObject or Experiment) where this shape belongs to, or null. |
double |
getScaleZ()
Returns the scale of the shape along z axis |
double |
getZ()
Returns the z coordinate of the shape. |
double |
getZHeight()
Returns the height of the shape 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 |
setColor(java.awt.Color color)
Sets the color of the line. |
void |
setContextReference_xjal(Presentable contextReference)
This method is internal and shouldn't be accessed by user. |
void |
setDx(double dx)
Sets the difference of x coordinates of the line end and start points. |
void |
setDy(double dy)
Sets the difference of y coordinates of the line end and start points. |
void |
setDz(double dz)
Sets the difference of z coordinates of the line end and start points. |
void |
setEndX(double endx)
Sets the x coordinate of the line end point. |
void |
setEndY(double endy)
Sets the y coordinate of the line end point. |
void |
setEndZ(double endz)
Sets the z coordinate of the line end point. |
void |
setLineStyle(int style)
Does nothing: the only supported in 3D line style is solid |
void |
setLineWidth(double width)
Sets the width of the line, 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 shape |
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 x and y axes (z-scale isn't changed) |
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 figure |
void |
setZHeight(double zHeight)
Sets the height of the shape along Z-axis |
| Methods inherited from class com.xj.anylogic.engine.presentation.ShapeLine |
|---|
contains, draw, getColor, getDx, getDy, getEndX, getEndY, getLineStyle, getLineWidth, getTexture, onClickAt |
| 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.Segment2D |
|---|
getDx, getDy, getEndX, getEndY, getX, getY |
| Constructor Detail |
|---|
public Shape3DLine()
public Shape3DLine(boolean ispublic,
double x,
double y,
double z,
java.lang.Object color,
double dx,
double dy,
double dz,
double width,
double zHeight,
int style)
ispublic - if true, the shape is visible on container's presentationx - the x coordinate of the line start pointy - the y coordinate of the line start pointz - the z coordinate of the line start pointcolor - color (or Texture) of the linedx - the difference of x coordinates of the line end and start pointsdy - the difference of y coordinates of the line end and start pointsdz - the difference of z coordinates of the line end and start pointswidth - the line widthzHeight - the height of a line along Z-axisstyle - the line stroke style
(only solid is supported)| Method Detail |
|---|
public void setColor(java.awt.Color color)
setColor in class ShapeLinecolor - the new color, null = do not draw the linepublic void setDx(double dx)
setDx in class ShapeLinedx - the new difference of x coordinates of the line end and start pointspublic void setDy(double dy)
setDy in class ShapeLinedy - the new difference of y coordinates of the line end and start pointspublic void setDz(double dz)
dz - the new difference of z coordinates of the line end and start pointspublic double getDz()
getDz in interface Segment3Dpublic void setEndX(double endx)
setEndX in class ShapeLineendx - the new value of x coordinate of line endpublic void setEndY(double endy)
setEndY in class ShapeLineendy - the new value of y coordinate of line endpublic void setEndZ(double endz)
endz - the new value of z coordinate of line endpublic double getEndZ()
getEndZ in interface Segment3Dpublic double getLength()
getLength in class ShapeLinepublic void setLineWidth(double width)
setLineWidth in class ShapeLinewidth - the new width of the linepublic void setLineStyle(int style)
setLineStyle in class ShapeLinestyle - the new style of the linepublic Shape3DLine clone()
Shape
clone in class ShapeLinepublic 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 Locatable3DgetZ in interface Segment3Dpublic 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 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)
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 | |||||||||