~ubuntu-branches/ubuntu/precise/ncbi-tools6/precise

« back to all changes in this revision

Viewing changes to vibrant/picture.c

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2005-03-27 12:00:15 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050327120015-embhesp32nj73p9r
Tags: 6.1.20041020-3
* Fix FTBFS under GCC 4.0 caused by inconsistent use of "static" on
  functions.  (Closes: #295110.)
* Add a watch file, now that we can.  (Upstream's layout needs version=3.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
*
30
30
* Version Creation Date:   10/23/92
31
31
*
32
 
* $Revision: 6.4 $
 
32
* $Revision: 6.7 $
33
33
*
34
34
* File Description: 
35
35
*
40
40
*
41
41
*
42
42
* $Log: picture.c,v $
 
43
* Revision 6.7  2004/02/17 19:22:54  johnson
 
44
* make segment ID consistly unsigned
 
45
*
 
46
* Revision 6.6  2002/08/07 18:13:42  kans
 
47
* G/SetPrimitiveIDs, itemID is Uint4
 
48
*
 
49
* Revision 6.5  2002/03/07 15:53:45  kans
 
50
* added SetSegmentVisibleFlag to set/clear the visible flag before attaching to a viewer
 
51
*
43
52
* Revision 6.4  1999/10/13 17:45:46  kans
44
53
* added entityID, itemID, and itemtype to primitive internal structure, added Get and Set functions
45
54
*
534
543
*
535
544
*****************************************************************************/
536
545
 
537
 
Int2 Nlm_SegmentID (SegmenT segment)
 
546
Uint2 Nlm_SegmentID (SegmenT segment)
538
547
 
539
548
{
540
549
  SegPPtr  seg;
541
 
  Int2     segID;
 
550
  Uint2     segID;
542
551
 
543
552
  segID = 0;
544
553
  if (segment != NULL) {
579
588
 
580
589
/*****************************************************************************
581
590
*
 
591
*   Nlm_SetSegmentVisibleFlag (segment, visible)
 
592
*       Sets the visibility of a segment
 
593
*
 
594
*****************************************************************************/
 
595
 
 
596
void Nlm_SetSegmentVisibleFlag (SegmenT segment, Boolean visible)
 
597
 
 
598
{
 
599
  SegPPtr  seg;
 
600
 
 
601
  if (segment != NULL) {
 
602
    seg = (SegPPtr) segment;
 
603
    if (seg->base.code == SEGMENT || seg->base.code == PICTURE) {
 
604
      seg->seg.visible = visible;
 
605
    } else {
 
606
      Message (MSG_ERROR, "Nlm_SetSegmentVisibleFlag argument not a segment or picture");
 
607
    }
 
608
  }
 
609
}
 
610
 
 
611
/*****************************************************************************
 
612
*
582
613
*   SegmentStyle (segment)
583
614
*       Returns the highlight style of a segment
584
615
*
655
686
  return (PrimitivE) item;
656
687
}
657
688
 
658
 
void Nlm_SetPrimitiveIDs (PrimitivE prim, Uint2 entityID, Uint2 itemID,
 
689
void Nlm_SetPrimitiveIDs (PrimitivE prim, Uint2 entityID, Uint4 itemID,
659
690
                          Uint2 itemtype, Uint2 primID)
660
691
 
661
692
{
672
703
  }
673
704
}
674
705
 
675
 
void Nlm_GetPrimitiveIDs (PrimitivE prim, Uint2Ptr entityIDPtr, Uint2Ptr itemIDPtr,
 
706
void Nlm_GetPrimitiveIDs (PrimitivE prim, Uint2Ptr entityIDPtr, Uint4Ptr itemIDPtr,
676
707
                          Uint2Ptr itemtypePtr, Uint2Ptr primIDPtr)
677
708
 
678
709
{