AztecDetectorResult.cpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
  2. /*
  3. * AtztecDetecorResult.cpp
  4. * zxing
  5. *
  6. * Created by Lukas Stabe on 08/02/2012.
  7. * Copyright 2012 ZXing authors All rights reserved.
  8. *
  9. * Licensed under the Apache License, Version 2.0 (the "License");
  10. * you may not use this file except in compliance with the License.
  11. * You may obtain a copy of the License at
  12. *
  13. * http://www.apache.org/licenses/LICENSE-2.0
  14. *
  15. * Unless required by applicable law or agreed to in writing, software
  16. * distributed under the License is distributed on an "AS IS" BASIS,
  17. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. * See the License for the specific language governing permissions and
  19. * limitations under the License.
  20. */
  21. #include <zxing/aztec/AztecDetectorResult.h>
  22. using zxing::aztec::AztecDetectorResult;
  23. // VC++
  24. using zxing::Ref;
  25. using zxing::ArrayRef;
  26. using zxing::BitMatrix;
  27. using zxing::ResultPoint;
  28. AztecDetectorResult::AztecDetectorResult(Ref<BitMatrix> bits,
  29. ArrayRef< Ref<ResultPoint> > points,
  30. bool compact,
  31. int nbDatablocks,
  32. int nbLayers)
  33. : DetectorResult(bits, points),
  34. compact_(compact),
  35. nbDatablocks_(nbDatablocks),
  36. nbLayers_(nbLayers) {
  37. }
  38. bool AztecDetectorResult::isCompact() {
  39. return compact_;
  40. }
  41. int AztecDetectorResult::getNBDatablocks() {
  42. return nbDatablocks_;
  43. }
  44. int AztecDetectorResult::getNBLayers() {
  45. return nbLayers_;
  46. }