Loading...
Searching...
No Matches
disc.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: disc.h,v 1.8.16.1 2007-03-25 21:26:08 oliver Exp $
//
#ifndef BALL_VIEW_PRIMITIV_DISC_H
#define BALL_VIEW_PRIMITIV_DISC_H
#ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
# include <BALL/VIEW/KERNEL/geometricObject.h>
#endif
#ifndef BALL_VIEW_MATHS_CIRCLE3_H
# include <BALL/MATHS/circle3.h>
#endif
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT Disc
: public GeometricObject,
protected Circle3
{
public:
BALL_CREATE(Disc)
//@{
Disc();
Disc(const Disc& disc);
Disc(const Circle3& circle);
virtual ~Disc();
virtual void clear();
void set(const Disc& Disc);
const Disc& operator = (const Disc& Disc);
void swap(Disc& Disc);
void setCircle(const Circle3& circle);
const Circle3& getCircle() const
{ return *this;}
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_Disc_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
circle3.h
BALL::VIEW::Disc::set
void set(const Disc &Disc)
BALL::VIEW::Disc::Disc
Disc()
BALL::VIEW::Disc::getVertices
virtual void getVertices(vector< Vector3 > &vertices) const
BALL::VIEW::Disc::setCircle
void setCircle(const Circle3 &circle)
BALL::VIEW::Disc::isValid
virtual bool isValid() const
BALL::VIEW::Disc::clear
virtual void clear()
BALL::VIEW::Disc::dump
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
BALL::VIEW::Disc::swap
void swap(Disc &Disc)
BALL::VIEW::Disc::getCircle
const Circle3 & getCircle() const
Definition disc.h:87
BALL::VIEW::GeometricObject::GeometricObject
GeometricObject()
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
geometricObject.h
BALL::Circle3
TCircle3< float > Circle3
Definition circle3.h:301
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114