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
997b37fd
Commit
997b37fd
authored
Dec 06, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'Add' to nodeclass functions adapted to grow
parent
ddd1567f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
108 additions
and
45 deletions
+108
-45
xtt/lib/glow/src/glow_growapi.cpp
xtt/lib/glow/src/glow_growapi.cpp
+72
-30
xtt/lib/glow/src/glow_growapi.h
xtt/lib/glow/src/glow_growapi.h
+36
-15
No files found.
xtt/lib/glow/src/glow_growapi.cpp
View file @
997b37fd
/*
/*
* Proview $Id: glow_growapi.cpp,v 1.1
6 2005-09-01 14:57:53
claes Exp $
* Proview $Id: glow_growapi.cpp,v 1.1
7 2005-12-06 09:19:38
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
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
#include "glow_growarc.h"
#include "glow_growarc.h"
#include "glow_growconpoint.h"
#include "glow_growconpoint.h"
#include "glow_growsubannot.h"
#include "glow_growsubannot.h"
#include "glow_growannot.h"
#include "glow_growpolyline.h"
#include "glow_growpolyline.h"
#include "glow_growtext.h"
#include "glow_growtext.h"
#include "glow_growbar.h"
#include "glow_growbar.h"
...
@@ -420,13 +421,18 @@ void grow_CreateAnnot( grow_tCtx ctx, double x, double y, int number,
...
@@ -420,13 +421,18 @@ void grow_CreateAnnot( grow_tCtx ctx, double x, double y, int number,
text_size
);
text_size
);
}
}
void
grow_AddRect
(
grow_tNodeClass
nc
,
double
x
,
double
y
,
void
grow_AddRect
(
grow_tNodeClass
nc
,
char
*
name
,
double
width
,
double
height
,
double
x
,
double
y
,
double
width
,
double
height
,
glow_eDrawType
draw_type
,
int
line_width
,
int
fix_line_width
)
glow_eDrawType
draw_type
,
int
line_width
,
int
fix_line_width
,
glow_mDisplayLevel
display_level
,
int
fill_rect
,
int
border
,
int
shadow
,
glow_eDrawType
fill_draw_type
,
void
*
user_data
)
{
{
GlowRect
*
rect
=
new
GlowRect
(
((
GlowNodeClass
*
)
nc
)
->
ctx
,
x
,
y
,
GrowRect
*
r1
;
width
,
height
,
draw_type
,
line_width
,
fix_line_width
);
r1
=
new
GrowRect
(
((
GlowNodeClass
*
)
nc
)
->
ctx
,
name
,
x
,
y
,
width
,
height
,
((
GlowNodeClass
*
)
nc
)
->
insert
(
rect
);
draw_type
,
line_width
,
fix_line_width
,
display_level
,
fill_rect
,
border
,
shadow
,
fill_draw_type
);
r1
->
set_user_data
(
user_data
);
((
GlowNodeClass
*
)
nc
)
->
insert
(
r1
);
}
}
...
@@ -441,41 +447,71 @@ void grow_AddFrame( grow_tNodeClass nc, double x, double y,
...
@@ -441,41 +447,71 @@ void grow_AddFrame( grow_tNodeClass nc, double x, double y,
}
}
void
grow_AddLine
(
grow_tNodeClass
nc
,
double
x1
,
double
y1
,
void
grow_AddLine
(
grow_tNodeClass
nc
,
char
*
name
,
double
x2
,
double
y2
,
double
x1
,
double
y1
,
double
x2
,
double
y2
,
glow_eDrawType
draw_type
,
int
line_width
)
glow_eDrawType
draw_type
,
int
line_width
,
int
fix_line_width
,
void
*
user_data
)
{
{
GlowLine
*
line
=
new
GlowLine
(
((
GlowNodeClass
*
)
nc
)
->
ctx
,
GrowLine
*
l1
;
x1
,
y1
,
x2
,
y2
,
draw_type
,
line_width
);
l1
=
new
GrowLine
(
((
GlowNodeClass
*
)
nc
)
->
ctx
,
name
,
x1
,
y1
,
x2
,
y2
,
((
GlowNodeClass
*
)
nc
)
->
insert
(
line
);
draw_type
,
line_width
,
fix_line_width
);
l1
->
set_user_data
(
user_data
);
((
GlowNodeClass
*
)
nc
)
->
insert
(
l1
);
}
}
void
grow_AddArc
(
grow_tNodeClass
nc
,
double
x1
,
double
y1
,
void
grow_AddPolyLine
(
grow_tNodeClass
nc
,
char
*
name
,
double
x2
,
double
y2
,
int
angel1
,
int
angel2
,
glow_sPoint
*
pointarray
,
int
point_cnt
,
glow_eDrawType
draw_type
,
int
line_width
)
glow_eDrawType
draw_type
,
int
line_width
,
int
fix_line_width
,
int
fill
,
int
border
,
int
shadow
,
glow_eDrawType
fill_draw_type
,
int
closed
,
void
*
user_data
)
{
GrowPolyLine
*
l1
;
l1
=
new
GrowPolyLine
(
((
GlowNodeClass
*
)
nc
)
->
ctx
,
name
,
pointarray
,
point_cnt
,
draw_type
,
line_width
,
fix_line_width
,
fill
,
border
,
shadow
,
fill_draw_type
,
closed
);
l1
->
set_user_data
(
user_data
);
((
GlowNodeClass
*
)
nc
)
->
insert
(
l1
);
}
void
grow_AddArc
(
grow_tNodeClass
nc
,
char
*
name
,
double
x1
,
double
y1
,
double
x2
,
double
y2
,
int
angel1
,
int
angel2
,
glow_eDrawType
draw_type
,
int
line_width
,
int
fill_arc
,
int
border
,
int
shadow
,
glow_eDrawType
fill_draw_type
,
void
*
user_data
)
{
{
GlowArc
*
arc
=
new
GlowArc
(
((
GlowNodeClass
*
)
nc
)
->
ctx
,
GrowArc
*
a1
;
x1
,
y1
,
x2
,
y2
,
angel1
,
angel2
,
draw_type
,
line_width
);
a1
=
new
GrowArc
(
((
GlowNodeClass
*
)
nc
)
->
ctx
,
name
,
x1
,
y1
,
x2
,
y2
,
((
GlowNodeClass
*
)
nc
)
->
insert
(
arc
);
angel1
,
angel2
,
draw_type
,
line_width
,
fill_arc
,
border
,
shadow
,
fill_draw_type
);
a1
->
set_user_data
(
user_data
);
((
GlowNodeClass
*
)
nc
)
->
insert
(
a1
);
}
}
void
grow_AddText
(
grow_tNodeClass
nc
,
char
*
text_str
,
double
x
,
double
y
,
void
grow_AddText
(
grow_tNodeClass
nc
,
char
*
name
,
glow_eDrawType
draw_type
,
int
text_size
)
char
*
text
,
double
x
,
double
y
,
glow_eDrawType
draw_type
,
glow_eDrawType
color
,
int
t_size
,
glow_mDisplayLevel
display_level
,
void
*
user_data
)
{
{
GlowText
*
text
=
new
GlowText
(
((
GlowNodeClass
*
)
nc
)
->
ctx
,
GrowText
*
t1
;
text_str
,
x
,
y
,
draw_type
,
glow_eDrawType_Line
,
text_size
);
t1
=
new
GrowText
(
((
GlowNodeClass
*
)
nc
)
->
ctx
,
name
,
text
,
x
,
y
,
draw_type
,
color
,
((
GlowNodeClass
*
)
nc
)
->
insert
(
text
);
t_size
,
display_level
);
t1
->
set_user_data
(
user_data
);
((
GlowNodeClass
*
)
nc
)
->
insert
(
t1
);
}
}
void
grow_AddAnnot
(
grow_tNodeClass
nc
,
double
x
,
double
y
,
int
number
,
void
grow_AddAnnot
(
grow_tNodeClass
nc
,
glow_eDrawType
draw_type
,
int
text_size
,
glow_eAnnotType
annot_type
,
double
x
,
double
y
,
int
annot_num
,
glow_eDrawType
d_type
,
glow_eDrawType
color_d_type
,
int
relative_pos
)
int
t_size
,
glow_eAnnotType
a_type
,
int
rel_pos
,
glow_mDisplayLevel
display_lev
,
void
*
user_data
)
{
{
GlowAnnot
*
annot
=
new
GlowAnnot
(
((
GlowNodeClass
*
)
nc
)
->
ctx
,
GrowAnnot
*
a1
;
x
,
y
,
number
,
draw_type
,
glow_eDrawType_Line
,
text_size
,
annot_type
,
relative_pos
);
a1
=
new
GrowAnnot
(
((
GlowNodeClass
*
)
nc
)
->
ctx
,
x
,
y
,
annot_num
,
d_type
,
((
GlowNodeClass
*
)
nc
)
->
insert
(
annot
);
color_d_type
,
t_size
,
a_type
,
rel_pos
,
display_lev
);
a1
->
set_user_data
(
user_data
);
((
GlowNodeClass
*
)
nc
)
->
insert
(
a1
);
}
}
// Old version !!
void
grow_AddAnnotPixmap
(
grow_tNodeClass
nc
,
int
number
,
void
grow_AddAnnotPixmap
(
grow_tNodeClass
nc
,
int
number
,
double
x
,
double
y
,
glow_eDrawType
draw_type
,
int
size
,
int
relative_pos
)
double
x
,
double
y
,
glow_eDrawType
draw_type
,
int
size
,
int
relative_pos
)
{
{
...
@@ -485,6 +521,7 @@ void grow_AddAnnotPixmap( grow_tNodeClass nc, int number,
...
@@ -485,6 +521,7 @@ void grow_AddAnnotPixmap( grow_tNodeClass nc, int number,
((
GlowNodeClass
*
)
nc
)
->
insert
(
annotpixmap
);
((
GlowNodeClass
*
)
nc
)
->
insert
(
annotpixmap
);
}
}
// Old version !!
void
grow_AddRadiobutton
(
grow_tNodeClass
nc
,
double
x
,
double
y
,
void
grow_AddRadiobutton
(
grow_tNodeClass
nc
,
double
x
,
double
y
,
double
width
,
double
height
,
int
number
,
double
width
,
double
height
,
int
number
,
glow_eDrawType
draw_type
,
int
line_width
)
glow_eDrawType
draw_type
,
int
line_width
)
...
@@ -3248,6 +3285,11 @@ void grow_SetObjectShadow( grow_tObject object, int shadow)
...
@@ -3248,6 +3285,11 @@ void grow_SetObjectShadow( grow_tObject object, int shadow)
((
GlowArrayElem
*
)
object
)
->
set_shadow
(
shadow
);
((
GlowArrayElem
*
)
object
)
->
set_shadow
(
shadow
);
}
}
void
grow_SetObjectShadowWidth
(
grow_tObject
object
,
double
width
)
{
((
GlowArrayElem
*
)
object
)
->
set_shadow_width
(
width
);
}
void
grow_SetObjectDrawtype
(
grow_tObject
object
,
glow_eDrawType
drawtype
)
void
grow_SetObjectDrawtype
(
grow_tObject
object
,
glow_eDrawType
drawtype
)
{
{
((
GlowArrayElem
*
)
object
)
->
set_drawtype
(
drawtype
);
((
GlowArrayElem
*
)
object
)
->
set_drawtype
(
drawtype
);
...
...
xtt/lib/glow/src/glow_growapi.h
View file @
997b37fd
/*
/*
* Proview $Id: glow_growapi.h,v 1.1
5 2005-10-12 12:59:05
claes Exp $
* Proview $Id: glow_growapi.h,v 1.1
6 2005-12-06 09:19:38
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
...
@@ -485,23 +485,37 @@ typedef GlowTraceData glow_sTraceData;
...
@@ -485,23 +485,37 @@ typedef GlowTraceData glow_sTraceData;
grow_tObject
*
annot_pixmap
);
grow_tObject
*
annot_pixmap
);
void
grow_CreateAnnot
(
grow_tCtx
ctx
,
double
x
,
double
y
,
int
number
,
void
grow_CreateAnnot
(
grow_tCtx
ctx
,
double
x
,
double
y
,
int
number
,
glow_eDrawType
draw_type
,
int
text_size
,
grow_tObject
*
annot
);
glow_eDrawType
draw_type
,
int
text_size
,
grow_tObject
*
annot
);
void
grow_AddRect
(
grow_tNodeClass
nc
,
double
x
,
double
y
,
void
grow_AddRect
(
grow_tNodeClass
nc
,
char
*
name
,
double
width
,
double
height
,
double
x
,
double
y
,
double
width
,
double
height
,
glow_eDrawType
draw_type
,
int
line_width
,
int
fix_line_width
);
glow_eDrawType
draw_type
,
int
line_width
,
int
fix_line_width
,
glow_mDisplayLevel
display_level
,
int
fill_rect
,
int
border
,
int
shadow
,
glow_eDrawType
fill_draw_type
,
void
*
user_data
);
void
grow_AddFrame
(
grow_tNodeClass
nc
,
double
x
,
double
y
,
void
grow_AddFrame
(
grow_tNodeClass
nc
,
double
x
,
double
y
,
double
width
,
double
height
,
double
width
,
double
height
,
glow_eDrawType
draw_type
,
int
line_width
,
int
fix_line_width
);
glow_eDrawType
draw_type
,
int
line_width
,
int
fix_line_width
);
void
grow_AddLine
(
grow_tNodeClass
nc
,
double
x1
,
double
y1
,
void
grow_AddLine
(
grow_tNodeClass
nc
,
char
*
name
,
double
x2
,
double
y2
,
double
x1
,
double
y1
,
double
x2
,
double
y2
,
glow_eDrawType
draw_type
,
int
line_width
);
glow_eDrawType
draw_type
,
int
line_width
,
int
fix_line_width
,
void
grow_AddArc
(
grow_tNodeClass
nc
,
double
x1
,
double
y1
,
void
*
user_data
);
double
x2
,
double
y2
,
int
angel1
,
int
angel2
,
void
grow_AddPolyLine
(
grow_tNodeClass
,
char
*
name
,
glow_eDrawType
draw_type
,
int
line_width
);
glow_sPoint
*
pointarray
,
int
point_cnt
,
void
grow_AddText
(
grow_tNodeClass
nc
,
char
*
text_str
,
double
x
,
double
y
,
glow_eDrawType
draw_type
,
int
line_width
,
int
fix_line_width
,
glow_eDrawType
draw_type
,
int
text_size
);
int
fill
,
int
border
,
int
shadow
,
glow_eDrawType
fill_draw_type
,
void
grow_AddAnnot
(
grow_tNodeClass
nc
,
double
x
,
double
y
,
int
number
,
int
closed
,
void
*
user_data
);
glow_eDrawType
draw_type
,
int
text_size
,
glow_eAnnotType
annot_type
,
void
grow_AddArc
(
grow_tNodeClass
nc
,
char
*
name
,
int
relative_pos
);
double
x1
,
double
y1
,
double
x2
,
double
y2
,
int
angel1
,
int
angel2
,
glow_eDrawType
draw_type
,
int
line_width
,
int
fill_arc
,
int
border
,
int
shadow
,
glow_eDrawType
fill_draw_type
,
void
*
user_data
);
void
grow_AddText
(
grow_tNodeClass
nc
,
char
*
name
,
char
*
text
,
double
x
,
double
y
,
glow_eDrawType
draw_type
,
glow_eDrawType
color
,
int
t_size
,
glow_mDisplayLevel
display_level
,
void
*
user_data
);
void
grow_AddAnnot
(
grow_tNodeClass
nc
,
double
x
,
double
y
,
int
annot_num
,
glow_eDrawType
d_type
,
glow_eDrawType
color_d_type
,
int
t_size
,
glow_eAnnotType
a_type
,
int
rel_pos
,
glow_mDisplayLevel
display_lev
,
void
*
user_data
);
void
grow_AddAnnotPixmap
(
grow_tNodeClass
nc
,
int
number
,
void
grow_AddAnnotPixmap
(
grow_tNodeClass
nc
,
int
number
,
double
x
,
double
y
,
glow_eDrawType
draw_type
,
int
size
,
int
relative_pos
);
double
x
,
double
y
,
glow_eDrawType
draw_type
,
int
size
,
int
relative_pos
);
void
grow_AddRadiobutton
(
grow_tNodeClass
nc
,
double
x
,
double
y
,
void
grow_AddRadiobutton
(
grow_tNodeClass
nc
,
double
x
,
double
y
,
...
@@ -1412,6 +1426,13 @@ typedef GlowTraceData glow_sTraceData;
...
@@ -1412,6 +1426,13 @@ typedef GlowTraceData glow_sTraceData;
*/
*/
void
grow_SetObjectShadow
(
grow_tObject
object
,
int
shadow
);
void
grow_SetObjectShadow
(
grow_tObject
object
,
int
shadow
);
//! Set shadow width for an object.
/*!
\param object Object.
\param shadow Shadow width in percentage of the smallest of object width and height.
*/
void
grow_SetObjectShadowWidth
(
grow_tObject
object
,
double
width
);
//! Set object drawtype.
//! Set object drawtype.
/*!
/*!
\param object Object.
\param object Object.
...
...
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