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
twoColoredTube.h
Go to the documentation of this file.
1
// -*- Mode: C++; tab-width: 2; -*-
2
// vi: set ts=2:
3
//
4
// $Id: twoColoredTube.h,v 1.11.16.1 2007-03-25 21:26:12 oliver Exp $
5
//
6
7
#ifndef BALL_VIEW_PRIMITIVES_TWOCOLOREDTUBE_H
8
#define BALL_VIEW_PRIMITIVES_TWOCOLOREDTUBE_H
9
10
#ifndef BALL_VIEW_DATATYPE_COLOREXTENSIONS_H
11
# include <
BALL/VIEW/DATATYPE/colorExtensions.h
>
12
#endif
13
14
#ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
15
# include <
BALL/VIEW/KERNEL/geometricObject.h
>
16
#endif
17
18
#ifndef BALL_VIEW_DATATYPE_VERTEX2_H
19
# include <
BALL/VIEW/DATATYPE/vertex2.h
>
20
#endif
21
22
namespace
BALL
23
{
24
namespace
VIEW
25
{
45
class
BALL_VIEW_EXPORT
TwoColoredTube
46
:
public
GeometricObject
,
47
public
ColorExtension2
,
48
public
Vertex2
49
{
50
public
:
51
52
BALL_CREATE
(
TwoColoredTube
)
53
54
57
72
TwoColoredTube
();
73
79
TwoColoredTube
(
const
TwoColoredTube
& two_colored_tube);
80
82
84
88
virtual
~
TwoColoredTube
();
89
99
virtual
void
clear();
100
102
104
110
void
set(
const
TwoColoredTube
& two_colored_tube);
111
115
const
TwoColoredTube
& operator = (
const
TwoColoredTube
& two_colored_tube);
116
119
void
swap(
TwoColoredTube
& two_colored_tube);
120
122
125
130
float
getLength()
const
;
131
138
Vector3
getMiddleVertex()
const
;
139
141
144
156
virtual
bool
isValid()
const
;
157
172
virtual
void
dump(std::ostream& s = std::cout,
Size
depth = 0)
const
;
173
175
177
179
float
getRadius
()
const
180
{
return
radius_;}
181
183
void
setRadius
(
float
radius)
184
{ radius_ = radius;}
185
186
// Method to get all vertices from a geometric object
187
virtual
void
getVertices(vector<Vector3>& vertices)
const
;
188
190
191
private
:
192
193
float
radius_;
194
};
195
196
#ifndef BALL_NO_INLINE_FUNCTIONS
197
# include <BALL/VIEW/PRIMITIVES/twoColoredTube.iC>
198
#endif
199
200
}
// namespace VIEW
201
}
// namespace BALL
202
203
#endif // BALL_VIEW_PRIMITIVES_TWOCOLOREDTUBE_H
BALL::VIEW::GeometricObject
Definition:
geometricObject.h:36
BALL_CREATE
#define BALL_CREATE(name)
Definition:
create.h:62
BALL::TVector3< float >
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition:
COMMON/global.h:52
vertex2.h
geometricObject.h
BALL::VIEW::ColorExtension2
Definition:
colorExtensions.h:25
BALL::VIEW::TwoColoredTube
Definition:
twoColoredTube.h:45
BALL::VIEW::Vertex2
Definition:
vertex2.h:32
BALL_SIZE_TYPE
BALL::VIEW::TwoColoredTube::getRadius
float getRadius() const
Get the radius.
Definition:
twoColoredTube.h:179
colorExtensions.h
BALL::VIEW::TwoColoredTube::setRadius
void setRadius(float radius)
Set the radius.
Definition:
twoColoredTube.h:183
Generated by
1.8.6