3D Human Airway Tree
Program generuje ludzkie drzewo oskrzelowe
Strona główna
Dodatkowe strony
Przestrzenie nazw
Klasy
Pliki
Lista plików
Składowe plików
src
SimpleOrganShape.h
Idź do dokumentacji tego pliku.
1
/*=========================================================================
2
3
Program: 3D Human Airway Tree
4
Module: SimpleOrganShape.h
5
Copyright (c) Kacper Pluta <kacperp@wsinf.edu.pl>
6
All rights reserved.
7
See Copyright.txt or http://leo.wsinf.edu.pl/~kacperp/3dtree for details.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notice for more information.
12
13
=========================================================================*/
14
18
#ifndef SIMPLEORGANSHAPE_H
19
#define SIMPLEORGANSHAPE_H
20
21
#include <vtkImplicitFunction.h>
22
#include <vtkSampleFunction.h>
23
#include <vtkContourFilter.h>
24
#include <vtkImageData.h>
25
#include "
BasicObject.h
"
26
27
class
SimpleOrganShape
:
public
vtkImplicitFunction,
public
BasicObject
28
{
29
private
:
30
vtkSampleFunction *imlFunction;
31
vtkContourFilter *shapeContour;
32
public
:
34
vtkTypeMacro
(
SimpleOrganShape
,vtkImplicitFunction)
36
static
SimpleOrganShape
*New();
38
void
Evaluate
();
40
virtual
void
Delete
(){imlFunction->Delete(); shapeContour->Delete(); this->
vtkImplicitFunction::Delete
();}
41
protected
:
43
virtual
void
EvaluateGradient
(
double
x[3],
double
g[3]){}
45
virtual
double
EvaluateFunction
(
double
x[3]);
46
SimpleOrganShape
();
47
virtual
~SimpleOrganShape
(){}
48
};
49
50
#endif // SIMPLEORGANSHAPE_H
Wygenerowano przez
1.8.1