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
18
#include "
../CSOLabelPlacement.h
"
19
20
ML_START_NAMESPACE
21
22
enum
AttachedLabelPlacement
23
{
24
RightmostSeedPoint
= 0,
25
RightmostPathPoint
= 1,
26
RightmostSeedOrPathPoint
= 2
27
};
28
30
class
SOCSO_EXPORT
CSOLabelPlacementLocal
:
public
CSOLabelPlacement
31
{
32
public
:
33
34
CSOLabelPlacementLocal
();
35
37
void
getAttachedLabelPosition
(
const
CSODrawCSOInfos
& csoInfos,
const
CSODrawView2DInfos
& view2DInfos,
int
labelWidth
,
int
labelHeight
,
float
&
deviceX
,
float
&
deviceY
)
override
;
38
39
private
:
40
41
TypedEnumField<AttachedLabelPlacement>
* _attachedLabelPlacementFld;
42
43
ML_MODULE_CLASS_HEADER
(
CSOLabelPlacementLocal
);
44
};
45
46
ML_END_NAMESPACE
CSOLabelPlacement.h
SOCSO_EXPORT
#define SOCSO_EXPORT
Header file for system independent resolution.
Definition
SoCSOSystem.h:21
ml::CSOLabelPlacementLocal
Label placement strategy.
Definition
CSOLabelPlacementLocal.h:31
ml::CSOLabelPlacementLocal::getAttachedLabelPosition
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.
ml::CSOLabelPlacementLocal::CSOLabelPlacementLocal
CSOLabelPlacementLocal()
ml::CSOLabelPlacement
Base module for providing custom label placement strategies.
Definition
CSOLabelPlacement.h:31
ml::TypedEnumField
TypedEnumField is used to encapsulate a C++ enum value and work with a real enum value instead of int...
Definition
mlFields.h:384
ML_MODULE_CLASS_HEADER
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
Definition
mlRuntimeSubClass.h:235
mlrange_cast
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
Definition
mlRangeCasts.h:332
ml::AttachedLabelPlacement
AttachedLabelPlacement
Definition
CSOLabelPlacementLocal.h:23
ml::RightmostSeedOrPathPoint
@ RightmostSeedOrPathPoint
Definition
CSOLabelPlacementLocal.h:26
ml::RightmostSeedPoint
@ RightmostSeedPoint
Definition
CSOLabelPlacementLocal.h:24
ml::RightmostPathPoint
@ RightmostPathPoint
Definition
CSOLabelPlacementLocal.h:25
CSODrawCSOInfos
Definition
SoCSODefines.h:134
CSODrawView2DInfos
Definition
SoCSODefines.h:66
MeVisLab
Standard
Sources
Inventor
SoCSO
SoView2DCSOEditor
SoView2DCSOExtensibleEditor
extensions
SoCSOLabelRenderer
CSOLabelPlacement
CSOLabelPlacementLocal.h
Generated by
1.10.0