ctkHistogram.cpp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) Kitware Inc.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0.txt
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. =========================================================================*/
  14. /// CTK includes
  15. #include "ctkHistogram.h"
  16. //-----------------------------------------------------------------------------
  17. ctkHistogram::ctkHistogram(QObject* parentObject)
  18. :ctkTransferFunction(parentObject)
  19. {
  20. }
  21. //-----------------------------------------------------------------------------
  22. ctkHistogram::~ctkHistogram()
  23. {
  24. }
  25. //-----------------------------------------------------------------------------
  26. bool ctkHistogram::isDiscrete()const
  27. {
  28. return true;
  29. }
  30. //-----------------------------------------------------------------------------
  31. bool ctkHistogram::isEditable()const
  32. {
  33. return false;
  34. }
  35. //-----------------------------------------------------------------------------
  36. int ctkHistogram::insertControlPoint(const ctkControlPoint& cp)
  37. {
  38. Q_UNUSED(cp);
  39. return -1;
  40. }
  41. //-----------------------------------------------------------------------------
  42. int ctkHistogram::insertControlPoint(qreal pos)
  43. {
  44. Q_UNUSED(pos);
  45. return -1;
  46. }
  47. //-----------------------------------------------------------------------------
  48. void ctkHistogram::setControlPointPos(int index, qreal pos)
  49. {
  50. Q_UNUSED(index);
  51. Q_UNUSED(pos);
  52. }
  53. //-----------------------------------------------------------------------------
  54. void ctkHistogram::setControlPointValue(int index, const QVariant& value)
  55. {
  56. Q_UNUSED(index);
  57. Q_UNUSED(value);
  58. }