Loading...
Searching...
No Matches
vertex1.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: vertex1.h,v 1.10.20.1 2007/03/25 21:25:42 oliver Exp $
//
#ifndef BALL_VIEW_DATATYPE_VERTEX1_H
#define BALL_VIEW_DATATYPE_VERTEX1_H
#ifndef BALL_COMMON_H
# include <BALL/common.h>
#endif
#ifndef BALL_MATHS_VECTOR3_H
# include <BALL/MATHS/vector3.h>
#endif
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT Vertex
{
public:
BALL_CREATE(Vertex)
//@{
Vertex();
Vertex(const Vertex& vertex);
virtual ~Vertex();
virtual void clear();
void set(const Vertex& v);
const Vertex& operator = (const Vertex& v);
void swap(Vertex& v);
void setVertex(const Vector3& v);
void setVertex(const float x, const float y, const float z);
Vector3& getVertex();
const Vector3& getVertex() const;
void getVertex(Vector3& v) const;
void getVertex(float& x, float& y, float& z) const;
void setVertexAddress(const Vector3& v);
void setDefaultVertexAddress();
Vector3* getVertexAddress() const;
bool isDefaultVertexAddress() const;
virtual bool isValid() const;
virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
private:
/* vertex */
Vector3 vertex1_;
/* vertex pointer */
Vector3* vertex1_ptr_;
};
# ifndef BALL_NO_INLINE_FUNCTIONS
# include <BALL/VIEW/DATATYPE/vertex1.iC>
# endif
} // namespace VIEW
} // namespace BALL
#endif // BALL_VIEW_DATATYPE_VERTEX1_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::VIEW::Vertex::getVertex
Vector3 & getVertex()
BALL::VIEW::Vertex::getVertexAddress
Vector3 * getVertexAddress() const
BALL::VIEW::Vertex::swap
void swap(Vertex &v)
BALL::VIEW::Vertex::setVertexAddress
void setVertexAddress(const Vector3 &v)
BALL::VIEW::Vertex::clear
virtual void clear()
BALL::VIEW::Vertex::setDefaultVertexAddress
void setDefaultVertexAddress()
BALL::VIEW::Vertex::isDefaultVertexAddress
bool isDefaultVertexAddress() const
BALL::VIEW::Vertex::dump
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
BALL::VIEW::Vertex::set
void set(const Vertex &v)
BALL::VIEW::Vertex::Vertex
Vertex()
BALL::VIEW::Vertex::setVertex
void setVertex(const Vector3 &v)
BALL::VIEW::Vertex::isValid
virtual bool isValid() const
common.h
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
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.
vector3.h