![]() |
Driver SDK 4.2.0
|
#include <DriverInfo.h>
Public Attributes | |
| ExceptionCode(* | Initialize )(void *obj, ACPL::XML *jobDict, float dpuX, float dpuY, const char *settings) |
| void(* | Terminate )(void *obj, bool abort) |
| bool(* | ErrorToName )(ExceptionCode err, char *errorName) |
| void(* | AddPreview )(void *obj, const ACPL::UString &pathToBMP) |
| DirectState(* | DirectHome )(void *obj) |
| DirectState(* | DirectMove )(void *obj, float x, float y) |
| DirectState(* | DirectSetHome )(void *obj) |
| DirectState(* | DirectSizeQuery )(void *obj, PageRect &outSize) |
| DirectState(* | DirectPosQuery )(void *obj, float &outCoordX, float &outCoordY) |
| void(* | ObsoleteMethod )() |
| DirectState(* | DirectBarcodeQuery )(void *, ACPL::String &) |
| void(* | JobStart )(void *obj, const ACPL::UString &jobName, int32_t &copies, const TMediaSize &mediaSize, const TTray &tray, bool hasImageData, bool hasVectorData) |
| void(* | JobEnd )(void *obj) |
| void(* | PageRegistrationMarks )(void *obj, uint32_t nrOfPoints, const MarkerPosition *const points) |
| void(* | PageStart )(void *obj, uint32_t pageNr, char side, const ACPL::String &barcode, const TMediaSize &mediaSize, const TTray &tray, const PageRect &imagedRect, const ACPL::UString &metaPath) |
| bool(* | PageEnd )(void *obj, int16_t endOffset, InkUsagePtr &inkUsage) |
| void(* | PanelCut )(void *obj) |
| void(* | RasterStart )(void *obj, int32_t x, int32_t y, int32_t width, int32_t height) |
| void(* | RasterEnd )(void *obj) |
| void(* | ProcessRawBuffer )(void *obj, const uint8_t *planeData, int32_t dataBytes, uint8_t planeIdx) |
| void(* | VectorStart )(void *obj) |
| void(* | VectorEnd )(void *obj) |
| void(* | Move )(void *obj, int32_t x, int32_t y) |
| void(* | Line )(void *obj, int32_t x, int32_t y) |
| void(* | Vertex )(void *obj, int32_t x, int32_t y, bool last) |
| void(* | PenUp )(void *obj) |
| void(* | PenDown )(void *obj) |
| void(* | CurveStart )(void *obj) |
| void(* | CurveEnd )(void *obj) |
| void(* | SetTool )(void *obj, const char *settings) |
| void(* | HLMove )(void *obj, float x, float y, bool closed) |
| void(* | HLLine )(void *obj, float x, float y) |
| void(* | HLBezier )(void *obj, float x1, float y1, float x2, float y2, float x3, float y3) |
| void(* | CustomAction )(void *obj, int a, const char *b) |
| void(* | StartOnDemandJob )(void *obj, Imposition *jobParts, const ACPL::String &requestID, const ACPL::UString &jobName) |
| bool(* | RasterRepeat )(void *obj, uint32_t repeats) |
Session methods
The session method exported by the driver. The entries might be NULL and are thus not supported. This means the call can ommitted and the next call in the calling order should be executed (see below).
Definition at line 1008 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::AddPreview) (void *obj, const ACPL::UString &pathToBMP) |
Adds a preview to the page that has just been closed. The BMP is expected to be in 24 bits RGB.
| [in] | obj | Opaque driver reference |
| [in] | pathToBMP | Full path to the preview BMP that will be used as source of the preview. |
Definition at line 1050 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::CurveEnd) (void *obj) |
Marks the end of a series of line segments forming a curve.
| [in] | obj | Opaque driver reference |
Definition at line 1279 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::CurveStart) (void *obj) |
Marks the start of a series of line segments forming a curve.
| [in] | obj | Opaque driver reference |
Definition at line 1272 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::CustomAction) (void *obj, int a, const char *b) |
Obsolete function, kept here as placeholder
Definition at line 1332 of file DriverInfo.h.
| DirectState(* aur::ADA::DriverMethods::DirectBarcodeQuery) (void *, ACPL::String &) |
Definition at line 1095 of file DriverInfo.h.
| DirectState(* aur::ADA::DriverMethods::DirectHome) (void *obj) |
Performs a direct home of the head without opening a job and page. The commands are directly flushed and thus performed. These commands are used to implement remote control of cutting heads for example.
| [in] | obj | Opaque driver reference |
Definition at line 1058 of file DriverInfo.h.
| DirectState(* aur::ADA::DriverMethods::DirectMove) (void *obj, float x, float y) |
Performs a direct move of the head without opening a job and page. The commands are directly flushed and thus performed. These commands are used to implement remote control of cutting heads for example.
| [in] | obj | Opaque driver reference |
| [in] | x | X coordinate in AOI units |
| [in] | y | Y coordinate in AOI units |
Definition at line 1068 of file DriverInfo.h.
| DirectState(* aur::ADA::DriverMethods::DirectPosQuery) (void *obj, float &outCoordX, float &outCoordY) |
Queries the current position of the head. The commands are directly flushed and thus performed. There is no need to open a job or a page.
| [in] | obj | Opaque driver reference |
| [out] | outCoord | Coordinate that receives the head position. |
Definition at line 1093 of file DriverInfo.h.
| DirectState(* aur::ADA::DriverMethods::DirectSetHome) (void *obj) |
Sets the new home position of the head to the current position. The commands are directly flushed and thus performed. These commands are used to implement remote control of cutting heads for example.
| [in] | obj | Opaque driver reference |
Definition at line 1076 of file DriverInfo.h.
| DirectState(* aur::ADA::DriverMethods::DirectSizeQuery) (void *obj, PageRect &outSize) |
Queries the size of the currently loaded media. The commands are directly flushed and thus performed. There is no need to open a job or a page. If the device uses a different protocol or returns more than only the size then use the exported DLL method PrinterStatus.
| [in] | obj | Opaque driver reference |
| [out] | outSize | Rectangle that receives the media size. |
Definition at line 1085 of file DriverInfo.h.
| bool(* aur::ADA::DriverMethods::ErrorToName) (ExceptionCode err, char *errorName) |
Converts an error code to a readeable description.
| [in] | err | The error to translate |
| [out] | errorName | String of 256 characters long that will receive the description. |
Definition at line 1043 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::HLBezier) (void *obj, float x1, float y1, float x2, float y2, float x3, float y3) |
Draws a bezier from the current point of the plot and makes x3,y3 the current point.
Only valid when Caps::highlevel flag is set
| obj | Opaque driver reference |
| x1 | X coordinate in AOI units of the first Bezier handle |
| y1 | Y coordinate in AOI units of the first Bezier handle |
| x2 | X coordinate in AOI units of the second Bezier handle |
| y2 | Y coordinate in AOI units of the second Bezier handle |
| x3 | X coordinate in AOI units of the Bezier end point |
| y3 | Y coordinate in AOI units of the Bezier end point |
Definition at line 1328 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::HLLine) (void *obj, float x, float y) |
Draws a line from the current point of the plot to the given coordinate and makes it the current point.
Only valid when Caps::highlevel flag is set
| [in] | obj | Opaque driver reference |
| [in] | x | X coordinate in AOI units |
| [in] | y | Y coordinate in AOI units |
Definition at line 1313 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::HLMove) (void *obj, float x, float y, bool closed) |
Moves the current point of the plot to the given coordinate.
Only valid when Caps::highlevel flag is set
| [in] | obj | Opaque driver reference |
| [in] | x | X coordinate in AOI units |
| [in] | y | Y coordinate in AOI units |
| [in] | closed | True when the path that is about to start is closed, false if it is open |
Definition at line 1302 of file DriverInfo.h.
| ExceptionCode(* aur::ADA::DriverMethods::Initialize) (void *obj, ACPL::XML *jobDict, float dpuX, float dpuY, const char *settings) |
Starts a session. Initialized the driver with the settings to be used. Many drivers will open the communication channel during this call. This the only method that will return an error. Other methods will throw a C++ exception of the type ExceptionCode.
| [in] | obj | Opaque driver reference |
| [in] | jobDict | XML containing the job (ticket). This maybe be NULL. The driver can use information from the job and may write additional private or public data in the job. |
| [in] | dpuX | Horizontal resolution of the halftone data that will be provided in AOI units. |
| [in] | dpuY | Vertical resolution of the halftone data that will be provided in AOI units. |
| [in] | settings | Settings XML containing the settings extracted from the XML based UI. |
Definition at line 1027 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::JobEnd) (void *obj) |
Ends the job on the device. Can only be called after all pages are send and a job is open.
| [in] | obj | Opaque driver reference |
Definition at line 1117 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::JobStart) (void *obj, const ACPL::UString &jobName, int32_t &copies, const TMediaSize &mediaSize, const TTray &tray, bool hasImageData, bool hasVectorData) |
Start a job on the device. A job can contain more than 1 pages. This call must be paired with JobEnd after all pages are send.
| [in] | obj | Opaque driver reference |
| [in] | jobName | Name of the job |
| [in] | copies | Number of copies. When the device has internal copy facilities the copies should be set to 0 before returning. |
| [in] | mediaSize | Media size to be used. The media size must be respecting the margins and sizes set by the tray. |
| [in] | tray | Tray to be used. This needs to be a copy of a TTray entry returned bij DriverInfo. |
| [in] | hasImageData | Flag that indicates if the job contains image data (a print) |
| [in] | hasVectorData | Flag that indicates if the job contains vector data (contour cut) |
Definition at line 1110 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::Line) (void *obj, int32_t x, int32_t y) |
Draws a line from the current point of the plot to the given coordinate and makes it the current point.
| [in] | obj | Opaque driver reference |
| [in] | x | X coordinate in DriverInfo::steps |
| [in] | y | Y coordinate in DriverInfo::steps |
Definition at line 1242 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::Move) (void *obj, int32_t x, int32_t y) |
Moves the current point of the plot to the given coordinate.
| [in] | obj | Opaque driver reference |
| [in] | x | X coordinate in DriverInfo::steps |
| [in] | y | Y coordinate in DriverInfo::steps |
Definition at line 1233 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::ObsoleteMethod) () |
Definition at line 1094 of file DriverInfo.h.
| bool(* aur::ADA::DriverMethods::PageEnd) (void *obj, int16_t endOffset, InkUsagePtr &inkUsage) |
Ends the page, a page must be open.
| [in] | obj | Opaque driver reference |
| [in] | endOffset | Location where the (cutting) head must go when the page is finished:
|
| [out] | InkUsagePtr | Amount of ink used at this page, when null is returned no reporting is done. When ink reports are available the names of the ink do not need to match the inkset (when the printer has internal separation or fixation fluids, etc). The values are expressed in ml. |
Definition at line 1166 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::PageRegistrationMarks) (void *obj, uint32_t nrOfPoints, const MarkerPosition *const points) |
Passed the list of registration mark positions if present.
| [in] | obj | Opaque driver reference |
| [in] | nrOfPoints | Number of registration points. The array points is expected to contain nrOfPoints values |
| [in] | points | Array of MarkerPositions in AOI units, containing nrOfPoints elements. |
Definition at line 1125 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::PageStart) (void *obj, uint32_t pageNr, char side, const ACPL::String &barcode, const TMediaSize &mediaSize, const TTray &tray, const PageRect &imagedRect, const ACPL::UString &metaPath) |
Start a page on the device. This call must be paired with PageEnd. A call to JobStart must preceed this call.
| [in] | obj | Opaque driver reference |
| [in] | pageNr | 1 based page number, sides are not counted as additional pages |
| [in] | side | Page side indicator:
|
| [in] | barcode | Barcode identifying this page. When no barcode is provided then this is empty. The barcode is identical for the printed page and the cut page that is associated. |
| [in] | mediaSize | Media size to be used. The media size must be respecting the margins and sizes set by the tray. |
| [in] | tray | Tray to be used. This needs to be a copy of a TTray entry returned bij DriverInfo. |
| [in] | imagedRect | Area of the page filled by the data to come expressed on AOI units where the origin is the top left corner of the imageable area. |
| [in] | metaPath | Path to the META info XML of the page being started. |
Definition at line 1146 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::PanelCut) (void *obj) |
Invokes the roll cutter of the printer.
| [in] | obj | Opaque driver reference |
Definition at line 1172 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::PenDown) (void *obj) |
Instructs the plotter to lower the tool/pen.
| [in] | obj | Opaque driver reference |
Definition at line 1265 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::PenUp) (void *obj) |
Instructs the plotter to raise the tool/pen.
| [in] | obj | Opaque driver reference |
Definition at line 1259 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::ProcessRawBuffer) (void *obj, const uint8_t *planeData, int32_t dataBytes, uint8_t planeIdx) |
Processes 1 plane of a line of the image. The driver expect all planes of a line even if they are empty, so for a CMYK print 4 calls to this method are required to process 1 line. The provided halftone data must be truncated so that no white exists on the right side of the plane. When this is not done the printing efficiency might go down. It is allow to pass a NULL pointer when the data length is 0.
| [in] | obj | Opaque driver reference |
| [in] | planeData | Pointer to the halftoned data of 1 plane. |
| [in] | dataBytes | Number of bytes of halftone data. |
| [in] | planeIdx | Channel number to which this plane data refers |
Definition at line 1207 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::RasterEnd) (void *obj) |
Ends a print on the device.
| [in] | obj | Opaque driver reference |
Definition at line 1193 of file DriverInfo.h.
| bool(* aur::ADA::DriverMethods::RasterRepeat) (void *obj, uint32_t repeats) |
When this method is available the driver is able to internally repeat the raster vertically. If this method is not available a repeat of 1 is assumed.
| [in] | obj | Opaque driver reference |
| [in] | repeats | The number of repeats of the raster area vertically. The RasterStart width/height parameters define the size of the first tile. |
Definition at line 1356 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::RasterStart) (void *obj, int32_t x, int32_t y, int32_t width, int32_t height) |
Starts a print on the device. Only one call to RasterStart is allowed per page.
| [in] | obj | Opaque driver reference |
| [in] | x | Left offset in pixels relative to the imageble area of the printer. |
| [in] | y | Top offset in pixels relative to the imageble area of the printer. |
| [in] | width | Width of the print in pixels. |
| [in] | height | Height of the print in pixels. |
Definition at line 1186 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::SetTool) (void *obj, const char *settings) |
Instructs the plotter to select the specified tool as defined by the passed driver setting.
| [in] | obj | Opaque driver reference |
| [in] | settings | Settings XML containing the settings extracted from the XML based UI for the tool to be selected. |
Definition at line 1288 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::StartOnDemandJob) (void *obj, Imposition *jobParts, const ACPL::String &requestID, const ACPL::UString &jobName) |
Start a job on the device. A job can contain more than 1 pages. This call must be paired with JobEnd() after all pages are sent with PageAvailable().
| [in] | obj | Opaque driver reference |
| [in] | jobParts | The container with all the job parts that will be further printed individually. This is needed by the driver to reconstruct the job layout. |
| [in] | requestID | The ID of the request that comes from the device. This will be re-sent by the driver to the device alongside the processed information. |
| [in] | jobName | Name of the job |
Definition at line 1345 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::Terminate) (void *obj, bool abort) |
Terminates/closes the session of the driver.
| [in] | obj | Opaque driver reference |
| [in] | abort | True when the current connection and output needs to be aborted. False when a gracefull close and exit is requested. |
Definition at line 1035 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::VectorEnd) (void *obj) |
Ends a plot on the device.
| [in] | obj | Opaque driver reference |
Definition at line 1225 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::VectorStart) (void *obj) |
Starts a plot on the device. A plot can be drawing, cutting, routing or engraving. Only one call to VectorStart is allowed per page.
| [in] | obj | Opaque driver reference |
Definition at line 1218 of file DriverInfo.h.
| void(* aur::ADA::DriverMethods::Vertex) (void *obj, int32_t x, int32_t y, bool last) |
Draws a line from the current point of the plot to the given coordinate and makes it the current point. This line segment is originated from a curve (Bezier, B-spline or other)
| [in] | obj | Opaque driver reference |
| [in] | x | X coordinate in DriverInfo::steps |
| [in] | y | Y coordinate in DriverInfo::steps |
| [in] | last | True when this is the last line segment of the curve. |
Definition at line 1252 of file DriverInfo.h.