Package com.anylogic.engine.presentation
@AnyLogicInternalAPI public interface InternalCADFormat
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
- Author:
- AnyLogic North America, LLC https://anylogic.com
| Modifier and Type | Field | Description |
|---|---|---|
static final String | ANY_LOGIC_CAD_TITLE_PREFIX |
The first data stored in the internal AnyLogic CAD file
File format: <String>
ANY_LOGIC_CAD_TITLE_PREFIX + version<int> version<double> x0 coordinate of top-left corner<double> y0 coordinate of top-left corner<double> width of the CAD bounds<double> 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<byte> command... |
static final byte | CMD_CLOSE |
Path command.
|
static final byte | CMD_CUBICTO |
Path command.
|
static final byte | CMD_END |
End of CAD file
|
static final byte | CMD_LAYER |
Starts new layer.
Command contents: <String> layer name{ <byte> CMD_SET_COLOR<Color> default layer color| <byte> CMD_NO_COLOR} <int> number of paths |
static final byte | CMD_LINETO |
Path command.
|
static final byte | CMD_MOVETO |
Path command.
|
static final byte | CMD_NO_COLOR |
Sets null color.
|
static final byte | CMD_PATH_DRAW |
Starts new path which should be drawn
Command contents: <int> number of commands in the path |
static final byte | CMD_PATH_FILL |
Starts new path which should be filled, the same command contents as in
CMD_PATH_DRAW |
static final byte | CMD_QUADTO |
Path command.
|
static final byte | CMD_SET_COLOR | |
static final byte | CMD_SET_WINDING | |
static final int | CURRENT_VERSION |
static final String ANY_LOGIC_CAD_TITLE_PREFIX
The first data stored in the internal AnyLogic CAD file
File format:
[a sequence of commands stored as command id - byte - followed by command-specific contents] - see
...
File format:
<String>
ANY_LOGIC_CAD_TITLE_PREFIX + version<int> version<double> x0 coordinate of top-left corner<double> y0 coordinate of top-left corner<double> width of the CAD bounds<double> 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<byte> command...
- See Also:
- Constant Field Values
static final int CURRENT_VERSION
- See Also:
- Constant Field Values
static final byte CMD_LAYER
Starts new layer.
Command contents:
{
|
}
Command contents:
<String> layer name{
<byte> CMD_SET_COLOR<Color> default layer color|
<byte> CMD_NO_COLOR}
<int> number of paths- See Also:
- Constant Field Values
static final byte CMD_SET_COLOR
- See Also:
- Constant Field Values
static final byte CMD_SET_WINDING
- See Also:
- Constant Field Values
static final byte CMD_PATH_DRAW
Starts new path which should be drawn
Command contents:
Command contents:
<int> number of commands in the path- See Also:
- Constant Field Values
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
static final byte CMD_MOVETO
Path command. Contains:
<float> x<float> y- See Also:
- Constant Field Values
static final byte CMD_LINETO
Path command. Contains:
<float> x<float> y- See Also:
- Constant Field Values
static final byte CMD_QUADTO
Path command. Contains:
<float> x0<float> y0<float> x1<float> y1- See Also:
- Constant Field Values
static final byte CMD_CUBICTO
Path command. Contains:
<float> x0<float> y0<float> x1<float> y1<float> x2<float> y2- See Also:
- Constant Field Values
static final byte CMD_CLOSE
Path command. No contents.
- See Also:
- Constant Field Values
static final byte CMD_END
End of CAD file
- See Also:
- Constant Field Values
static final byte CMD_NO_COLOR
Sets null color. No contents.
- See Also:
- Constant Field Values