Loading...
Searching...
No Matches
vertex2.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: vertex2.h,v 1.12 2005/12/23 17:02:08 amoll Exp $
//
#ifndef BALL_VIEW_DATATYPE_VERTEX2_H
#define BALL_VIEW_DATATYPE_VERTEX2_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 Vertex2
{
public:
BALL_CREATE(Vertex2)
//@{
Vertex2();
Vertex2(const Vertex2& vertex);
virtual ~Vertex2();
virtual void clear();
void set(const Vertex2& vertex);
const Vertex2& operator = (const Vertex2& vertex);
void swap(Vertex2& vertex);
void setVertex1(const Vector3& v);
void setVertex1(const float x, const float y, const float z);
Vector3& getVertex1();
const Vector3& getVertex1() const;
void getVertex1(Vector3& v) const;
void getVertex1(float& x, float& y, float& z) const;
void setVertex1Address(const Vector3& v);
void setDefaultVertex1Address();
Vector3* getVertex1Address() const;
void setVertex2(const Vector3& v);
void setVertex2(const float x, const float y, const float z);
Vector3& getVertex2();
const Vector3& getVertex2() const;
void getVertex2(Vector3& v) const;
void getVertex2(float& x, float& y, float& z) const;
void setVertex2Address(const Vector3& v);
void setDefaultVertex2Address();
Vector3* getVertex2Address() const;
void setVertices(const Vector3& vertex1, const Vector3& vertex2);
void setVertices
(const float vertex1_x,
const float vertex1_y,
const float vertex1_z,
const float vertex2_x,
const float vertex2_y,
const float vertex2_z);
void setVertexAddresses(const Vector3& vertex1, const Vector3& vertex2);
void getVertices(Vector3& vertex1, Vector3& vertex2);
void getVertices
(float& vertex1_x, float& vertex1_y, float& vertex1_z,
float& vertex2_x, float& vertex2_y, float& vertex2_z);
void setDefaultVertexAddresses();
bool isDefaultVertex1Address() const;
bool isDefaultVertex2Address() const;
bool isDefaultVertexAddresses() const;
virtual bool isValid() const;
virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
private:
/* vertex 1 */
Vector3 vertex1_;
/* vertex 2 */
Vector3 vertex2_;
/* vertex 1 pointer */
Vector3* vertex1_ptr_;
/* vertex 2 pointer */
Vector3* vertex2_ptr_;
};
# ifndef BALL_NO_INLINE_FUNCTIONS
# include <BALL/VIEW/DATATYPE/vertex2.iC>
# endif
} // namespace VIEW
} // namespace BALL
#endif // BALL_VIEW_DATATYPE_VERTEX2_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::VIEW::Vertex2::isDefaultVertex2Address
bool isDefaultVertex2Address() const
BALL::VIEW::Vertex2::setVertexAddresses
void setVertexAddresses(const Vector3 &vertex1, const Vector3 &vertex2)
BALL::VIEW::Vertex2::setVertex1
void setVertex1(const Vector3 &v)
BALL::VIEW::Vertex2::setDefaultVertex2Address
void setDefaultVertex2Address()
BALL::VIEW::Vertex2::set
void set(const Vertex2 &vertex)
BALL::VIEW::Vertex2::setDefaultVertexAddresses
void setDefaultVertexAddresses()
BALL::VIEW::Vertex2::Vertex2
Vertex2()
BALL::VIEW::Vertex2::setDefaultVertex1Address
void setDefaultVertex1Address()
BALL::VIEW::Vertex2::getVertex1Address
Vector3 * getVertex1Address() const
BALL::VIEW::Vertex2::setVertex2Address
void setVertex2Address(const Vector3 &v)
BALL::VIEW::Vertex2::isDefaultVertexAddresses
bool isDefaultVertexAddresses() const
BALL::VIEW::Vertex2::swap
void swap(Vertex2 &vertex)
BALL::VIEW::Vertex2::setVertices
void setVertices(const Vector3 &vertex1, const Vector3 &vertex2)
BALL::VIEW::Vertex2::isDefaultVertex1Address
bool isDefaultVertex1Address() const
BALL::VIEW::Vertex2::getVertex2
Vector3 & getVertex2()
BALL::VIEW::Vertex2::dump
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
BALL::VIEW::Vertex2::isValid
virtual bool isValid() const
BALL::VIEW::Vertex2::clear
virtual void clear()
BALL::VIEW::Vertex2::getVertices
void getVertices(Vector3 &vertex1, Vector3 &vertex2)
BALL::VIEW::Vertex2::setVertex1Address
void setVertex1Address(const Vector3 &v)
BALL::VIEW::Vertex2::setVertex2
void setVertex2(const Vector3 &v)
BALL::VIEW::Vertex2::getVertex1
Vector3 & getVertex1()
BALL::VIEW::Vertex2::getVertex2Address
Vector3 * getVertex2Address() 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