diff --git a/Modules/Overlays/mitkColorBarOverlay.h b/Modules/Overlays/mitkColorBarOverlay.h index 2d3619184d..bcbfef7d32 100644 --- a/Modules/Overlays/mitkColorBarOverlay.h +++ b/Modules/Overlays/mitkColorBarOverlay.h @@ -1,101 +1,101 @@ /*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #ifndef COLORBAROVERLAY_H #define COLORBAROVERLAY_H #include #include #include #include #include "MitkOverlaysExports.h" class vtkScalarBarActor; namespace mitk { /** \brief Displays configurable scales on the renderwindow. The scale is determined by the image spacing. */ -class MITK_CORE_EXPORT ColorBarOverlay : public mitk::VtkOverlay { +class MitkOverlays_EXPORT ColorBarOverlay : public mitk::VtkOverlay { public: class LocalStorage : public mitk::Overlay::BaseLocalStorage { public: /** \brief Actor of a 2D render window. */ vtkSmartPointer m_ScalarBarActor; /** \brief Timestamp of last update of stored data. */ itk::TimeStamp m_LastUpdateTime; /** \brief Default constructor of the local storage. */ LocalStorage(); /** \brief Default deconstructor of the local storage. */ ~LocalStorage(); }; mitkClassMacro(ColorBarOverlay, mitk::VtkOverlay); itkFactorylessNewMacro(Self) itkCloneMacro(Self) void SetDrawAnnotations(bool annotations); bool GetDrawAnnotations() const; void SetOrientationToHorizontal(); void SetOrientationToVertical(); void SetOrientation(int orientation); int GetOrientation() const; void SetMaxNumberOfColors(int numberOfColors); int GetMaxNumberOfColors() const; void SetNumberOfLabels(int numberOfLabels); int GetNumberOfLabels() const; void SetLookupTable(vtkSmartPointer table); vtkSmartPointer GetLookupTable() const; void SetDrawTickLabels(bool ticks); bool GetDrawTickLabels() const; void SetAnnotationTextScaling(bool scale); bool GetAnnotationTextScaling() const; protected: /** \brief The LocalStorageHandler holds all LocalStorages for the render windows. */ mutable mitk::LocalStorageHandler m_LSH; virtual vtkProp* GetVtkProp(BaseRenderer *renderer) const; virtual void UpdateVtkOverlay(BaseRenderer *renderer); /** \brief explicit constructor which disallows implicit conversions */ explicit ColorBarOverlay(); /** \brief virtual destructor in order to derive from this class */ virtual ~ColorBarOverlay(); private: /** \brief copy constructor */ ColorBarOverlay( const ColorBarOverlay &); /** \brief assignment operator */ ColorBarOverlay &operator=(const ColorBarOverlay &); }; } // namespace mitk #endif // COLORBAROVERLAY_H