Loading...
Searching...
No Matches
box.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: box.h,v 1.9.16.1 2007-03-25 21:26:07 oliver Exp $
//
#ifndef BALL_VIEW_PRIMITIV_BOX_H
#define BALL_VIEW_PRIMITIV_BOX_H
#ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
# include <BALL/VIEW/KERNEL/geometricObject.h>
#endif
#ifndef BALL_MATHS_BOX3_H
# include <BALL/MATHS/box3.h>
#endif
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT Box
: public GeometricObject,
public Box3
{
public:
BALL_CREATE(Box)
//@{
Box();
Box(const Box& box);
Box(const Vector3& point,
const Vector3& right_vector,
const Vector3& height_vector,
float depth);
Box(const Vector3& point,
const Vector3& right_vector = Vector3(0, 1, 0),
const Vector3& height_vector = Vector3(1, 0, 0),
const Vector3& depth_vector = Vector3(0, 0, 1));
virtual ~Box();
virtual void clear();
void set(const Box& box);
const Box& operator = (const Box& box);
virtual bool isValid() const;
virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
// Method to get all vertices from a geometric object
virtual void getVertices(vector<Vector3>& vertices) const;
};
} // namespace VIEW
} // namespace BALL
#endif // BALL_VIEW_PRIMITIV_BOX_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
box3.h
BALL::VIEW::Box::dump
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
BALL::VIEW::Box::clear
virtual void clear()
BALL::VIEW::Box::getVertices
virtual void getVertices(vector< Vector3 > &vertices) const
BALL::VIEW::Box::isValid
virtual bool isValid() const
BALL::VIEW::Box::Box
Box()
BALL::VIEW::Box::set
void set(const Box &box)
BALL::VIEW::GeometricObject::GeometricObject
GeometricObject()
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
geometricObject.h
BALL::Box3
TBox3< float > Box3
Definition box3.h:496
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114
BALL::Vector3
TVector3< float > Vector3
Definition vector3.h:1084
std
STL namespace.