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
dfdc0b66
Commit
dfdc0b66
authored
15 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
Added function for bumping support
parent
b36e9c40
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/zmapWindow/zmapWindowItemFeatureSet.c
+24
-2
24 additions, 2 deletions
src/zmapWindow/zmapWindowItemFeatureSet.c
src/zmapWindow/zmapWindowItemFeatureSet.h
+3
-2
3 additions, 2 deletions
src/zmapWindow/zmapWindowItemFeatureSet.h
with
27 additions
and
4 deletions
src/zmapWindow/zmapWindowItemFeatureSet.c
+
24
−
2
View file @
dfdc0b66
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited: Apr 2
0
1
1:5
9 2009 (rds)
* Last edited: Apr 2
1
1
6:4
9 2009 (rds)
* Created: Mon Jul 30 13:09:33 2007 (rds)
* CVS info: $Id: zmapWindowItemFeatureSet.c,v 1.1
1
2009-04-2
0
1
1:05:49
rds Exp $
* CVS info: $Id: zmapWindowItemFeatureSet.c,v 1.1
2
2009-04-2
1
1
5:52:13
rds Exp $
*-------------------------------------------------------------------
*/
#include
<string.h>
/* memset */
...
...
@@ -49,6 +49,7 @@ enum
ITEM_FEATURE_SET_SHOW_WHEN_EMPTY
,
ITEM_FEATURE_SET_DEFERRED
,
ITEM_FEATURE_SET_STRAND_SPECIFIC
,
ITEM_FEATURE_SET_BUMP_SPACING
,
};
typedef
struct
...
...
@@ -360,6 +361,17 @@ double zmapWindowItemFeatureSetGetWidth(ZMapWindowItemFeatureSetData set_data)
return
width
;
}
double
zmapWindowItemFeatureGetBumpSpacing
(
ZMapWindowItemFeatureSetData
set_data
)
{
double
spacing
;
g_object_get
(
G_OBJECT
(
set_data
),
ZMAPSTYLE_PROPERTY_BUMP_SPACING
,
&
spacing
,
NULL
);
return
spacing
;
}
gboolean
zmapWindowItemFeatureSetGetMagValues
(
ZMapWindowItemFeatureSetData
set_data
,
double
*
min_mag_out
,
double
*
max_mag_out
)
{
...
...
@@ -584,6 +596,14 @@ static void zmap_window_item_feature_set_class_init(ZMapWindowItemFeatureSetData
"The minimum width the column should be displayed at."
,
0
.
0
,
32000
.
00
,
16
.
0
,
ZMAP_PARAM_STATIC_RO
));
/* Bump spacing */
g_object_class_install_property
(
gobject_class
,
ITEM_FEATURE_SET_BUMP_SPACING
,
g_param_spec_double
(
ZMAPSTYLE_PROPERTY_BUMP_SPACING
,
ZMAPSTYLE_PROPERTY_BUMP_SPACING
,
"The x coord spacing between features when bumping."
,
0
.
0
,
32000
.
00
,
1
.
0
,
ZMAP_PARAM_STATIC_RO
));
/* display mode */
g_object_class_install_property
(
gobject_class
,
ITEM_FEATURE_SET_VISIBLE
,
...
...
@@ -693,6 +713,7 @@ static void zmap_window_item_feature_set_get_property(GObject *gobject,
switch
(
param_id
)
{
case
ITEM_FEATURE_SET_BUMP_SPACING
:
case
ITEM_FEATURE_SET_WIDTH
:
case
ITEM_FEATURE_SET_VISIBLE
:
case
ITEM_FEATURE_SET_OVERLAP_MODE
:
...
...
@@ -775,6 +796,7 @@ static void extract_value_from_style_table(gpointer key, gpointer value, gpointe
switch
(
value_data
->
param_id
)
{
case
ITEM_FEATURE_SET_BUMP_SPACING
:
case
ITEM_FEATURE_SET_WIDTH
:
{
double
tmp_width
,
style_width
;
...
...
This diff is collapsed.
Click to expand it.
src/zmapWindow/zmapWindowItemFeatureSet.h
+
3
−
2
View file @
dfdc0b66
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited: Apr 1
7
16:
32
2009 (rds)
* Last edited: Apr
2
1 16:
48
2009 (rds)
* Created: Fri Feb 6 15:32:46 2009 (rds)
* CVS info: $Id: zmapWindowItemFeatureSet.h,v 1.
6
2009-04-2
0
1
1:06:03
rds Exp $
* CVS info: $Id: zmapWindowItemFeatureSet.h,v 1.
7
2009-04-2
1
1
5:52:16
rds Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -91,6 +91,7 @@ ZMapFeatureTypeStyle zmapWindowItemFeatureSetGetStyle(ZMapWindowItemFeatureSetDa
ZMapFeatureTypeStyle
zmapWindowItemFeatureSetColumnStyle
(
ZMapWindowItemFeatureSetData
set_data
);
double
zmapWindowItemFeatureSetGetWidth
(
ZMapWindowItemFeatureSetData
set_data
);
double
zmapWindowItemFeatureGetBumpSpacing
(
ZMapWindowItemFeatureSetData
set_data
);
gboolean
zmapWindowItemFeatureSetGetMagValues
(
ZMapWindowItemFeatureSetData
set_data
,
double
*
min_mag_out
,
double
*
max_mag_out
);
...
...
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