MeVisLab Toolbox Reference
CSOLabelPlacement.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 "SoCSOSystem.h"
19 #include "SoCSOIncludes.h"
20 #include "SoCSODefines.h"
21 
22 #include <mlModuleIncludes.h>
23 
24 
25 class SoCSOLabelRenderer;
26 
27 ML_START_NAMESPACE
28 
31 {
32 public:
33 
35 
36  virtual void layoutVisibleCSOs( const std::vector<CSODrawCSOInfos>&,
37  const std::map < int, SbVec2f>& ,
38  const CSODrawView2DInfos& ,
39  SoCSOLabelRenderer* ) {}
40 
42  virtual void getAttachedLabelPosition( const CSODrawCSOInfos& csoInfos, const CSODrawView2DInfos& view2DInfos, int labelWidth, int labelHeight, float& deviceX, float& deviceY );
43 
44  virtual void getLayoutedLabelPosition( const CSODrawCSOInfos& , const CSODrawView2DInfos& , float& , float& ) {}
45 
46 protected:
47 
49 
50 private:
51 
53 };
54 
55 ML_END_NAMESPACE
#define SOCSO_EXPORT
Header file for system independent resolution.
Definition: SoCSOSystem.h:21
Extension for rendering labels for CSOs.
Field to encapsulate a pointer to an ML base object.
Definition: mlFields.h:1187
Base module for providing custom label placement strategies.
BaseField * _outputPlacementFld
virtual void layoutVisibleCSOs(const std::vector< CSODrawCSOInfos > &, const std::map< int, SbVec2f > &, const CSODrawView2DInfos &, SoCSOLabelRenderer *)
virtual void getAttachedLabelPosition(const CSODrawCSOInfos &csoInfos, const CSODrawView2DInfos &view2DInfos, int labelWidth, int labelHeight, float &deviceX, float &deviceY)
Fills up the device position for an attached label.
virtual void getLayoutedLabelPosition(const CSODrawCSOInfos &, const CSODrawView2DInfos &, float &, float &)
Base class for an image processing module of the ML.
Definition: mlModule.h:156
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.