Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
9d682743
Commit
9d682743
authored
16 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
remove debug, fix bug in style table copying.
parent
5e07e9d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/zmapWindow/zmapWindowDrawFeatures.c
+37
-11
37 additions, 11 deletions
src/zmapWindow/zmapWindowDrawFeatures.c
with
37 additions
and
11 deletions
src/zmapWindow/zmapWindowDrawFeatures.c
+
37
−
11
View file @
9d682743
...
...
@@ -26,9 +26,9 @@
*
* Exported functions:
* HISTORY:
* Last edited: Feb
5
1
1:34
2009 (edgrif)
* Last edited: Feb
6
1
4:13
2009 (edgrif)
* Created: Thu Jul 29 10:45:00 2004 (rnc)
* CVS info: $Id: zmapWindowDrawFeatures.c,v 1.22
3
2009-02-0
5
1
2:04:32
edgrif Exp $
* CVS info: $Id: zmapWindowDrawFeatures.c,v 1.22
4
2009-02-0
6
1
4:21:00
edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -102,6 +102,7 @@ typedef struct
typedef
struct
{
ZMapWindow
window
;
GData
*
styles
;
GHashTable
*
feature_hash
;
FooCanvasGroup
*
curr_forward_col
;
FooCanvasGroup
*
curr_reverse_col
;
...
...
@@ -327,11 +328,6 @@ void zmapWindowDrawFeatures(ZMapWindow window,
zMapStyleSetPrintAllStdOut
(
window
->
read_only_styles
,
"orig styles"
,
FALSE
)
;
zMapStyleSetPrintAllStdOut
(
styles
,
"new styles"
,
FALSE
)
;
/*
* Draw all the features, so much in so few lines...sigh...
*/
...
...
@@ -345,6 +341,13 @@ void zmapWindowDrawFeatures(ZMapWindow window,
&
canvas_data
);
zMapStyleSetPrintAllStdOut
(
window
->
read_only_styles
,
"orig styles"
,
FALSE
)
;
zMapStyleSetPrintAllStdOut
(
styles
,
"new styles"
,
FALSE
)
;
/* Now we've drawn all the features we can position them all. */
zmapWindowColOrderColumns
(
window
);
...
...
@@ -371,6 +374,9 @@ void zmapWindowDrawFeatures(ZMapWindow window,
}
/* Now throw away the styles list, should all be stored in the columns. */
zMapStyleDestroyStyles
(
&
styles
)
;
if
(
debug_containers
)
zmapWindowContainerPrint
(
root_group
)
;
...
...
@@ -407,7 +413,6 @@ gboolean zmapWindowCreateSetColumns(ZMapWindow window,
FooCanvasGroup
**
reverse_col_out
,
FooCanvasGroup
**
separator_col_out
)
{
ZMapFeatureContext
context
=
window
->
feature_context
;
ZMapFeatureTypeStyle
style
;
double
top
,
bottom
;
gboolean
created
=
TRUE
;
...
...
@@ -563,7 +568,8 @@ gboolean zmapWindowCreateSetColumns(ZMapWindow window,
/* The feature set will be filtered on supplied frame by ProcessFeature.
* ProcessFeature splits the feature sets features into the separate strands.
*/
void
zmapWindowDrawFeatureSet
(
ZMapWindow
window
,
void
zmapWindowDrawFeatureSet
(
ZMapWindow
window
,
GData
*
styles
,
ZMapFeatureSet
feature_set
,
FooCanvasGroup
*
forward_col_wcp
,
FooCanvasGroup
*
reverse_col_wcp
,
...
...
@@ -573,6 +579,8 @@ void zmapWindowDrawFeatureSet(ZMapWindow window,
ZMapFeatureSet
view_feature_set
=
NULL
;
ZMapFeatureTypeStyle
forward_style
,
reverse_style
;
gboolean
bump_required
=
TRUE
;
featureset_data
.
window
=
window
;
forward_style
=
reverse_style
=
NULL
;
...
...
@@ -595,6 +603,7 @@ void zmapWindowDrawFeatureSet(ZMapWindow window,
}
featureset_data
.
frame
=
frame
;
featureset_data
.
styles
=
styles
;
/* Now draw all the features in the column. */
g_hash_table_foreach
(
feature_set
->
features
,
ProcessFeature
,
&
featureset_data
)
;
...
...
@@ -1059,7 +1068,8 @@ static ZMapFeatureContextExecuteStatus windowDrawContext(GQuark key_id,
ZMAPFRAME_NONE
,
&
tmp_forward
,
&
tmp_reverse
,
&
separator
))
{
zmapWindowDrawFeatureSet
(
window
,
zmapWindowDrawFeatureSet
(
window
,
canvas_data
->
styles
,
feature_set
,
tmp_forward
,
tmp_reverse
,
...
...
@@ -1259,6 +1269,8 @@ static void ProcessFeature(gpointer key, gpointer data, gpointer user_data)
FooCanvasGroup
*
column_group
;
ZMapStrand
strand
;
FooCanvasItem
*
feature_item
;
ZMapWindowItemFeatureSetData
set_data
;
ZMapFeatureTypeStyle
style
;
...
...
@@ -1266,6 +1278,8 @@ static void ProcessFeature(gpointer key, gpointer data, gpointer user_data)
zMapStyleSetPrintAllStdOut
(
window
->
read_only_styles
,
"Process Feature"
,
FALSE
)
;
#endif
/* ED_G_NEVER_INCLUDE_THIS_CODE */
if
(
g_ascii_strcasecmp
(
"gf_atg"
,
g_quark_to_string
(
feature
->
style_id
))
==
0
)
printf
(
"found it
\n
"
)
;
strand
=
zmapWindowFeatureStrand
(
window
,
feature
)
;
...
...
@@ -1298,7 +1312,19 @@ static void ProcessFeature(gpointer key, gpointer data, gpointer user_data)
}
feature_item
=
zmapWindowFeatureDraw
(
window
,
column_group
,
feature
)
;
set_data
=
g_object_get_data
(
G_OBJECT
(
column_group
),
ITEM_FEATURE_SET_DATA
)
;
zMapAssert
(
set_data
)
;
/* Get the styles table from the column and look for the features style.... */
if
(
!
(
style
=
zmapWindowStyleTableFind
(
set_data
->
style_table
,
feature
->
style_id
)))
{
style
=
zMapFindStyle
(
featureset_data
->
styles
,
feature
->
style_id
)
;
style
=
zmapWindowStyleTableAddCopy
(
set_data
->
style_table
,
style
)
;
}
feature_item
=
zmapWindowFeatureDraw
(
window
,
style
,
column_group
,
feature
)
;
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment