Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
c43a9324
Commit
c43a9324
authored
Apr 20, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes in 3.4 that had disapperad...
parent
8f1a7c74
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
xtt/lib/flow/src/flow_pscript.cpp
xtt/lib/flow/src/flow_pscript.cpp
+10
-10
xtt/lib/flow/src/flow_pscript.h
xtt/lib/flow/src/flow_pscript.h
+6
-6
No files found.
xtt/lib/flow/src/flow_pscript.cpp
View file @
c43a9324
...
...
@@ -100,12 +100,12 @@ int FlowPscript::print_page( double ll_x, double ll_y, double ur_x, double ur_y)
}
int
FlowPscript
::
rect
(
double
x
,
double
y
,
double
width
,
double
height
,
flow_eDrawType
type
,
int
idx
)
double
idx
)
{
if
(
type
==
flow_eDrawType_LineDashed
)
{
fprintf
(
file
,
"gsave
\n
"
);
fprintf
(
file
,
"[%
d %d
] %d setdash
\n
"
,
3
+
idx
,
3
+
idx
,
0
);
fprintf
(
file
,
"[%
f %f
] %d setdash
\n
"
,
3
+
idx
,
3
+
idx
,
0
);
}
else
if
(
type
==
flow_eDrawType_LineGray
)
{
...
...
@@ -130,7 +130,7 @@ int FlowPscript::rect( double x, double y, double width, double height, flow_eDr
}
int
FlowPscript
::
filled_rect
(
double
x
,
double
y
,
double
width
,
double
height
,
flow_eDrawType
type
,
int
idx
)
double
idx
)
{
if
(
type
==
flow_eDrawType_LineGray
)
{
...
...
@@ -155,7 +155,7 @@ int FlowPscript::filled_rect( double x, double y, double width, double height, f
}
int
FlowPscript
::
arc
(
double
x
,
double
y
,
double
width
,
double
height
,
int
angel1
,
int
angel2
,
flow_eDrawType
type
,
int
idx
)
flow_eDrawType
type
,
double
idx
)
{
double
r
=
0.5
*
width
;
double
pi
=
3.14159
;
...
...
@@ -163,7 +163,7 @@ int FlowPscript::arc( double x, double y, double width, double height, int angel
if
(
type
==
flow_eDrawType_LineDashed
)
{
fprintf
(
file
,
"gsave
\n
"
);
fprintf
(
file
,
"[%
d %d
] %d setdash
\n
"
,
3
+
idx
,
3
+
idx
,
0
);
fprintf
(
file
,
"[%
f %f
] %d setdash
\n
"
,
3
+
idx
,
3
+
idx
,
0
);
}
else
if
(
type
==
flow_eDrawType_LineGray
)
{
...
...
@@ -196,12 +196,12 @@ int FlowPscript::arc( double x, double y, double width, double height, int angel
}
int
FlowPscript
::
line
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
flow_eDrawType
type
,
int
idx
)
double
idx
)
{
if
(
type
==
flow_eDrawType_LineDashed
)
{
fprintf
(
file
,
"gsave
\n
"
);
fprintf
(
file
,
"[%
d %d
] %d setdash
\n
"
,
3
+
idx
,
3
+
idx
,
0
);
fprintf
(
file
,
"[%
f %f
] %d setdash
\n
"
,
3
+
idx
,
3
+
idx
,
0
);
}
else
if
(
type
==
flow_eDrawType_LineGray
)
{
...
...
@@ -312,7 +312,7 @@ int FlowPscript::pixmap( double x, double y, flow_sPixmapDataElem *data,
}
int
FlowPscript
::
arrow
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
double
x3
,
double
y3
,
flow_eDrawType
type
,
int
idx
)
double
x3
,
double
y3
,
flow_eDrawType
type
,
double
idx
)
{
if
(
type
==
flow_eDrawType_LineGray
)
...
...
@@ -342,8 +342,8 @@ void FlowPscript::move( double x, double y)
}
void
FlowPscript
::
setlinewidth
(
int
idx
)
void
FlowPscript
::
setlinewidth
(
double
idx
)
{
fprintf
(
file
,
"%
d setlinewidth
\n
"
,
1
+
idx
);
fprintf
(
file
,
"%
f setlinewidth
\n
"
,
idx
);
}
xtt/lib/flow/src/flow_pscript.h
View file @
c43a9324
...
...
@@ -9,17 +9,17 @@ class FlowPscript {
FlowPscript
(
char
*
filename
,
void
*
flow_ctx
,
int
page_border
,
int
*
sts
);
~
FlowPscript
();
int
print_page
(
double
ll_x
,
double
ll_y
,
double
ur_x
,
double
ur_y
);
int
rect
(
double
x
,
double
y
,
double
width
,
double
height
,
flow_eDrawType
type
,
int
idx
);
int
filled_rect
(
double
x
,
double
y
,
double
width
,
double
height
,
flow_eDrawType
type
,
int
idx
);
int
rect
(
double
x
,
double
y
,
double
width
,
double
height
,
flow_eDrawType
type
,
double
idx
);
int
filled_rect
(
double
x
,
double
y
,
double
width
,
double
height
,
flow_eDrawType
type
,
double
idx
);
int
arc
(
double
x
,
double
y
,
double
width
,
double
height
,
int
angel1
,
int
angel2
,
flow_eDrawType
type
,
int
idx
);
int
line
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
flow_eDrawType
type
,
int
idx
);
flow_eDrawType
type
,
double
idx
);
int
line
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
flow_eDrawType
type
,
double
idx
);
int
text
(
double
x
,
double
y
,
char
*
text
,
int
len
,
flow_eDrawType
type
,
int
size
);
int
pixmap
(
double
x
,
double
y
,
flow_sPixmapDataElem
*
data
,
flow_eDrawType
type
);
int
arrow
(
double
x1
,
double
y1
,
double
x2
,
double
y2
,
double
x3
,
double
y3
,
flow_eDrawType
type
,
int
idx
);
double
x3
,
double
y3
,
flow_eDrawType
type
,
double
idx
);
void
move
(
double
x
,
double
y
);
void
setlinewidth
(
int
idx
);
void
setlinewidth
(
double
idx
);
void
rowbreak
();
double
offset_x
;
double
offset_y
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment