MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
CSOFunction.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2009, 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
16
17#pragma once
18
19#include "MLCSOIncludes.h"
20
21
23
25
29{
30
31public:
33 CSOFunction() = default;
35 virtual ~CSOFunction() = default;
36
38 inline virtual float evaluateAtPos(const Vector3&) const
39 {
40 return 0.0f;
41 };
42
44 inline virtual bool shouldParallelize() const
45 {
46 return false;
47 }
48
50 inline virtual bool logging() const
51 {
52 return true;
53 }
54};
55
57
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
Definition MLCSOSystem.h:23
Base class for distance functions for application in the marching cubes algorithm.
Definition CSOFunction.h:29
CSOFunction()=default
Constructor (empty).
virtual ~CSOFunction()=default
Destructor (empty).
virtual bool logging() const
Returns whether logging is enabled.
Definition CSOFunction.h:50
virtual float evaluateAtPos(const Vector3 &) const
Returns a scalar (distance) for a position.
Definition CSOFunction.h:38
virtual bool shouldParallelize() const
Returns whether calls to evaluateAtPos should and can be done from different threads.
Definition CSOFunction.h:44
Target mlrange_cast(Source arg)
Generic version of checked ML casts.