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
3749b49d
Commit
3749b49d
authored
Jan 17, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export flow added
parent
30abb32f
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
360 additions
and
19 deletions
+360
-19
xtt/lib/glow/src/glow_array.cpp
xtt/lib/glow/src/glow_array.cpp
+7
-1
xtt/lib/glow/src/glow_array.h
xtt/lib/glow/src/glow_array.h
+3
-1
xtt/lib/glow/src/glow_array_elem.h
xtt/lib/glow/src/glow_array_elem.h
+3
-1
xtt/lib/glow/src/glow_exportflow.cpp
xtt/lib/glow/src/glow_exportflow.cpp
+201
-0
xtt/lib/glow/src/glow_exportflow.h
xtt/lib/glow/src/glow_exportflow.h
+54
-0
xtt/lib/glow/src/glow_growapi.cpp
xtt/lib/glow/src/glow_growapi.cpp
+6
-1
xtt/lib/glow/src/glow_growapi.h
xtt/lib/glow/src/glow_growapi.h
+2
-1
xtt/lib/glow/src/glow_growarc.cpp
xtt/lib/glow/src/glow_growarc.cpp
+7
-1
xtt/lib/glow/src/glow_growarc.h
xtt/lib/glow/src/glow_growarc.h
+4
-1
xtt/lib/glow/src/glow_growconpoint.cpp
xtt/lib/glow/src/glow_growconpoint.cpp
+7
-1
xtt/lib/glow/src/glow_growconpoint.h
xtt/lib/glow/src/glow_growconpoint.h
+5
-1
xtt/lib/glow/src/glow_growctx.cpp
xtt/lib/glow/src/glow_growctx.cpp
+9
-1
xtt/lib/glow/src/glow_growctx.h
xtt/lib/glow/src/glow_growctx.h
+7
-1
xtt/lib/glow/src/glow_growline.cpp
xtt/lib/glow/src/glow_growline.cpp
+7
-1
xtt/lib/glow/src/glow_growline.h
xtt/lib/glow/src/glow_growline.h
+5
-1
xtt/lib/glow/src/glow_growrect.cpp
xtt/lib/glow/src/glow_growrect.cpp
+7
-1
xtt/lib/glow/src/glow_growrect.h
xtt/lib/glow/src/glow_growrect.h
+6
-1
xtt/lib/glow/src/glow_growsubannot.cpp
xtt/lib/glow/src/glow_growsubannot.cpp
+6
-1
xtt/lib/glow/src/glow_growsubannot.h
xtt/lib/glow/src/glow_growsubannot.h
+2
-1
xtt/lib/glow/src/glow_growtext.cpp
xtt/lib/glow/src/glow_growtext.cpp
+7
-1
xtt/lib/glow/src/glow_growtext.h
xtt/lib/glow/src/glow_growtext.h
+5
-1
No files found.
xtt/lib/glow/src/glow_array.cpp
View file @
3749b49d
/*
* Proview $Id: glow_array.cpp,v 1.1
1 2007-09-19 15:07:11
claes Exp $
* Proview $Id: glow_array.cpp,v 1.1
2 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -62,6 +62,7 @@
#include "glow_growfolder.h"
#include "glow_growtable.h"
#include "glow_growxycurve.h"
#include "glow_exportflow.h"
#include "glow_msg.h"
#include "co_cdh.h"
...
...
@@ -1789,4 +1790,9 @@ void GlowArray::set_linetype( glow_eLineType type)
a
[
i
]
->
set_linetype
(
type
);
}
void
GlowArray
::
export_flow
(
GlowExportFlow
*
ef
)
{
ef
->
array
(
this
);
}
xtt/lib/glow/src/glow_array.h
View file @
3749b49d
/*
* Proview $Id: glow_array.h,v 1.
4 2007-01-04 07:57:38
claes Exp $
* Proview $Id: glow_array.h,v 1.
5 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -39,6 +39,7 @@
*/
class
GrowCtx
;
class
GlowExportFlow
;
class
GlowArray
{
public:
...
...
@@ -224,6 +225,7 @@ class GlowArray {
void
convert
(
glow_eConvert
version
);
void
set_rootnode
(
void
*
node
);
void
set_linetype
(
glow_eLineType
type
);
void
export_flow
(
GlowExportFlow
*
ef
);
friend
class
GlowNodeClass
;
friend
class
GlowCtx
;
...
...
xtt/lib/glow/src/glow_array_elem.h
View file @
3749b49d
/*
* Proview $Id: glow_array_elem.h,v 1.
9 2007-09-19 15:07:11
claes Exp $
* Proview $Id: glow_array_elem.h,v 1.
10 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -32,6 +32,7 @@
/*@{*/
class
GlowWind
;
class
GlowExportFlow
;
//! Virtual base class for all drawing objects and components.
/*! A GlowArrayElem object can be inserted in a GlowArray vector, which contains all the
...
...
@@ -191,6 +192,7 @@ class GlowArrayElem {
virtual
void
set_linetype
(
glow_eLineType
type
)
{};
virtual
void
set_input_focus
(
int
focus
)
{};
virtual
int
get_java_name
(
char
*
name
)
{
return
0
;}
virtual
void
export_flow
(
GlowExportFlow
*
ef
)
{};
virtual
~
GlowArrayElem
()
{};
};
...
...
xtt/lib/glow/src/glow_exportflow.cpp
0 → 100644
View file @
3749b49d
/*
* Proview $Id: glow_exportflow.cpp,v 1.1 2008-01-17 14:17:05 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with the program, if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**/
#include "glow_std.h"
#include <iostream.h>
#include <float.h>
#include <ctype.h>
#include <math.h>
#include <stdlib.h>
#include "glow_growctx.h"
#include "glow_growrect.h"
#include "glow_growline.h"
#include "glow_growconpoint.h"
#include "glow_growtext.h"
#include "glow_growsubannot.h"
#include "glow_growarc.h"
#include "glow_exportflow.h"
#include "flow.h"
#define FLOW_SCALE 0.05
int
GlowExportFlow
::
export_flow
(
char
*
filename
)
{
char
nc_name
[
80
];
char
*
s
;
if
(
(
s
=
strrchr
(
filename
,
':'
)))
strcpy
(
nc_name
,
s
+
1
);
else
if
(
(
s
=
strrchr
(
filename
,
'/'
)))
strcpy
(
nc_name
,
s
+
1
);
else
strcpy
(
nc_name
,
filename
);
if
(
(
s
=
strrchr
(
nc_name
,
'.'
)))
*
s
=
0
;
fp
.
open
(
filename
);
// Save as NodeClass
fp
<<
int
(
flow_eSave_NodeClass
)
<<
endl
;
fp
<<
int
(
flow_eSave_NodeClass_nc_name
)
<<
FSPACE
<<
nc_name
<<
endl
;
fp
<<
int
(
flow_eSave_NodeClass_a
)
<<
endl
;
ctx
->
a
.
export_flow
(
this
);
fp
<<
int
(
flow_eSave_NodeClass_group
)
<<
FSPACE
<<
int
(
glow_eNodeGroup_Common
)
<<
endl
;
fp
<<
int
(
flow_eSave_NodeClass_no_con_obstacle
)
<<
FSPACE
<<
ctx
->
no_con_obstacle
<<
endl
;
fp
<<
int
(
flow_eSave_End
)
<<
endl
;
fp
.
close
();
return
1
;
}
void
GlowExportFlow
::
array
(
GlowArray
*
o
)
{
int
i
;
fp
<<
int
(
flow_eSave_Array
)
<<
endl
;
for
(
i
=
0
;
i
<
o
->
a_size
;
i
++
)
{
if
(
o
->
a
[
i
]
->
type
()
!=
glow_eObjectType_Con
)
o
->
a
[
i
]
->
export_flow
(
this
);
}
fp
<<
int
(
flow_eSave_End
)
<<
endl
;
}
void
GlowExportFlow
::
rect
(
GrowRect
*
o
)
{
flow_eDrawType
draw_type
=
flow_eDrawType_Line
;
if
(
o
->
draw_type
>=
20
&&
o
->
draw_type
<
60
)
draw_type
=
flow_eDrawType_LineGray
;
fp
<<
int
(
flow_eSave_Rect
)
<<
endl
;
fp
<<
int
(
flow_eSave_Rect_draw_type
)
<<
FSPACE
<<
int
(
draw_type
)
<<
endl
;
fp
<<
int
(
flow_eSave_Rect_line_width
)
<<
FSPACE
<<
o
->
line_width
<<
endl
;
fp
<<
int
(
flow_eSave_Rect_display_level
)
<<
FSPACE
<<
int
(
o
->
display_level
)
<<
endl
;
fp
<<
int
(
flow_eSave_Rect_ll
)
<<
endl
;
point
(
&
o
->
ll
,
&
o
->
trf
);
fp
<<
int
(
flow_eSave_Rect_ur
)
<<
endl
;
point
(
&
o
->
ur
,
&
o
->
trf
);
fp
<<
int
(
flow_eSave_End
)
<<
endl
;
}
void
GlowExportFlow
::
line
(
GrowLine
*
o
)
{
flow_eDrawType
draw_type
=
flow_eDrawType_Line
;
if
(
o
->
draw_type
>=
20
&&
o
->
draw_type
<
60
)
draw_type
=
flow_eDrawType_LineGray
;
fp
<<
int
(
flow_eSave_Line
)
<<
endl
;
fp
<<
int
(
flow_eSave_Line_draw_type
)
<<
FSPACE
<<
int
(
draw_type
)
<<
endl
;
fp
<<
int
(
flow_eSave_Line_line_width
)
<<
FSPACE
<<
o
->
line_width
<<
endl
;
fp
<<
int
(
flow_eSave_Line_p1
)
<<
endl
;
point
(
&
o
->
p1
,
&
o
->
trf
);
fp
<<
int
(
flow_eSave_Line_p2
)
<<
endl
;
point
(
&
o
->
p2
,
&
o
->
trf
);
fp
<<
int
(
flow_eSave_End
)
<<
endl
;
}
void
GlowExportFlow
::
conpoint
(
GrowConPoint
*
o
)
{
fp
<<
int
(
flow_eSave_ConPoint
)
<<
endl
;
fp
<<
int
(
flow_eSave_ConPoint_number
)
<<
FSPACE
<<
o
->
number
<<
endl
;
fp
<<
int
(
flow_eSave_ConPoint_direction
)
<<
FSPACE
<<
int
(
o
->
direction
)
<<
endl
;
fp
<<
int
(
flow_eSave_ConPoint_p
)
<<
endl
;
point
(
&
o
->
p
,
&
o
->
trf
);
fp
<<
int
(
flow_eSave_ConPoint_trace_attribute
)
<<
FSPACE
<<
o
->
trace_attribute
<<
endl
;
fp
<<
int
(
flow_eSave_ConPoint_trace_attr_type
)
<<
FSPACE
<<
int
(
o
->
trace_attr_type
)
<<
endl
;
fp
<<
int
(
flow_eSave_End
)
<<
endl
;
}
void
GlowExportFlow
::
text
(
GrowText
*
o
)
{
flow_eDrawType
draw_type
;
switch
(
o
->
draw_type
)
{
case
glow_eDrawType_TextHelveticaBold
:
draw_type
=
flow_eDrawType_TextHelveticaBold
;
break
;
default:
draw_type
=
flow_eDrawType_TextHelvetica
;
}
fp
<<
int
(
flow_eSave_Text
)
<<
endl
;
fp
<<
int
(
flow_eSave_Text_text_size
)
<<
FSPACE
<<
o
->
text_size
<<
endl
;
fp
<<
int
(
flow_eSave_Text_draw_type
)
<<
FSPACE
<<
int
(
draw_type
)
<<
endl
;
fp
<<
int
(
flow_eSave_Text_text
)
<<
FSPACE
<<
o
->
text
<<
endl
;
fp
<<
int
(
flow_eSave_Text_p
)
<<
endl
;
point
(
&
o
->
p
,
&
o
->
trf
);
fp
<<
int
(
flow_eSave_End
)
<<
endl
;
}
void
GlowExportFlow
::
annot
(
GrowSubAnnot
*
o
)
{
flow_eDrawType
draw_type
;
switch
(
o
->
draw_type
)
{
case
glow_eDrawType_TextHelveticaBold
:
draw_type
=
flow_eDrawType_TextHelveticaBold
;
break
;
default:
draw_type
=
flow_eDrawType_TextHelvetica
;
}
fp
<<
int
(
flow_eSave_Annot
)
<<
endl
;
fp
<<
int
(
flow_eSave_Annot_number
)
<<
FSPACE
<<
o
->
number
<<
endl
;
fp
<<
int
(
flow_eSave_Annot_draw_type
)
<<
FSPACE
<<
int
(
draw_type
)
<<
endl
;
fp
<<
int
(
flow_eSave_Annot_text_size
)
<<
FSPACE
<<
o
->
text_size
<<
endl
;
fp
<<
int
(
flow_eSave_Annot_display_level
)
<<
FSPACE
<<
int
(
o
->
display_level
)
<<
endl
;
fp
<<
int
(
flow_eSave_Annot_p
)
<<
endl
;
point
(
&
o
->
p
,
&
o
->
trf
);
fp
<<
int
(
flow_eSave_Annot_annot_type
)
<<
FSPACE
<<
int
(
o
->
annot_type
)
<<
endl
;
fp
<<
int
(
flow_eSave_End
)
<<
endl
;
}
void
GlowExportFlow
::
arc
(
GrowArc
*
o
)
{
flow_eDrawType
draw_type
=
flow_eDrawType_Line
;
if
(
o
->
draw_type
>=
20
&&
o
->
draw_type
<
60
)
draw_type
=
flow_eDrawType_LineGray
;
fp
<<
int
(
flow_eSave_Arc
)
<<
endl
;
fp
<<
int
(
flow_eSave_Arc_draw_type
)
<<
FSPACE
<<
int
(
draw_type
)
<<
endl
;
fp
<<
int
(
flow_eSave_Arc_line_width
)
<<
FSPACE
<<
o
->
line_width
<<
endl
;
fp
<<
int
(
flow_eSave_Arc_angel1
)
<<
FSPACE
<<
o
->
angel1
<<
endl
;
fp
<<
int
(
flow_eSave_Arc_angel2
)
<<
FSPACE
<<
o
->
angel2
<<
endl
;
fp
<<
int
(
flow_eSave_Arc_ll
)
<<
endl
;
point
(
&
o
->
ll
,
&
o
->
trf
);
fp
<<
int
(
flow_eSave_Arc_ur
)
<<
endl
;
point
(
&
o
->
ur
,
&
o
->
trf
);
fp
<<
int
(
flow_eSave_End
)
<<
endl
;
}
void
GlowExportFlow
::
point
(
GlowPoint
*
o
,
GlowTransform
*
trf
)
{
double
x
=
trf
->
x
(
o
->
x
,
o
->
y
)
*
FLOW_SCALE
;
double
y
=
trf
->
y
(
o
->
x
,
o
->
y
)
*
FLOW_SCALE
;
fp
<<
int
(
flow_eSave_Point
)
<<
endl
;
fp
<<
int
(
flow_eSave_Point_x
)
<<
FSPACE
<<
x
<<
endl
;
fp
<<
int
(
flow_eSave_Point_y
)
<<
FSPACE
<<
y
<<
endl
;
fp
<<
int
(
flow_eSave_End
)
<<
endl
;
}
xtt/lib/glow/src/glow_exportflow.h
0 → 100644
View file @
3749b49d
/*
* Proview $Id: glow_exportflow.h,v 1.1 2008-01-17 14:17:05 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with the program, if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**/
#ifndef glow_exportflow_h
#define glow_exportflow_h
#include <iostream.h>
#include <fstream.h>
#include "glow.h"
#include "glow_ctx.h"
class
GrowCtx
;
class
GrowRect
;
class
GrowLine
;
class
GrowConPoint
;
class
GrowText
;
class
GrowSubAnnot
;
class
GrowArc
;
class
GlowExportFlow
{
public:
GlowExportFlow
(
GrowCtx
*
glow_ctx
)
:
ctx
(
glow_ctx
)
{}
int
export_flow
(
char
*
filename
);
void
array
(
GlowArray
*
o
);
void
rect
(
GrowRect
*
o
);
void
line
(
GrowLine
*
o
);
void
conpoint
(
GrowConPoint
*
o
);
void
text
(
GrowText
*
o
);
void
annot
(
GrowSubAnnot
*
o
);
void
arc
(
GrowArc
*
o
);
void
point
(
GlowPoint
*
o
,
GlowTransform
*
trf
);
ofstream
fp
;
GrowCtx
*
ctx
;
};
#endif
xtt/lib/glow/src/glow_growapi.cpp
View file @
3749b49d
/*
* Proview $Id: glow_growapi.cpp,v 1.3
5 2007-09-19 15:07:11
claes Exp $
* Proview $Id: glow_growapi.cpp,v 1.3
6 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -4483,6 +4483,11 @@ int grow_IsVisible( grow_tCtx ctx, grow_tObject object, glow_eVisible type)
return
ctx
->
is_visible
(
(
GlowArrayElem
*
)
object
,
type
);
}
int
grow_ExportFlow
(
grow_tCtx
ctx
,
char
*
filename
)
{
return
ctx
->
export_flow
(
filename
);
}
/*@}*/
...
...
xtt/lib/glow/src/glow_growapi.h
View file @
3749b49d
/*
* Proview $Id: glow_growapi.h,v 1.
29 2007-09-19 15:07:11
claes Exp $
* Proview $Id: glow_growapi.h,v 1.
30 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -2906,6 +2906,7 @@ extern "C" {
int
grow_GetNextObject
(
grow_tCtx
ctx
,
grow_tObject
object
,
glow_eDirection
dir
,
grow_tObject
*
next
);
int
grow_IsVisible
(
grow_tCtx
ctx
,
grow_tObject
object
,
glow_eVisible
type
);
int
grow_ExportFlow
(
grow_tCtx
ctx
,
char
*
filename
);
/*@}*/
#if defined __cplusplus
...
...
xtt/lib/glow/src/glow_growarc.cpp
View file @
3749b49d
/*
* Proview $Id: glow_growarc.cpp,v 1.
4 2007-01-04 07:57:38
claes Exp $
* Proview $Id: glow_growarc.cpp,v 1.
5 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -28,6 +28,7 @@
#include "glow_grownode.h"
#include "glow_draw.h"
#include "glow_growctx.h"
#include "glow_exportflow.h"
GrowArc
::
GrowArc
(
GrowCtx
*
glow_ctx
,
char
*
name
,
double
x1
,
double
y1
,
double
x2
,
double
y2
,
int
ang1
,
int
ang2
,
...
...
@@ -986,3 +987,8 @@ void GrowArc::convert( glow_eConvert version)
}
}
}
void
GrowArc
::
export_flow
(
GlowExportFlow
*
ef
)
{
ef
->
arc
(
this
);
}
xtt/lib/glow/src/glow_growarc.h
View file @
3749b49d
/*
* Proview $Id: glow_growarc.h,v 1.
5 2007-01-04 07:57:38
claes Exp $
* Proview $Id: glow_growarc.h,v 1.
6 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -23,6 +23,7 @@
#include "glow_arc.h"
#include "glow_transform.h"
class
GlowExportFlow
;
/*! \file glow_growarc.h
\brief Contains the GrowArc class. */
...
...
@@ -500,6 +501,8 @@ class GrowArc : public GlowArc {
\param version Version to convert to.
*/
void
convert
(
glow_eConvert
version
);
void
export_flow
(
GlowExportFlow
*
ef
);
//! Destructor
~
GrowArc
();
...
...
xtt/lib/glow/src/glow_growconpoint.cpp
View file @
3749b49d
/*
* Proview $Id: glow_growconpoint.cpp,v 1.
5 2007-06-29 09:31:24
claes Exp $
* Proview $Id: glow_growconpoint.cpp,v 1.
6 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -27,6 +27,7 @@
#include "glow_growconpoint.h"
#include "glow_draw.h"
#include "glow_growctx.h"
#include "glow_exportflow.h"
GrowConPoint
::
GrowConPoint
(
GrowCtx
*
glow_ctx
,
char
*
name
,
double
x
,
double
y
,
int
cp_num
,
glow_eDirection
d
,
int
nodraw
)
:
...
...
@@ -516,3 +517,8 @@ void GrowConPoint::get_borders( GlowTransform *t, double *x_right,
if
(
y1
>
*
y_high
)
*
y_high
=
y1
;
}
void
GrowConPoint
::
export_flow
(
GlowExportFlow
*
ef
)
{
ef
->
conpoint
(
this
);
}
xtt/lib/glow/src/glow_growconpoint.h
View file @
3749b49d
/*
* Proview $Id: glow_growconpoint.h,v 1.
4 2007-01-04 07:57:38
claes Exp $
* Proview $Id: glow_growconpoint.h,v 1.
5 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -23,6 +23,8 @@
#include "glow_conpoint.h"
#include "glow_arc.h"
class
GlowExportFlow
;
/*! \file glow_growconpoint.h
\brief Contains the GrowConPoint class. */
/*! \addtogroup Glow */
...
...
@@ -326,6 +328,8 @@ class GrowConPoint : public GlowConPoint {
*/
void
align
(
double
x
,
double
y
,
glow_eAlignDirection
direction
);
void
export_flow
(
GlowExportFlow
*
ef
);
};
/*@}*/
...
...
xtt/lib/glow/src/glow_growctx.cpp
View file @
3749b49d
/*
* Proview $Id: glow_growctx.cpp,v 1.
29 2007-11-02 08:35:48
claes Exp $
* Proview $Id: glow_growctx.cpp,v 1.
30 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -52,6 +52,7 @@
#include "glow_growmenu.h"
#include "glow_growfolder.h"
#include "glow_growtable.h"
#include "glow_exportflow.h"
#include "glow_draw.h"
#include "glow_msg.h"
...
...
@@ -2141,6 +2142,13 @@ int GrowCtx::save_subgraph( char *filename, glow_eSaveMode mode)
return
1
;
}
int
GrowCtx
::
export_flow
(
char
*
filename
)
{
GlowExportFlow
ef
(
this
);
return
ef
.
export_flow
(
filename
);
}
int
GrowCtx
::
open_subgraph_from_name
(
char
*
name
,
glow_eSaveMode
mode
)
{
char
filename
[
120
];
...
...
xtt/lib/glow/src/glow_growctx.h
View file @
3749b49d
/*
* Proview $Id: glow_growctx.h,v 1.1
4 2007-11-22 15:10:23
claes Exp $
* Proview $Id: glow_growctx.h,v 1.1
5 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -171,6 +171,12 @@ class GrowCtx : public GlowCtx {
*/
int
save_subgraph
(
char
*
filename
,
glow_eSaveMode
mode
);
//! Save as a flow nodeclass to file.
/*!
\param filename Name of file to save in.
*/
int
export_flow
(
char
*
filename
);
//! Open and load a subgraph from file.
/*!
\param filename Name of file.
...
...
xtt/lib/glow/src/glow_growline.cpp
View file @
3749b49d
/*
* Proview $Id: glow_growline.cpp,v 1.
6 2007-07-04 13:30:3
5 claes Exp $
* Proview $Id: glow_growline.cpp,v 1.
7 2008-01-17 14:17:0
5 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -28,6 +28,7 @@
#include "glow_draw.h"
#include "glow_growctx.h"
#include "glow_grownode.h"
#include "glow_exportflow.h"
GrowLine
::
GrowLine
(
GrowCtx
*
glow_ctx
,
char
*
name
,
double
x1
,
double
y1
,
double
x2
,
double
y2
,
glow_eDrawType
d_type
,
int
line_w
,
...
...
@@ -869,3 +870,8 @@ void GrowLine::convert( glow_eConvert version)
}
}
}
void
GrowLine
::
export_flow
(
GlowExportFlow
*
ef
)
{
ef
->
line
(
this
);
}
xtt/lib/glow/src/glow_growline.h
View file @
3749b49d
/*
* Proview $Id: glow_growline.h,v 1.
4 2007-01-04 07:57:38
claes Exp $
* Proview $Id: glow_growline.h,v 1.
5 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelösund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -23,6 +23,8 @@
#include "glow_line.h"
#include "glow_transform.h"
class
GlowExportFlow
;
/*! \file glow_growline.h
\brief Contains the GrowLine class. */
/*! \addtogroup Glow */
...
...
@@ -451,6 +453,8 @@ class GrowLine : public GlowLine {
*/
void
set_linetype
(
glow_eLineType
type
)
{
line_type
=
type
;
draw
();}
void
export_flow
(
GlowExportFlow
*
ef
);
};
/*@}*/
...
...
xtt/lib/glow/src/glow_growrect.cpp
View file @
3749b49d
/*
* Proview $Id: glow_growrect.cpp,v 1.1
0 2007-09-04 07:23:06
claes Exp $
* Proview $Id: glow_growrect.cpp,v 1.1
1 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -28,6 +28,7 @@
#include "glow_grownode.h"
#include "glow_draw.h"
#include "glow_growctx.h"
#include "glow_exportflow.h"
GrowRect
::
GrowRect
(
GrowCtx
*
glow_ctx
,
char
*
name
,
double
x
,
double
y
,
double
w
,
double
h
,
glow_eDrawType
border_d_type
,
int
line_w
,
...
...
@@ -1086,3 +1087,8 @@ void GrowRect::convert( glow_eConvert version)
}
}
}
void
GrowRect
::
export_flow
(
GlowExportFlow
*
ef
)
{
ef
->
rect
(
this
);
}
xtt/lib/glow/src/glow_growrect.h
View file @
3749b49d
/*
* Proview $Id: glow_growrect.h,v 1.
8 2007-09-04 07:23:06
claes Exp $
* Proview $Id: glow_growrect.h,v 1.
9 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -22,6 +22,8 @@
#include "glow_rect.h"
class
GlowExportFlow
;
/*! \file glow_growrect.h
\brief Contains the GrowRect class. */
/*! \addtogroup Glow */
...
...
@@ -143,6 +145,7 @@ class GrowRect : public GlowRect {
\param mode Not used.
*/
void
save
(
ofstream
&
fp
,
glow_eSaveMode
mode
);
void
save_flow
(
ofstream
&
fp
,
glow_eSaveMode
mode
);
//! Read the content of the object from file.
/*!
...
...
@@ -534,6 +537,8 @@ class GrowRect : public GlowRect {
*/
void
convert
(
glow_eConvert
version
);
void
export_flow
(
GlowExportFlow
*
ef
);
//! Destructor
~
GrowRect
();
};
...
...
xtt/lib/glow/src/glow_growsubannot.cpp
View file @
3749b49d
/*
* Proview $Id: glow_growsubannot.cpp,v 1.
8 2007-06-29 09:31:24
claes Exp $
* Proview $Id: glow_growsubannot.cpp,v 1.
9 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -27,6 +27,7 @@
#include "glow_growsubannot.h"
#include "glow_draw.h"
#include "glow_growctx.h"
#include "glow_exportflow.h"
GrowSubAnnot
::
GrowSubAnnot
(
GrowCtx
*
glow_ctx
,
char
*
name
,
double
x
,
double
y
,
int
annot_num
,
glow_eDrawType
d_type
,
glow_eDrawType
color_d_type
,
...
...
@@ -583,3 +584,7 @@ void GrowSubAnnot::set_textbold( int bold)
draw
();
}
void
GrowSubAnnot
::
export_flow
(
GlowExportFlow
*
ef
)
{
ef
->
annot
(
this
);
}
xtt/lib/glow/src/glow_growsubannot.h
View file @
3749b49d
/*
* Proview $Id: glow_growsubannot.h,v 1.
6 2007-06-15 11:34:43
claes Exp $
* Proview $Id: glow_growsubannot.h,v 1.
7 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -98,6 +98,7 @@ class GrowSubAnnot : public GlowAnnot {
{
color_drawtype
=
drawtype
;
text
.
color_drawtype
=
drawtype
;
draw
();};
void
draw
();
void
set_textbold
(
int
bold
);
void
export_flow
(
GlowExportFlow
*
ef
);
};
#endif
xtt/lib/glow/src/glow_growtext.cpp
View file @
3749b49d
/*
* Proview $Id: glow_growtext.cpp,v 1.
7 2007-08-22 06:43:18
claes Exp $
* Proview $Id: glow_growtext.cpp,v 1.
8 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -28,6 +28,7 @@
#include "glow_grownode.h"
#include "glow_draw.h"
#include "glow_growctx.h"
#include "glow_exportflow.h"
GrowText
::
GrowText
(
GrowCtx
*
glow_ctx
,
char
*
name
,
char
*
text1
,
double
x
,
double
y
,
glow_eDrawType
d_type
,
glow_eDrawType
color_d_type
,
int
t_size
,
...
...
@@ -961,3 +962,8 @@ void GrowText::convert( glow_eConvert version)
}
}
}
void
GrowText
::
export_flow
(
GlowExportFlow
*
ef
)
{
ef
->
text
(
this
);
}
xtt/lib/glow/src/glow_growtext.h
View file @
3749b49d
/*
* Proview $Id: glow_growtext.h,v 1.
6 2007-05-07 14:35:03
claes Exp $
* Proview $Id: glow_growtext.h,v 1.
7 2008-01-17 14:17:05
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -23,6 +23,8 @@
#include "glow_rect.h"
#include "glow_text.h"
class
GlowExportFlow
;
/*! \file glow_growtext.h
\brief Contains the GrowText class. */
/*! \addtogroup Glow */
...
...
@@ -478,6 +480,8 @@ class GrowText : public GlowText {
\param version Version to convert to.
*/
void
convert
(
glow_eConvert
version
);
void
export_flow
(
GlowExportFlow
*
ef
);
};
/*@}*/
...
...
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