MeVisLab Toolbox Reference
CSOLabelPlacementLocal.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2014, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13
15
16#pragma once
17
19
21
28
31{
32public:
33
35
37 void getAttachedLabelPosition( const CSODrawCSOInfos& csoInfos, const CSODrawView2DInfos& view2DInfos, int labelWidth, int labelHeight, float& deviceX, float& deviceY ) override;
38
39private:
40
41 TypedEnumField<AttachedLabelPlacement>* _attachedLabelPlacementFld;
42
44};
45
#define SOCSO_EXPORT
Header file for system independent resolution.
Definition SoCSOSystem.h:21
Label placement strategy.
void getAttachedLabelPosition(const CSODrawCSOInfos &csoInfos, const CSODrawView2DInfos &view2DInfos, int labelWidth, int labelHeight, float &deviceX, float &deviceY) override
Fills up the device position for an attached label.
Base module for providing custom label placement strategies.
TypedEnumField is used to encapsulate a C++ enum value and work with a real enum value instead of int...
Definition mlFields.h:384
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
@ RightmostSeedOrPathPoint