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
e12c2da8
Commit
e12c2da8
authored
15 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add code to fetch the mark.
parent
9b48e0ba
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/include/ZMap/zmapWindow.h
+3
-2
3 additions, 2 deletions
src/include/ZMap/zmapWindow.h
src/zmapWindow/zmapWindowMark.c
+28
-2
28 additions, 2 deletions
src/zmapWindow/zmapWindowMark.c
with
31 additions
and
4 deletions
src/include/ZMap/zmapWindow.h
+
3
−
2
View file @
e12c2da8
...
...
@@ -26,9 +26,9 @@
* window displaying genome data.
*
* HISTORY:
* Last edited: Sep 9 1
0
:1
9
2009 (edgrif)
* Last edited: Sep 9 1
5
:1
1
2009 (edgrif)
* Created: Thu Jul 24 15:21:56 2003 (edgrif)
* CVS info: $Id: zmapWindow.h,v 1.10
4
2009-09-09
09
:40:
4
8 edgrif Exp $
* CVS info: $Id: zmapWindow.h,v 1.10
5
2009-09-09
16
:40:
0
8 edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_WINDOW_H
...
...
@@ -259,6 +259,7 @@ void zMapWindowZoomToWorldPosition(ZMapWindow window, gboolean border,
double
rootx1
,
double
rooty1
,
double
rootx2
,
double
rooty2
);
gboolean
zMapWindowGetMark
(
ZMapWindow
window
,
int
*
start
,
int
*
end
)
;
gboolean
zMapWindowGetDNAStatus
(
ZMapWindow
window
);
void
zMapWindowStats
(
ZMapWindow
window
)
;
...
...
This diff is collapsed.
Click to expand it.
src/zmapWindow/zmapWindowMark.c
+
28
−
2
View file @
e12c2da8
...
...
@@ -27,9 +27,9 @@
*
* Exported functions: See zmapWindow_P.h
* HISTORY:
* Last edited:
Jun 12 09:31
2009 (
rds
)
* Last edited:
Sep 9 15:19
2009 (
edgrif
)
* Created: Tue Jan 16 09:51:19 2007 (rds)
* CVS info: $Id: zmapWindowMark.c,v 1.1
7
2009-0
6-19 11:16:37 rds
Exp $
* CVS info: $Id: zmapWindowMark.c,v 1.1
8
2009-0
9-09 16:40:08 edgrif
Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -97,6 +97,32 @@ static void setBoundingBoxColour(ZMapWindowMark mark, FooCanvasItem *item, gbool
ZMAP_MAGIC_NEW
(
mark_magic_G
,
ZMapWindowMarkStruct
)
;
/* The mark was internal to window but other code needs to know about it now.... */
gboolean
zMapWindowGetMark
(
ZMapWindow
window
,
int
*
start
,
int
*
end
)
{
gboolean
result
=
FALSE
;
if
(
window
->
mark
&&
window
->
mark
->
mark_set
)
{
double
wx1
,
wx2
,
wy1
,
wy2
;
zmapWindowMarkGetWorldRange
(
window
->
mark
,
&
wx1
,
&
wy1
,
&
wx2
,
&
wy2
)
;
*
start
=
(
int
)(
wy1
)
;
*
end
=
(
int
)(
wy2
)
;
result
=
TRUE
;
}
return
result
;
}
ZMapWindowMark
zmapWindowMarkCreate
(
ZMapWindow
window
)
{
ZMapWindowMark
mark
;
...
...
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