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
145b2825
Commit
145b2825
authored
Nov 24, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction of position
parent
551fcf61
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
23 deletions
+22
-23
xtt/lib/flow/src/flow_arc.cpp
xtt/lib/flow/src/flow_arc.cpp
+3
-3
xtt/lib/flow/src/flow_arrow.cpp
xtt/lib/flow/src/flow_arrow.cpp
+3
-3
xtt/lib/flow/src/flow_image.cpp
xtt/lib/flow/src/flow_image.cpp
+4
-4
xtt/lib/flow/src/flow_line.cpp
xtt/lib/flow/src/flow_line.cpp
+2
-2
xtt/lib/flow/src/flow_point.cpp
xtt/lib/flow/src/flow_point.cpp
+8
-8
xtt/lib/flow/src/flow_rect.cpp
xtt/lib/flow/src/flow_rect.cpp
+2
-3
No files found.
xtt/lib/flow/src/flow_arc.cpp
View file @
145b2825
...
...
@@ -31,9 +31,9 @@ void FlowArc::traverse( int x, int y)
void
FlowArc
::
print
(
void
*
pos
,
void
*
node
)
{
int
idx
=
int
(
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
line_width
-
1
)
;
idx
=
MAX
(
0
,
idx
);
double
idx
=
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
line_width
;
idx
=
MAX
(
0
.5
,
idx
);
idx
=
MIN
(
idx
,
DRAW_TYPE_SIZE
-
1
);
ctx
->
print_ps
->
arc
(
ll
.
print_z_x
+
((
FlowPoint
*
)
pos
)
->
print_z_x
,
ll
.
print_z_y
+
((
FlowPoint
*
)
pos
)
->
print_z_y
,
...
...
xtt/lib/flow/src/flow_arrow.cpp
View file @
145b2825
...
...
@@ -92,9 +92,9 @@ void FlowArrow::traverse( int x, int y)
void
FlowArrow
::
print
(
void
*
pos
,
void
*
node
)
{
int
idx
=
int
(
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
line_width
-
1
)
;
idx
=
MAX
(
0
,
idx
);
double
idx
=
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
line_width
;
idx
=
MAX
(
0
.5
,
idx
);
idx
=
MIN
(
idx
,
DRAW_TYPE_SIZE
-
1
);
ctx
->
print_ps
->
arrow
(
p_dest
.
print_z_x
+
((
FlowPoint
*
)
pos
)
->
print_z_x
,
...
...
xtt/lib/flow/src/flow_image.cpp
View file @
145b2825
...
...
@@ -23,12 +23,12 @@ int FlowImage::insert_image( char *imagefile)
strcpy
(
image_filename
,
imagefile
);
// Look for file in $pwrp_exe, $pwr_doc and $pwr_exe
// Look for file in $pwrp_exe, $pwr_doc
/orm
and $pwr_exe
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
switch
(
i
)
{
case
1
:
strcpy
(
filename
,
"$pwrp_exe/"
);
break
;
case
2
:
strcpy
(
filename
,
"$pwr_doc
/"
);
break
;
case
3
:
strcpy
(
filename
,
"$pwr_exe/"
);
break
;
case
0
:
strcpy
(
filename
,
"$pwrp_exe/"
);
break
;
case
1
:
strcpy
(
filename
,
"$pwr_doc/orm
/"
);
break
;
case
2
:
strcpy
(
filename
,
"$pwr_exe/"
);
break
;
}
strcat
(
filename
,
imagefile
);
dcli_translate_filename
(
filename
,
filename
);
...
...
xtt/lib/flow/src/flow_line.cpp
View file @
145b2825
...
...
@@ -32,8 +32,8 @@ void FlowLine::print( void *pos, void *node)
{
if
(
p1
.
print_z_x
==
p2
.
print_z_x
&&
p1
.
print_z_y
==
p2
.
print_z_y
)
return
;
int
idx
=
int
(
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
line_width
-
1
)
;
double
idx
=
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
line_width
;
idx
=
MAX
(
0
,
idx
);
idx
=
MIN
(
idx
,
DRAW_TYPE_SIZE
-
1
);
ctx
->
print_ps
->
line
(
p1
.
print_z_x
+
((
FlowPoint
*
)
pos
)
->
print_z_x
,
...
...
xtt/lib/flow/src/flow_point.cpp
View file @
145b2825
...
...
@@ -15,10 +15,10 @@ void FlowPoint::posit( double x1, double y1)
{
x
=
x1
;
y
=
y1
;
z_x
=
int
(
x
*
ctx
->
zoom_factor
);
z_y
=
int
(
y
*
ctx
->
zoom_factor
);
nav_z_x
=
int
(
x
*
ctx
->
nav_zoom_factor
);
nav_z_y
=
int
(
y
*
ctx
->
nav_zoom_factor
);
z_x
=
int
(
x
*
ctx
->
zoom_factor
+
0.5
);
z_y
=
int
(
y
*
ctx
->
zoom_factor
+
0.5
);
nav_z_x
=
int
(
x
*
ctx
->
nav_zoom_factor
+
0.5
);
nav_z_y
=
int
(
y
*
ctx
->
nav_zoom_factor
+
0.5
);
}
void
FlowPoint
::
posit_z
(
int
x1
,
int
y1
)
...
...
@@ -33,15 +33,15 @@ void FlowPoint::posit_z( int x1, int y1)
void
FlowPoint
::
zoom
()
{
z_x
=
int
(
x
*
ctx
->
zoom_factor
);
z_y
=
int
(
y
*
ctx
->
zoom_factor
);
z_x
=
int
(
x
*
ctx
->
zoom_factor
+
0.5
);
z_y
=
int
(
y
*
ctx
->
zoom_factor
+
0.5
);
current_zoom_factor
=
ctx
->
zoom_factor
;
}
void
FlowPoint
::
nav_zoom
()
{
nav_z_x
=
int
(
x
*
ctx
->
nav_zoom_factor
);
nav_z_y
=
int
(
y
*
ctx
->
nav_zoom_factor
);
nav_z_x
=
int
(
x
*
ctx
->
nav_zoom_factor
+
0.5
);
nav_z_y
=
int
(
y
*
ctx
->
nav_zoom_factor
+
0.5
);
}
void
FlowPoint
::
print_zoom
()
...
...
xtt/lib/flow/src/flow_rect.cpp
View file @
145b2825
...
...
@@ -37,9 +37,8 @@ void FlowRect::print( void *pos, void *node)
return
;
if
(
draw_type
==
flow_eDrawType_LineErase
)
return
;
int
idx
=
int
(
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
line_width
-
1
);
idx
=
MAX
(
0
,
idx
);
double
idx
=
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
line_width
;
idx
=
MAX
(
0.5
,
idx
);
idx
=
MIN
(
idx
,
DRAW_TYPE_SIZE
-
1
);
if
(
!
fill
)
ctx
->
print_ps
->
rect
(
ll
.
print_z_x
+
((
FlowPoint
*
)
pos
)
->
print_z_x
,
...
...
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