Changeset 9710
- Timestamp:
- Oct 20, 2006, 6:02:36 PM (20 years ago)
- Location:
- trunk/psModules/src/camera
- Files:
-
- 2 edited
-
pmFPAview.c (modified) (9 diffs)
-
pmFPAview.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAview.c
r9363 r9710 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-10- 06 21:45:58$5 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-10-21 04:02:36 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 68 68 } 69 69 70 pmChip *pmFPAviewThisChip(const pmFPAview *view, pmFPA *fpa)70 pmChip *pmFPAviewThisChip(const pmFPAview *view, const pmFPA *fpa) 71 71 { 72 72 PS_ASSERT_PTR_NON_NULL(view, NULL); … … 86 86 } 87 87 88 pmChip *pmFPAviewNextChip(pmFPAview *view, pmFPA *fpa, int nStep)88 pmChip *pmFPAviewNextChip(pmFPAview *view, const pmFPA *fpa, int nStep) 89 89 { 90 90 PS_ASSERT_PTR_NON_NULL(view, NULL); … … 120 120 } 121 121 122 pmCell *pmFPAviewThisCell(const pmFPAview *view, pmFPA *fpa)122 pmCell *pmFPAviewThisCell(const pmFPAview *view, const pmFPA *fpa) 123 123 { 124 124 PS_ASSERT_PTR_NON_NULL(view, NULL); … … 140 140 } 141 141 142 pmCell *pmFPAviewNextCell (pmFPAview *view, pmFPA *fpa, int nStep)142 pmCell *pmFPAviewNextCell (pmFPAview *view, const pmFPA *fpa, int nStep) 143 143 { 144 144 PS_ASSERT_PTR_NON_NULL(view, NULL); … … 176 176 } 177 177 178 pmReadout *pmFPAviewThisReadout (const pmFPAview *view, pmFPA *fpa)178 pmReadout *pmFPAviewThisReadout (const pmFPAview *view, const pmFPA *fpa) 179 179 { 180 180 PS_ASSERT_PTR_NON_NULL(view, NULL); … … 196 196 } 197 197 198 pmReadout *pmFPAviewNextReadout (pmFPAview *view, pmFPA *fpa, int nStep)198 pmReadout *pmFPAviewNextReadout (pmFPAview *view, const pmFPA *fpa, int nStep) 199 199 { 200 200 PS_ASSERT_PTR_NON_NULL(view, NULL); … … 231 231 } 232 232 233 pmHDU *pmFPAviewThisHDU(const pmFPAview *view, pmFPA *fpa)233 pmHDU *pmFPAviewThisHDU(const pmFPAview *view, const pmFPA *fpa) 234 234 { 235 235 PS_ASSERT_PTR_NON_NULL(view, NULL); … … 252 252 } 253 253 254 pmHDU *pmFPAviewThisPHU(const pmFPAview *view, pmFPA *fpa)254 pmHDU *pmFPAviewThisPHU(const pmFPAview *view, const pmFPA *fpa) 255 255 { 256 256 PS_ASSERT_PTR_NON_NULL(view, NULL); -
trunk/psModules/src/camera/pmFPAview.h
r9584 r9710 1 / ** @file pmFPAview.h2 * 3 *@brief Tools to manipulate the FPA structure elements.4 * 5 * @ingroup AstroImage 6 * 7 * @author EAM, IfA8 * 9 * @version $Revision: 1.4$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-10-17 00:33:56 $11 * 12 * Copyright 2004-2005Institute for Astronomy, University of Hawaii13 */1 /// @file pmFPA.h 2 /// 3 /// @brief Tools to manipulate the FPA structure elements. 4 /// 5 /// @ingroup Camera 6 /// 7 /// @author Eugene Magnier, IfA 8 /// 9 /// @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 10 /// @date $Date: 2006-10-21 04:02:36 $ 11 /// 12 /// Copyright 2005-2006 Institute for Astronomy, University of Hawaii 13 /// 14 14 15 15 #ifndef PM_FPA_VIEW_H … … 19 19 #include "pmFPALevel.h" 20 20 21 /// @addtogroup AstroImage 22 /// @{ 23 21 /// Identifier for FPA components 22 /// 23 /// This structure allows the identification of a single component of the focal plane hierarchy (or multiple, 24 /// if we consider selecting all those components below the selected component). Components are identified on 25 /// the basis of their chip, cell, readout index. An index of -1 means all components at that level. 26 /// Additionally, since readouts may be read piecemeal, there are additional indices for these. 24 27 typedef struct 25 28 { 26 int chip; // Number of the chip, or -1 for all27 int cell; // Number of the cell, or -1 for all28 int readout; // Number of the readout, or -1 for all29 int nRows; // Maximum number of rows per readout segment read, or 0 for all30 int iRows; // Starting point for this read29 int chip; ///< Number of the chip, or -1 for all 30 int cell; ///< Number of the cell, or -1 for all 31 int readout; ///< Number of the readout, or -1 for all 32 int nRows; ///< Maximum number of rows per readout segment read, or 0 for all 33 int iRows; ///< Starting point for this read 31 34 } 32 35 pmFPAview; 33 36 34 // allocate a pmFPAview structure for this fpa and camera 35 pmFPAview *pmFPAviewAlloc (int nRows); 37 /// Allocator for pmFPAview 38 pmFPAview *pmFPAviewAlloc(int nRows ///< Maximum number of rows per readout segment read, or 0 for all 39 ); 36 40 37 // Reset a view 38 bool pmFPAviewReset(pmFPAview *view); 41 /// Reset a view to select all components 42 bool pmFPAviewReset(pmFPAview *view ///< View to reset 43 ); 39 44 40 // determine the current view level 41 pmFPALevel pmFPAviewLevel (const pmFPAview *view); 45 /// Determine the current view level 46 /// 47 /// Returns the level appropriate for the view 48 pmFPALevel pmFPAviewLevel(const pmFPAview *view ///< View to examine 49 ); 42 50 43 // return the currently selected chip for this view 44 pmChip *pmFPAviewThisChip (const pmFPAview *view, pmFPA *fpa); 51 // Lookups 45 52 46 // advance view to the next chip 47 pmChip *pmFPAviewNextChip (pmFPAview *view, pmFPA *fpa, int nStep); 53 /// Return the currently selected chip for this view 54 /// 55 /// Returns NULL if the selection is not specific or invalid 56 pmChip *pmFPAviewThisChip(const pmFPAview *view, ///< Current view 57 const pmFPA *fpa ///< FPA containing chip 58 ); 48 59 49 // return the currently selected cell for this view 50 pmCell *pmFPAviewThisCell (const pmFPAview *view, pmFPA *fpa); 60 /// Return the currently selected cell for this view 61 /// 62 /// Returns NULL if the selection is not specific or invalid 63 pmCell *pmFPAviewThisCell(const pmFPAview *view, ///< Current view 64 const pmFPA *fpa ///< FPA containing cell 65 ); 51 66 52 // advance view to the next cell 53 pmCell *pmFPAviewNextCell (pmFPAview *view, pmFPA *fpa, int nStep); 67 /// Return the currently selected readout for this view 68 /// 69 /// Returns NULL if the selection is not specific or invalid 70 pmReadout *pmFPAviewThisReadout(const pmFPAview *view, ///< Current view 71 const pmFPA *fpa ///< FPA containing readout 72 ); 54 73 55 // return the currently selected readout for this view 56 pmReadout *pmFPAviewThisReadout (const pmFPAview *view, pmFPA *fpa); 74 // Incrementors 57 75 58 // advance view to the next readout 59 pmReadout *pmFPAviewNextReadout (pmFPAview *view, pmFPA *fpa, int nStep); 76 /// Advance view to the next chip 77 /// 78 /// Returns NULL if there is no next 79 pmChip *pmFPAviewNextChip(pmFPAview *view, ///< Current view 80 const pmFPA *fpa, ///< FPA containing chips 81 int nStep ///< Number of chips to increment 82 ); 60 83 61 // return the HDU corresponding to the current view 62 pmHDU *pmFPAviewThisHDU (const pmFPAview *view, pmFPA *fpa); 63 pmHDU *pmFPAviewThisPHU (const pmFPAview *view, pmFPA *fpa); 84 /// Advance view to the next cell 85 /// 86 /// Returns NULL if there is no next 87 pmCell *pmFPAviewNextCell(pmFPAview *view, ///< Current view 88 const pmFPA *fpa, ///< FPA containing cells 89 int nStep ///< Number of cells to increment 90 ); 64 91 65 # endif 92 /// Advance view to the next readout 93 /// 94 /// Returns NULL if there is no next 95 pmReadout *pmFPAviewNextReadout(pmFPAview *view, ///< Current view 96 const pmFPA *fpa, ///< FPA containing readouts 97 int nStep ///< Number of readouts to increment 98 ); 99 100 /// Return the HDU corresponding to the current view 101 /// 102 /// Uses the pmHDUFrom* functions, combined with the view. 103 pmHDU *pmFPAviewThisHDU(const pmFPAview *view, ///< Current view 104 const pmFPA *fpa ///< FPA for view 105 ); 106 107 /// Return the blank Primary HDU corresponding to the current view, if any 108 /// 109 /// Similar to pmFPAviewThisHDU, except returns NULL if no HDU is found, or the HDU is not a blank Primary HDU 110 pmHDU *pmFPAviewThisPHU(const pmFPAview *view, ///< Current view 111 const pmFPA *fpa ///< FPA for view 112 ); 113 114 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
