Loading...
Searching...
No Matches
mesh.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: mesh.h,v 1.9.16.1 2007-03-25 21:26:09 oliver Exp $
//
#ifndef BALL_VIEW_PRIMITIV_MESH_H
#define BALL_VIEW_PRIMITIV_MESH_H
#ifndef BALL_MATHS_SURFACE_H
# include <BALL/MATHS/surface.h>
#endif
#ifndef BALL_VIEW_KERNEL_GEOMETRICOBJECT_H
# include <BALL/VIEW/KERNEL/geometricObject.h>
#endif
#ifndef BALL_VIEW_DATATYPE_COLOREXTENSIONS_H
# include <BALL/VIEW/DATATYPE/colorExtensions.h>
#endif
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT Mesh
: public GeometricObject,
public Surface,
public MultiColorExtension
{
public:
BALL_CREATE(Mesh)
//@{
Mesh();
Mesh(const Mesh& mesh);
virtual ~Mesh();
virtual void clear();
void set(const Mesh& mesh);
const Mesh& operator = (const Mesh& mesh);
void swap(Mesh& mesh);
virtual bool isValid() const;
virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
bool binaryWrite(const String& filename);
bool binaryRead(const String& filename);
// Method to get all vertices from a geometric object
virtual void getVertices(vector<Vector3>& vertices) const;
};
} } // namespaces
#endif // BALL_VIEW_PRIMITIV_MESH_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::String
Definition string.h:57
BALL::VIEW::GeometricObject::GeometricObject
GeometricObject()
BALL::VIEW::Mesh::isValid
virtual bool isValid() const
BALL::VIEW::Mesh::getVertices
virtual void getVertices(vector< Vector3 > &vertices) const
BALL::VIEW::Mesh::binaryRead
bool binaryRead(const String &filename)
BALL::VIEW::Mesh::binaryWrite
bool binaryWrite(const String &filename)
BALL::VIEW::Mesh::swap
void swap(Mesh &mesh)
BALL::VIEW::Mesh::dump
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
BALL::VIEW::Mesh::Mesh
Mesh()
BALL::VIEW::Mesh::clear
virtual void clear()
BALL::VIEW::Mesh::set
void set(const Mesh &mesh)
BALL::VIEW::MultiColorExtension::MultiColorExtension
MultiColorExtension()
colorExtensions.h
BALL_CREATE
#define BALL_CREATE(name)
Definition create.h:62
geometricObject.h
BALL::Surface
TSurface< float > Surface
Definition surface.h:488
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.
surface.h