hi there,
i'm working on a project to communicate with cutting plotters for cutting out vectorized data. we now would want to integrate a printing / cutting preview. instead of drawing everything on our own, we simply would want to pass the data (line from, line to) to some object that produces the output.
we could also provide the data in HPGL format if needed.
I had a look on the printpreview class and that’s not really good, because I can't find any direct function for passing data in the described way into it. also it needs a document size (which we don’t have with cutting
plotters)
do you know anything? maybe I only misunderstood the class?
special print preview
-
- Earned some good credits
- Posts: 122
- Joined: Fri Jun 10, 2005 8:34 am
- Location: Austria
- Contact:
special print preview
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GB/CS/CM/IT !d++ s+:-- a-- C++++$ UBL*++++$ P--- L++++$ !E-- !W+++$? !N-- !o K--? w++()$ !O M$ !V !PS? !PE? !Y? !PGP !t !5 !X R+++ tv++ !b? DI D++ G e+++ h++ r++ y+
------END GEEK CODE BLOCK------
Version: 3.1
GB/CS/CM/IT !d++ s+:-- a-- C++++$ UBL*++++$ P--- L++++$ !E-- !W+++$? !N-- !o K--? w++()$ !O M$ !V !PS? !PE? !Y? !PGP !t !5 !X R+++ tv++ !b? DI D++ G e+++ h++ r++ y+
------END GEEK CODE BLOCK------
-
- I live to help wx-kind
- Posts: 192
- Joined: Fri Dec 22, 2006 9:17 am
- Location: Germany
- Contact:
-
- Earned some good credits
- Posts: 122
- Joined: Fri Jun 10, 2005 8:34 am
- Location: Austria
- Contact:
not really. we only grab data from vectorized files (AI, EPS, PS ...) and store it in our own structuresextreme001 wrote:Do you have an example of that output?instead of drawing everything on our own, we simply would want to pass the data (line from, line to) to some object that produces the output.
Code: Select all
struct sPoint
{
int iX;
int iY;
char cState;
}
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GB/CS/CM/IT !d++ s+:-- a-- C++++$ UBL*++++$ P--- L++++$ !E-- !W+++$? !N-- !o K--? w++()$ !O M$ !V !PS? !PE? !Y? !PGP !t !5 !X R+++ tv++ !b? DI D++ G e+++ h++ r++ y+
------END GEEK CODE BLOCK------
Version: 3.1
GB/CS/CM/IT !d++ s+:-- a-- C++++$ UBL*++++$ P--- L++++$ !E-- !W+++$? !N-- !o K--? w++()$ !O M$ !V !PS? !PE? !Y? !PGP !t !5 !X R+++ tv++ !b? DI D++ G e+++ h++ r++ y+
------END GEEK CODE BLOCK------
-
- Earned some good credits
- Posts: 122
- Joined: Fri Jun 10, 2005 8:34 am
- Location: Austria
- Contact:
we dont allow printing, we just need a preview for our cutting hardware. thats diffrent to a printer - we dont have endpoints here
how do you mean a layer? a layer supporting to convert our data to what? which class?
how do you mean a layer? a layer supporting to convert our data to what? which class?
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GB/CS/CM/IT !d++ s+:-- a-- C++++$ UBL*++++$ P--- L++++$ !E-- !W+++$? !N-- !o K--? w++()$ !O M$ !V !PS? !PE? !Y? !PGP !t !5 !X R+++ tv++ !b? DI D++ G e+++ h++ r++ y+
------END GEEK CODE BLOCK------
Version: 3.1
GB/CS/CM/IT !d++ s+:-- a-- C++++$ UBL*++++$ P--- L++++$ !E-- !W+++$? !N-- !o K--? w++()$ !O M$ !V !PS? !PE? !Y? !PGP !t !5 !X R+++ tv++ !b? DI D++ G e+++ h++ r++ y+
------END GEEK CODE BLOCK------
-
- Earned some good credits
- Posts: 122
- Joined: Fri Jun 10, 2005 8:34 am
- Location: Austria
- Contact:
I'm currently trying to use the printing facility that wx provides, but i'm facing a problem: when i want to change the document size.
i use this:
but the document size doesnt get affected at all. any ideas? is there an other place to set the document size so that its also shown in the preview?
i use this:
Code: Select all
MyPrintout::MyPrintout()
:wxPrintout( "Test" )
{
wxPrintout::SetPageSizeMM(10,10);
}
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GB/CS/CM/IT !d++ s+:-- a-- C++++$ UBL*++++$ P--- L++++$ !E-- !W+++$? !N-- !o K--? w++()$ !O M$ !V !PS? !PE? !Y? !PGP !t !5 !X R+++ tv++ !b? DI D++ G e+++ h++ r++ y+
------END GEEK CODE BLOCK------
Version: 3.1
GB/CS/CM/IT !d++ s+:-- a-- C++++$ UBL*++++$ P--- L++++$ !E-- !W+++$? !N-- !o K--? w++()$ !O M$ !V !PS? !PE? !Y? !PGP !t !5 !X R+++ tv++ !b? DI D++ G e+++ h++ r++ y+
------END GEEK CODE BLOCK------