Changeset 538:835534c7c5ca
- Timestamp:
- 04/28/08 17:52:42 (2 years ago)
- Branch:
- default
- Convert:
- svn:1766ff46-f334-0410-ab20-d63176f87757/trunk@604
- File:
-
- 1 edited
-
src/laspoint.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/laspoint.cpp
r537 r538 59 59 void LASPoint::SetReturnNumber(uint16_t const& num) 60 60 { 61 if (num > 0x07)62 throw std::out_of_range("return number out of range");63 64 61 // Store value in bits 1,2,3 65 62 uint8_t val = static_cast<uint8_t>(num); … … 72 69 void LASPoint::SetNumberOfReturns(uint16_t const& num) 73 70 { 74 if (num > 0x07)75 throw std::out_of_range("number of returns out of range");76 77 71 // Store value in bits 4,5,6 78 72 uint8_t val = static_cast<uint8_t>(num); … … 85 79 void LASPoint::SetScanDirection(uint16_t const& dir) 86 80 { 87 if (dir > 0x01)88 throw std::out_of_range("scan direction flag out of range");89 90 81 // Store value in bit 7th 91 82 uint8_t val = static_cast<uint8_t>(dir); … … 98 89 void LASPoint::SetFlightLineEdge(uint16_t const& edge) 99 90 { 100 if (edge > 0x01)101 throw std::out_of_range("edge of flight line out of range");102 103 91 // Store value in bit 8th 104 92 uint8_t val = static_cast<uint8_t>(edge); … … 111 99 void LASPoint::SetScanAngleRank(int8_t const& rank) 112 100 { 113 // if (eScanAngleRankMin > rank || rank > eScanAngleRankMax)114 // throw std::out_of_range("scan angle rank out of range");115 116 101 m_angleRank = rank; 117 102 }
Note: See TracChangeset
for help on using the changeset viewer.
