AnyLogic
Expand
Font size

@AnyLogicInternalAPI
public interface InternalCADFormat
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
Author:
AnyLogic North America, LLC https://anylogic.com

Field Summary

Modifier and TypeFieldDescription
static final StringANY_LOGIC_CAD_TITLE_PREFIX
The first data stored in the internal AnyLogic CAD file
File format:
&ltString&gt ANY_LOGIC_CAD_TITLE_PREFIX + version
&ltint&gt version
&ltdouble&gt x0 coordinate of top-left corner
&ltdouble&gt y0 coordinate of top-left corner
&ltdouble&gt width of the CAD bounds
&ltdouble&gt height of the CAD bounds
[a sequence of commands stored as command id - byte - followed by command-specific contents] - see CMD_* constants of this class
&ltbyte&gt command
...
static final byteCMD_CLOSE
Path command.
static final byteCMD_CUBICTO
Path command.
static final byteCMD_END
End of CAD file
static final byteCMD_LAYER
Starts new layer.
Command contents:
&ltString&gt layer name
{
&ltbyte&gt CMD_SET_COLOR
&ltColor&gt default layer color
|
&ltbyte&gt CMD_NO_COLOR
}
&ltint&gt number of paths
static final byteCMD_LINETO
Path command.
static final byteCMD_MOVETO
Path command.
static final byteCMD_NO_COLOR
Sets null color.
static final byteCMD_PATH_DRAW
Starts new path which should be drawn
Command contents:
&ltint&gt number of commands in the path
static final byteCMD_PATH_FILL
Starts new path which should be filled, the same command contents as in CMD_PATH_DRAW
static final byteCMD_QUADTO
Path command.
static final byteCMD_SET_COLOR
Sets new color.
Command contents:
&ltint&gt color value (see Color.getRGB())
static final byteCMD_SET_WINDING
Sets new winding rule.
Command contents:
&ltint&gt int value of PathIterator.getWindingRule()
static final intCURRENT_VERSION 

Field Details

ANY_LOGIC_CAD_TITLE_PREFIX

static final String ANY_LOGIC_CAD_TITLE_PREFIX
The first data stored in the internal AnyLogic CAD file
File format:
&ltString&gt ANY_LOGIC_CAD_TITLE_PREFIX + version
&ltint&gt version
&ltdouble&gt x0 coordinate of top-left corner
&ltdouble&gt y0 coordinate of top-left corner
&ltdouble&gt width of the CAD bounds
&ltdouble&gt height of the CAD bounds
[a sequence of commands stored as command id - byte - followed by command-specific contents] - see CMD_* constants of this class
&ltbyte&gt command
...
See Also:
Constant Field Values

CURRENT_VERSION

static final int CURRENT_VERSION
See Also:
Constant Field Values

CMD_LAYER

static final byte CMD_LAYER
Starts new layer.
Command contents:
&ltString&gt layer name
{
&ltbyte&gt CMD_SET_COLOR
&ltColor&gt default layer color
|
&ltbyte&gt CMD_NO_COLOR
}
&ltint&gt number of paths
See Also:
Constant Field Values

CMD_SET_COLOR

static final byte CMD_SET_COLOR
Sets new color.
Command contents:
&ltint&gt color value (see Color.getRGB())
See Also:
Constant Field Values

CMD_SET_WINDING

static final byte CMD_SET_WINDING
Sets new winding rule.
Command contents:
&ltint&gt int value of PathIterator.getWindingRule()
See Also:
Constant Field Values

CMD_PATH_DRAW

static final byte CMD_PATH_DRAW
Starts new path which should be drawn
Command contents:
&ltint&gt number of commands in the path
See Also:
Constant Field Values

CMD_PATH_FILL

static final byte CMD_PATH_FILL
Starts new path which should be filled, the same command contents as in CMD_PATH_DRAW
See Also:
Constant Field Values

CMD_MOVETO

static final byte CMD_MOVETO
Path command. Contains:
&ltfloat&gt x
&ltfloat&gt y
See Also:
Constant Field Values

CMD_LINETO

static final byte CMD_LINETO
Path command. Contains:
&ltfloat&gt x
&ltfloat&gt y
See Also:
Constant Field Values

CMD_QUADTO

static final byte CMD_QUADTO
Path command. Contains:
&ltfloat&gt x0
&ltfloat&gt y0
&ltfloat&gt x1
&ltfloat&gt y1
See Also:
Constant Field Values

CMD_CUBICTO

static final byte CMD_CUBICTO
Path command. Contains:
&ltfloat&gt x0
&ltfloat&gt y0
&ltfloat&gt x1
&ltfloat&gt y1
&ltfloat&gt x2
&ltfloat&gt y2
See Also:
Constant Field Values

CMD_CLOSE

static final byte CMD_CLOSE
Path command. No contents.
See Also:
Constant Field Values

CMD_END

static final byte CMD_END
End of CAD file
See Also:
Constant Field Values

CMD_NO_COLOR

static final byte CMD_NO_COLOR
Sets null color. No contents.
See Also:
Constant Field Values