MeVisLab Toolbox Reference
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Variables
_
a
b
c
d
e
f
h
i
l
m
n
o
p
s
v
w
Typedefs
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
v
w
z
Enumerations
a
b
c
d
e
f
l
m
n
o
p
r
s
t
v
w
Enumerator
a
b
c
d
e
f
g
i
j
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
v
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Related Functions
:
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
c
f
g
h
i
m
o
p
r
s
Variables
_
c
i
k
m
p
r
s
v
w
Typedefs
c
d
e
f
g
h
i
m
p
s
t
u
v
Enumerations
a
b
c
d
e
f
h
k
l
m
n
p
r
s
t
v
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
c
d
e
g
i
l
m
n
o
p
r
s
t
u
v
w
x
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
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< AttachedLabelPlacement >
ML_MODULE_CLASS_HEADER
#define ML_MODULE_CLASS_HEADER(className)
Similar to ML_CLASS_HEADER for the usage of derived classes from Module.
Definition:
mlRuntimeSubClass.h:235
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:145
CSODrawView2DInfos
Definition:
SoCSODefines.h:66
MeVisLab
Standard
Sources
Inventor
SoCSO
SoView2DCSOEditor
SoView2DCSOExtensibleEditor
extensions
SoCSOLabelRenderer
CSOLabelPlacement
CSOLabelPlacementLocal.h
Generated by
1.9.1