Flow123d
release_2.2.0-914-gf1a3a4f
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
flow123d
src
mesh
ngh
include
abscissa.h
Go to the documentation of this file.
1
/*!
2
*
3
* Copyright (C) 2015 Technical University of Liberec. All rights reserved.
4
*
5
* This program is free software; you can redistribute it and/or modify it under
6
* the terms of the GNU General Public License version 3 as published by the
7
* Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
8
*
9
* This program is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
*
13
*
14
* @file abscissa.h
15
* @brief
16
*/
17
18
#ifndef abscissaH
19
#define abscissaH
20
21
#include "
bisector.h
"
22
#include "
point.h
"
23
#include "
mesh/bounding_box.hh
"
24
25
namespace
ngh
{
26
27
28
class
TAbscissa
:
public
TBisector
{
29
private
:
30
static
int
numberInstance
;
31
int
id
;
32
33
BoundingBox
boundingBox
;
34
35
double
length
;
36
37
int
generateId
();
38
void
ComputeLength
();
39
40
public
:
41
TAbscissa
();
42
TAbscissa
(
const
TPoint
&,
const
TPoint
&);
43
TAbscissa
(
const
Element
&);
44
~TAbscissa
();
45
46
TAbscissa
&
operator =
(
const
TAbscissa
&);
47
48
double
Length
();
49
BoundingBox
&
get_bounding_box
();
50
51
void
SetPoints
(
const
TPoint
&,
const
TPoint
&);
52
53
double
GetMin
(
int
)
const
;
54
double
GetMax
(
int
)
const
;
55
56
bool
IsInner
(
const
TPoint
&)
const
;
57
58
static
int
getNumInstances
() {
59
return
TAbscissa::numberInstance
;
60
}
61
};
62
63
}
// namespace ngh
64
65
#endif
BoundingBox
Bounding box in 3d ambient space.
Definition:
bounding_box.hh:45
ngh::TAbscissa::GetMax
double GetMax(int) const
Definition:
abscissa.cpp:105
ngh::TAbscissa::IsInner
bool IsInner(const TPoint &) const
Definition:
abscissa.cpp:113
ngh::TAbscissa::operator=
TAbscissa & operator=(const TAbscissa &)
Definition:
abscissa.cpp:55
ngh::TAbscissa::TAbscissa
TAbscissa()
Definition:
abscissa.cpp:32
ngh
Definition:
abscissa.h:25
point.h
ngh::TAbscissa::Length
double Length()
Definition:
abscissa.cpp:78
ngh::TAbscissa::SetPoints
void SetPoints(const TPoint &, const TPoint &)
Definition:
abscissa.cpp:68
ngh::TAbscissa::get_bounding_box
BoundingBox & get_bounding_box()
Definition:
abscissa.cpp:82
bisector.h
ngh::TAbscissa::getNumInstances
static int getNumInstances()
Definition:
abscissa.h:58
Element
Definition:
elements.h:39
ngh::TAbscissa::id
int id
Definition:
abscissa.h:31
ngh::TAbscissa::boundingBox
BoundingBox boundingBox
Definition:
abscissa.h:33
ngh::TAbscissa
Definition:
abscissa.h:28
ngh::TAbscissa::ComputeLength
void ComputeLength()
Definition:
abscissa.cpp:73
ngh::TPoint
Definition:
point.h:29
bounding_box.hh
ngh::TAbscissa::generateId
int generateId()
Definition:
abscissa.cpp:28
ngh::TAbscissa::~TAbscissa
~TAbscissa()
Definition:
abscissa.cpp:65
ngh::TAbscissa::length
double length
Definition:
abscissa.h:35
ngh::TBisector
Definition:
bisector.h:31
ngh::TAbscissa::numberInstance
static int numberInstance
Definition:
abscissa.h:30
ngh::TAbscissa::GetMin
double GetMin(int) const
Definition:
abscissa.cpp:96
Generated by
1.8.11