BALL
1.4.79
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
box.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
// $Id: box.h,v 1.9.16.1 2007-03-25 21:26:07 oliver Exp $
5
//
6
7
#ifndef BALL_VIEW_PRIMITIV_BOX_H
8
#define BALL_VIEW_PRIMITIV_BOX_H
9
10
#ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
11
# include <
BALL/VIEW/KERNEL/geometricObject.h
>
12
#endif
13
14
#ifndef BALL_MATHS_BOX3_H
15
# include <
BALL/MATHS/box3.h
>
16
#endif
17
18
namespace
BALL
19
{
20
namespace
VIEW
21
{
22
30
class
BALL_VIEW_EXPORT
Box
31
:
public
GeometricObject
,
32
public
Box3
33
{
34
public
:
35
36
BALL_CREATE
(
Box
)
37
38
41
53
Box
();
54
57
Box
(
const
Box
& box);
58
59
Box
(
const
Vector3
& point,
60
const
Vector3
& right_vector,
61
const
Vector3
& height_vector,
62
float
depth);
63
64
Box
(
const
Vector3
& point,
65
const
Vector3
& right_vector =
Vector3
(0, 1, 0),
66
const
Vector3
& height_vector =
Vector3
(1, 0, 0),
67
const
Vector3
& depth_vector =
Vector3
(0, 0, 1));
68
70
72
75
virtual
~
Box
();
76
81
virtual
void
clear();
82
84
87
90
void
set(
const
Box
& box);
91
94
const
Box
& operator = (
const
Box
& box);
95
97
100
111
virtual
bool
isValid()
const
;
112
123
virtual
void
dump(std::ostream& s = std::cout,
Size
depth = 0)
const
;
124
125
// Method to get all vertices from a geometric object
126
virtual
void
getVertices(vector<Vector3>& vertices)
const
;
128
};
129
130
}
// namespace VIEW
131
}
// namespace BALL
132
133
#endif // BALL_VIEW_PRIMITIV_BOX_H
BALL::VIEW::GeometricObject
Definition:
geometricObject.h:36
BALL_CREATE
#define BALL_CREATE(name)
Definition:
create.h:62
BALL::TVector3< float >
BALL::VIEW::Box
Definition:
box.h:30
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition:
COMMON/global.h:52
geometricObject.h
BALL::Vector3
TVector3< float > Vector3
Definition:
vector3.h:1084
box3.h
BALL_SIZE_TYPE
BALL::TBox3
Definition:
box3.h:32
Generated by
1.8.7