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
4c48923c
Commit
4c48923c
authored
18 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
keeping up with clamping changes
parent
5664b78a
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/zmapWindowUtils.c
+22
-8
22 additions, 8 deletions
src/zmapWindow/zmapWindowUtils.c
with
22 additions
and
8 deletions
src/zmapWindow/zmapWindowUtils.c
+
22
−
8
View file @
4c48923c
...
...
@@ -26,9 +26,9 @@
*
* Exported functions: See ZMap/zmapWindow.h
* HISTORY:
* Last edited:
Sep 7 15:05
2006 (
edgrif
)
* Last edited:
Oct 11 09:29
2006 (
rds
)
* Created: Thu Jan 20 14:43:12 2005 (edgrif)
* CVS info: $Id: zmapWindowUtils.c,v 1.3
3
2006-
09-15 09:26:09 edgrif
Exp $
* CVS info: $Id: zmapWindowUtils.c,v 1.3
4
2006-
10-18 15:25:51 rds
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -169,9 +169,17 @@ void zmapWindowSeq2CanOffset(double *start_inout, double *end_inout, double offs
return
;
}
ZMapWindowClampType
zmapWindowClampedAtStartEnd
(
ZMapWindow
window
,
double
*
top_inout
,
double
*
bot_inout
)
ZMapGUIClampType
zmapWindowClampedAtStartEnd
(
ZMapWindow
window
,
double
*
top_inout
,
double
*
bot_inout
)
{
ZMapWindowClampType
clamp
=
ZMAP_WINDOW_CLAMP_INIT
;
ZMapGUIClampType
clamp_type
=
ZMAPGUI_CLAMP_INIT
;
clamp_type
=
zMapGUICoordsClampToLimits
(
window
->
min_coord
,
window
->
max_coord
,
top_inout
,
bot_inout
);
return
clamp_type
;
/* ! */
#ifdef RDS_DONT_INCLUDE
double
top
,
bot
;
top
=
*
top_inout
;
...
...
@@ -197,15 +205,21 @@ ZMapWindowClampType zmapWindowClampedAtStartEnd(ZMapWindow window, double *top_i
*
bot_inout
=
bot
;
return
clamp
;
#endif
}
/* Clamps the span within the length of the sequence,
* possibly shifting the span to keep it the same size. */
ZMap
Window
ClampType
zmapWindowClampSpan
(
ZMapWindow
window
,
double
*
top_inout
,
double
*
bot_inout
)
ZMap
GUI
ClampType
zmapWindowClampSpan
(
ZMapWindow
window
,
double
*
top_inout
,
double
*
bot_inout
)
{
double
top
,
bot
;
ZMapWindowClampType
clamp
=
ZMAP_WINDOW_CLAMP_INIT
;
ZMapGUIClampType
clamp
=
ZMAPGUI_CLAMP_INIT
;
clamp
=
zMapGUICoordsClampSpanWithLimits
(
window
->
min_coord
,
window
->
max_coord
,
top_inout
,
bot_inout
);
#ifdef RDS_DONT_INCLUDE
double
top
,
bot
;
top
=
*
top_inout
;
bot
=
*
bot_inout
;
...
...
@@ -232,7 +246,7 @@ ZMapWindowClampType zmapWindowClampSpan(ZMapWindow window, double *top_inout, do
*
top_inout
=
top
;
*
bot_inout
=
bot
;
#endif
return
clamp
;
}
...
...
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