BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
VIEW
PRIMITIVES
gridVisualisation.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
// $Id: gridVisualisation.h,v 1.1.4.1 2007-03-25 21:26:08 oliver Exp $
5
//
6
7
#ifndef BALL_VIEW_PRIMITIV_GRIDSLICE_H
8
#define BALL_VIEW_PRIMITIV_GRIDSLICE_H
9
10
#ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
11
# include <
BALL/VIEW/KERNEL/geometricObject.h
>
12
#endif
13
14
#ifndef BALL_DATATYPE_REGULARDATA3D_H
15
# include <
BALL/DATATYPE/regularData3D.h
>
16
#endif
17
18
namespace
BALL
19
{
20
namespace
VIEW
21
{
25
class
BALL_VIEW_EXPORT
GridVisualisation
26
:
public
GeometricObject
27
{
28
public
:
29
30
enum
Type
31
{
33
PLANE
,
34
36
SLICES
,
37
39
DOTS
40
};
41
42
BALL_CREATE
(
GridVisualisation
)
43
44
45
GridVisualisation
();
46
48
GridVisualisation(const GridVisualisation& plane);
49
52
virtual ~GridVisualisation(){};
53
55
const
GridVisualisation
& operator = (
const
GridVisualisation
& plane);
56
58
const
Vector3
&
getNormal
()
const
{
return
normal_;}
59
61
void
setNormal
(
const
Vector3
& normal) { normal_ = normal;}
62
64
const
Vector3
&
getPoint
()
const
{
return
point_;}
65
67
void
setPoint
(
const
Vector3
& v) { point_ = v;}
68
70
void
setGrid
(
const
RegularData3D
* grid) { grid_ = grid;}
71
73
const
RegularData3D
*
getGrid
()
const
{
return
grid_;}
74
76
Position
getTexture
()
const
{
return
texture_;}
77
79
void
setTexture
(
Position
texture) { texture_ = texture;}
80
82
void
setDotSize
(
Size
dot_size) { dot_size_ = dot_size;}
83
85
Size
getDotSize
()
const
{
return
dot_size_;}
86
87
Vector3
origin, x,y,
z
;
88
float
max_dim
;
89
Size
slices
;
90
vector<Vector3>
points
;
91
Type
type
;
92
bool
draw_box
;
93
94
protected
:
95
96
Vector3
normal_
;
97
Vector3
point_
;
98
Position
texture_
;
99
const
RegularData3D
*
grid_
;
100
Size
dot_size_
;
101
};
102
103
}
// namespace VIEW
104
}
// namespace BALL
105
106
#endif // BALL_VIEW_KERNEL_CLIPPING_PLANE_H
Generated by
1.8.3.1