Main Page
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Typedefs
Classes
Class List
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
u
x
z
Related Functions
:
b
c
d
e
o
p
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
Functions
a
b
c
d
f
g
i
k
m
n
o
p
q
r
s
t
Variables
Typedefs
Enumerations
Enumerator
Macros
_
a
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
src
extern
QGLViewer
VRender
SortMethod.h
Go to the documentation of this file.
1
/*
2
This file is part of the VRender library.
3
Copyright (C) 2005 Cyril Soler (Cyril.Soler@imag.fr)
4
Version 1.0.0, released on June 27, 2005.
5
6
http://artis.imag.fr/Members/Cyril.Soler/VRender
7
8
VRender is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 2 of the License, or
11
(at your option) any later version.
12
13
VRender is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with VRender; if not, write to the Free Software Foundation, Inc.,
20
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
21
*/
22
23
/****************************************************************************
24
25
Copyright (C) 2002-2014 Gilles Debunne. All rights reserved.
26
27
This file is part of the QGLViewer library version 2.6.3.
28
29
http://www.libqglviewer.com - contact@libqglviewer.com
30
31
This file may be used under the terms of the GNU General Public License
32
versions 2.0 or 3.0 as published by the Free Software Foundation and
33
appearing in the LICENSE file included in the packaging of this file.
34
In addition, as a special exception, Gilles Debunne gives you certain
35
additional rights, described in the file GPL_EXCEPTION in this package.
36
37
libQGLViewer uses dual licensing. Commercial/proprietary software must
38
purchase a libQGLViewer Commercial License.
39
40
This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
41
WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
42
43
*****************************************************************************/
44
45
#ifndef _SORTMETHOD_H
46
#define _SORTMETHOD_H
47
48
#include <vector>
49
#include "
Types.h
"
50
51
namespace
vrender
52
{
53
// Class which implements the sorting of the primitives. An object of
54
class
VRenderParams ;
55
class
SortMethod
56
{
57
public
:
58
SortMethod
() {}
59
virtual
~SortMethod
() {}
60
61
virtual
void
sortPrimitives
(std::vector<PtrPrimitive>&,VRenderParams&) = 0 ;
62
63
void
SetZDepth
(
FLOAT
s) {
zSize
= s ; }
64
FLOAT
ZDepth
()
const
{
return
zSize
; }
65
66
protected
:
67
FLOAT
zSize
;
68
};
69
70
class
DontSortMethod:
public
SortMethod
71
{
72
public
:
73
DontSortMethod
() {}
74
virtual
~DontSortMethod
() {}
75
76
virtual
void
sortPrimitives
(std::vector<PtrPrimitive>&,
VRenderParams
&) {}
77
};
78
79
class
BSPSortMethod
:
public
SortMethod
80
{
81
public
:
82
BSPSortMethod
() {} ;
83
virtual
~BSPSortMethod
() {}
84
85
virtual
void
sortPrimitives
(std::vector<PtrPrimitive>&,
VRenderParams
&) ;
86
};
87
88
class
TopologicalSortMethod
:
public
SortMethod
89
{
90
public
:
91
TopologicalSortMethod
() ;
92
virtual
~TopologicalSortMethod
() {}
93
94
virtual
void
sortPrimitives
(std::vector<PtrPrimitive>&,
VRenderParams
&) ;
95
96
void
setBreakCycles
(
bool
b) {
_break_cycles
= b ; }
97
private
:
98
bool
_break_cycles
;
99
};
100
}
101
102
#endif
vrender::DontSortMethod::DontSortMethod
DontSortMethod()
Definition:
SortMethod.h:93
vrender::TopologicalSortMethod::_break_cycles
bool _break_cycles
Definition:
SortMethod.h:118
Types.h
vrender::VRenderParams
Definition:
VRender.h:82
vrender::TopologicalSortMethod
Definition:
SortMethod.h:108
vrender::SortMethod::sortPrimitives
virtual void sortPrimitives(std::vector< PtrPrimitive > &, VRenderParams &)=0
vrender::TopologicalSortMethod::setBreakCycles
void setBreakCycles(bool b)
Definition:
SortMethod.h:116
vrender::BSPSortMethod::BSPSortMethod
BSPSortMethod()
Definition:
SortMethod.h:102
vrender::DontSortMethod::~DontSortMethod
virtual ~DontSortMethod()
Definition:
SortMethod.h:94
vrender::SortMethod::~SortMethod
virtual ~SortMethod()
Definition:
SortMethod.h:79
vrender::SortMethod::SortMethod
SortMethod()
Definition:
SortMethod.h:78
vrender::FLOAT
double FLOAT
Definition:
Types.h:80
vrender::BSPSortMethod::sortPrimitives
virtual void sortPrimitives(std::vector< PtrPrimitive > &, VRenderParams &)
Definition:
BSPSortMethod.cpp:77
vrender::DontSortMethod::sortPrimitives
virtual void sortPrimitives(std::vector< PtrPrimitive > &, VRenderParams &)
Definition:
SortMethod.h:96
vrender::SortMethod::ZDepth
FLOAT ZDepth() const
Definition:
SortMethod.h:84
vrender
Definition:
AxisAlignedBox.h:48
vrender::TopologicalSortMethod::TopologicalSortMethod
TopologicalSortMethod()
Definition:
TopologicalSortMethod.cpp:107
vrender::BSPSortMethod::~BSPSortMethod
virtual ~BSPSortMethod()
Definition:
SortMethod.h:103
vrender::BSPSortMethod
Definition:
SortMethod.h:99
vrender::SortMethod::zSize
FLOAT zSize
Definition:
SortMethod.h:87
vrender::SortMethod
Definition:
SortMethod.h:75
vrender::TopologicalSortMethod::sortPrimitives
virtual void sortPrimitives(std::vector< PtrPrimitive > &, VRenderParams &)
Definition:
TopologicalSortMethod.cpp:112
vrender::SortMethod::SetZDepth
void SetZDepth(FLOAT s)
Definition:
SortMethod.h:83
vrender::TopologicalSortMethod::~TopologicalSortMethod
virtual ~TopologicalSortMethod()
Definition:
SortMethod.h:112
octovis
Author(s): Kai M. Wurm
, Armin Hornung
autogenerated on Thu Apr 3 2025 02:40:44