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
c2d71a68
Commit
c2d71a68
authored
Jul 17, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Function measure_window added
parent
03f3a198
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
4 deletions
+26
-4
xtt/lib/glow/src/glow_growapi.cpp
xtt/lib/glow/src/glow_growapi.cpp
+7
-1
xtt/lib/glow/src/glow_growapi.h
xtt/lib/glow/src/glow_growapi.h
+4
-1
xtt/lib/glow/src/glow_growctx.cpp
xtt/lib/glow/src/glow_growctx.cpp
+11
-1
xtt/lib/glow/src/glow_growctx.h
xtt/lib/glow/src/glow_growctx.h
+4
-1
No files found.
xtt/lib/glow/src/glow_growapi.cpp
View file @
c2d71a68
/*
/*
* Proview $Id: glow_growapi.cpp,v 1.3
7 2008-05-13 13:59
:03 claes Exp $
* Proview $Id: glow_growapi.cpp,v 1.3
8 2008-07-17 11:25
:03 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
* Copyright (C) 2005 SSAB Oxelsund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -531,6 +531,12 @@ void grow_MeasureNode( grow_tNode node, double *ll_x, double *ll_y,
...
@@ -531,6 +531,12 @@ void grow_MeasureNode( grow_tNode node, double *ll_x, double *ll_y,
((
GlowNode
*
)
node
)
->
measure
(
ll_x
,
ll_y
,
ur_x
,
ur_y
);
((
GlowNode
*
)
node
)
->
measure
(
ll_x
,
ll_y
,
ur_x
,
ur_y
);
}
}
void
grow_MeasureWindow
(
grow_tCtx
ctx
,
double
*
ll_x
,
double
*
ll_y
,
double
*
ur_x
,
double
*
ur_y
)
{
ctx
->
measure_window
(
ll_x
,
ll_y
,
ur_x
,
ur_y
);
}
void
grow_Print
(
grow_tCtx
ctx
,
char
*
filename
,
double
x0
,
double
x1
,
int
end
)
void
grow_Print
(
grow_tCtx
ctx
,
char
*
filename
,
double
x0
,
double
x1
,
int
end
)
{
{
ctx
->
print
(
filename
,
x0
,
x1
,
end
);
ctx
->
print
(
filename
,
x0
,
x1
,
end
);
...
...
xtt/lib/glow/src/glow_growapi.h
View file @
c2d71a68
/*
/*
* Proview $Id: glow_growapi.h,v 1.3
1 2008-05-13 13:59:03
claes Exp $
* Proview $Id: glow_growapi.h,v 1.3
2 2008-07-17 11:25:04
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
* Copyright (C) 2005 SSAB Oxelsund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -579,6 +579,9 @@ extern "C" {
...
@@ -579,6 +579,9 @@ extern "C" {
void
grow_MeasureNode
(
grow_tNode
node
,
double
*
ll_x
,
double
*
ll_y
,
void
grow_MeasureNode
(
grow_tNode
node
,
double
*
ll_x
,
double
*
ll_y
,
double
*
ur_x
,
double
*
ur_y
);
double
*
ur_x
,
double
*
ur_y
);
void
grow_MeasureWindow
(
grow_tCtx
ctx
,
double
*
ll_x
,
double
*
ll_y
,
double
*
ur_x
,
double
*
ur_y
);
//! Print context to postscript file.
//! Print context to postscript file.
void
grow_Print
(
grow_tCtx
ctx
,
char
*
filename
,
double
x0
,
double
x1
,
int
end
);
void
grow_Print
(
grow_tCtx
ctx
,
char
*
filename
,
double
x0
,
double
x1
,
int
end
);
...
...
xtt/lib/glow/src/glow_growctx.cpp
View file @
c2d71a68
/*
/*
* Proview $Id: glow_growctx.cpp,v 1.3
1 2008-05-13 13:59
:03 claes Exp $
* Proview $Id: glow_growctx.cpp,v 1.3
2 2008-07-17 11:25
:03 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
* Copyright (C) 2005 SSAB Oxelsund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -4349,3 +4349,13 @@ void GrowCtx::read_object( ifstream& fp, GlowArrayElem **o)
...
@@ -4349,3 +4349,13 @@ void GrowCtx::read_object( ifstream& fp, GlowArrayElem **o)
a
.
insert
(
n
);
a
.
insert
(
n
);
*
o
=
n
;
*
o
=
n
;
}
}
void
GrowCtx
::
measure_window
(
double
*
ll_x
,
double
*
ll_y
,
double
*
ur_x
,
double
*
ur_y
)
{
*
ll_x
=
double
(
mw
.
offset_x
)
/
mw
.
zoom_factor_x
;
*
ur_x
=
double
(
mw
.
offset_x
+
mw
.
window_width
)
/
mw
.
zoom_factor_x
;
*
ll_y
=
double
(
mw
.
offset_y
)
/
mw
.
zoom_factor_y
;
*
ur_y
=
double
(
mw
.
offset_y
+
mw
.
window_height
)
/
mw
.
zoom_factor_y
;
}
xtt/lib/glow/src/glow_growctx.h
View file @
c2d71a68
/*
/*
* Proview $Id: glow_growctx.h,v 1.1
6 2008-05-13 13:59
:03 claes Exp $
* Proview $Id: glow_growctx.h,v 1.1
7 2008-07-17 11:25
:03 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
* Copyright (C) 2005 SSAB Oxelsund AB.
*
*
* This program is free software; you can redistribute it and/or
* This program is free software; you can redistribute it and/or
...
@@ -822,6 +822,9 @@ class GrowCtx : public GlowCtx {
...
@@ -822,6 +822,9 @@ class GrowCtx : public GlowCtx {
//! Order object. */
//! Order object. */
int
order_object
(
GlowArrayElem
*
o
,
GlowArrayElem
*
dest
,
glow_eDest
code
)
{
return
a
.
move
(
o
,
dest
,
code
);}
int
order_object
(
GlowArrayElem
*
o
,
GlowArrayElem
*
dest
,
glow_eDest
code
)
{
return
a
.
move
(
o
,
dest
,
code
);}
void
measure_window
(
double
*
ll_x
,
double
*
ll_y
,
double
*
ur_x
,
double
*
ur_y
);
char
name
[
40
];
//!< Name of the context.
char
name
[
40
];
//!< Name of the context.
grow_eMode
edit_mode
;
//!< Current edit mode.
grow_eMode
edit_mode
;
//!< Current edit mode.
int
conpoint_num_cnt
;
//!< Counter to get next number for when creating conpoints in a subgraph.
int
conpoint_num_cnt
;
//!< Counter to get next number for when creating conpoints in a subgraph.
...
...
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