MeVisLab Toolbox Reference
CSOLabelPlacementDistanceLines.h
Go to the documentation of this file.
1
/*************************************************************************************
2
**
3
** Copyright 2022, 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
#pragma once
14
15
#include "
../CSOLabelPlacement.h
"
16
17
ML_START_NAMESPACE
18
19
class
SOCSO_EXPORT
CSOLabelPlacementDistanceLines
:
public
CSOLabelPlacement
20
{
21
public
:
22
CSOLabelPlacementDistanceLines
();
23
25
void
getAttachedLabelPosition
(
const
CSODrawCSOInfos
&csoInfos,
26
const
CSODrawView2DInfos
&view2DInfos,
int
labelWidth
,
27
int
labelHeight
,
float
&
deviceX
,
float
&
deviceY
)
override
;
28
29
private
:
30
ML_MODULE_CLASS_HEADER
(
CSOLabelPlacementDistanceLines
);
31
};
32
33
ML_END_NAMESPACE
CSOLabelPlacement.h
SOCSO_EXPORT
#define SOCSO_EXPORT
Header file for system independent resolution.
Definition
SoCSOSystem.h:21
ml::CSOLabelPlacementDistanceLines
Definition
CSOLabelPlacementDistanceLines.h:20
ml::CSOLabelPlacementDistanceLines::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::CSOLabelPlacementDistanceLines::CSOLabelPlacementDistanceLines
CSOLabelPlacementDistanceLines()
ml::CSOLabelPlacement
Base module for providing custom label placement strategies.
Definition
CSOLabelPlacement.h:31
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
CSODrawCSOInfos
Definition
SoCSODefines.h:134
CSODrawView2DInfos
Definition
SoCSODefines.h:66
MeVisLab
Standard
Sources
Inventor
SoCSO
SoView2DCSOEditor
SoView2DCSOExtensibleEditor
extensions
SoCSOLabelRenderer
CSOLabelPlacement
CSOLabelPlacementDistanceLines.h
Generated by
1.10.0