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
Show 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)
...
@@ -31,9 +31,9 @@ void FlowArc::traverse( int x, int y)
void
FlowArc
::
print
(
void
*
pos
,
void
*
node
)
void
FlowArc
::
print
(
void
*
pos
,
void
*
node
)
{
{
int
idx
=
int
(
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
double
idx
=
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
line_width
-
1
)
;
line_width
;
idx
=
MAX
(
0
,
idx
);
idx
=
MAX
(
0
.5
,
idx
);
idx
=
MIN
(
idx
,
DRAW_TYPE_SIZE
-
1
);
idx
=
MIN
(
idx
,
DRAW_TYPE_SIZE
-
1
);
ctx
->
print_ps
->
arc
(
ll
.
print_z_x
+
((
FlowPoint
*
)
pos
)
->
print_z_x
,
ctx
->
print_ps
->
arc
(
ll
.
print_z_x
+
((
FlowPoint
*
)
pos
)
->
print_z_x
,
ll
.
print_z_y
+
((
FlowPoint
*
)
pos
)
->
print_z_y
,
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)
...
@@ -92,9 +92,9 @@ void FlowArrow::traverse( int x, int y)
void
FlowArrow
::
print
(
void
*
pos
,
void
*
node
)
void
FlowArrow
::
print
(
void
*
pos
,
void
*
node
)
{
{
int
idx
=
int
(
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
double
idx
=
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
line_width
-
1
)
;
line_width
;
idx
=
MAX
(
0
,
idx
);
idx
=
MAX
(
0
.5
,
idx
);
idx
=
MIN
(
idx
,
DRAW_TYPE_SIZE
-
1
);
idx
=
MIN
(
idx
,
DRAW_TYPE_SIZE
-
1
);
ctx
->
print_ps
->
arrow
(
ctx
->
print_ps
->
arrow
(
p_dest
.
print_z_x
+
((
FlowPoint
*
)
pos
)
->
print_z_x
,
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)
...
@@ -23,12 +23,12 @@ int FlowImage::insert_image( char *imagefile)
strcpy
(
image_filename
,
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
++
)
{
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
switch
(
i
)
{
switch
(
i
)
{
case
1
:
strcpy
(
filename
,
"$pwrp_exe/"
);
break
;
case
0
:
strcpy
(
filename
,
"$pwrp_exe/"
);
break
;
case
2
:
strcpy
(
filename
,
"$pwr_doc
/"
);
break
;
case
1
:
strcpy
(
filename
,
"$pwr_doc/orm
/"
);
break
;
case
3
:
strcpy
(
filename
,
"$pwr_exe/"
);
break
;
case
2
:
strcpy
(
filename
,
"$pwr_exe/"
);
break
;
}
}
strcat
(
filename
,
imagefile
);
strcat
(
filename
,
imagefile
);
dcli_translate_filename
(
filename
,
filename
);
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)
...
@@ -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
)
if
(
p1
.
print_z_x
==
p2
.
print_z_x
&&
p1
.
print_z_y
==
p2
.
print_z_y
)
return
;
return
;
int
idx
=
int
(
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
double
idx
=
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
line_width
-
1
)
;
line_width
;
idx
=
MAX
(
0
,
idx
);
idx
=
MAX
(
0
,
idx
);
idx
=
MIN
(
idx
,
DRAW_TYPE_SIZE
-
1
);
idx
=
MIN
(
idx
,
DRAW_TYPE_SIZE
-
1
);
ctx
->
print_ps
->
line
(
p1
.
print_z_x
+
((
FlowPoint
*
)
pos
)
->
print_z_x
,
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)
...
@@ -15,10 +15,10 @@ void FlowPoint::posit( double x1, double y1)
{
{
x
=
x1
;
x
=
x1
;
y
=
y1
;
y
=
y1
;
z_x
=
int
(
x
*
ctx
->
zoom_factor
);
z_x
=
int
(
x
*
ctx
->
zoom_factor
+
0.5
);
z_y
=
int
(
y
*
ctx
->
zoom_factor
);
z_y
=
int
(
y
*
ctx
->
zoom_factor
+
0.5
);
nav_z_x
=
int
(
x
*
ctx
->
nav_zoom_factor
);
nav_z_x
=
int
(
x
*
ctx
->
nav_zoom_factor
+
0.5
);
nav_z_y
=
int
(
y
*
ctx
->
nav_zoom_factor
);
nav_z_y
=
int
(
y
*
ctx
->
nav_zoom_factor
+
0.5
);
}
}
void
FlowPoint
::
posit_z
(
int
x1
,
int
y1
)
void
FlowPoint
::
posit_z
(
int
x1
,
int
y1
)
...
@@ -33,15 +33,15 @@ void FlowPoint::posit_z( int x1, int y1)
...
@@ -33,15 +33,15 @@ void FlowPoint::posit_z( int x1, int y1)
void
FlowPoint
::
zoom
()
void
FlowPoint
::
zoom
()
{
{
z_x
=
int
(
x
*
ctx
->
zoom_factor
);
z_x
=
int
(
x
*
ctx
->
zoom_factor
+
0.5
);
z_y
=
int
(
y
*
ctx
->
zoom_factor
);
z_y
=
int
(
y
*
ctx
->
zoom_factor
+
0.5
);
current_zoom_factor
=
ctx
->
zoom_factor
;
current_zoom_factor
=
ctx
->
zoom_factor
;
}
}
void
FlowPoint
::
nav_zoom
()
void
FlowPoint
::
nav_zoom
()
{
{
nav_z_x
=
int
(
x
*
ctx
->
nav_zoom_factor
);
nav_z_x
=
int
(
x
*
ctx
->
nav_zoom_factor
+
0.5
);
nav_z_y
=
int
(
y
*
ctx
->
nav_zoom_factor
);
nav_z_y
=
int
(
y
*
ctx
->
nav_zoom_factor
+
0.5
);
}
}
void
FlowPoint
::
print_zoom
()
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)
...
@@ -37,9 +37,8 @@ void FlowRect::print( void *pos, void *node)
return
;
return
;
if
(
draw_type
==
flow_eDrawType_LineErase
)
if
(
draw_type
==
flow_eDrawType_LineErase
)
return
;
return
;
int
idx
=
int
(
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
line_width
-
double
idx
=
ctx
->
print_zoom_factor
/
ctx
->
base_zoom_factor
*
line_width
;
1
);
idx
=
MAX
(
0.5
,
idx
);
idx
=
MAX
(
0
,
idx
);
idx
=
MIN
(
idx
,
DRAW_TYPE_SIZE
-
1
);
idx
=
MIN
(
idx
,
DRAW_TYPE_SIZE
-
1
);
if
(
!
fill
)
if
(
!
fill
)
ctx
->
print_ps
->
rect
(
ll
.
print_z_x
+
((
FlowPoint
*
)
pos
)
->
print_z_x
,
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