Changeset 538:835534c7c5ca


Ignore:
Timestamp:
04/28/08 17:52:42 (2 years ago)
Author:
Howard Butler <hobu.inc@…>
Branch:
default
Convert:
svn:1766ff46-f334-0410-ab20-d63176f87757/trunk@604
Message:

remove checks for setters, these are now in Validate()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/laspoint.cpp

    r537 r538  
    5959void LASPoint::SetReturnNumber(uint16_t const& num) 
    6060{ 
    61     if (num > 0x07) 
    62         throw std::out_of_range("return number out of range"); 
    63  
    6461    // Store value in bits 1,2,3 
    6562    uint8_t val = static_cast<uint8_t>(num); 
     
    7269void LASPoint::SetNumberOfReturns(uint16_t const& num) 
    7370{ 
    74     if (num > 0x07) 
    75         throw std::out_of_range("number of returns out of range"); 
    76  
    7771    // Store value in bits 4,5,6 
    7872    uint8_t val = static_cast<uint8_t>(num); 
     
    8579void LASPoint::SetScanDirection(uint16_t const& dir) 
    8680{ 
    87     if (dir > 0x01) 
    88         throw std::out_of_range("scan direction flag out of range"); 
    89      
    9081    // Store value in bit 7th 
    9182    uint8_t val = static_cast<uint8_t>(dir); 
     
    9889void LASPoint::SetFlightLineEdge(uint16_t const& edge) 
    9990{ 
    100     if (edge > 0x01) 
    101         throw std::out_of_range("edge of flight line out of range"); 
    102  
    10391    // Store value in bit 8th 
    10492    uint8_t val = static_cast<uint8_t>(edge); 
     
    11199void LASPoint::SetScanAngleRank(int8_t const& rank) 
    112100{ 
    113     // if (eScanAngleRankMin > rank || rank > eScanAngleRankMax) 
    114     //     throw std::out_of_range("scan angle rank out of range"); 
    115  
    116101    m_angleRank = rank; 
    117102} 
Note: See TracChangeset for help on using the changeset viewer.