Loading...
Searching...
No Matches
twoColoredLine.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: twoColoredLine.h,v 1.10.16.1 2007-03-25 21:26:12 oliver Exp $
//
#ifndef BALL_VIEW_VIEW_PRIMITIVES_TWOCOLOREDLINE_H
#define BALL_VIEW_VIEW_PRIMITIVES_TWOCOLOREDLINE_H
#ifndef BALL_VIEW_DATATYPE_COLOREXTENSIONS_H
# include <BALL/VIEW/DATATYPE/colorExtensions.h>
#endif
#ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
# include <BALL/VIEW/KERNEL/geometricObject.h>
#endif
#ifndef BALL_VIEW_DATATPYE_VERTEX2_H
# include <BALL/VIEW/DATATYPE/vertex2.h>
#endif
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT TwoColoredLine
: public GeometricObject,
public ColorExtension2,
public Vertex2
{
public:
BALL_CREATE(TwoColoredLine)
//@{
TwoColoredLine();
TwoColoredLine(const TwoColoredLine& two_colored_line);
virtual ~TwoColoredLine();
virtual void clear();
void set(const TwoColoredLine& two_colored_line);
const TwoColoredLine& operator = (const TwoColoredLine& two_colored_line);
void swap(TwoColoredLine& two_colored_line);
Vector3 getMiddleVertex() const;
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;
};
#ifndef BALL_NO_INLINE_FUNCTIONS
# include <BALL/VIEW/PRIMITIVES/twoColoredLine.iC>
#endif
} // namespace VIEW
} // namespace BALL
#endif // BALL_VIEW_VIEW_PRIMITIVES_TWOCOLOREDLINE_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::VIEW::ColorExtension2::ColorExtension2
ColorExtension2()
BALL::VIEW::GeometricObject::GeometricObject
GeometricObject()
BALL::VIEW::TwoColoredLine::clear
virtual void clear()
BALL::VIEW::TwoColoredLine::set
void set(const TwoColoredLine &two_colored_line)
BALL::VIEW::TwoColoredLine::isValid
virtual bool isValid() const
BALL::VIEW::TwoColoredLine::getVertices
virtual void getVertices(vector< Vector3 > &vertices) const
BALL::VIEW::TwoColoredLine::TwoColoredLine
TwoColoredLine()
BALL::VIEW::TwoColoredLine::getMiddleVertex
Vector3 getMiddleVertex() const
BALL::VIEW::TwoColoredLine::swap
void swap(TwoColoredLine &two_colored_line)
BALL::VIEW::TwoColoredLine::dump
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
BALL::VIEW::Vertex2::Vertex2
Vertex2()
colorExtensions.h
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
geometricObject.h
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.
vertex2.h